/* Extracted from styles.css: shared header chrome (.site-header,
   .brand, .brand-logo, .brand-copy, .menu-toggle, .site-nav, .nav-item,
   .has-sub, .nav-sub-toggle, .nav-chevron, .nav-sub, .header-start,
   .header-login, .mobile-login-link, .mobile-start-link) and every media
   variant of them. Order preserved exactly as it was in styles.css so the
   cascade among duplicate selectors (same selector repeated for later
   design passes) resolves identically. */
/* ---------------------------------------------------------------------------
   HEADER SIZING. One source of truth.

   This file used to carry four generations of design pass stacked on top of
   each other: header heights 76 -> 88 -> 94 -> 112, logo 51.5 -> 64.4 -> 80.5
   -> 100.6, each with its own 1050px and 780px variants. Only the last
   generation ever rendered; the other three were 20 dead declarations the
   browser parsed and discarded on every page load, and they made the real
   value impossible to find.

   Everything now derives from two custom properties, so there is no second
   place to keep in sync and no device-specific step. --header-h is fluid
   between a 64px phone header and an 88px desktop one; --brand-logo is sized
   to sit inside it with breathing room at both ends (64px logo in an 88px
   header, 44px in a 64px one).

   Two faults this also fixes:
   - .site-nav carried a hard-coded top (68/72/78/88px across the passes, and
     94px in the mobile dropdown) that had to match the header height by hand.
     At 900px wide the header is 102px and the dropdown was pinned at 94px, so
     it overlapped the header by 8px. It now derives from --header-h.
   - .site-nav a used fixed vertical padding (45px top, 41px bottom) that only
     added up inside a 112px header. At a 64px header that padding alone is
     86px and would have burst it. The link now fills the header height and
     centres its own text, so the hover underline still lands on the bottom
     edge whatever the header measures.
   --------------------------------------------------------------------------- */
