/* Separate utility destination; the four primary navigation items stay unchanged. */
.header-offers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,.045);
  transition: background 180ms ease, border-color 180ms ease;
}
.header-offers:hover, .header-offers[aria-current="page"] {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.65);
  color: white;
}
.header-offers:focus-visible { outline: 3px solid var(--color-orange); outline-offset: 3px; }
@media (min-width: 1081px) and (max-width: 1250px) {
  .site-header:has(.header-offers) { gap: 16px; }
  .site-header:has(.header-offers) .main-nav { gap: 16px; }
  .site-header:has(.header-offers) .header-actions { gap: 10px; }
  .site-header:has(.header-offers) .header-actions > .ghost-link { display: none; }
}
@media (max-width: 760px) {
  .site-header:has(.header-offers) { gap: 8px; padding-right: 10px; }
  .site-header:has(.header-offers) .header-actions { gap: 8px; min-width: 0; }
  .header-offers { font-size: .7rem; padding-inline: 10px; }
  .site-header:has(.header-offers) .header-actions > .button { font-size: .72rem; padding-inline: 12px; }
}
@media (max-width: 359px) {
  .header-offers { white-space: normal; max-width: 88px; text-align: center; }
  .site-header:has(.header-offers) .header-actions > .button { max-width: 110px; text-align: center; }
}

:root {
  --section-nav-top: 18px;
  --section-nav-stacked-top: 118px;
  --nav-transition: 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Both bars move together. Sticky retains the section bar's space in flow. */
.quick-actions {
  position: sticky;
  top: var(--section-nav-stacked-top);
  transition: top var(--nav-transition);
}

/* Every section bar is one line, including its text labels. Repeated class
   specificity defeats legacy per-page/two-column grids without !important.
   Compact links become a touch/keyboard-scrollable mobile strip exactly when
   their intrinsic widths no longer fit; no viewport-specific wrapping gap. */
.quick-actions.quick-actions {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.quick-actions.quick-actions > a {
  flex: 1 0 auto;
  padding-inline: 14px;
  white-space: nowrap;
  border-bottom: 0;
}
@media (max-width: 1080px) {
  .quick-actions.quick-actions > a {
    min-height: 58px;
    padding-inline: 12px;
    font-size: .88rem;
  }
}

.section-nav-only .quick-actions {
  top: var(--section-nav-top);
}

:is(.site-header, .lp-header).site-header-scroll {
  translate: 0 0;
  transition: translate var(--nav-transition), background 260ms ease,
    box-shadow 260ms ease, border-color 260ms ease;
}

:is(.site-header, .lp-header).site-header-scroll.site-header-hidden {
  translate: 0 calc(-100% - 90px);
}

/* Focus must be visible immediately. Never remove the header from tab order. */
:is(.site-header, .lp-header).site-header-scroll:focus-within {
  translate: 0 0;
  transition: none;
}

html:has(.site-header:focus-within) .quick-actions {
  transition: none;
}

/* Hash destinations remain readable below the two-level navigation. */
html:has(.quick-actions) {
  scroll-padding-top: calc(var(--section-nav-stacked-top) + var(--section-nav-height, 66px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  :is(.site-header, .lp-header).site-header-scroll,
  .quick-actions {
    transition: none;
  }
}

/* Member access is a utility link, not a fifth primary navigation topic. */
.header-members { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 12px;flex-shrink:0;border:1px solid rgba(255,255,255,.3);border-radius:999px;color:white;background:rgba(255,255,255,.045);font-size:.78rem;font-weight:600;white-space:nowrap; }
.header-members svg { flex-shrink:0; }
.header-members:hover { background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.65); }
.header-members:focus-visible { outline:3px solid var(--color-orange);outline-offset:3px; }
@media(max-width:1350px) { .header-members { width:44px;padding:0; } .header-members span { display:none; } }
@media(max-width:1080px) { .site-header:has(.mobile-menu-toggle) .header-members { display:none; } }

/* Match the member header: a true capsule and an inset, flush logo circle. */
.site-header { border-radius:999px; }
.site-header .brand-logo {
  width:var(--header-height);
  height:var(--header-height);
  border-radius:50%;
  filter:none;
}
