@charset "UTF-8";
/* ======================================================================
 * CLIENT PROTECTION - floating section pill (20 August 2026).
 *
 * Aarav's brief: kill the centred "Client protection" dropdown and use THE
 * SAME floating section pill as the homepage.
 *
 * The block below is the homepage pill verbatim (home-hero-2026.css .hxnav,
 * final state - sliding cursor, gold on-state) as already ported to
 * /landlords/ and /properties/tenant-guide/, scoped to this page. Geometry,
 * motion and behaviour are untouched. Three values differ:
 *   - the glass takes this page's ink-deep #2b1d20, not the homepage forest
 *   - the cursor takes this page's gold #c5a880, not #c5a66a
 *   - the glass runs at 88% rather than the homepage's 62-66%, because this
 *     page's pill travels over cream instead of dark hero film. That one is
 *     not taste, it is a measured contrast fix - see the note on the rule.
 *
 * The JS is the homepage's own /assets/js/home-section-nav.mjs, reused. It
 * needs [data-hxnav] on the nav and [data-hxo] on the hero (the pill exists
 * only below the hero).
 *
 * Page-owned file, single writer. Loaded only by /client-protection/, after
 * client-protection.css, so it wins the cascade without touching that file.
 * ==================================================================== */

/* The old dropdown is removed from the markup; this is belt and braces in
   case a rebuild ever puts it back. */
.page--client-protection .cpb-guide-nav { display: none; }

.page--client-protection .hxnav {
  position: fixed;
  top: calc(var(--hxnav-seam, 65px) + 10px);
  left: 50%;
  z-index: 900;
  transform: translate(-50%, -14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), top 240ms ease;
}

.page--client-protection .hxnav.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.page--client-protection .hxnav.is-docked { top: 10px; }

.page--client-protection .hxnav__list {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 999px;
  /* The homepage sets this glass at 62-66% because its pill floats over dark
     hero film. This page's pill spends most of its travel over cream and warm
     paper, where 66% measured 4.06:1 on the labels and 2.59:1 on the numerals.
     At 88% the same component measures 9.94:1 and 6.05:1 against the worst
     band on the page, and over the dark bands nothing visibly changes. */
  background: rgb(43 29 32 / 88%); /* the page's ink-deep, as glass */
  border: 1px solid rgb(255 255 255 / 16%);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 18px 44px -20px rgb(20 12 14 / 60%);
}

.page--client-protection .hxnav__curli { display: contents; }

.page--client-protection .hxnav [data-hxnav-link] {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: #f4efe6;
  font-size: 0.875rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms ease;
}

.page--client-protection .hxnav [data-hxnav-link] i {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 800;
  color: #d9b98c; /* the page's sand */
  transition: color 200ms ease;
}

.page--client-protection .hxnav [data-hxnav-link].is-on,
.page--client-protection .hxnav [data-hxnav-link].is-on i { color: #2b1d20; }

.page--client-protection .hxnav [data-hxnav-link]:focus-visible {
  outline: 3px solid #f0bd77;
  outline-offset: 2px;
}

.page--client-protection .hxnav__cursor {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: #c5a880; /* the page's gold */
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
  pointer-events: none;
}

/* The pill's anchor targets land clear of the header AND the pill, rather
   than sliding underneath it. */
.page--client-protection #protection,
.page--client-protection #meaning,
.page--client-protection #company,
.page--client-protection #procedure,
.page--client-protection #listings,
.page--client-protection #contact {
  scroll-margin-top: calc(var(--head-h, 65px) + 74px);
}

/* Six sections, same as the homepage, so the labels survive further down
   than the eight-entry landlords pill does. Below 56em they give way to the
   numerals - one line at every width, never two. */
@media (max-width: 55.99em) {
  .page--client-protection .hxnav [data-hxnav-link] { padding: 0.5rem 0.7rem; }
  .page--client-protection .hxnav [data-hxnav-link] span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page--client-protection .hxnav,
  .page--client-protection .hxnav__cursor,
  .page--client-protection .hxnav [data-hxnav-link] { transition: none !important; }
}

@media print {
  .page--client-protection .hxnav { display: none !important; }
}
