/* Polar Vortex Explained. One dark theme: night sky, ice blue for cold air, amber for warming. */
:root {
  --bg: #050a14;
  --bg-2: #0a1222;
  --surface: #0e1829;
  --surface-2: #142136;
  --line: #22324d;
  --ink: #eaf1fb;
  --ink-2: #c3d0e4;
  --muted: #93a6c4;
  --ice: #8fdcff;
  --ice-deep: #3f8cff;
  --warm: #ffb066;
  --hot: #ff6b4a;
  --violet: #a08bff;
  --mint: #66f0d0;
  /* Layer colors: validated as a categorical set on --surface (dataviz validator, dark mode) */
  --l-tropo: #1fa3b5;
  --l-strato: #4f7df5;
  --l-meso: #d65fc0;
  --l-thermo: #c98500;
  --accent: var(--ice);
  --accent-ink: #04121f;
  --radius: 14px;
  --wrap: 72rem;
  --read: 44rem;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg, canvas { max-width: 100%; }
a { color: var(--ice); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #c9eeff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.6em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 2.2em; }
h3 { font: 600 1.15rem/1.3 var(--sans); margin-top: 1.6em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ice); color: var(--accent-ink); padding: 0.5rem 0.9rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 0.5rem; }
.kicker { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin: 0 0 0.9rem; }
.kicker.warm { color: var(--warm); }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); }
.fine { font-size: 0.875rem; color: var(--muted); }
.num { font-family: var(--mono); font-size: 0.94em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(5 10 20 / 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgb(143 220 255 / 0.1); }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 600 1rem/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap; }
.brand-mark { width: 1.7rem; height: 1.7rem; color: var(--ice); flex: none; }
.site-nav { display: flex; gap: 0.2rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; padding: 0.45rem 0.7rem; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: rgb(143 220 255 / 0.08); }
.site-nav a[aria-current="page"] { color: var(--ice); background: rgb(143 220 255 / 0.1); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 0.9rem; padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; }
@media (max-width: 62rem) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0.6rem 1.25rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.6rem; font-size: 1rem; }
}

