/* The main menu on phones: below 720px the links fold behind a menu button and open as a list under the header. */
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .site-header__inner { gap: 8px; }
  .site-header__inner > .btn-outline { max-width: 112px; padding: 9px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .brand { min-width: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #D3CCC2; border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; order: 3; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .nav-toggle__close, .site-header.is-open .nav-toggle .nav-toggle__open { display: none; }
  .site-header.is-open .nav-toggle .nav-toggle__close { display: block; }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; gap: 0; order: 4; flex-basis: 100%; margin: 4px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
  .site-header.is-open .site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .site-header.is-open .site-nav a:last-child { border-bottom: 0; }
  .site-header.is-open .site-nav a[aria-current] { box-shadow: inset -3px 0 0 var(--cocoa); padding-right: 12px; }
}

/* Between phone and wide screens the eight links sit closer, so that the header stays on one line (down to ~870px). */
@media (min-width: 721px) and (max-width: 1100px) {
  .site-header__inner { gap: 16px; }
  .site-nav { gap: 12px; font-size: 14px; }
}