:root{
  --header-h:clamp(64px,6vw,88px);
  --brand-logo:clamp(44px,4.2vw,64px);
}
.site-header{height:var(--header-h);padding:0 max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:28px;background:#020a17;color:white;position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(255,255,255,.08)}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto}
/* filter is the generation-2 value (12px/.38); later passes resized the logo
   but never restated the glow, so this is what has always rendered. */
.brand-logo{display:block;width:var(--brand-logo);height:var(--brand-logo);object-fit:contain;object-position:center;flex:0 0 var(--brand-logo);filter:drop-shadow(0 0 12px rgba(8,124,255,.38))}
.brand-copy{display:grid;line-height:1}
.site-nav{display:flex;align-items:center;gap:30px;font-size:14px}
.site-nav>a{height:var(--header-h);display:flex;align-items:center;padding:0;border-bottom:2px solid transparent}
.menu-toggle{display:none}
@media(max-width:1050px){.site-nav{gap:18px}}
@media(max-width:780px){
  .site-header{padding:0 18px}
  .menu-toggle{display:block;background:transparent;color:white;border:1px solid rgba(255,255,255,.4);border-radius:5px;padding:8px 11px}
  /* top:100% pins the panel to the bottom of the header whatever it measures,
     instead of the four hand-kept numbers this replaced. */
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#020a17;padding:12px 22px 22px;flex-direction:column;align-items:stretch;gap:0}
  .site-nav a{height:auto;padding:12px 0}
}
.brand{
  gap:14px;
}.brand-copy{
  display:grid;
  grid-template-columns:auto 2px auto;
  align-items:center;
  gap:10px;
  line-height:1;
  min-width:190px;
}@media(max-width:1050px){.brand-copy{min-width:165px;gap:8px}}
@media(max-width:900px){.brand-copy{display:grid}}
@media(max-width:780px){.brand-copy{grid-template-columns:auto 2px auto;min-width:142px;gap:6px}}
@media(max-width:520px){.brand-copy{display:none}}
.brand{
  gap:12px;
  flex-shrink:0;
}.brand-copy{
  display:block;
  min-width:0;
  white-space:nowrap;
  line-height:1;
}@media(max-width:1260px){.site-header{gap:20px;padding-left:22px;padding-right:22px}.site-nav{gap:22px}}
@media(max-width:1080px){.site-nav{gap:16px;font-size:13px}}
@media(max-width:900px){.brand-copy{display:block}}
@media(max-width:780px){.brand-copy{display:block;white-space:nowrap}}
@media(max-width:570px){.brand-copy{display:none}}
.site-nav a{
  white-space:nowrap;
  word-break:keep-all;
  flex-shrink:0;
}@media(max-width:1260px){.site-nav{gap:17px;font-size:13px}}
@media(max-width:1080px){.site-nav{gap:13px;font-size:12px}}
@media(max-width:900px){.site-nav a{white-space:normal}}
.brand-logo{
  transform:translateY(6px);
  object-position:center 58%;
}@media(max-width:1080px){.brand-logo{transform:translateY(5px)}}
@media(max-width:900px){.brand-logo{transform:translateY(4px)}}
@media(max-width:780px){.brand-logo{transform:translateY(3px)}}
@media(max-width:1120px){.site-nav{gap:14px}.site-nav a{font-size:12px}}
.site-header{
  background:rgba(2,10,23,.88);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
  backdrop-filter:blur(18px) saturate(130%);
  transition:background .25s ease,box-shadow .25s ease,border-color .25s ease;
}.brand-logo{transition:transform .25s ease,filter .25s ease}.brand:hover .brand-logo{transform:scale(1.035);filter:drop-shadow(0 0 14px rgba(35,174,255,.46))}.site-nav a{position:relative;transition:color .2s ease}.site-nav a::after{
  content:"";position:absolute;left:50%;bottom:21px;width:0;height:2px;
  border-radius:999px;background:linear-gradient(90deg,#087cff,#40d3ff);
  transform:translateX(-50%);transition:width .22s ease;
}.site-nav a:hover::after,.site-nav a.active::after{width:100%}.site-nav a:hover,.site-nav a.active{border-bottom-color:transparent}@media(max-width:900px){.menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:42px;
    border:1px solid rgba(87,194,255,.35);border-radius:11px;background:rgba(12,49,91,.45);
    color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer;
  }.site-nav{
    /* Was top:94px, a constant that had to track the header by hand. At 900px
       wide the header is taller than 94px, so the panel overlapped it. */
    position:fixed!important;left:12px!important;right:12px!important;
    top:calc(var(--header-h) + 6px)!important;
    display:grid!important;gap:0!important;padding:10px!important;border:1px solid rgba(75,183,255,.25);
    border-radius:18px;background:#020d1f;box-shadow:0 24px 60px rgba(0,0,0,.4);
    opacity:0;visibility:hidden;transform:translateY(-10px) scale(.985);
    transition:opacity .22s ease,visibility .22s ease,transform .22s ease;
    max-height:calc(100dvh - var(--header-h) - 32px);overflow:auto;
  }.site-nav a{height:auto!important;padding:13px 14px!important;border:0!important;border-radius:10px}.site-nav .nav-sub-toggle{padding:13px 14px}.site-nav a::after{display:none}.site-nav a:hover,.site-nav a.active{background:rgba(23,157,255,.12)}}
.header-login{
  position:absolute;
  top:50%;
  right:24px;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 15px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:#cfe6ff;
  background:rgba(255,255,255,.04);
  transition:.2s;
  white-space:nowrap;
  z-index:60;
}.header-login:hover{border-color:var(--cyan);color:#fff;background:rgba(23,167,255,.14)}.site-nav a.mobile-login-link{display:none}@media(max-width:1050px){.header-login{padding:8px 10px;right:16px}}
@media(max-width:900px){.header-login{display:none}.site-nav a.mobile-login-link{
    display:block;
    color:#34a7ff;
    font-weight:800;
    border-bottom:1px solid rgba(255,255,255,.14);
  }}
@media(min-width:1341px){.site-header{padding-left:32px;padding-right:176px;gap:20px}.site-header .site-nav{gap:15px;font-size:13px}
/* Nav centred on the viewport, not on the space left over between the brand
   and the Start a Mission button. Taken out of the flex row so neither side
   can push it off centre; the login pill keeps its own absolute right slot. */
.site-header .site-nav{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}}
@media(min-width:901px) and (max-width:1340px){.site-header{padding-right:176px}.menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:42px;border:1px solid rgba(87,194,255,.35);border-radius:11px;background:rgba(12,49,91,.45);color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.site-nav{position:fixed!important;left:16px!important;right:16px!important;top:calc(var(--header-h) + 12px)!important;display:grid!important;gap:0!important;padding:10px!important;border:1px solid rgba(75,183,255,.25);border-radius:18px;background:rgba(2,13,31,.98);box-shadow:0 24px 60px rgba(0,0,0,.4);opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .22s ease,visibility .22s ease,transform .22s ease;max-height:calc(100vh - 120px);overflow:auto}.site-nav a{height:auto!important;padding:13px 14px!important;border:0!important;border-radius:10px}.site-nav a::after{display:none}.site-nav a:hover,.site-nav a.active{background:rgba(23,157,255,.12)}}
.nav-item.has-sub{position:relative;display:flex;align-items:center}.nav-sub-toggle{display:inline-flex;align-items:center;gap:7px;height:var(--header-h);padding:0;border:0;border-bottom:2px solid transparent;background:transparent;color:inherit;font:inherit;line-height:inherit;cursor:pointer}.nav-sub-toggle:hover,.nav-sub-toggle.active{color:#34a7ff;border-color:#1997ff}.nav-chevron{width:13px;height:13px;flex:0 0 13px;transition:transform .18s ease}.nav-sub-toggle[aria-expanded="true"] .nav-chevron{transform:rotate(180deg)}.nav-sub{display:none;flex-direction:column}.nav-sub a{padding:10px 12px;border-bottom:0;border-radius:7px;white-space:nowrap}.nav-sub a:hover,.nav-sub a.active{color:#34a7ff;background:rgba(0,194,255,.09);border-color:transparent}.nav-sub a::after,.nav-sub a:hover::after,.nav-sub a.active::after{display:none;width:0}.nav-sub-toggle[aria-expanded="true"]+.nav-sub{display:flex}.header-start{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;margin-left:6px;border-radius:7px;background:linear-gradient(135deg,#0877ff,#159cff);color:#fff;font:700 12px 'Inter',sans-serif;white-space:nowrap;box-shadow:0 8px 22px rgba(0,123,255,.22)}.header-start:hover{color:#fff;box-shadow:0 14px 34px rgba(0,123,255,.38)}.mobile-start-link{display:none}@media(min-width:781px){.nav-sub{position:absolute;top:100%;left:-14px;min-width:236px;padding:8px;border:1px solid rgba(0,194,255,.28);border-radius:10px;background:#061325;box-shadow:0 22px 60px rgba(0,0,0,.5);z-index:60}.nav-item.has-sub:hover .nav-sub,.nav-item.has-sub:focus-within .nav-sub{display:flex}.nav-item.has-sub:hover .nav-chevron,.nav-item.has-sub:focus-within .nav-chevron{transform:rotate(180deg)}.nav-item.has-sub:focus-within .nav-sub-toggle{color:#34a7ff;border-color:#1997ff}}
@media(max-width:780px){.nav-item.has-sub{display:block}.nav-sub-toggle{width:100%;height:auto;justify-content:space-between}.nav-sub{padding:0 0 10px 14px}.header-start{display:none}.mobile-start-link{display:block}}
