/* ════════════════════════════════════════════════════════════════════
   MARSTRONAUT STANDARD — one look, ADA (WCAG 2.1 AA) — v1 2026-10-26
   ════════════════════════════════════════════════════════════════════
   Loaded on EVERY Marstronaut page, after the page's own styles:
     <link rel="stylesheet" href="/_shared-assets/ffh-brand-fonts.css">
     <link rel="stylesheet" href="/_shared-assets/marstronaut-standard.css">
     <script src="/_shared-assets/marstronaut-standard.js" defer></script>

   FONTS (FFH brand kit, self-hosted — no Google Fonts):
     Titles + body + buttons + labels ... Aileron
     Subheadings (h2) .................. Bebas Neue
     Code only ......................... system monospace
   A page may NOT set its own font stack — this file wins (!important).
   Opt one element out (rare, e.g. a logo wordmark set in type):
     class="mars-keep-font"
   ════════════════════════════════════════════════════════════════════ */

:root{
  --mars-font:'Aileron',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --mars-sub:'Bebas Neue','Aileron',Impact,'Arial Narrow',sans-serif;
  --mars-mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --mars-focus:#f79210;       /* FFH brand orange ring */
  --mars-focus-inner:#003670; /* FFH navy inner ring — visible on light AND dark */
}

/* ── 1. One font family everywhere ───────────────────────────────── */
html body,
html body *:not(code):not(pre):not(kbd):not(samp):not(.mars-keep-font):not(code *):not(pre *):not(.mars-keep-font *){
  font-family:var(--mars-font) !important;
}
html body :is(code,pre,kbd,samp):not(#mars-x):not(#mars-y),html body :is(code,pre) *:not(#mars-x):not(#mars-y){font-family:var(--mars-mono) !important}
html body h2:not(.mars-keep-font):not(#mars-x):not(#mars-y){
  font-family:var(--mars-sub) !important;
  font-weight:400 !important;          /* Bebas Neue has one weight; avoid faux-bold */
  letter-spacing:.02em;
  line-height:1.1;
}
html body{font-variant-numeric:tabular-nums;overflow-wrap:break-word;-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* ── 2. Visible keyboard focus (WCAG 2.4.7) ─────────────────────── */
html body :focus-visible{
  outline:3px solid var(--mars-focus) !important;
  outline-offset:2px !important;
  box-shadow:0 0 0 2px var(--mars-focus-inner) !important;
}
html body iframe:focus{outline:3px solid var(--mars-focus) !important;outline-offset:2px !important}
html body [tabindex="-1"]:focus{outline:none !important;box-shadow:none !important}

/* ── 3. Skip link, screen-reader-only text, pause control ────────── */
.mars-skip{
  position:fixed;left:max(12px,env(safe-area-inset-left,0px));top:calc(-200px - env(safe-area-inset-top,0px));
  z-index:2147483646;background:#003670;color:#ffffff !important;
  padding:12px 18px;border-radius:8px;font:700 16px/1.2 var(--mars-font);text-decoration:underline;
  border:2px solid #ffffff;
}
.mars-skip:focus{top:calc(12px + env(safe-area-inset-top,0px))}
.mars-skip + .mars-skip:focus{top:calc(64px + env(safe-area-inset-top,0px))}
.mars-sr{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}

/* ── 4. Motion (WCAG 2.2.2 + vestibular safety) ─────────────────── */
@media (prefers-reduced-motion:reduce){
  html body *,html body *::before,html body *::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important;
  }
}
html.mars-paused body *,html.mars-paused body *::before,html.mars-paused body *::after{animation-play-state:paused !important}

/* ── 5. Phone reflow (WCAG 1.4.10) — helpers the script applies ──── */
.mars-wrap{flex-wrap:wrap !important;row-gap:6px}
.mars-shrink{max-width:100% !important;min-width:0 !important;box-sizing:border-box !important}
.mars-media{max-width:100% !important;height:auto}
.mars-scroll-x{overflow-x:auto !important;max-width:100% !important;-webkit-overflow-scrolling:touch}
.mars-nav-wrap{height:auto !important;min-height:0 !important;flex-wrap:wrap !important;row-gap:6px;padding-top:6px !important;padding-bottom:6px !important}

/* ── 6. Brand coin art in place of the 🪙 emoji ──────────────────── */
.mars-coin{display:inline-block;height:1.15em;width:auto;vertical-align:-.22em;margin:0 .08em}
