/* nav-mobile.css — accessible mobile hamburger for the primary nav.
   Net-new, scoped, loaded AFTER site.css so it authoritatively overrides the
   legacy 860px `.nav { display:none }` block that left phones with an empty nav.
   Desktop nav is untouched: the burger is hidden and `.nav` keeps its inline
   flex layout above the breakpoint. Brand: Oswald/Inter, navy/gold/cream. */

/* ---- burger button (hidden on desktop, gold burger on mobile) ---- */
.nav-toggle {
  display: none;                 /* desktop: no burger (overridden ≤760px below) */
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 6px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--gold);            /* the inline SVG inherits via currentColor */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }
.nav-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-toggle-icon { display: block; width: 24px; height: 24px; }

/* ============================ MOBILE (≤760px) ============================ */
@media (max-width: 760px) {

  /* show the burger; the brand stays on the left, burger on the right */
  .nav-toggle { display: inline-flex; }

  /* turn the nav into a slide-down overlay panel anchored under the header */
  .site-header .nav.nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;                 /* under the sticky header's own z-index (50) */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background: var(--navy);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    /* collapsed by default — slide/fade up out of view, not interactive */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s var(--ease), opacity .2s var(--ease), visibility .24s var(--ease);
  }

  /* open state (toggled by nav-mobile.js) */
  .site-header .nav.nav-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* every link — incl. the non-pill ones AND Subscribe — is a full-width row */
  .site-header .nav.nav-panel a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 10px;
    border-radius: 8px;
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: 1.06rem;
    font-weight: 500;
    color: var(--cream);
    text-align: left;
  }
  .site-header .nav.nav-panel a:first-child { border-top: 0; }
  .site-header .nav.nav-panel a:hover { background: var(--navy-3); text-decoration: none; }
  .site-header .nav.nav-panel a[aria-current="page"] { color: var(--gold); }

  /* the Subscribe pill: full-width gold call-to-action at the foot of the panel */
  .site-header .nav.nav-panel a.pill,
  .site-header .nav.nav-panel a.btn {
    margin-top: 12px;
    padding: 14px 18px;
    border-top: 0;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .02em;
    text-align: center;
  }
  .site-header .nav.nav-panel a.pill:hover,
  .site-header .nav.nav-panel a.btn:hover { background: var(--gold-bright); color: var(--navy); }
}

/* ---- desktop guard: never let the burger show above the breakpoint ---- */
@media (min-width: 761px) {
  .nav-toggle { display: none; }
}

/* ---- reduced motion: no slide, just an instant show/hide ---- */
@media (prefers-reduced-motion: reduce) {
  .site-header .nav.nav-panel { transition: none; transform: none; }
  .site-header .nav.nav-panel.open { transform: none; }
}
