/* Direction C: Data journalism. Newsreader (headlines, figures) + Libre Franklin (text, labels) + IBM Plex Mono (code, data notes).
   Series colors validated with the dataviz palette checker on #fbfaf6: #3a6ea5 / #d9572b / #1f8f6b (all-pairs CVD >= 9). */
:root {
  --paper: #fbfaf6; --ink: #151515; --ink-2: #4f4e4a; --ink-3: #77756e; --rule: #dedbd2; --rule-2: #ecE9e1;
  --accent: #b8431c; --s0: #3a6ea5; --s1: #d9572b; --s2: #1f8f6b; --night: rgba(58,110,165,.07);
  --serif: "Newsreader", Georgia, serif; --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --focus: #b8431c; --tip-bg: #151515; --tip-fg: #fff;
  color-scheme: light;
}
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: inherit; text-decoration-color: rgba(21,21,21,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

/* masthead */
.mast { border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.mast::after { content: ""; display: block; height: 3px; border-bottom: 1px solid var(--ink); }
.mast-in { max-width: 1080px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 20px 8px; display: flex; align-items: baseline; gap: 14px; }
.wordmark { font: 600 25px/1 var(--serif); letter-spacing: -.02em; text-decoration: none; font-variation-settings: "opsz" 72; }
.wordmark em { font-weight: 400; }
.section { font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: none; }
.section span { color: var(--ink-3); margin: 0 4px; }
.live { margin-left: auto; display: flex; align-items: center; gap: 7px; font: 500 12px/1 var(--sans); color: var(--ink-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.live.active .pulse { background: var(--accent); animation: pc 2s infinite; }
@keyframes pc { 0% { box-shadow: 0 0 0 0 rgba(184,67,28,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(184,67,28,0); } }

/* story column */
.story { max-width: 680px; margin: 0 auto; padding: 30px 20px 0; }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font: 500 clamp(31px, 8vw, 50px)/1.08 var(--serif); letter-spacing: -.015em; margin-bottom: 16px; font-variation-settings: "opsz" 72; text-wrap: balance; }
.dek { font: 400 19px/1.5 var(--serif); color: var(--ink-2); margin-bottom: 18px; font-variation-settings: "opsz" 16; }
.byline { font: 500 12.5px/1.5 var(--sans); color: var(--ink-3); padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.byline span { margin: 0 4px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 8px; border-bottom: 1px solid var(--rule); }
.facts div { padding: 16px 12px 16px 0; border-top: 1px solid var(--rule); }
.facts div:nth-child(-n+2) { border-top: 0; }
.facts div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts div:nth-child(even) { padding-left: 14px; }
.facts dt { font: 400 40px/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.facts dd { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

.graf { font: 400 19px/1.6 var(--serif); margin: 26px 0; font-variation-settings: "opsz" 16; color: #222; }
h2.sub { font: 700 24px/1.2 var(--sans); letter-spacing: -.01em; margin-top: 52px; }

/* figures */
.fig { margin: 40px 0; }
.fig.lead { margin-top: 36px; }
.fig figcaption h2 { font: 700 19px/1.25 var(--sans); letter-spacing: -.005em; margin-bottom: 4px; }
.fig figcaption p, .ftitle { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin-bottom: 14px; }
.ftitle { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.note { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; }
svg.chart { width: 100%; height: auto; overflow: visible; display: block; }
.only-m { display: block; } .only-d { display: none !important; }
.chart .grid, .strip .grid, .multiples .grid { stroke: var(--rule-2); stroke-width: 1; }
.chart .ax, .strip .ax, .multiples .ax { font: 500 11px var(--sans); fill: var(--ink-3); }
.chart .ptitle { font: 700 12px var(--sans); fill: var(--ink); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.chart .pt { fill: var(--ink); }
.chart .pt.cur { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart g:hover .pt { r: 4; fill: var(--accent); }
.chart .mean { stroke-width: 2.5; stroke-linecap: round; }
.chart .mean.bef { stroke: var(--s0); } .chart .mean.aft { stroke: var(--s1); }
.chart .mlab { font: 700 11.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart .anno { stroke: var(--ink); stroke-width: 1; }
.chart .annot { font: 700 12px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart .annot.sub { font-weight: 400; fill: var(--ink-2); }
.panels { display: flex; align-items: flex-start; gap: 0; }
.panels.only-m { flex-direction: column; gap: 18px; }
.panels.only-m > svg { width: 100%; }
.brk { width: 18px; align-self: stretch; margin: 26px 0 26px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rule) 4px 5px); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font: 500 13px/1.3 var(--sans); color: var(--ink); }
.legend li { display: flex; align-items: center; gap: 7px; } .legend span { color: var(--ink-3); font-weight: 400; }
.sw { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.sw.s0, .step.s0 { background: var(--s0); stroke: var(--s0); } .sw.s1, .step.s1 { background: var(--s1); stroke: var(--s1); } .sw.s2, .step.s2 { background: var(--s2); stroke: var(--s2); }
.step { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart .dlab { font: 700 11.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart .tfr { fill: rgba(21,21,21,.035); }
.chart .ref { stroke: var(--ink-3); stroke-width: 1; }
.chart .ref.ec { stroke: var(--accent); }
.chart .reflab { font: 600 11px var(--sans); fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart .reflab.ec { fill: var(--accent); } .chart .reflab.muted { font-weight: 500; fill: var(--ink-3); }

.multiples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.sm { margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.sm figcaption { font: 600 13px/1.25 var(--sans); min-height: 2.5em; }
.sm svg { width: 100%; height: auto; }
.sm .slope { stroke-width: 2; } .sm .slope.up, .sm .sd.up { stroke: var(--s1); fill: var(--s1); } .sm .slope.down, .sm .sd.down { stroke: var(--s0); fill: var(--s0); }
.sm .sd { stroke: var(--paper) !important; stroke-width: 2; }
.sm .sv { font: 500 11.5px var(--sans); fill: var(--ink-2); } .sm .sv.b { font-weight: 700; fill: var(--ink); }
.sm .chg { font: 700 13px var(--sans); margin-top: -2px; } .sm .chg.up { color: var(--accent); } .sm .chg.down { color: var(--s0); }
.sm.me { border-top: 3px solid var(--ink); padding-top: 8px; }
.sm.me figcaption::after { content: " · this report"; font-weight: 400; color: var(--ink-3); }

.duo { display: grid; gap: 24px; margin: 24px 0 8px; }
.fig.tight { margin: 0; }
.chart .nightband, .strip .nightband { fill: var(--night); }
.chart .col { fill: #9b978c; } .chart .col.n { fill: var(--s0); } .chart .col.pk { fill: var(--ink); }
.chart .ax.night { fill: var(--s0); font-weight: 600; }
.mapbox { position: relative; aspect-ratio: 4 / 3; background: #f3f1ea; border: 1px solid var(--rule); }
.mapbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.maplab { position: absolute; left: 10px; bottom: 8px; right: 10px; font: 500 11.5px/1.35 var(--sans); color: var(--ink-2); }

/* loudest */
.strip .dot { fill: #8d897e; } .strip .dot.n { fill: var(--s0); }
.strip .ring { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.strip .num { font: 700 11px var(--sans); fill: var(--ink); }
.strip.only-m .num { display: none; }
.log { margin-top: 10px; }
.log-item { border-top: 1px solid var(--rule); }
.log-time { font: 600 13px var(--sans); color: var(--ink-2); }
.log-node { color: var(--ink); border: 1px solid var(--rule); background: #fff; }
.log-node i { background: var(--accent); color: #fff; }
.log-name { font: 700 16px/1.3 var(--sans); }
.log-desc { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.log-db b { font: 500 30px/1 var(--serif); letter-spacing: -.02em; }
.log-db small { color: var(--ink-3); }

.method { margin: 48px 0 0; padding: 22px 0 6px; border-top: 3px solid var(--ink); }
.method h2 { font: 700 15px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.method p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.method .motto { font: 400 italic 26px/1.2 var(--serif); color: var(--ink); margin-top: 16px; }

/* tools */
.tools { max-width: 680px; margin: 56px auto 0; padding: 26px 20px 0; border-top: 1px solid var(--ink); }
.tools > h2 { font: 500 30px/1.15 var(--serif); letter-spacing: -.01em; }
.tools > .graf { margin: 8px 0 18px; font-size: 17px; color: var(--ink-2); }
.toolist li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 14px; padding: 20px 0; border-top: 1px solid var(--rule); align-items: start; }
.toolist li > .ico { color: var(--accent); margin-top: 2px; }
.toolist h3 { font: 700 16.5px/1.3 var(--sans); }
.toolist p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.toolist li > .btn, .toolist li > .btngroup { grid-column: 2; justify-self: start; margin-top: 10px; }
.code { font: 400 12px/1.5 var(--mono); background: #f1efe8; border: 1px solid var(--rule); padding: 10px 12px; margin-top: 10px; white-space: pre-wrap; word-break: break-all; color: #333; }
.btngroup { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 3px; font: 600 14px/1 var(--sans);
  color: var(--ink); text-decoration: none; background: transparent; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); } .btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.btn.done { background: var(--s2); border-color: var(--s2); color: #fff; }
.ph { display: block; font-size: 12.5px; color: var(--ink-3); }
.goalbar { display: flex; align-items: center; gap: 3px; margin-top: 10px; }
.goalbar i { width: 18px; height: 8px; background: var(--rule-2); border: 1px solid var(--rule); }
.goalbar b { margin-left: 10px; font: 700 13px var(--sans); }
.foot { max-width: 680px; margin: 40px auto 0; padding: 18px 20px 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }

@media (min-width: 760px) {
  .only-m { display: none !important; } .only-d { display: block !important; } .panels.only-d { display: flex !important; }
  .section { display: block; }
  .story { padding-top: 44px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { border-top: 0; padding: 18px 14px 18px 0; } .facts div:not(:last-child) { border-right: 1px solid var(--rule); } .facts div:not(:first-child) { padding-left: 14px; }
  .fig.lead, .fig.wide { width: min(980px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
  .multiples { grid-template-columns: repeat(4, 1fr); gap: 8px 20px; }
  .duo { grid-template-columns: 1fr 1fr; width: min(980px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
}

/* ---- production additions (2026-10-02): nav, day picker, sky clock, daily bars, altitude bars, card preview */
.proto { background: #f3d36b; color: #2a2306; text-align: center; font: 600 12px/1.2 var(--sans); padding: 6px 12px; letter-spacing: .02em; }
.mnav { display: none; gap: 16px; font: 600 13px/1 var(--sans); }
.mnav a { text-decoration: none; color: var(--ink-2); } .mnav a:hover { color: var(--accent); }
.byline p { margin: 0; }
.daypick { margin-top: 10px; }
.daypick label { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--sans); color: var(--ink-2); }
.daypick select { font: 500 13px/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 6px 8px; }
.chart .col.cur { fill: var(--ink); } .chart .col.n.cur { fill: var(--accent); }
.chart .typline { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.chart .hbar { fill: #b5b1a6; } .chart .hbar.low { fill: var(--s1); }
.chart .ax.me { fill: var(--ink); font-weight: 700; }
.chart .hv { font: 600 11.5px var(--sans); fill: var(--ink); }
.skyclock { width: 100%; max-width: 400px; height: auto; margin: 0 auto; overflow: visible; display: block; }
.skyclock .nightarc { fill: var(--night); }
.skyclock .ring { fill: none; stroke: var(--rule-2); stroke-width: 1; } .skyclock .ring.in { stroke: var(--rule); }
.skyclock .hit { fill: transparent; cursor: pointer; }
.skyclock .bar { fill: #9b978c; transition: fill .15s; } .skyclock .n .bar { fill: var(--s0); } .skyclock .pk .bar { fill: var(--ink); }
.skyclock .typ { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; pointer-events: none; }
.skyclock g:hover .bar, .skyclock g:focus .bar { fill: var(--accent); } .skyclock g:focus { outline: none; }
.skyclock .tick { font: 500 11px var(--sans); fill: var(--ink-3); }
.sc-center { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sc-big { font: 400 44px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); font-variation-settings: "opsz" 72; }
.sc-sub { font: 500 11px/1.3 var(--sans); color: var(--ink-3); margin-top: 4px; max-width: 96px; }
.mapbox.nomap { display: grid; place-items: center; } .mapbox.nomap .maplab { position: static; text-align: center; }
.cardprev { display: block; margin-top: 12px; border: 1px solid var(--rule); max-width: 420px; }
.cardprev img { width: 100%; height: auto; }
.others { max-width: 680px; margin: 40px auto 0; padding: 22px 20px 0; border-top: 1px solid var(--ink); }
.others h2 { font: 700 15px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.others ul { display: flex; flex-wrap: wrap; gap: 8px 18px; } .others a { font: 500 15px/1.5 var(--serif); }
@media (min-width: 760px) { .mnav { display: flex; margin-left: 18px; } }

/* ---- live "right now" panel (2026-10-02): glowing day tracks + live aircraft (static/design/live.js) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.now { margin: 26px 0 8px; }
.now-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.now-head h2 { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 7px; }
.now-head .pulse { background: var(--ink-3); }
.now.is-on .now-head .pulse { background: var(--accent); animation: pc 2s infinite; }
.now-line { font: 600 17px/1.35 var(--sans); color: var(--ink); min-height: 1.35em; }
.now.is-off .now-line { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.nowbox { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 40%, #121a3a 0%, #0a1024 60%, #070b1a 100%); border-radius: 4px; overflow: hidden; }
.nowbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.now-sat { opacity: 0; transition: opacity .4s; } .now.sat-on .now-sat { opacity: 1; }
.now-planes { outline: none; } .now-planes:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,214,160,.8); }
.now.is-off .now-planes { pointer-events: none; }
.now-toggle, .now-sat-btn { position: absolute; font: 600 12.5px/1 var(--sans); color: #e9ecf7; background: rgba(10,16,36,.72); border: 1px solid rgba(200,210,240,.35);
  border-radius: 999px; padding: 8px 13px; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.now-toggle:hover, .now-sat-btn:hover { border-color: rgba(255,214,160,.8); }
.now-toggle { left: 10px; bottom: 10px; }
.now.is-off .now-toggle { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); font-size: 15px; padding: 12px 18px; color: #fff;
  background: rgba(10,16,36,.82); border-color: rgba(255,214,160,.7); }
.now-sat-btn { right: 10px; bottom: 10px; }
.now-sat-btn[aria-pressed="true"] { background: rgba(255,214,160,.92); color: #151515; border-color: transparent; }
.now-card { position: absolute; left: 0; top: 0; width: 230px; background: rgba(251,250,246,.97); color: var(--ink); border-radius: 4px; padding: 10px 12px 11px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); font: 400 13px/1.45 var(--sans); z-index: 2; }
.now-card .nc-h { font-size: 13px; color: var(--ink-2); padding-right: 16px; } .now-card .nc-h b { font: 700 17px/1.2 var(--sans); color: var(--ink); margin-right: 4px; }
.now-card .nc-db { font-weight: 600; } .now-card .nc-on { color: var(--ink-3); font-size: 12px; }
.now-card .nc-m { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--accent); }
.now-card .nc-x { position: absolute; right: 6px; top: 4px; border: 0; background: none; font: 400 18px/1 var(--sans); color: var(--ink-3); cursor: pointer; padding: 2px 4px; }
.now .note [data-sat-attr]:empty { display: none; }
@media (min-width: 760px) {
  .now { width: min(980px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
  .nowbox { aspect-ratio: 16 / 8; }
  .now-line { font-size: 19px; }
}
.now-trails { transition: opacity .4s; } .now.is-on .now-trails { opacity: .75; }
