/* About port of the homepage pill, 26 Aug 2026. Verbatim copy of the
 * homepage floating section pill (home-hero-2026.css .hxnav), reused
 * via /assets/js/home-section-nav.mjs. Replaces the old .abv-pagenav
 * <details> dropdown on /about/ and /about/abv5/ — both variants share
 * body class .page--about so one selector covers both. */

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

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

.page--about .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 */
#routes, #handled, #local, #proof, #check, #tools, #enquiry {
  scroll-margin-top: calc(var(--head-h, 65px) + 74px);
}

/* This pill carries 7 sections to the homepage's 5, so the labels give
   way to numbers earlier — one line at every width, never two. */
@media (max-width: 63.99em) {
  .page--about .hxnav [data-hxnav-link] { padding: 0.5rem 0.7rem; min-height: 40px; }
  .page--about .hxnav [data-hxnav-link] span { display: none; }
}

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

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