/* ======================================================================
 * SELLING PROCESS — floating section pill (21 Aug 2026).
 *
 * Aarav's brief: retire the dark "The nine stages +" dropdown and use THE
 * SAME transparent floating pill as the homepage, /landlords/ and
 * /sales/sellers-guide/. The block below is the sellers-guide pill
 * rescoped to this page; the JS is the homepage's own
 * /assets/js/home-section-nav.mjs, reused unchanged.
 *
 * Page-owned file, single writer — loaded only by /sales/selling-process/
 * and last in that page's chain, so it wins the cascade without touching
 * selling-process-assistant-2026.css or its fixes layer.
 *
 * The retired dropdown's rules still sit in dukes.css / dukes-claude.css /
 * selling-process-assistant-fixes.css. The element is gone, so they are
 * inert — do not go pruning them out of shared sheets.
 * ==================================================================== */

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

.page--selling-process .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--selling-process .hxnav__curli { display: contents; }

.page--selling-process .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--selling-process .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--selling-process .hxnav [data-hxnav-link].is-on,
.page--selling-process .hxnav [data-hxnav-link].is-on i { color: #171a20; }
.page--selling-process .hxnav [data-hxnav-link]:focus-visible { outline: 3px solid #f0bd77; outline-offset: 2px; }

.page--selling-process .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 */
#journey-priorities, #journey-value, #journey-documents, #journey-route,
#journey-market, #journey-offers, #journey-conveyancing, #journey-exchange,
#journey-completion {
  scroll-margin-top: calc(var(--head-h, 65px) + 74px);
}

/* This pill carries NINE stages to the homepage's six, so it sheds width in
   two steps rather than one: tighter lozenges first, then labels off.
   Measured so the rail is one line at every width and never wider than the
   viewport — the numbers alone still read here, because the page numbers
   its own stages 01-09. */
@media (max-width: 84.99em) {
  .page--selling-process .hxnav [data-hxnav-link] { padding: 0.5rem 0.68rem; gap: 0.3rem; }
}

/* Labels collapse rather than disappear: `display: none` would leave each
   link accessibly named "01". Clipping keeps the stage name in the
   accessible name while the visible label is still contained by it. */
@media (max-width: 70.99em) {
  .page--selling-process .hxnav [data-hxnav-link] span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .page--selling-process .hxnav [data-hxnav-link] { padding: 0.5rem 0.62rem; }
}

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

@media print {
  .page--selling-process .hxnav { display: none !important; }
}