/* ---- Flyby ---- */
.flyby { position: relative; background: radial-gradient(120% 90% at 70% 40%, #0b1730 0%, var(--bg) 60%); overflow: hidden; }
.flyby canvas, .flyby-labels { display: none; }
.flyby-card { width: min(100% - 2.5rem, var(--read)); margin-inline: auto; padding: 3rem 0; }
.flyby .stop + .stop { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.flyby .stop h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.flyby .stop h2 { margin-top: 0; font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.flyby .stop p { color: var(--ink-2); }
.flyby-controls, .segbar, .flyby-hint { display: none; }
.stop-more { font-weight: 500; }
.stop-more::after { content: " →"; }
.toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgb(5 10 20 / 0.6); margin: 0 0.5rem 0.9rem 0; }
.toggle button { font: 500 0.85rem/1 var(--sans); color: var(--ink-2); background: none; border: 0; padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ice); color: var(--accent-ink); }
.toggle-label { display: block; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.flyby:not(.flyby--live) .toggle, .flyby:not(.flyby--live) .toggle-label { display: none; }

.flyby--live { height: calc(100svh - 3.75rem); min-height: 34rem; max-height: 68rem; }
.flyby--live canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.flyby--live canvas:active { cursor: grabbing; }
.flyby--live .flyby-labels { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flyby--live .flyby-card { position: absolute; left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); bottom: clamp(1.25rem, 6vh, 4rem); width: min(27rem, 100% - 2.5rem); margin: 0; padding: 1.4rem 1.5rem 1.1rem; background: linear-gradient(180deg, rgb(10 18 34 / 0.82), rgb(7 13 26 / 0.9)); border: 1px solid rgb(143 220 255 / 0.16); border-radius: 18px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.flyby--live .segbar { display: flex; gap: 4px; margin-bottom: 1.1rem; }
.seg { flex: 1; height: 1.4rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.seg::before, .seg i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.seg::before { background: rgb(143 220 255 / 0.2); }
.seg i { background: var(--ice); transform-origin: left; transform: scaleX(0); }
.seg:hover::before { background: rgb(143 220 255 / 0.4); }
.flyby--live .stop { display: none; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.flyby--live .stop.is-active { display: block; animation: stop-in 0.5s ease both; }
@keyframes stop-in { from { opacity: 0; transform: translateY(8px); } }
.flyby--live .stop h1, .flyby--live .stop h2 { font-size: clamp(1.9rem, 2.6vw + 0.6rem, 2.7rem); margin-bottom: 0.45em; }
.flyby--live .stop p { font-size: 1rem; line-height: 1.55; margin-bottom: 0.8em; }
.flyby--live .stop .kicker { margin-bottom: 0.6rem; }
.flyby--live .flyby-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding-top: 0.8rem; border-top: 1px solid rgb(143 220 255 / 0.12); }
.flyby-controls button { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: rgb(143 220 255 / 0.05); color: var(--ink); cursor: pointer; }
.flyby-controls button:hover { border-color: var(--ice); color: var(--ice); }
.flyby-controls svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.flyby-controls [data-act="play"] .i-play, .is-playing .flyby-controls [data-act="play"] .i-pause { display: block; }
.flyby-controls [data-act="play"] .i-pause, .is-playing .flyby-controls [data-act="play"] .i-play { display: none; }
.flyby--live .flyby-hint { display: block; margin: 0 0 0 auto; font: 400 0.72rem/1.3 var(--mono); color: var(--muted); text-align: right; }
.fl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.5rem; opacity: 0; transition: opacity 0.6s; will-change: transform; white-space: nowrap; }
.fl.on { opacity: 1; }
.fl i { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.22); flex: none; }
.fl span { margin-top: -4.5px; padding: 0.3rem 0.6rem; background: rgb(5 10 20 / 0.72); border: 1px solid rgb(255 255 255 / 0.2); border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fl b { display: block; font: 500 0.74rem/1.25 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.fl small { display: block; font: 400 0.72rem/1.3 var(--mono); color: var(--ink-2); }
.fl small:empty { display: none; }
.fl.flip { flex-direction: row-reverse; translate: -100% 0; }
.fl.flip i { margin: -4.5px -4.5px 0 0; }
.fl.cold i { background: var(--ice); box-shadow: 0 0 0 3px rgb(143 220 255 / 0.3); }
.fl.cold b { color: var(--ice); }
.fl.warm i { background: var(--warm); box-shadow: 0 0 0 3px rgb(255 176 102 / 0.3); }
.fl.warm b { color: var(--warm); }
.fl.pin i { animation: pin 2.2s ease-out infinite; }
@keyframes pin { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.55); } 100% { box-shadow: 0 0 0 16px rgb(255 255 255 / 0); } }
@media (max-width: 56.2rem) {
  .flyby--live { height: calc(100svh - 3.75rem); min-height: 38rem; }
  .flyby--live .flyby-card { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1rem 1.1rem 0.8rem; }
  .flyby--live .stop h1, .flyby--live .stop h2 { font-size: 1.75rem; }
  .flyby--live .stop p { font-size: 0.95rem; }
  .flyby--live .flyby-hint { display: none; }
  .fl b { font-size: 0.66rem; }
  .fl small { font-size: 0.64rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flyby--live .stop.is-active, .fl.pin i { animation: none; }
}

/* ---- Content ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid rgb(143 220 255 / 0.08); }
.section > .wrap > h2:first-child, .section > .wrap > .kicker + h2 { margin-top: 0; }
.section-head { max-width: var(--read); margin-bottom: 2rem; }
.section-head h2, .kicker + h2 { margin-top: 0; }
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); background: radial-gradient(90% 120% at 85% 0%, #0d1a36 0%, var(--bg) 62%); border-bottom: 1px solid rgb(143 220 255 / 0.08); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: var(--read); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.95rem/1 var(--sans); padding: 0.8rem 1.15rem; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: rgb(143 220 255 / 0.05); }
.btn:hover { border-color: var(--ice); color: var(--ice); }
.btn.primary { background: var(--ice); border-color: var(--ice); color: var(--accent-ink); }
.btn.primary:hover { background: #c4ecff; color: var(--accent-ink); }
.prose { max-width: var(--read); }
.video { margin: 0; }
.video video, .video iframe, .video-play { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--radius); }
/* A player that has not loaded: the still, with a play button over it (site.js swaps in the player on a click). */
.video-play { position: relative; overflow: hidden; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play-button { position: absolute; inset: 0; margin: auto; width: 5rem; height: 5rem; border-radius: 50%; background: rgb(5 10 20 / 0.72); border: 2px solid var(--ice); transition: background 0.15s, transform 0.15s; }
.video-play-button::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 0.85rem 0 0.85rem 1.4rem; border-color: transparent transparent transparent var(--ice); }
.video-play:hover .video-play-button, .video-play:focus-visible .video-play-button { background: var(--ice); transform: scale(1.06); }
.video-play:hover .video-play-button::after, .video-play:focus-visible .video-play-button::after { border-left-color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .video-play-button { transition: none; } }
.video figcaption { margin-top: 0.75rem; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--ice); }
.prose strong { color: #fff; font-weight: 600; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 4rem; align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.toc { position: sticky; top: 5.5rem; font-size: 0.9rem; border-left: 1px solid var(--line); padding-left: 1.25rem; }
.toc p { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 0.55rem; line-height: 1.35; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ice); }
@media (max-width: 62rem) { .layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
a.card { color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
a.card:hover { border-color: var(--ice); background: var(--surface-2); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.card .kicker { margin-bottom: 0.7rem; }
.card-go { display: inline-block; margin-top: 0.9rem !important; color: var(--ice) !important; font-weight: 500; text-decoration: none; }
.card-go::after { content: " →"; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
.fact { background: var(--surface); padding: 1.15rem 1.25rem; }
.fact b { display: block; font: 400 2rem/1.1 var(--display); color: var(--ice); margin-bottom: 0.3rem; }
.fact.warm b { color: var(--warm); }
.fact span { font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; display: block; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--ice); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.callout.warm { border-left-color: var(--warm); }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }
blockquote { margin: 1.6rem 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--warm); font: 400 1.45rem/1.4 var(--display); color: var(--ink); }
blockquote footer { font: 400 0.9rem/1.4 var(--sans); color: var(--muted); margin-top: 0.6rem; }

.figure { margin: 2rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.5; }
.figure .toggle { margin-bottom: 1rem; }
.fig-wide { max-width: none; }
svg text { font-family: var(--mono); fill: var(--ink-2); }
svg .t-title { font-family: var(--sans); font-weight: 600; fill: var(--ink); }
svg .t-ice { fill: var(--ice); }
svg .t-warm { fill: var(--warm); }
svg .t-mute { fill: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; min-width: 34rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 0.74rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: #fff; white-space: nowrap; }

.cite { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.cite a { text-decoration: none; font-family: var(--mono); padding: 0 1px; }
.sources { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: var(--read); }
.sources h2 { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.sources ol { margin: 0; padding-left: 1.4rem; font-size: 0.88rem; color: var(--muted); }
.sources li { margin-bottom: 0.45rem; scroll-margin-top: 6rem; }
.sources li:target { color: var(--ink); }
.src-pub { color: var(--ink-2); }
.updated { font: 400 0.8rem/1.4 var(--mono); color: var(--muted); margin-top: 1.5rem; }

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 3rem; }

/* Chain diagram on the home page */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; counter-reset: step; margin: 2rem 0 0; padding: 0; list-style: none; }
.chain li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; counter-increment: step; }
.chain li::before { content: counter(step, decimal-leading-zero); font: 500 0.74rem/1 var(--mono); letter-spacing: 0.12em; color: var(--ice); display: block; margin-bottom: 0.8rem; }
.chain h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.chain p { margin: 0; font-size: 0.93rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 60rem) { .chain { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .chain { grid-template-columns: 1fr; } }

/* Glossary */
.gl-topic { margin-bottom: 3rem; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.gl-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; scroll-margin-top: 6rem; }
.gl-entry:target { border-color: var(--ice); }
.gl-entry h3 { margin: 0 0 0.4rem; }
.gl-entry p { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.gl-entry p:last-child { margin-bottom: 0; }
.gl-aka { font-size: 0.82rem !important; color: var(--muted) !important; }
.gl-aka span { font-family: var(--mono); font-size: 0.92em; }
.gl-more { font-size: 0.88rem !important; }
.gl-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.gl-toc a { display: block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.9rem; }
.gl-toc a:hover { border-color: var(--ice); color: var(--ice); }

/* Tip widget (sent-tip): takes the site's type and accent */
.tip-zone { padding: 3.5rem 0 3rem; border-top: 1px solid rgb(143 220 255 / 0.08); }
#support { --tip-font: var(--sans); --tip-accent: var(--ice); --tip-accent-fg: var(--accent-ink); --tip-surface: var(--surface); --tip-raised: var(--surface-2); --tip-border: var(--line); --tip-fg: var(--ink); --tip-muted: var(--muted); --tip-max-width: 44rem; --tip-radius: var(--radius); margin-inline: auto; max-width: 44rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3rem 0 2.5rem; font-size: 0.93rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand { font: 400 1.5rem/1.2 var(--display); color: var(--ink); margin-bottom: 0.5rem; }
.footer-head { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ice); }

/* Map diagrams (generated by tools/make-maps.mjs) */
.map .ocean { fill: #081326; }
.map .land { fill: #263a60; }
.map .grat { fill: none; stroke: rgb(143 220 255 / 0.22); stroke-width: 1; stroke-dasharray: 3 5; }
.map .frame { fill: none; stroke: var(--line); stroke-width: 1.5; }
.map .cold { fill: rgb(63 140 255 / 0.2); }
.map .vortex { fill: rgb(40 80 220 / 0.55); stroke: #cfe6ff; stroke-width: 1.5; }
.map .swirl { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.map .jet { fill: none; stroke: #2ee6ff; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.map .jet-2 { stroke-width: 3.5; stroke-dasharray: 2 9; }
.map .jet-head { fill: #fff; stroke: #04121f; stroke-width: 1.5; stroke-linejoin: round; }
.map text { font-size: 14px; font-weight: 500; fill: #fff; letter-spacing: 0.02em; }
.map .t-sm { font-size: 12px; font-weight: 400; fill: var(--muted); }
.map .plate rect { fill: rgb(5 10 20 / 0.82); stroke: rgb(255 255 255 / 0.28); stroke-width: 1; }
.map .p-cold rect, .map .p-wet rect { stroke: var(--ice); }
.map .p-warm rect, .map .p-dry rect { stroke: var(--warm); }
.map .zone { stroke-width: 1.5; }
.map .z-wet { fill: rgb(25 158 112 / 0.38); stroke: #3fd1a0; }
.map .z-dry { fill: rgb(190 130 60 / 0.38); stroke: #d9a45c; }
.map .z-warm { fill: rgb(217 89 38 / 0.34); stroke: #ff8a57; }
.map .z-cold { fill: rgb(57 135 229 / 0.36); stroke: #7db6ff; }
.map-polar { max-width: 34rem; margin-inline: auto; }
.section .sky { fill: #0a1830; }
.section .deep { fill: #0b2552; }
.section .g-warm { stop-color: #d95926; }
.section .g-mild { stop-color: #e08a3a; }
.section .g-cool { stop-color: #2f6fc4; }
.section .therm { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.8; }
.section .surface { stroke: #cfe6ff; stroke-width: 1.5; }
.section .coast { fill: #2c3a2c; stroke: #55684f; stroke-width: 1; }
.section .flow { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.section .flow.thin { stroke-width: 2.2; stroke-dasharray: 2 7; }
.section .flow.cold { stroke: #8fdcff; }
.section .flow-head { fill: #fff; }
.section .cloud { fill: #dfe9f7; opacity: 0.92; }
.section .rain { stroke: #8fdcff; stroke-width: 2; stroke-linecap: round; }

/* Hazard entries on the severe weather page */
.hazard { border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 3rem; }
.hazard h2 { margin-top: 1.2rem; }
.spec { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0; margin: 1.4rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec dt, .spec dd { margin: 0; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.96rem; line-height: 1.55; }
.spec dt { font: 500 0.72rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 1rem; }
.spec dd { color: var(--ink-2); }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }
@media (max-width: 34rem) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 40rem) { .pair { grid-template-columns: 1fr; } }
.pair .card h3 { font: 400 1.7rem/1.1 var(--display); }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; margin: 1.5rem 0 0 !important; }
.jump li { margin: 0; }
.jump a { display: block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.9rem; }
.jump a:hover { border-color: var(--ice); color: var(--ice); }

/* Atmosphere profile and equator-to-pole cross-section */
.profile { max-width: 30rem; margin-inline: auto; }
.map .l-tropo { fill: var(--l-tropo); opacity: 0.5; }
.map .l-strato { fill: var(--l-strato); opacity: 0.5; }
.map .l-meso { fill: var(--l-meso); opacity: 0.45; }
.map .l-thermo { fill: var(--l-thermo); opacity: 0.45; }
.profile .fade { fill: var(--surface); opacity: 0.55; }
.map .tick { stroke: rgb(255 255 255 / 0.3); stroke-width: 1; fill: none; }
.map .t-axis { font-size: 13px; fill: var(--ink); }
.map .t-layer { font: 600 16px var(--sans); fill: #fff; letter-spacing: 0; }
.map .t-val { font-size: 13.5px; fill: #fff; }
.profile .karman { stroke: #fff; stroke-width: 1.2; stroke-dasharray: 2 5; fill: none; }
.profile .temp { fill: none; stroke: var(--warm); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.profile .temp-head { fill: var(--warm); }
.profile .pt { fill: var(--warm); stroke: #0e1829; stroke-width: 2; }
.profile .t-sm { fill: var(--ink-2); }
.jetsec .strato-bg { fill: #0c1a38; }
.jetsec .g-warmair { stop-color: #7a4a2a; }
.jetsec .g-mildair { stop-color: #2f4a6e; }
.jetsec .g-coldair { stop-color: #1f5fb8; }
.jetsec .tropopause { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 5 5; }
.jetsec .vortex { fill: rgb(40 80 220 / 0.5); stroke: #cfe6ff; stroke-width: 1.5; }
.jetsec .jetmark circle { fill: #04121f; stroke: #2ee6ff; stroke-width: 3.5; }
.jetsec .jetmark .core { fill: #2ee6ff; stroke: none; }
/* Wide figures scroll sideways on phones instead of shrinking their labels below a readable size */
.figure { overflow-x: auto; }
.figure .map-na, .figure .section { min-width: 35rem; }
.now-pill { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0 0.4rem; padding: 0.45rem 0.85rem 0.45rem 0.5rem; border: 1px solid rgb(255 176 102 / 0.45); border-radius: 999px; background: rgb(255 176 102 / 0.08); color: var(--ink); text-decoration: none; font-size: 0.86rem; line-height: 1.3; }
.now-pill span { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); background: var(--warm); padding: 0.35rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.now-pill:hover { border-color: var(--warm); color: #fff; }
.flyby .stop p.fine { font-size: 0.85rem; color: var(--muted); }
.home .sources { max-width: none; }
.figure figcaption span[data-in]:not([hidden]) { display: block; margin-bottom: 0.45rem; color: var(--ink-2); }

/* Live data: slots filled from /api/live, the wind chart, and the alert and outlook panels */
.callout.dated { border-left-color: var(--line); }
.callout.dated h3 { font-size: 1.15rem; }
.callout h2 { margin-top: 0; }
.callout .figure { background: var(--bg-2); }
.card [data-live] h3 { margin: 0 0 0.5rem; }
.live-stale { color: var(--warm); }
.wc-plot { overflow-x: auto; }
.wc-inner { position: relative; min-width: 33rem; }
.wind-chart svg { touch-action: pan-y; }
.wc-band { fill: rgb(147 166 196 / 0.16); }
.wc-grid { stroke: var(--line); stroke-width: 1; }
.wc-tick, .wc-note { font: 11px var(--mono); fill: var(--muted); }
.wc-note { fill: var(--ink-2); paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.wc-zero { stroke: var(--warm); stroke-width: 1.5; stroke-dasharray: 6 4; }
.wc-mean { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.wc-line, .wc-fcst { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wc-fcst { stroke-dasharray: 1 5; }
.wc-dot { fill: var(--ice); stroke: var(--bg-2); stroke-width: 2; }
.wc-label { font: 500 12px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--bg-2); stroke-width: 4px; }
.wc-cross { stroke: var(--ink-2); stroke-width: 1; }
.wc-tip { position: absolute; z-index: 2; transform: translate(12px, -50%); pointer-events: none; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.65rem; font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }
.wc-tip.flip { transform: translate(calc(-100% - 12px), -50%); }
.wc-tip b { color: var(--ink); font-weight: 500; }
.prose .wc-legend, .wc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; padding: 0; margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--ink-2); }
.prose .wc-legend li, .wc-legend li { margin: 0; }
.wc-legend i { display: inline-block; width: 1.5rem; height: 0; margin-right: 0.45rem; vertical-align: middle; border-top: 2px solid var(--ice); }
.wc-legend .k-fcst { border-top-style: dotted; }
.wc-legend .k-mean { border-top: 1.5px solid var(--muted); }
.wc-legend .k-band { height: 0.7rem; border: 0; border-radius: 2px; background: rgb(147 166 196 / 0.28); }
.wc-table { margin-top: 0.9rem; font-size: 0.9rem; }
.wc-table summary { cursor: pointer; color: var(--ice); }
.wc-table .table-wrap { margin: 0.8rem 0 0; }
.wc-table th, .wc-table td { padding: 0.45rem 0.8rem; }
.live-panel { margin-top: 0; }
.live-lead { font-size: 1.08rem; color: var(--ink); }
.prose .alert-groups, .alert-groups { list-style: none; padding: 0; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.prose .alert-groups li, .alert-groups li { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0.15rem 1rem; margin: 0; padding: 0.6rem 0.95rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.5; }
.alert-groups li:last-child { border-bottom: 0; }
.alert-groups li.on { box-shadow: inset 3px 0 0 var(--warm); }
.alert-groups li.off, .alert-groups li.off a { color: var(--muted); }
.alert-groups b { color: var(--ink); font-weight: 500; margin-left: 0.1rem; }
.alert-groups .sep { color: var(--muted); }
.prose .outlook, .outlook { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.55rem; }
.prose .outlook li, .outlook li { display: grid; grid-template-columns: 4rem 5.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.8rem; margin: 0; font-size: 0.95rem; }
.ol-day { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ol-meter { display: inline-flex; gap: 3px; }
.ol-meter i { width: 0.85rem; height: 0.85rem; border-radius: 2px; border: 1px solid var(--muted); }
.ol-meter i.on { background: var(--warm); border-color: var(--warm); }
.ol-text { color: var(--ink-2); }
.ol-text b { color: var(--ink); font-weight: 500; }
.ol-when, .ol-text.none, .alert-groups .none { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 34rem) {
  .prose .alert-groups li, .alert-groups li { grid-template-columns: 1fr; }
  .prose .outlook li, .outlook li { grid-template-columns: 4rem minmax(0, 1fr); }
  .outlook .ol-text, .outlook .ol-when { grid-column: 1 / -1; }
}
