/* 2026-10-05 owner: "On this page" jump bar for the ~16,200px homepage.
   Light chrome, not the dark .g6-subnav band: cream paper, navy ink, one hairline.
   Markup is server-rendered in front-page.php right after the hero template part, so with no JavaScript it is
   a plain block of in-page anchor links. js/gen6-jumpbar.js swaps it to fixed placement under the measured
   header height (--g6-jumpbar-top), keeps it out of the way until section.g6-hero has scrolled past, and owns
   aria-current="true". No em or en dashes, no contractions. */

:root {
  /* JS overwrites --g6-jumpbar-top with the measured header height; the bar is 48px tall at every width. */
  --g6-jumpbar-h: 48px;
  --g6-jumpbar-top: 72px;
}

/* Without JavaScript the bar is a normal in-flow link block, so it is always usable. */
.g6-jumpbar {
  position: relative;
  z-index: 1150;
  background: #FDFCF9;
  color: var(--g6-ink, #095e93);
  border-top: 1px solid rgba(22, 40, 62, .10);
  border-bottom: 1px solid rgba(22, 40, 62, .10);
  font-family: var(--g6-ui, Manrope, sans-serif);
  box-sizing: border-box;
}
.g6-jumpbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--g6-jumpbar-h);
  box-sizing: border-box;
}
.g6-jumpbar-label {
  flex: none;
  margin: 0;
  font: 600 11px/1 var(--g6-ui, Manrope, sans-serif);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--g6-slate, #53677A);
}
.g6-jumpbar-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.g6-jumpbar-list::-webkit-scrollbar { display: none; }
.g6-jumpbar-list > li { flex: none; display: flex; }
.g6-jumpbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font: 600 13.5px/1 var(--g6-ui, Manrope, sans-serif);
  color: var(--g6-ink, #095e93);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--g6-motion, 180ms) ease, border-color var(--g6-motion, 180ms) ease;
}
.g6-jumpbar-link:hover { color: var(--g6-channel, #2E6FA3); }
.g6-jumpbar-link[aria-current="true"] {
  color: var(--g6-ink, #095e93);
  border-bottom-color: var(--g6-channel, #2E6FA3);
}
.g6-jumpbar-link:focus-visible {
  outline: 2px solid var(--g6-channel, #2E6FA3);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Anchor landings clear the fixed header plus this bar. gen6.css already reserves header + subnav; the
   homepage measures the real header height instead of trusting --g6-header-h, so this rule wins. */
.home.gen6 :is(section[id], div[id], h2[id], h3[id]) {
  scroll-margin-top: calc(var(--g6-jumpbar-top, 72px) + var(--g6-jumpbar-h, 48px) + 18px);
}
/* Smooth anchor travel, skipped for readers who ask for reduced motion (gen6.css also forces auto there). */
@media (prefers-reduced-motion: no-preference) {
  html.g6-jumpbar-js { scroll-behavior: smooth; }
}

/* JavaScript state: fixed under the measured header, hidden until the hero band has scrolled past. */
html.g6-jumpbar-js .g6-jumpbar {
  position: fixed;
  top: var(--g6-jumpbar-top, 72px);
  left: 0;
  right: 0;
  height: var(--g6-jumpbar-h, 48px);
  transform: translateY(-100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--g6-motion, 180ms) ease, opacity var(--g6-motion, 180ms) ease, visibility 0s linear var(--g6-motion, 180ms);
}
html.g6-jumpbar-js .g6-jumpbar.is-visible {
  transform: none;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
/* One bar per page: this light bar supersedes the earlier dark home subnav only while this file is live. */
html.g6-jumpbar-js .g6-subnav-home { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.g6-jumpbar-js .g6-jumpbar { transition: none; }
}
@media (max-width: 799.98px) {
  .g6-jumpbar-inner { gap: 0; }
  .g6-jumpbar-label { display: none; }
  .g6-jumpbar-list { gap: 0; }
  .g6-jumpbar-link { min-height: 44px; padding: 0 13px; font-size: 13px; }
}
@media print {
  .g6-jumpbar { display: none !important; }
}

/* 2026-10-13 director (real-browser check): home anchors landed 30px low, leaving a cut sliver of the previous section under the
   sticky bars. Sections carry their own top padding, so they land flush under the header + jump bar. */
body.home.gen6 #main-content :is(section[id], div[id]) { scroll-margin-top: calc(var(--g6-jumpbar-top, 72px) + var(--g6-jumpbar-h, 48px)); }
