/* SpaceTracker header first-paint layout v1.0.0.
   This stylesheet is loaded synchronously in <head>, before the header is painted.
   Mirrors the existing completed desktop layout without waiting for DOMContentLoaded.
   No colour, data, location, map, animation or page-transition changes. */
@media (min-width:821px) {
  .site-header {height:auto;min-height:var(--header)}
  .site-header .header-inner {height:auto;min-height:var(--header);flex-wrap:wrap;padding-top:7px;padding-bottom:0}
  .site-header .header-inner > .brand {min-height:50px;margin-right:auto;flex-shrink:0}
  .site-header #primary-nav {order:3;flex:1 0 100%;width:100%;min-width:0;justify-content:center;flex-wrap:wrap;gap:3px;border-top:1px solid rgba(118,159,197,.10);padding:6px 0 8px}
  .site-header #primary-nav > a {padding:8px 10px;font-size:13px}
  .site-header #primary-nav .nav-dropdown-toggle,
  .site-header #primary-nav .header-search-open {padding:8px;font-size:12px}
}
/* Reserve mobile control columns before the existing script moves Search into place.
   Existing drawer scrolling and dropdown behaviour remain owned by existing scripts. */
@media (max-width:820px) {
  .site-header .header-inner {display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px!important;gap:8px!important}
  .site-header .header-inner > .brand {grid-column:1;grid-row:1;min-width:0!important;gap:7px!important}
  .site-header .header-inner > .brand > span {min-width:0!important}
  .site-header .header-inner > .brand strong {font-size:clamp(14px,4.1vw,18px)!important;white-space:nowrap!important}
  .site-header .header-inner > .brand img,
  .site-header .header-inner > .brand .brand-mark {width:34px!important;height:34px!important;flex-shrink:0!important;object-fit:contain}
  .site-header .header-inner > .menu-toggle {grid-column:3;grid-row:1;width:44px!important;min-width:44px!important;height:44px!important;margin:0!important}
  .site-header .header-inner > .header-search-open {grid-column:2;grid-row:1}
  .site-header #primary-nav:not(.open) {display:none!important}
}