/* SkyBrief — shared shell for content pages.
   index.html keeps its own bespoke cinematic CSS; everything else uses this.
   Nav styles here are kept visually identical to index.html's inline nav. */

:root {
  --stratus-500: #0c8ce9;
  --stratus-300: #7cc4ff;
  --stratus-800: #083f6e;
  --stratus-950: #062847;
  --night: #0a0e1a;
  --vfr: #22c55e;
  --ifr: #ef4444;
  --gold: #D4A853;
  --text: #f1f5f9;
  --text-muted: rgba(241, 245, 249, 0.64);
  --text-dim: rgba(241, 245, 249, 0.45);
  --line: rgba(241, 245, 249, 0.12);
  --card: rgba(10, 14, 26, 0.6);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --display: 'Space Grotesk', -apple-system, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 78% -12%, rgba(12, 140, 233, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #06080f 0%, #0a0e1a 42%, #0c1220 100%);
  background-attachment: fixed;
  min-height: 100svh;
  overflow-x: clip;
}

a { color: var(--stratus-300); }

/* ---------- Nav (mirrors index.html) ---------- */
.nav-btn {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text); cursor: pointer;
  background: rgba(10, 14, 26, .62); backdrop-filter: blur(12px);
  border: 1px solid rgba(241, 245, 249, .22); border-radius: 999px;
  padding: 11px 17px; line-height: 1;
  transition: background .25s ease, border-color .25s ease;
}
.nav-btn:hover { background: rgba(10, 14, 26, .85); }
.nav-btn:focus-visible { outline: 2px solid var(--stratus-300); outline-offset: 3px; }
.nav-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-btn .bars i {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  border-radius: 2px; transition: transform .3s ease;
}
.nav-btn[aria-expanded="true"] .bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-btn[aria-expanded="true"] .bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(6, 8, 15, .94); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-inner { text-align: center; padding: 88px 24px 32px; max-height: 100svh; overflow-y: auto; }
.nav-main a {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 5vw, 40px); line-height: 1.32; letter-spacing: -.02em;
  color: var(--text); text-decoration: none; opacity: .84;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-main a:hover, .nav-main a:focus-visible { opacity: 1; transform: translateY(-2px); }
.nav-store { margin-top: 30px; }
.nav-sub {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.nav-sub a { font-family: var(--body); font-size: 14.5px; color: var(--text-muted); text-decoration: none; }
.nav-sub a:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-btn, .nav-btn .bars i, .nav-main a { transition: none; }
}

/* ---------- Store button ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #0a0e1a; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 8px 32px rgba(12, 140, 233, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(12, 140, 233, .5); }
.store-btn svg { width: 20px; height: 20px; }
.store-btn.ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(241, 245, 249, .3); box-shadow: none;
}
.store-btn.ghost:hover { background: rgba(241, 245, 249, .06); box-shadow: none; }

/* ---------- Layout ---------- */
.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.page-head { padding: 108px 0 40px; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--stratus-300); margin-bottom: 14px;
}
h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(32px, 6vw, 56px); line-height: 1.08; margin-bottom: 16px;
}
h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(23px, 3.4vw, 32px); line-height: 1.2;
  margin: 52px 0 16px;
}
h3 {
  font-family: var(--display); font-weight: 700; font-size: 18.5px;
  margin: 30px 0 10px;
}
.lede { font-size: clamp(16.5px, 2vw, 19px); color: var(--text-muted); max-width: 620px; }
p { margin-bottom: 14px; }
.prose p, .prose li { color: var(--text-muted); font-size: 16.5px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a:hover { color: #fff; }
section { padding-bottom: 8px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 24px; backdrop-filter: blur(12px);
}
.note {
  background: rgba(8, 63, 110, .3); border: 1px solid rgba(124, 196, 255, .24);
  border-radius: 14px; padding: 16px 20px; margin: 22px 0;
  font-size: 15px; color: var(--text-muted);
}
.note strong { color: var(--text); }
.note.warn { background: rgba(212, 168, 83, .12); border-color: rgba(212, 168, 83, .35); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 20px 0 26px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 500;
}
td { color: var(--text-muted); }
td:first-child { color: var(--text); font-weight: 500; }
.yes { color: var(--vfr); font-weight: 600; }
.no { color: var(--text-dim); }

/* ---------- Footer ---------- */
footer {
  margin-top: 80px; padding: 34px 24px 56px;
  border-top: 1px solid var(--line); text-align: center;
  font-size: 13.5px; color: var(--text-dim);
}
footer .links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
