/* News pages (/news, /news/<slug>, /news/topic/<topic>, /news/about). Markup: scripts/build-news.mjs. Loads after eh.css and site.css.
   Dark like the rest of the site (palette from assets/eh.css). Every colour below is a --nw-* variable defined once on body.nw-body-page,
   so a light mode is a second block that redefines those variables (e.g. @media (prefers-color-scheme:light) or [data-theme=light]). No script on these pages. */
body.nw-body-page{
  --nw-bg:var(--ink,#0C0C0C);--nw-fg:var(--paper,#F3F0E8);--nw-body:#DAD7CF;--nw-soft:var(--soft,#C9C6BE);--nw-mute:var(--note,#9A978F);
  --nw-surface:#141414;--nw-chip:#171717;--nw-line:#2E2E2E;--nw-line-strong:#4A4A46;--static:#39DFFF;--static-blue:var(--static);--static-panel:#0F2228;--static-edge:#1E5A66;--static-ink:#E6FBFF;--static-body:#D6F6FF;--nw-acc:var(--acid,#D4FF00);--nw-on-acc:#0C0C0C;--nw-code:#1C1C1A;--nw-img:#161616;
  color-scheme:dark;background:var(--nw-bg);color:var(--nw-fg);font-family:var(--sans)}
.nw-body-page a{color:var(--nw-fg)}
.nw-body-page a:hover{color:var(--nw-acc)}
.nw-body-page :focus-visible{outline:2px solid var(--nw-acc);outline-offset:2px}
.nw-skip{position:absolute;left:8px;top:-60px;z-index:100;background:var(--nw-acc);color:var(--nw-on-acc)!important;padding:10px 14px;font-family:var(--mono);font-size:13px;text-decoration:none}
.nw-skip:focus{top:8px}
.pg{min-height:100svh;padding:16px clamp(20px,5vw,48px) 32px;display:flex;flex-direction:column}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px 16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-height:44px}
.brand svg{width:22px;height:22px;flex:none}
.brand svg path{fill:currentColor}
.brand svg rect{fill:var(--nw-acc)}
.brand span{font-weight:900;font-stretch:125%;text-transform:uppercase;font-size:13px;letter-spacing:-.01em}
.nv{--nv-fg:var(--nw-fg);--nv-body:var(--nw-soft);--nv-bg:var(--nw-surface);--nv-line:var(--nw-line);--nv-acc:var(--nw-acc)}
.nv-l,.nv-m a{font-size:14px;font-weight:600;text-transform:none}
.nv-l:hover,.nv-m a:hover,.nv-b:hover{color:var(--nw-acc);text-decoration:underline}
.nw{flex:1;width:100%;max-width:720px;margin:0 auto;padding:clamp(32px,6vh,64px) 0 clamp(48px,8vh,80px);display:flex;flex-direction:column;gap:28px;min-width:0}
.nw-crumbs{font-family:var(--mono);font-size:12px;color:var(--nw-mute)}
.nw-crumbs a{color:var(--nw-mute)}
.nw-kicker{margin:0;font-family:var(--mono);font-size:12px;color:var(--nw-mute);display:flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.04em}
.nw-kicker a{color:var(--nw-mute);text-decoration:none}
.nw-kicker a:hover{text-decoration:underline}
.nw-flag{background:var(--nw-acc);color:var(--nw-on-acc);padding:2px 7px;font-weight:700;font-size:11px;letter-spacing:.06em}
.nw h1{margin:8px 0 0;font-weight:900;font-stretch:112%;font-size:clamp(28px,5vw,42px);line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
.nw-dek{margin:14px 0 0;font-size:19px;line-height:1.45;color:var(--nw-soft);text-wrap:pretty}
.nw-dateline{margin:14px 0 0;font-family:var(--mono);font-size:12px;line-height:1.7;color:var(--nw-mute)}
.nw-dateline a{color:var(--static-blue);font-weight:700;text-decoration:none}
.nw-dateline a:hover{color:var(--static-blue);text-decoration:underline}
.nw-art{display:flex;flex-direction:column;gap:28px;min-width:0}
.nw-hero{margin:0}
.nw-hero img{display:block;width:100%;height:auto;background:var(--nw-img)}
.nw-hero figcaption{margin-top:8px;font-family:var(--mono);font-size:12px;color:var(--nw-mute)}
.nw-text{font-size:18px;line-height:1.65;color:var(--nw-body);display:flex;flex-direction:column;gap:16px}
.nw-text h2,.nw-plug h2,.nw-qa h2,.nw-src h2,.nw-rel h2,.nw-list h2{margin:12px 0 0;font-weight:900;font-stretch:112%;font-size:22px;line-height:1.2;letter-spacing:-.01em}
.nw-text h3{margin:8px 0 0;font-size:18px;font-weight:700}
.nw-text p,.nw-text ul,.nw-text ol,.nw-text blockquote{margin:0;text-wrap:pretty}
.nw-text ul,.nw-text ol{padding-left:1.3em}
.nw-text li+li{margin-top:6px}
.nw-text a{text-underline-offset:3px}
.nw-text blockquote{border-left:3px solid var(--nw-acc);padding-left:16px;color:var(--nw-soft)}
.nw-text code{font-family:var(--mono);font-size:.9em;background:var(--nw-img);padding:1px 5px}
.nw-qa,.nw-src,.nw-rel{border-top:1px solid var(--nw-line);padding-top:20px;display:flex;flex-direction:column;gap:12px}
.nw-qa h2,.nw-src h2,.nw-rel h2{margin-top:0}
.nw-qa dl{margin:0;display:flex;flex-direction:column;gap:14px}
.nw-qa dt{font-weight:700;font-size:17px;line-height:1.4}
.nw-qa dd{margin:4px 0 0;font-size:17px;line-height:1.6;color:var(--nw-soft)}
.nw-src ol,.nw-rel ul{margin:0;padding-left:1.3em;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.5}
.nw-src span,.nw-rel span{font-family:var(--mono);font-size:11px;color:var(--nw-mute);text-transform:uppercase;letter-spacing:.04em;margin-left:6px}
.nw-more{margin:0;font-size:16px}
.nw-corr{margin:0;padding:14px 16px;background:var(--nw-surface);font-size:14px;line-height:1.55;color:var(--nw-soft)}
.nw-hd{display:flex;flex-direction:column}
.nw-intro{margin-top:14px;font-size:18px;line-height:1.6;color:var(--nw-soft);display:flex;flex-direction:column;gap:12px}
.nw-intro p{margin:0;text-wrap:pretty}
/* Topic chips: one flex row per chip, label and count on the same baseline, count smaller and dimmer */
.nw-topics ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.nw-topics li{margin:0}
.nw-topics a{display:inline-flex;align-items:baseline;gap:8px;min-height:44px;padding:0 14px;font-size:14px;font-weight:600;line-height:44px;border:1px solid var(--nw-line-strong);background:var(--nw-chip);text-decoration:none;white-space:nowrap}
.nw-topics a:hover{border-color:var(--nw-acc);text-decoration:none}
.nw-topics span{font-family:var(--mono);font-size:11px;font-weight:400;line-height:1;color:var(--nw-mute);font-variant-numeric:tabular-nums}
.nw-topics a:hover span{color:var(--nw-acc)}
.nw-list{display:flex;flex-direction:column;gap:12px}
.nw-list h2{margin-top:0}
.nw-list>ul{list-style:none;margin:0;padding:0}
.nw-card{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:18px 0;border-top:1px solid var(--nw-line)}
.nw-card:last-child{border-bottom:1px solid var(--nw-line)}
.nw-card:not(:has(.nw-thumb)){grid-template-columns:1fr}
.nw-thumb img{display:block;width:100%;height:auto;background:var(--nw-img)}
.nw-card h3{margin:6px 0 0;font-size:19px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
.nw-card h3 a{text-decoration:none}
.nw-card h3 a:hover{text-decoration:underline}
.nw-card-t p{margin:6px 0 0}
.nw-card-t p:not(.nw-kicker):not(.nw-meta){font-size:15px;line-height:1.5;color:var(--nw-soft)}
.nw-meta{font-family:var(--mono);font-size:11px;color:var(--nw-mute)}
.nw-card.is-breaking{border-top:3px solid var(--nw-acc)}
@media (max-width:560px){.nw-card{grid-template-columns:1fr}.nw-thumb{max-width:260px}.nw-text{font-size:17px}}
.bot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 18px}
.bot>span{font-family:var(--mono);color:var(--nw-mute);font-size:12px;min-height:44px;display:flex;align-items:center}
.foot a,.foot span{color:var(--nw-mute)}
.foot a:hover{color:var(--nw-acc)}

/* Static's take, Try this, the plug box, the line for agents */
.nw-take{background:var(--static-panel);border:1px solid var(--static-edge);padding:18px 20px;color:var(--static-body)}
.nw-take h2,.nw-take strong{color:var(--static-ink)}
.nw-take p,.nw-take li{color:var(--static-body)}
.nw-take a{color:var(--static-blue)}
.nw-take .nw-take-tag{margin:0;font-family:var(--mono);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--static-blue)}
.nw-try{border-top:1px solid var(--nw-line);padding-top:4px}
.nw-plug{border:2px solid var(--nw-line-strong);padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.nw-plug-k{margin:0;font-family:var(--mono);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--nw-mute)}
.nw-plug h2{margin:0}
.nw-plug p{margin:0;font-size:17px;line-height:1.55}
.nw-plug-a{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
.nw-plug-a a:first-child{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;background:var(--nw-acc);color:var(--nw-on-acc);font-weight:700;text-decoration:none}
.nw-agents{margin:0;font-family:var(--mono);font-size:13px;line-height:1.6;color:var(--nw-soft)}

/* /news/static author page: Static's blue */
.nw-static .nw-kicker,.nw-static .nw-text a{color:var(--static-blue)}
