/* ======================================================================
 * GUARANTEED RENT — floating section pill (26 Aug 2026).
 *
 * Port of the homepage's floating section pill (home-hero-2026.css .hxnav,
 * final state: gold cursor, ink on-state) to /landlords/guaranteed-rent/,
 * following the same recipe already used for /landlords/ and
 * /sales/sellers-guide/. The JS is the homepage's own
 * /assets/js/home-section-nav.mjs, reused unmodified. Page-owned file,
 * single writer — loaded only by this page after guaranteed-rent.css so
 * it wins the cascade without touching that file.
 * ==================================================================== */

/* ---- the homepage floating section pill, verbatim -------------------- */

.page--guaranteed-rent .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--guaranteed-rent .hxnav.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.page--guaranteed-rent .hxnav.is-docked { top: 10px; }

.page--guaranteed-rent .hxnav__list {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 999px;
  background: rgba(14, 26, 21, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 18px 44px -20px rgba(8, 16, 12, 0.7);
}
.page--guaranteed-rent .hxnav__curli { display: contents; }
.page--guaranteed-rent .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: rgba(244, 238, 227, 0.88);
  font-size: 0.875rem;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms ease;
}
.page--guaranteed-rent .hxnav [data-hxnav-link] i {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 800;
  color: rgba(227, 201, 143, 0.85);
  transition: color 200ms ease;
}
.page--guaranteed-rent .hxnav [data-hxnav-link].is-on,
.page--guaranteed-rent .hxnav [data-hxnav-link].is-on i { color: #171a20; }
.page--guaranteed-rent .hxnav [data-hxnav-link]:focus-visible { outline: 3px solid #f0bd77; outline-offset: 2px; }

.page--guaranteed-rent .hxnav__cursor {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: #c5a66a;
  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 header + pill */
#gr-plain, #gr-process, #gr-proposal, #gr-balance, #gr-next, #dukes-receptionist {
  scroll-margin-top: calc(var(--head-h, 65px) + 74px);
}

/* This pill carries 6 sections, same as the homepage — labels stay on
   one line down to the same breakpoint before collapsing to numbers. */
@media (max-width: 63.99em) {
  .page--guaranteed-rent .hxnav [data-hxnav-link] { padding: 0.5rem 0.7rem; min-height: 40px; }
  .page--guaranteed-rent .hxnav [data-hxnav-link] span { display: none; }
}

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

@media print {
  .page--guaranteed-rent .hxnav { display: none !important; }
}
