:root{--bg:#060a14;--text:#eef2f8;--muted:#8892a8;--accent:#4f8dff;--accent-ink:#04122e;--panel:#0c1222;--green:#2fd27a;--flag-red:#e63946;--flag-white:#f4f6fb;--flag-blue:#3c6ff0;--red:#ff3b3b;--amber:#ffb547;--blue:#6fb7ff;--left:#4c8dff;--center:#9aa3b5;--right:#ff5a5a;--unrated:#3a4458;--line:#1f2940}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:none}
body{display:flex;flex-direction:column}
/* Each scene tints the page: a glow painted in the background itself (no layer over the content, and rgba rather
   than color-mix() for older TV browsers). */
body{--scene:var(--accent);--glow:rgba(79,141,255,.10);
  background:radial-gradient(ellipse at 100% 100%,var(--glow) 0,transparent 55%),radial-gradient(ellipse at 0% 0%,var(--glow) 0,transparent 45%),var(--bg)}
body[data-scene=digest]{--scene:#c792ff;--glow:rgba(199,146,255,.13)}
body[data-scene=week]{--scene:#ffc247;--glow:rgba(255,194,71,.12)}
body[data-scene=brief]{--scene:#ffc247;--glow:rgba(255,194,71,.13)}
body[data-scene=stories]{--scene:var(--accent);--glow:rgba(79,141,255,.13)}
body[data-scene=framing]{--scene:#6fb7ff;--glow:rgba(111,183,255,.13)}
body[data-scene=world]{--scene:#3fd4f5;--glow:rgba(63,212,245,.13)}
body[data-scene=us]{--scene:#4c8dff;--glow:rgba(76,141,255,.13)}
body[data-scene=situations]{--scene:#ff8a3d;--glow:rgba(255,138,61,.13)}
body[data-scene=rising]{--scene:#ff7ac6;--glow:rgba(255,122,198,.13)}
body[data-scene=trends]{--scene:#7cf29a;--glow:rgba(124,242,154,.13)}
.brand em{transition:background .6s}
body[data-scene] .brand em{background:var(--scene)}
header{display:flex;justify-content:space-between;align-items:center;padding:2.2vh 3vw 0}
.brand{display:flex;align-items:center;gap:1vw;font:600 calc(clamp(16px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1)) ui-monospace,"Cascadia Code",Consolas,monospace}
.brand img{height:3.6vh}
.brand b{color:var(--accent)}
.brand em{font-style:normal;color:var(--accent-ink);background:var(--accent);border-radius:999px;padding:.2em .8em;font-size:.8em;margin-left:.6vw}
#clock{font:600 calc(clamp(18px,3.4vh,calc(44px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
main{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 3vw;min-height:0}
.rank{color:var(--muted);font:700 calc(clamp(16px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em}
.badges{display:flex;gap:1vw;margin:1.2vh 0}
.badge{font:800 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;padding:.35em .7em;border-radius:.3em}
.badge.breaking{background:var(--red);color:#fff}
.badge.developing{background:#3a2a0c;color:var(--amber)}
.badge.us{background:#0e2238;color:var(--blue)}
.badge.blind{background:#2a1a3a;color:#d8a6ff}
@keyframes pulse{50%{opacity:.55}}
h1{margin:0;font-size:calc(clamp(28px,6.4vh,calc(92px*var(--big,1)))*var(--tsb,1));line-height:1.12;font-weight:800;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:1.2vh 2vw;margin-top:3vh;color:var(--muted);font-size:calc(clamp(14px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1))}
.meta .velocity{color:var(--accent)}
.bar{display:flex;width:22vw;height:1.1vh;border-radius:1vh;overflow:hidden;background:var(--line)}
.bar i{display:block;height:100%}
.bar .left{background:var(--left)}.bar .center{background:var(--center)}.bar .right{background:var(--right)}.bar .unrated{background:var(--unrated)}
.legend span{margin-right:1.2vw}
.legend .left{color:var(--left)}.legend .center{color:var(--center)}.legend .right{color:var(--right)}
.outlets{margin-top:2.4vh;color:var(--muted);font-size:calc(clamp(13px,2.1vh,calc(28px*var(--big,1)))*var(--ts,1));line-height:1.5}
.outlets b{color:var(--text);font-weight:600}
.change{margin-top:2vh;font-size:calc(clamp(14px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1));color:var(--amber)}
.change b{font-weight:800;text-transform:uppercase;font-family:ui-monospace,Consolas,monospace;letter-spacing:.05em}
.change.latest{color:var(--text)}.change.latest b{color:var(--muted)}
.rank small{font-size:.7em;font-weight:600;letter-spacing:.05em}
.fade{animation:fade .6s ease}
@keyframes fade{from{opacity:0;transform:translateY(1.5vh)}to{opacity:1;transform:none}}
#dots{display:flex;justify-content:center;gap:.8vw;padding:1.5vh 0}
#dots i{width:1vh;height:1vh;border-radius:50%;background:var(--line)}
#dots i.on{background:var(--accent)}
#progress{height:.5vh;background:var(--line)}
#progress i{display:block;height:100%;width:0;background:var(--accent)}
footer[hidden]{display:none}
footer{display:flex;align-items:center;background:var(--red);color:#fff;height:6vh;font-size:calc(clamp(16px,3vh,calc(40px*var(--big,1)))*var(--ts,1));overflow:hidden}
footer b{flex:none;padding:0 2vw;height:100%;display:flex;align-items:center;background:#b00000;font-family:ui-monospace,Consolas,monospace;letter-spacing:.12em}
.track{flex:1;overflow:hidden;white-space:nowrap}
@keyframes scroll{to{transform:translateX(-100%)}}
.waiting{color:var(--muted);font-size:calc(3vh*var(--ts,1));text-align:center}
#fullscreen{position:fixed;left:1.2vw;bottom:8vh;background:none;border:1px solid var(--line);color:var(--muted);border-radius:8px;font-size:calc(22px*var(--ts,1));padding:4px 10px;cursor:pointer;opacity:0;transition:opacity .3s}
/* the corner button sits bottom left, clear of the station bug; the public TVs have Full screen in their channel bar instead */
body[data-public="1"] #fullscreen{display:none}
body:hover #fullscreen{opacity:1}
body.pointer{cursor:default}
/* Map scenes */
.mapscene{display:flex;gap:2.5vw;align-items:center;min-height:0;height:100%;padding:2vh 0}
.map{flex:2.3;min-width:0;max-height:72vh;width:100%}
.map .land{fill:#131d33;stroke:#24402f;stroke-width:.25}
.map .borders{fill:none;stroke:#2c3d5e;stroke-width:.2}
.map .states{fill:#131d33;stroke:#2c3d5e;stroke-width:1.2;stroke-linejoin:round}
.mk .dot{fill:var(--accent);fill-opacity:.85;stroke:#04122e;stroke-width:.3}
.mk text{fill:var(--accent-ink);font-weight:800;text-anchor:middle;font-family:system-ui,sans-serif}
.mk.breaking .dot{fill:var(--red)}.mk.breaking text{fill:#fff}
.mk.developing .dot{fill:var(--amber)}
.mk.quake .dot{fill:#ff8a3d}.mk.weather .dot{fill:#b07cff}
.mk .halo{fill:none;stroke-width:.6;transform-box:fill-box;transform-origin:center;animation:halo 2.4s ease-out infinite}
.mk.breaking .halo{stroke:var(--red)}.mk.developing .halo{stroke:var(--amber)}.mk.quake .halo{stroke:#ff8a3d}.mk.weather .halo{stroke:#b07cff}
@keyframes halo{from{transform:scale(.5);opacity:1}to{transform:scale(1.4);opacity:0}}
.mapside{flex:1;min-width:0;display:flex;flex-direction:column;gap:2vh}
.maplist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.3vh}
.maplist li{display:flex;gap:.8vw;align-items:flex-start;font-size:calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1));line-height:1.3}
.maplist li b{flex:none;width:1.7em;height:1.7em;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink);font-size:.85em}
.maplist li b.breaking{background:var(--red);color:#fff}.maplist li b.developing{background:var(--amber)}
.maplist .place{display:block;color:var(--accent);font:700 .75em ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
.maplist em{color:var(--muted);font-style:normal;font-size:.85em}
.maplist li div{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.alerts{font-size:calc(clamp(11px,1.6vh,calc(20px*var(--big,1)))*var(--ts,1));color:var(--muted);display:flex;flex-direction:column;gap:.6vh}
.alerts .quake{color:#ff8a3d}.alerts .weather{color:#b07cff}
.key{display:flex;flex-wrap:wrap;gap:.4vh 1.2vw;font:600 calc(clamp(10px,1.4vh,calc(18px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;color:var(--muted)}
.key span::before{content:"●";margin-right:.35em;font-size:1.3em;vertical-align:-.1em}
.key .breaking::before{color:var(--red)}.key .developing::before{color:var(--amber)}.key .story::before{color:var(--accent)}
.key .quake::before{color:#ff8a3d}.key .weather::before{color:#b07cff}

/* Rising and trending scenes */
.listscene h2{margin:0 0 3vh;font-size:calc(clamp(16px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1));color:var(--muted);font-weight:600}
.listscene .row{display:flex;gap:1.5vw;align-items:flex-start;margin-bottom:2.2vh}
.listscene .num{flex:none;width:2.2em;color:var(--muted);font:700 calc(clamp(16px,2.8vh,calc(36px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;text-align:right}
.listscene .body{flex:1;min-width:0}
.listscene .title{font-size:calc(clamp(16px,3vh,calc(40px*var(--big,1)))*var(--ts,1));font-weight:700;line-height:1.2;display:flex;gap:1vw;align-items:center;flex-wrap:wrap}
.listscene .title .badge{font-size:.5em}
.barline{display:flex;align-items:center;gap:1vw;margin-top:.8vh;color:var(--muted);font-size:calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1))}
.barline i{display:block;height:1vh;border-radius:1vh;background:var(--accent);flex:none}
.trendgrid{display:grid;grid-template-columns:1fr 1fr;gap:2.5vh 4vw}
.trend{display:flex;justify-content:space-between;align-items:center;gap:2vw;border-bottom:1px solid var(--line);padding-bottom:1.2vh}
.trend .term{font-size:calc(clamp(18px,3.6vh,calc(48px*var(--big,1)))*var(--ts,1));font-weight:800}
.trend .sub{color:var(--muted);font-size:calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1))}
.trend .sub b{color:var(--accent)}
.trend .spark{display:flex;align-items:flex-end;gap:3px;height:5vh;width:12vw;flex:none}
.trend .spark i{flex:1;background:var(--accent);opacity:.75;border-radius:2px 2px 0 0}
.trend .spark i:last-child{opacity:1}

/* Breaking takeover */
#takeover{position:fixed;inset:0;z-index:10;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 30%,#3a0606 0,#120202 70%);animation:fade .4s ease}
/* a replayed takeover says so: the same card, with a chip riding its top right (2026-11-14) */
#takeover .tk-replay{position:absolute;top:2.4vh;right:2.4vw;z-index:5;display:flex;align-items:center;gap:1vh;padding:1.1vh 1.7vh;
  background:rgba(8,12,22,.82);border:1px solid rgba(255,255,255,.3);border-radius:.6vh;
  font:800 2.1vh/1 "Barlow Condensed","Arial Narrow",system-ui,sans-serif;letter-spacing:.16em;color:#fff}
#takeover .tk-replay i{width:1.2vh;height:1.2vh;border-radius:50%;background:#ff3b3b}
html:is([data-theme=network],[data-theme=edition]) #takeover .tk-replay{border-radius:0}
#takeover[hidden]{display:none}
.tk-flash{background:var(--red);padding:2.5vh 4vw;overflow:hidden}
.tk-flash span{display:block;font:900 calc(clamp(36px,9vh,calc(130px*var(--big,1)))*var(--tsb,1))/1 ui-monospace,Consolas,monospace;letter-spacing:.12em;color:#fff;animation:pulse 1s infinite}
.tk-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 5vw}
.tk-kicker{color:#ffb3b3;font:700 calc(clamp(14px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;margin-bottom:2vh}
#takeover h1{font-size:calc(clamp(32px,8vh,calc(120px*var(--big,1)))*var(--tsb,1));-webkit-line-clamp:4}
#takeover .meta,#takeover .outlets{color:#e8c4c4}
.tk-progress{height:.8vh;background:#3a0a0a}
.tk-progress i{display:block;height:100%;width:0;background:#fff}

/* QR codes, NEW / UPDATED, morning brief */
main{position:relative}
.qr{position:absolute;right:3vw;bottom:2vh;margin:0;width:17vh;text-align:center;animation:fade .6s ease}
.qr img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:1.2vh;box-shadow:0 0 0 .4vh #0b1838,0 1vh 3vh #000a}
.qr figcaption{margin-top:.8vh;color:var(--muted);font:600 calc(clamp(10px,1.5vh,calc(20px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em}
.qr.tk{right:4vw;bottom:5vh;width:22vh}
.qr.tk figcaption{color:#e8c4c4}
.badge.fresh{background:var(--accent);color:var(--accent-ink)}
.badge.updated{background:var(--amber);color:#1b1203}
#dots i.new{background:#0d6b3c}#dots i.updated{background:#6b4a0d}
#dots i.on{background:var(--accent)}
.brief .row{margin-bottom:2.6vh}
.brief .what{margin-top:.6vh;color:var(--amber);font-size:calc(clamp(13px,2.2vh,calc(28px*var(--big,1)))*var(--ts,1))}

/* Same story, two framings */
.framescene h2{margin:0 0 3.5vh;font-size:calc(clamp(18px,3.4vh,calc(44px*var(--big,1)))*var(--ts,1));line-height:1.2;color:var(--muted);font-weight:600}
.frames{display:grid;grid-template-columns:1fr 1fr;gap:3vw}
.frame{border-top:.6vh solid var(--line);padding-top:2vh}
.frame.left{border-top-color:var(--left)}.frame.right{border-top-color:var(--right)}
.side{display:flex;align-items:center;gap:.6em;color:var(--muted);font:700 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.side i{display:inline-block;width:.8em;height:.8em;border-radius:.2em}
.left .side i{background:var(--left)}.right .side i{background:var(--right)}.centerline .side i{background:var(--center)}
.said{margin-top:1.6vh;font-size:calc(clamp(22px,4.6vh,calc(64px*var(--big,1)))*var(--ts,1));line-height:1.15;font-weight:800;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.by{margin-top:1.4vh;color:var(--muted);font-size:calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1));font-weight:600}
.centerline{margin-top:3.5vh;color:var(--muted);font-size:calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1));display:flex;align-items:baseline;gap:1vw}
.centerline .side{flex:none;font-size:.8em}
.framescene .meta{margin-top:2.5vh}

/* HUD: up-next chip and countdown ring */
.hud{display:flex;align-items:center;gap:1.2vw}
#upnext{max-width:38vw;display:flex;align-items:baseline;gap:.7em;color:var(--text);font-size:calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:.45em 1em}
#upnext[hidden]{display:none}
#upnext span{flex:none;color:var(--accent);font:700 .8em ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
#upnext.pop{animation:pop .5s cubic-bezier(.2,.8,.2,1)}
@keyframes pop{from{opacity:0;transform:translateX(2vw)}to{opacity:1;transform:none}}
#ring svg{display:block;width:3.6vh;height:3.6vh;transform:rotate(-90deg)}
#ring circle{fill:none;stroke-width:3.5}
#ring .rt{stroke:var(--line)}
#ring .rf{stroke:var(--accent);stroke-dasharray:97.4;stroke-linecap:round}

/* Bottom crawl */
#crawl{background:#0a120e;border-top:1px solid var(--line);color:var(--text);height:5.4vh;font-size:calc(clamp(14px,2.3vh,calc(30px*var(--big,1)))*var(--ts,1))}
#crawl b#crawl-label{background:#12203d;color:var(--accent)}
/* breaking: the label stays red; the headlines scroll on a dark red band, since white on bright red was hard to read */
#crawl.alert{background:#1e0407;border-top:.35vh solid var(--red);color:#f6f7fb}
#crawl.alert b#crawl-label{background:#b00000;color:#fff;animation:pulse 1.2s infinite}
#crawl-track{display:inline-block;white-space:nowrap;animation:crawl linear infinite;animation-duration:120s;will-change:transform;backface-visibility:hidden}
#crawl{contain:paint}
@keyframes crawl{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.ci{display:inline-flex;align-items:center;gap:.5em;margin-right:3.5vw}
.ci i{width:.6em;height:.6em;border-radius:50%;background:var(--unrated);flex:none}
.ci i.left{background:var(--left)}.ci i.center{background:var(--center)}.ci i.right{background:var(--right)}
.ci b{display:inline;height:auto;padding:0;background:none;color:var(--muted);font:600 1em system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:0}
#crawl.alert .ci b{color:#ff8f8f}
/* the FOREIGN tags, lighter than the gray they are elsewhere */
#crawl.alert .fp{color:#efd2d5;border-color:#ffffff45;background:none}
#crawl.live .fp{color:#e4eaf8;border-color:#ffffff60;background:none}
.ci.hot{font-weight:800}
.ci.hot i{background:#fff}

/* Story scene */
main>div:not(.mapscene):not(.listscene){padding-right:21vh}
main>div.storyscene{padding-right:0}
/* A story's QR code sits at the end of its bottom row, so everything above it runs the full width. */
.lower{display:flex;align-items:flex-end;gap:2.5vw}
.lmain{flex:1;min-width:0}
.qr.inline{position:static;flex:none;margin-top:4.5vh}
/* Rank and badges share one line above the headline, and keep their size when a story grows to fill the screen. */
.kicker{display:flex;align-items:center;flex-wrap:wrap;gap:1vh 1.4vw;margin-bottom:1.4vh;zoom:calc(1 / var(--z,1))}
.kicker .badges{margin:0}
/* A breaking story's badge stays solid; only its dot pulses. */
.badge.breaking::before,.badge.major::before{content:"";display:inline-block;width:.55em;height:.55em;margin-right:.55em;border-radius:50%;background:#fff;animation:pulse 1.4s infinite}
.kicker .rank{color:#aab3c6}
.storyscene h1{font-size:calc(clamp(26px,5.6vh,calc(84px*var(--big,1)))*var(--tsb,1));-webkit-line-clamp:3}
.storyscene.framed h1{font-size:calc(clamp(24px,5vh,calc(76px*var(--big,1)))*var(--tsb,1))}
.storyscene .meta{margin-top:2.2vh}
.zoom{transform-origin:left center;animation:zoom 22s linear both}
@keyframes zoom{from{transform:scale(1)}to{transform:scale(1.035)}}
.w{display:inline-block;animation:word .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
@keyframes word{from{opacity:0;transform:translateY(.35em)}to{opacity:1;transform:none}}
.badge.tilt{background:#16211c;color:var(--text)}
.badge.tilt.left{background:#0e1c38;color:var(--left)}
.badge.tilt.right{background:#380e0e;color:var(--right)}
.badge.tilt.everyone{background:#10264d;color:var(--accent)}

/* Spread replay */
.replay{margin-top:3vh}
.rlabel{display:flex;gap:.6em;align-items:baseline;color:var(--text);font-size:calc(clamp(13px,2.1vh,calc(28px*var(--big,1)))*var(--ts,1))}
.rlabel b{color:var(--accent);font:700 .85em ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
.rlabel span{margin-left:auto;color:var(--muted);font:600 .8em ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.rline{position:relative;height:5.2vh;margin-top:1.2vh;border-bottom:2px solid var(--line)}
.rline i{position:absolute;bottom:1vh;width:1.5vh;height:1.5vh;margin-left:-.75vh;border-radius:50%;background:var(--unrated);opacity:0;animation:dot .5s cubic-bezier(.3,1.6,.5,1) forwards;animation-delay:calc(var(--d,0ms) + 400ms)}
.rline i.left{background:var(--left)}.rline i.center{background:var(--center)}.rline i.right{background:var(--right)}
.rline i.first{width:2.2vh;height:2.2vh;margin-left:-1.1vh;box-shadow:0 0 0 .4vh #4f8dff55}
@keyframes dot{from{opacity:0;transform:translateY(-2vh) scale(.4)}to{opacity:.92;transform:none}}
.rline .tick{position:absolute;bottom:-3vh;transform:translateX(-50%);color:var(--muted);font:600 calc(clamp(10px,1.5vh,calc(20px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.rline .tick::before{content:"";position:absolute;left:50%;top:-1.3vh;height:1vh;border-left:1px solid var(--line)}
.rline .tick.now{transform:translateX(-100%);color:var(--accent)}
.rline .tick.now::before{left:auto;right:0}

/* Five-lane spectrum */
.spectrum{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1vw;margin-top:4.5vh}
.lane{border-top:.5vh solid var(--c);padding-top:1.2vh;animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms);min-width:0}
.lane.left{--c:var(--left)}.lane.lean-left{--c:#8fb4ff}.lane.center{--c:var(--center)}.lane.lean-right{--c:#ff9d9d}.lane.right{--c:var(--right)}
.lname{display:block;color:var(--c);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
.lname b{color:var(--text);margin-left:.3em}
.names{display:block;margin-top:.8vh;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(24px*var(--big,1)))*var(--ts,1));line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.names em{font-style:normal;color:var(--text)}
@keyframes rise{from{opacity:0;transform:translateY(1.5vh)}to{opacity:1;transform:none}}

/* L / C / R triptych */
.trip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2vw;margin-top:4.5vh}
.tcol{border-top:.5vh solid var(--c);padding-top:1.4vh;animation:slidein .6s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--d,0ms) + 700ms);min-width:0}
.tcol.left{--c:var(--left)}.tcol.center{--c:var(--center)}.tcol.right{--c:var(--right)}
.tside{display:block;color:var(--c);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.tsaid{display:-webkit-box;margin-top:1vh;font-size:calc(clamp(14px,2.6vh,calc(36px*var(--big,1)))*var(--ts,1));font-weight:700;line-height:1.2;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tby{display:block;margin-top:.8vh;color:var(--muted);font-size:calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1))}
.tcol.empty .tsaid,.tcol.wait .tsaid{color:var(--muted);font-weight:500;font-style:italic}
.tcol.wait{border-top-style:dashed}
.tcol.wait .tsaid{animation:pulse 1.6s infinite}
@keyframes slidein{from{opacity:0;transform:translateX(3vw)}to{opacity:1;transform:none}}

/* Scene entrances */
.enter-slide{animation:eslide .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes eslide{from{opacity:0;transform:translateX(6vw)}to{opacity:1;transform:none}}
.enter-wipe{animation:ewipe .9s cubic-bezier(.6,0,.2,1) both}
@keyframes ewipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.enter-rise{animation:fade .6s ease both}

/* Map pings */
.pring{fill:none;stroke:var(--accent);stroke-width:1.5;opacity:0;vector-effect:non-scaling-stroke}
.mk.ping .pring{animation:pring 2.4s ease-out infinite;transform-box:fill-box;transform-origin:center}
.mk.ping .pring.two{animation-delay:1.2s}
@keyframes pring{from{transform:scale(.6);opacity:.9}to{transform:scale(3.2);opacity:0}}
.pingkey{display:inline-flex;align-items:center;gap:.5em;color:var(--muted)}
.pingkey i{width:1.4vh;height:1.4vh;border-radius:50%;border:2px solid var(--accent);flex:none;animation:pulse 1.6s infinite}

/* Richer takeover */
.tk-body{padding-right:30vh}
#takeover h1{font-size:calc(clamp(28px,5.6vh,calc(84px*var(--big,1)))*var(--tsb,1));-webkit-line-clamp:2}
.tk-live{margin-top:2vh}
.tk-count{display:flex;align-items:center;gap:1.4vw}
.tk-count b{font:900 calc(clamp(36px,9vh,calc(130px*var(--big,1)))*var(--tsb,1))/1 ui-monospace,Consolas,monospace;color:#fff;font-variant-numeric:tabular-nums}
.tk-count span{display:flex;flex-direction:column;color:#ffb3b3;font:700 calc(clamp(14px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase}
.tk-count em{font-style:normal;color:#e8c4c4;font-weight:500;font-size:.7em;text-transform:none;letter-spacing:0;margin-top:.3em}
.tk-first{margin-top:1.6vh;color:#fff;font-size:calc(clamp(14px,2.5vh,calc(34px*var(--big,1)))*var(--ts,1))}
.tk-first b{color:#ffb3b3;font-family:ui-monospace,Consolas,monospace;text-transform:uppercase;letter-spacing:.06em}
.tk-first span{color:#e8c4c4}
#takeover .meta{margin-top:1.4vh;font-size:calc(clamp(13px,2.1vh,calc(28px*var(--big,1)))*var(--ts,1))}
.tk-body .rlabel{justify-content:flex-end}
.tk-live .replay{margin-top:2vh}
#takeover .rline{border-bottom-color:#5a1a1a}
#takeover .rlabel b{color:#ffb3b3}
#takeover .rline .tick.now{color:#fff}
#takeover .trip{margin-top:4vh}
#takeover .tcol.center{--c:#e8c4c4}

/* Top-of-the-hour recap */
#recap{position:fixed;inset:0;z-index:9;display:flex;flex-direction:column;padding:5vh 5vw 4vh;background:radial-gradient(ellipse at 80% 0%,#0b2a3a 0,transparent 60%),radial-gradient(ellipse at 10% 100%,#0b1838 0,transparent 55%),var(--bg);animation:fade .5s ease}
#recap[hidden]{display:none}
.rc-head{display:flex;align-items:baseline;gap:2vw}
.rc-kicker{background:var(--blue);color:#04101a;font:800 calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.14em;padding:.35em .8em;border-radius:.3em}
.rc-head h1{font-size:calc(clamp(26px,5.4vh,calc(80px*var(--big,1)))*var(--tsb,1))}
.rc-since{margin-left:auto;color:var(--muted);font:600 calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.rc-grid{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:3vh 3vw;margin-top:4vh;min-height:0}
.rc-grid section{animation:rise .6s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms);min-width:0;overflow:hidden}
.rc-grid h2{margin:0 0 1.6vh;color:var(--muted);font:700 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}
.rc-total{display:flex;flex-direction:column;gap:1.4vh}
.rc-total>b{font:900 calc(clamp(48px,14vh,calc(200px*var(--big,1)))*var(--tsb,1))/1 ui-monospace,Consolas,monospace;color:var(--accent);font-variant-numeric:tabular-nums}
.rc-total>span:first-of-type{color:var(--text);font-size:calc(clamp(14px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1))}
.rc-total .bar{width:100%;height:1.4vh}
.rc-total .legend{font-size:calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1))}
.rc-new p,.rc-changes p{margin:0 0 1.6vh;font-size:calc(clamp(14px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1));font-weight:700;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rc-new em,.rc-changes em{font-style:normal;color:var(--muted);font-weight:500;font-size:.7em;margin-left:.6em}
.rc-changes b{color:var(--amber);font-family:ui-monospace,Consolas,monospace;text-transform:uppercase;font-size:.75em;letter-spacing:.05em}
.rc-changes p{font-weight:600;font-size:calc(clamp(13px,2.3vh,calc(32px*var(--big,1)))*var(--ts,1))}
.rc-new .badge{margin-right:.6em;font-size:.55em;vertical-align:middle}
.mover{display:grid;grid-template-columns:minmax(0,1fr) 9vw 3em;gap:1.4vw;align-items:center;margin-bottom:1.6vh;font-size:calc(clamp(13px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1));font-weight:600}
.mover span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mbar{height:1.2vh;background:var(--line);border-radius:1vh;overflow:hidden}
.mbar i{display:block;height:100%;width:0;background:var(--accent);border-radius:1vh;transition:width 1.2s cubic-bezier(.2,.8,.2,1) .9s}
.mover b{color:var(--accent);font-family:ui-monospace,Consolas,monospace;text-align:right}
.rc-foot{margin-top:2vh;color:var(--muted);font:600 calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.08em}
.muted{color:var(--muted)!important;font-weight:500!important}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition:none!important}
  #crawl-track{animation:none!important}
  .rline i{opacity:.92}
}
.mapscene{min-height:0}
.mapside{min-height:0;overflow:hidden;justify-content:flex-start;padding-top:1vh}
.maplist{min-height:0;overflow:hidden;flex:none}
.mapside .key,.mapside .alerts{flex:none}
.mapside{align-self:stretch}
.maplist{gap:.9vh}
.maplist li{font-size:calc(clamp(12px,1.8vh,calc(23px*var(--big,1)))*var(--ts,1))}

/* World alert strip: counts of what's going on, never one overall grade; the lead story on the right */
#alertbar{display:flex;align-items:stretch;margin:1.4vh 3vw 0;height:7vh;min-height:44px;border-radius:1vh;overflow:hidden;
  background:var(--panel);border:1px solid var(--ab-b,var(--line));box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  font:600 calc(clamp(11px,1.7vh,calc(23px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;white-space:nowrap;transition:border-color .6s}
#alertbar[hidden]{display:none}
#alertbar>*{display:flex;align-items:center;flex:none;padding:0 1.1vw}
#alertbar>*+*{border-left:1px solid rgba(120,150,220,.1)}
#alertbar[data-calm="false"]{--ab:#ff3b3b;--ab-a:rgba(255,59,59,.2);--ab-b:rgba(255,59,59,.5)}
.ab-title{flex-direction:column;align-items:flex-start!important;justify-content:center;gap:.4vh;min-width:11vw;
  background:var(--ab-a,rgba(79,141,255,.14));border-left:.45vw solid var(--ab,var(--accent))}
.ab-k{display:flex;align-items:center;gap:.5vw;color:var(--muted);font-size:calc(clamp(9px,1.25vh,calc(16px*var(--big,1)))*var(--ts,1));letter-spacing:.2em}
#ab-state{color:var(--ab,var(--text));font:900 calc(clamp(15px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1))/1 ui-monospace,Consolas,monospace;letter-spacing:.08em}
#alertbar[data-calm="false"] #ab-state{animation:pulse 1.6s infinite}
.livedot{width:.75em;height:.75em;border-radius:50%;background:var(--red);box-shadow:0 0 .7em var(--red);animation:pulse 1.4s infinite;flex:none}
#alertbar[data-calm="true"] .livedot{background:var(--accent);box-shadow:0 0 .7em var(--accent)}
/* Counts: the number over its label; zero counts stay dim */
#ab-chips{gap:0;padding:0!important;min-width:0;overflow:hidden;flex:0 1 auto!important}
.ac{display:flex;flex-direction:column;justify-content:center;gap:.4vh;padding:0 1vw;height:100%;--ac:var(--text)}
.ac+.ac{border-left:1px solid rgba(120,150,220,.07)}
.ac b{font:800 calc(clamp(15px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1))/1 ui-monospace,Consolas,monospace;color:var(--text)}
.ac span{color:var(--text);font-size:calc(clamp(8px,1.15vh,calc(15px*var(--big,1)))*var(--ts,1));letter-spacing:.12em;text-transform:uppercase}
.ac.on b{color:var(--ac);text-shadow:0 0 1.2vh color-mix(in srgb,var(--ac) 40%,transparent)}
.ac.on span{color:var(--text)}
.ac.k-breaking{--ac:#ff5c5c}.ac.k-red{--ac:#ff3b3b}.ac.k-disasters{--ac:#ffa63d}.ac.k-quakes{--ac:#ff8a3d}
.ac.k-weather{--ac:#b07cff}.ac.k-internet{--ac:#9d8cff}.ac.k-situations{--ac:#3fd4f5}
.ac.on.k-breaking b,.ac.on.k-red b{animation:pulse 1.6s infinite}
#ab-lead{flex:1 1 0!important;min-width:12vw;white-space:normal;line-height:1.25;color:var(--text);font:500 calc(clamp(11px,1.75vh,calc(23px*var(--big,1)))*var(--ts,1)) system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#ab-lead>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#ab-lead em{flex:none;margin-right:.8vw;font:700 calc(clamp(8px,1.15vh,calc(15px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.16em;color:var(--accent);font-style:normal}

/* Live pop-ups play inside the strip, one at a time, so they never cover the scene */
#ab-toast{display:none!important;align-items:center!important;gap:.8vw;min-width:0;flex:1 1 0!important;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#alertbar.toasting #ab-chips,#alertbar.toasting #ab-lead{display:none!important}
#alertbar.toasting #ab-toast{display:flex!important;animation:toastin .45s cubic-bezier(.2,.8,.2,1) both}
#alertbar.toasting{border-color:var(--tk,var(--accent));box-shadow:0 0 1.5vh -.3vh var(--tk,var(--accent))}
@keyframes toastin{from{opacity:0;transform:translateX(3vw)}to{opacity:1;transform:none}}
#ab-toast em{flex:none;font:800 calc(clamp(9px,1.4vh,calc(18px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.08em;padding:.25em .55em;border-radius:.3em;background:var(--tk);color:#0a0a0a;font-style:normal;align-self:center}
#ab-toast b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:650;font-size:calc(clamp(12px,1.9vh,calc(25px*var(--big,1)))*var(--ts,1))}
#ab-toast span{flex:0 1 auto;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:calc(clamp(10px,1.6vh,calc(21px*var(--big,1)))*var(--ts,1))}
#alertbar.k-breaking{--tk:#ff3b3b}#alertbar.k-update{--tk:#ffb547}#alertbar.k-quake{--tk:#ff8a3d}#alertbar.k-weather{--tk:#b07cff}
#alertbar.k-disaster{--tk:#ffa63d}#alertbar.k-disaster.red{--tk:#ff3b3b}#alertbar.k-internet{--tk:#9d8cff}

/* World map: GDACS disasters and internet outages */
.gd .gm{stroke:#04122e;stroke-width:.3}
.gd.green .gm{fill:#7fd18f;fill-opacity:.7}.gd.orange .gm{fill:#ffa63d}.gd.red .gm{fill:#ff3b3b}
.gd .halo{fill:none;stroke-width:.6;transform-box:fill-box;transform-origin:center;animation:halo 2.4s ease-out infinite}
.gd.orange .halo{stroke:#ffa63d}.gd.red .halo{stroke:#ff3b3b}
.net circle{fill:none;stroke:#9d8cff;stroke-width:.5;stroke-dasharray:1.2 .8;opacity:.6}
.net.major circle{stroke-width:.9;opacity:1}
.alerts .disaster{color:#ffa63d}.alerts .disaster.red{color:#ff6b6b}.alerts .internet{color:#9d8cff}
.key .disaster::before{content:"◆";color:#ffa63d}.key .internet::before{content:"◌";color:#9d8cff}

/* Developing situations */
.sits{display:flex;flex-direction:column;gap:2.2vh}
.sit{display:grid;grid-template-columns:7.5em minmax(0,1fr) 12vw;gap:1.6vw;align-items:center;animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.sday{text-align:center;padding:.6vh 0;border-radius:.8vh;background:#2a1a08;color:#ffb57a;font:800 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em}
.sday small{display:block;font-size:.65em;font-weight:600;color:#c99a6c;letter-spacing:.1em}
.sit .title{font-size:calc(clamp(15px,2.7vh,calc(36px*var(--big,1)))*var(--ts,1));font-weight:700;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sit .sub{margin-top:.6vh;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(23px*var(--big,1)))*var(--ts,1))}
.sit .sub .place{color:#ffb57a;font:700 .85em ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;margin-right:.8em}
.strend{font:800 .9em ui-monospace,Consolas,monospace;margin-left:.8em}
.strend.rising{color:var(--accent)}.strend.steady{color:var(--muted)}.strend.fading{color:#6f8fa8}
.sit .spark{display:flex;align-items:flex-end;gap:3px;height:5vh}
.sit .spark i{flex:1;background:#ff8a3d;opacity:.65;border-radius:2px 2px 0 0}
.sit .spark i:last-child{opacity:1}

/* Morning digest */
.listscene.digest{max-width:84vw}
.digest .dg-k{color:#c792ff;font:700 calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2vh}
.week .dg-k{color:#ffc247}
.digest .dg-ai{margin-top:2.6vh;color:var(--muted);font:500 calc(clamp(10px,1.5vh,calc(19px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em}
.digest h1{font-size:calc(clamp(26px,5vh,calc(68px*var(--big,1)))*var(--tsb,1));line-height:1.15;margin:0 0 3vh;-webkit-line-clamp:3}
.digest p{font-size:calc(clamp(16px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1));line-height:1.45;color:#d6e2db;margin:0 0 2.2vh;animation:rise .6s ease both;animation-delay:var(--d,0ms)}

/* Crawl: world events */
.ci i.ev-gd{background:#ffa63d;border-radius:.1em;transform:rotate(45deg)}
.ci i.ev-gd.red{background:#ff3b3b}
.ci i.ev-net{background:none;border:2px dashed #9d8cff}

@media (prefers-reduced-motion:reduce){#alertbar.toasting #ab-toast,.sit{opacity:1;animation:none}}

/* Polish: list scenes start at the same height under the strip instead of floating mid-screen, so headings don't
   jump between scenes. */
main>.listscene,main>.framescene{margin:5vh 0 auto}
.listscene h2{margin-bottom:3.2vh}
/* Situations: day, then the coverage bars, then the story, so the bars sit with what they describe. */
.sit{grid-template-columns:7.5em 9vw minmax(0,1fr)}
.sit .spark{order:-1;grid-column:2;grid-row:1}
.sit>div:not(.sday){grid-column:3;grid-row:1}
.sday{grid-column:1;grid-row:1}

/* While you were away */
body[data-scene=away]{--scene:#4cc3ff;--glow:rgba(76,195,255,.12)}
.away .also{display:flex;flex-wrap:wrap;gap:1.2vh 1.2vw;margin-top:3vh}
.away .also span{font-size:calc(clamp(13px,2.1vh,calc(28px*var(--big,1)))*var(--ts,1));color:#cfd8e0;padding:.7vh 1.2vw;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.04)}

/* Followed stories: a star in the rotation, and a gold takeover for a new development */
.badge.star{background:rgba(255,194,71,.16);color:#ffc247;border:1px solid rgba(255,194,71,.5)}
#takeover.followed{background:radial-gradient(ellipse at 50% 30%,#3a2a06 0,#120c02 70%)}
#takeover.followed .tk-flash{background:#ffc247}
#takeover.followed .tk-flash span{color:#1b1203}
#takeover.followed .tk-kicker{color:#ffd99a}
#takeover .tk-on{margin-top:1.6vh;color:#e9dcc0;font-size:calc(clamp(14px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1))}

/* Who's not covering it */
.meta .absent{color:#9aa3b5}
.meta .absent b{font-weight:600}
.meta .absent b.left{color:#6aa8ff}.meta .absent b.center{color:#c9d2cd}.meta .absent b.right{color:#ff7b7b}

/* Markets */
body[data-scene=markets]{--scene:#6fb7ff;--glow:rgba(111,183,255,.12)}
.mgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.6vw}
.mtile{padding:2.2vh 1.4vw;border:1px solid var(--line);border-radius:12px;background:var(--panel);animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.mtile .ml{display:block;color:var(--muted);font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}
.mtile b{display:block;margin-top:.6vh;font:700 calc(clamp(18px,4.6vh,calc(60px*var(--big,1)))*var(--ts,1))/1.1 ui-monospace,Consolas,monospace}
.mtile em{display:block;margin-top:.4vh;font:700 calc(clamp(12px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;font-style:normal}
.mtile.up em{color:var(--green)}.mtile.down em{color:var(--red)}
.mtile .mline{display:block;width:100%;height:8vh;margin-top:1.6vh}
.mline line{stroke:#ffffff33;stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.mline .ml{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.mtile.up .ml{stroke:var(--green)}.mtile.down .ml{stroke:var(--red)}
.legend .rated{color:var(--muted);font-size:.68em;margin-left:.5em}
.mcredit{margin-top:2.4vh;color:var(--muted);font-size:calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1))}

/* Elections ahead */
body[data-scene=elections]{--scene:#b18cff;--glow:rgba(177,140,255,.12)}
.erow{padding-bottom:1.8vh;border-bottom:1px solid var(--line);animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.ecount{flex:none;width:7vw;text-align:right;color:var(--scene)}
.ecount b{display:block;font:800 calc(clamp(18px,4.4vh,calc(58px*var(--big,1)))*var(--ts,1))/1 ui-monospace,Consolas,monospace}
.ecount span{display:block;color:var(--muted);font-size:calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1))}
.erow.now .ecount b{color:var(--accent);font-size:calc(clamp(14px,3vh,calc(40px*var(--big,1)))*var(--ts,1))}
.erow .what{margin-top:.5vh;color:var(--muted);font-size:calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1))}
.erow .enews{margin-top:.8vh;color:var(--text);font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}
.erow .enews span{color:var(--muted)}

/* Scores and weather */
body[data-scene=local]{--scene:#4fd1a5;--glow:rgba(79,209,165,.12)}
.local{display:grid;grid-template-columns:minmax(0,1fr) 30vw;gap:3vw;align-items:start}
.local.nowx,.local.noscores{grid-template-columns:minmax(0,1fr)}
.scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4vw;align-content:start}
.game{padding:1.8vh 1.2vw;border:1px solid var(--line);border-radius:12px;background:var(--panel);animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.game.in{border-color:var(--scene)}
.gl{display:flex;justify-content:space-between;gap:1vw;margin-bottom:1vh;color:var(--muted);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em}
.gl span{letter-spacing:0;font-weight:600;text-align:right}
.glive{color:var(--red)}.glive i{display:inline-block;width:.6em;height:.6em;margin-right:.4em;border-radius:50%;background:var(--red);animation:pulse 1.4s infinite}
.gt{display:flex;justify-content:space-between;align-items:baseline;gap:1vw;padding:.4vh 0;font-size:calc(clamp(14px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1));color:var(--muted)}
.gt.ours{color:var(--text);font-weight:700}
.gt b{font:800 calc(clamp(16px,3.4vh,calc(46px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.game.post .gt:not(.won) b{color:var(--muted)}
.gt.won b{color:var(--scene)}
.gnext{grid-column:1/-1;padding:1.6vh 1.2vw;border:1px dashed var(--line);border-radius:12px;animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.gnext h3{margin:0 0 1vh;color:var(--muted);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}
.gnext p{margin:.5vh 0;font-size:calc(clamp(12px,2.1vh,calc(28px*var(--big,1)))*var(--ts,1))}
.gnext p span{color:var(--muted)}
.wx{padding:2vh 1.6vw;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.wxnow{display:flex;align-items:baseline;gap:1vw}
.wxnow b{font:800 calc(clamp(30px,8vh,calc(110px*var(--big,1)))*var(--tsb,1))/1 ui-monospace,Consolas,monospace;color:var(--scene)}
.wxnow span{font-size:calc(clamp(13px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1))}
.wxplace{margin:.6vh 0 1.4vh;color:var(--muted);font-size:calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1))}
.wxp{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2vh 1vw;padding:1.1vh 0;border-top:1px solid var(--line);animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.wxp span{font-weight:700;font-size:calc(clamp(12px,2vh,calc(27px*var(--big,1)))*var(--ts,1))}
.wxp b{font:800 calc(clamp(14px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.wxp.night b{color:#9db7ff}
.wxp em{grid-column:1/-1;font-style:normal;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(24px*var(--big,1)))*var(--ts,1))}
.gcredit{grid-column:1/-1;margin-top:.6vh}

/* The flag stripe across the top of the screen */
body::before{content:"";flex:none;height:.6vh;background:linear-gradient(90deg,var(--flag-red) 0 33.4%,var(--flag-white) 33.4% 66.6%,var(--flag-blue) 66.6%)}

/* Items that weren't there the last time this scene showed: a tag in front of the headline */
.newtag{display:inline-block;vertical-align:.18em;margin-right:.45em;padding:.22em .45em;border-radius:.3em;background:var(--accent);color:var(--accent-ink);
  font:800 calc(max(.5em,1.1vh)*var(--ts,1))/1 ui-monospace,Consolas,monospace;letter-spacing:.1em;font-style:normal;box-shadow:0 0 1vh var(--accent);animation:pulse 1.6s 3}
@media (prefers-reduced-motion:reduce){.newtag{animation:none}}

/* Phone remote: its QR code, and what it has done to the rotation */
.remote-qr img{background:#fff}
#remote-state{font:800 calc(clamp(10px,1.5vh,calc(19px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;padding:.35em .7em;border-radius:.4em;background:var(--amber);color:#1b1203}
#remote-state[hidden]{display:none}
main>div.away.with-qr{padding-right:21vh}
#recap .remote-qr{right:5vw;bottom:3vh;width:14vh}

/* Following a breaking story: count and growth, latest outlets, rewrites, framing */
body[data-scene=follow]{--scene:#ff4d5e;--glow:rgba(255,77,94,.13)}
.follow{display:flex;flex-direction:column;flex:none}
.fl-k{display:flex;align-items:center;gap:.7em;color:var(--red);font:800 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}
.follow h1{margin:1.4vh 0 2.6vh;font-size:calc(clamp(22px,5vh,calc(66px*var(--big,1)))*var(--tsb,1));line-height:1.12}
.fl-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);gap:2.4vw;align-items:start}
.fl-grid.nowords{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
.fl-grid h3{margin:0 0 1.2vh;color:var(--muted);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.fl-n{display:flex;align-items:flex-end;gap:1vw}
.fl-n b{font:800 calc(clamp(40px,11vh,calc(150px*var(--big,1)))*var(--tsb,1))/.85 ui-monospace,Consolas,monospace;color:var(--text)}
.fl-n span{color:var(--muted);font-size:calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1));padding-bottom:.4vh}
.fl-n em{display:block;font-style:normal;color:var(--red);font-weight:700}
.fl-chart{position:relative;height:12vh;margin:2.2vh 0 3vh;border-bottom:1px solid var(--line)}
.fl-chart svg{display:block;width:100%;height:100%;overflow:visible}
.fl-chart .area{fill:rgba(255,77,94,.16)}
.fl-chart .line{fill:none;stroke:var(--red);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.fl-ticks span{position:absolute;top:100%;transform:translateX(-50%);margin-top:.5vh;color:var(--muted);font:600 calc(clamp(9px,1.3vh,calc(17px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.fl-first{margin:0 0 1vh;font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1));color:var(--muted)}.fl-first b{color:var(--text)}
.fl-count .meta{margin-top:0}
.fl-joined ol{list-style:none;margin:0;padding:0}
.fl-joined li{display:flex;gap:.8vw;padding:.9vh 0;border-bottom:1px solid var(--line);animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.fl-joined li>i{flex:none;width:.7em;height:.7em;margin-top:.45em;border-radius:50%;background:var(--unrated)}
.fl-joined li.left>i{background:var(--left)}.fl-joined li.center>i{background:var(--center)}.fl-joined li.right>i{background:var(--right)}
.fl-joined li div{min-width:0;font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}
.fl-joined li b{margin-right:.6em}.fl-joined li span{color:var(--muted);font:600 .8em ui-monospace,Consolas,monospace}
.fl-joined li em{font-style:normal;color:#c9d1e0;margin-top:.3vh;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.fl-words p{margin:0 0 1.6vh;font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1));line-height:1.3}
.fl-words b{display:block;color:var(--amber);font:700 .8em ui-monospace,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase}
.fl-words s{display:block;color:var(--muted);text-decoration-color:var(--red)}
.fl-words span:not(.fp){display:block}
.follow .trip{margin-top:3vh}

/* Coming up: next-day countdowns, then later votes */
body[data-scene=ahead]{--scene:#b18cff;--glow:rgba(177,140,255,.12)}
.arow .ecount{width:10vw}
.arow .ecount b{font-size:calc(clamp(16px,3.8vh,calc(50px*var(--big,1)))*var(--ts,1));white-space:nowrap}
.arow.close .ecount b{color:var(--amber)}
.arow.now .ecount b{color:var(--red);animation:pulse 1.4s infinite}
.akind{flex:none;padding:.25em .55em;border-radius:.3em;background:#1a2340;color:var(--scene);font:800 .5em ui-monospace,Consolas,monospace;letter-spacing:.12em}
.k-fed .akind{color:#7cf29a}.k-launch .akind{color:#ffb547}.k-game .akind{color:#4fd1a5}.k-polls .akind,.k-vote .akind{color:#ff7ac6}
.alater{display:flex;flex-wrap:wrap;align-items:baseline;gap:1vh 2.6vw;margin-top:1vh;animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.alater h3{margin:0;color:var(--muted);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.alater p{margin:0;display:flex;align-items:baseline;gap:.45em;font-size:calc(clamp(12px,2.1vh,calc(28px*var(--big,1)))*var(--ts,1))}
.alater p b{color:var(--scene);font:800 1.2em ui-monospace,Consolas,monospace}.alater p span,.alater p i{color:var(--muted);font-style:normal}

/* Close game card: top right, beside every scene, with the stage making room */
#gamecard{position:fixed;right:3vw;z-index:8;width:21vh;padding:1.4vh 1.2vh;border:1px solid var(--red);border-radius:1.2vh;background:#120a10e6;
  box-shadow:0 0 3vh rgba(255,59,59,.25);animation:fade .5s ease}
body.gamecard main{padding-right:calc(3vw + 23vh)}
body.gamecard main>div:not(.mapscene):not(.listscene){padding-right:0}
.gc-k{display:flex;align-items:center;gap:.5em;margin-bottom:.8vh;color:var(--red);font:800 calc(clamp(10px,1.5vh,calc(20px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em}
.gc-k i{width:.65em;height:.65em;border-radius:50%;background:var(--red);animation:pulse 1.4s infinite}
.gc-k span{margin-left:auto;color:var(--muted)}
.gc-t{display:flex;justify-content:space-between;gap:1vh;font-size:calc(clamp(13px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1));color:var(--muted)}
.gc-t.ours{color:var(--text);font-weight:700}
.gc-t b{font-family:ui-monospace,Consolas,monospace;color:var(--text)}
.gc-d{margin-top:.8vh;color:var(--amber);font:700 calc(clamp(11px,1.7vh,calc(22px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
@media (prefers-reduced-motion:reduce){#gamecard,.gc-k i,.arow.now .ecount b{animation:none}}

/* A small date beside a time that isn't today */
.when-day{margin-left:.3em;font-size:.72em;font-weight:600;color:var(--muted);letter-spacing:.02em}

/* FOREIGN tag after a non-U.S. outlet's name */
.fp{display:inline-block;margin-left:.35em;padding:.05em .4em;border:1px solid #2b3755;border-radius:.3em;color:var(--muted);font:700 .62em/1.4 ui-monospace,Consolas,monospace;letter-spacing:.08em;vertical-align:.15em;white-space:nowrap}

/* Map key: readable at a distance, swatches drawn like the marks on the map */
.mapside .key{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1vh 1.6vw;margin-top:1vh;padding:1.4vh 1.2vw;border:1px solid var(--line);border-radius:1vh;
  background:#0b1222cc;font:500 calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1))/1.2 system-ui,'Segoe UI',sans-serif;color:#d3dae8}
.mapside .key span{display:flex;align-items:center;gap:.6em;min-width:0}
.mapside .key span::before{content:none}
.key i{flex:none;width:1em;height:1em;border-radius:50%;background:var(--accent);box-shadow:0 0 0 .15em #04122e}
.key .k-breaking i{background:var(--red)}.key .k-developing i{background:var(--amber)}
.key .k-quake i{background:#ff8a3d}.key .k-weather i{background:#b07cff}
.key .k-red i,.key .k-orange i,.key .k-green i{width:.8em;height:.8em;margin:0 .1em;border-radius:.1em;transform:rotate(45deg)}
.key .k-red i{background:#ff3b3b}.key .k-orange i{background:#ffa63d}.key .k-green i{background:#7fd18f;width:.6em;height:.6em;margin:0 .2em}
.key .k-internet i{background:none;border:.15em dashed #9d8cff;box-shadow:none}
.key .k-ping i{background:none;border:.15em solid var(--accent);box-shadow:none;animation:pulse 1.6s infinite}
@media (prefers-reduced-motion:reduce){.key .k-ping i{animation:none}}

/* Outlets reporting different tolls */
.meta .differ{color:var(--amber);font-weight:700}

/* Local weather warning takeover */
#takeover.wx{background:radial-gradient(ellipse at 50% 30%,#2c0a3a 0,#0e0312 70%)}
#takeover.wx .tk-flash{background:#b04cff}
#takeover.wx .tk-kicker{color:#e2c4ff}
.tk-wx{margin-top:3vh;max-width:70vw;font-size:calc(clamp(14px,2.6vh,calc(36px*var(--big,1)))*var(--ts,1));line-height:1.35;color:#eadcf5}
.tk-wx p{margin:0 0 2vh}
.tk-wx .tk-act b{color:#ffd166}

/* Market move pop-up */
#alertbar.k-market.up{--tk:#3fd47a}#alertbar.k-market.down{--tk:#ff5c5c}

/* Night mode: a dark veil over everything but takeovers (z-index 10) */
body.night::after{content:"";position:fixed;inset:0;z-index:9;background:#000;opacity:.45;pointer-events:none}

/* Screen off (from the controller): black over everything; takeovers and messages still show */
body.screenoff::before{content:"";position:fixed;inset:0;height:auto;z-index:30;background:#000}
body.screenoff.tk-on::before{display:none}
/* A message sent from the controller */
#notice{position:fixed;left:50%;bottom:8vh;transform:translateX(-50%);z-index:31;max-width:80vw;padding:2.2vh 3.5vw;border-radius:2vh;
  background:#0f1526f2;border:.35vh solid #04f77a;box-shadow:0 2vh 6vh #000c;color:#eef2f8;font:700 calc(clamp(18px,4.2vh,calc(56px*var(--big,1)))*var(--ts,1))/1.25 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  text-align:center;animation:noticein .4s ease}
@keyframes noticein{from{opacity:0}to{opacity:1}}
#notice[hidden]{display:none}
.fp-in,.rlabel .fp-in,.tk-first .fp-in{margin:0;color:var(--muted);font:inherit;font-weight:400;letter-spacing:0;text-transform:none}
.tk-first .fp-in{color:#e8c4c4}
/* Header: every label stays on one line. When space runs short "up next" gives way first, and on a portrait screen
   the clock group moves under the brand instead of squeezing the pills. */
header{flex-wrap:wrap;gap:1vh 1.5vw}
.brand,.brand span,.brand em,#remote-state,#clock{white-space:nowrap}
.brand{flex-wrap:wrap;row-gap:1vh;min-width:0}
.brand em,#remote-state,#ring,#clock{flex:none}
.hud{min-width:0;flex:0 1 auto}
#upnext{min-width:0;flex:0 1 auto}
@media (max-aspect-ratio:1/1){#upnext{display:none !important}}

/* Team marks: the logo, or initials on the team's colour; the colour also edges the team's row */
.gt,.gc-t{align-items:center}
.gt>span,.gc-t>span{flex:1;min-width:0}
.gt{border-left:.35vw solid var(--tc,transparent);padding-left:.7vw;margin-left:-.7vw;border-radius:2px}
.tlogo,.tbadge{flex:none;width:1.45em;height:1.45em;object-fit:contain}
.tbadge{display:inline-grid;place-items:center;border-radius:50%;background:var(--tc,#24304a);color:#fff;font:800 .5em/1 ui-monospace,Consolas,monospace;font-style:normal;letter-spacing:-.04em;
  text-shadow:0 0 2px #000,0 0 1px #000,0 0 1px #000;box-shadow:inset 0 0 0 1px #ffffff2e}
.gt .tbadge{width:2.9em;height:2.9em}
.gc-t{gap:.5em;margin:.2vh 0}
.gc-t .tlogo{width:1.25em;height:1.25em}
.gc-t .tbadge{width:2.5em;height:2.5em}
/* Weather: a drawn sky for right now (moving gently), still drawings for the forecast */
.wx{position:relative;overflow:hidden}
.wx::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55}
.wx>*{position:relative}
.wx.sky-sun::before{background:radial-gradient(ellipse at 85% 0,#f6b84a2e 0,transparent 60%)}
.wx.sky-partly::before{background:radial-gradient(ellipse at 85% 0,#f6b84a1f 0,transparent 55%),radial-gradient(ellipse at 20% 0,#9fb3d61a 0,transparent 60%)}
.wx.sky-moon::before,.wx.sky-partlyn::before{background:radial-gradient(ellipse at 85% 0,#8ea6ff24 0,transparent 60%)}
.wx.sky-cloud::before,.wx.sky-fog::before,.wx.sky-wind::before{background:linear-gradient(180deg,#9fb3d61c,transparent 65%)}
.wx.sky-rain::before{background:linear-gradient(180deg,#4d8fe029,transparent 70%)}
.wx.sky-storm::before{background:linear-gradient(180deg,#8c5ae02e,transparent 70%)}
.wx.sky-snow::before{background:linear-gradient(180deg,#dbe8ff24,transparent 70%)}
.wxnow{align-items:center;gap:1.2vw}
.wxnow>div{display:flex;flex-direction:column;gap:.6vh;min-width:0}
.wxi{flex:none;display:inline-block;line-height:0}
.wxi.live{width:clamp(48px,11vh,calc(150px*var(--big,1)));height:clamp(48px,11vh,calc(150px*var(--big,1)))}
.wxp{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.wxp .wxi{grid-row:1/3;width:clamp(24px,4.6vh,calc(62px*var(--big,1)));height:clamp(24px,4.6vh,calc(62px*var(--big,1)));margin-right:.2vw}
.wxp em{grid-column:2/-1}
.wi{width:100%;height:100%;overflow:visible}
.wi *{transform-box:view-box}
.wi-cloud{fill:#c9d4e8;stroke:#0c1222;stroke-width:2}
.wi-sun circle{fill:#f6b84a}
.wi-rays line{stroke:#f6b84a;stroke-width:3;stroke-linecap:round}
.wi-moon path{fill:#c8d3ff}
.wi-star{fill:#c8d3ff}
.wi-rain line{stroke:#6aa8ff;stroke-width:3;stroke-linecap:round}
.wi-snow circle{fill:#eef4ff}
.wi-bolt{fill:#ffd44a}
.wi-fog line,.wi-wind path{fill:none;stroke:#b7c3d9;stroke-width:3.5;stroke-linecap:round}
.wi-cloud,.wi-rain,.wi-snow,.wi-bolt{will-change:auto}
.live .wi-rays{transform-origin:32px 32px;animation:wi-spin 40s linear infinite}
.live .wi-partly .wi-rays{transform-origin:24px 24px}
.live .wi-drift{animation:wi-drift 7s ease-in-out infinite alternate}
.live .wi-star{animation:wi-twinkle 3.2s ease-in-out infinite}
.live .wi-star.s2{animation-delay:1.6s}
.live .wi-rain line,.live .wi-snow circle{animation:wi-fall 1.3s linear infinite}
.live .wi-snow circle{animation-duration:3.4s}
.live .wi-rain line:nth-child(2),.live .wi-snow circle:nth-child(2){animation-delay:-.45s}
.live .wi-rain line:nth-child(3),.live .wi-snow circle:nth-child(3){animation-delay:-.9s}
.live .wi-snow circle:nth-child(2){animation-delay:-1.2s}
.live .wi-snow circle:nth-child(3){animation-delay:-2.3s}
.live .wi-bolt{animation:wi-flash 5s ease-in-out infinite}
.live .wi-fog line{animation:wi-slide 6s ease-in-out infinite alternate}
.live .wi-fog line:nth-child(2){animation-delay:-2s}
.live .wi-wind path{animation:wi-slide 3s ease-in-out infinite alternate}
.live .wi-wind path:nth-child(2){animation-delay:-1s}
@keyframes wi-spin{to{transform:rotate(360deg)}}
@keyframes wi-drift{from{transform:translateX(-2px)}to{transform:translateX(3px)}}
@keyframes wi-twinkle{50%{opacity:.25}}
@keyframes wi-fall{0%{transform:translateY(-5px);opacity:0}25%{opacity:1}80%{opacity:1}100%{transform:translateY(5px);opacity:0}}
@keyframes wi-flash{0%,82%,90%,100%{opacity:1}86%,94%{opacity:.25}}
@keyframes wi-slide{from{transform:translateX(-3px)}to{transform:translateX(3px)}}
body.wxstill .wxi *,body.night .wxi *{animation:none !important}

/* --- Look: themes, an accent colour and moods (applyLook in tv.js). Themes set the page's few colours; panels use
   --panel. A picked accent colour re-tints the accent things and every scene's glow, never the alert colours. --- */
#clock small{font-size:.6em;color:var(--muted);margin-left:.7em;font-weight:500}
#rain{position:fixed;inset:0;width:100%;height:100%;opacity:.13;pointer-events:none}
:root[data-theme=newsroom]{--bg:#060a14;--text:#eef2f8;--muted:#8892a8;--accent:#4f8dff;--accent-ink:#04122e;--line:#1f2940;--panel:#0c1222;--haze:transparent}
:root[data-theme=terminal]{--bg:#020603;--text:#dcf7e2;--muted:#7a9a82;--accent:#00ff41;--accent-ink:#001a08;--line:#142619;--panel:#0b160d;--haze:#062a10}
[data-theme=terminal] body{font-family:ui-monospace,"Cascadia Code",Consolas,monospace}
[data-theme=terminal] h1{letter-spacing:-.03em}
[data-theme=terminal] body,[data-theme=terminal] body[data-scene]{--scene:var(--accent);--glow:rgba(0,255,65,.07)}
:root[data-theme=midnight]{--bg:#000;--text:#a7aebb;--muted:#5d6473;--accent:#5b72a6;--accent-ink:#e6ebf5;--line:#141821;--panel:#05070b;--haze:transparent}
[data-theme=midnight] body,[data-theme=midnight] body[data-scene]{--glow:rgba(91,114,166,.05)}
[data-theme=midnight] h1{font-weight:700}
[data-theme=midnight] .badge,[data-theme=midnight] .qr{opacity:.8}
:root[data-theme=synthwave]{--bg:#10041f;--text:#fdeeff;--muted:#b896d6;--accent:#ff3fd2;--accent-ink:#1a0322;--line:#3d1b60;--panel:#1b0a34;--haze:#3a0a5a}
[data-theme=synthwave] body{background:linear-gradient(to top,rgba(255,63,210,.18),transparent 38%),radial-gradient(ellipse at 100% 100%,var(--glow) 0,transparent 55%),radial-gradient(ellipse at 50% 0%,rgba(63,243,255,.12),transparent 55%),var(--bg)}
[data-theme=synthwave] body,[data-theme=synthwave] body[data-scene]{--glow:rgba(255,63,210,.14)}
[data-theme=synthwave] h1{text-shadow:0 0 .45em rgba(255,63,210,.5)}
[data-theme=synthwave] .brand b,[data-theme=synthwave] #clock{color:#3ff3ff;text-shadow:0 0 .6em rgba(63,243,255,.6)}
:root[data-theme=contrast]{--bg:#000;--text:#fff;--muted:#e8e8e8;--accent:#fff;--accent-ink:#000;--line:#8c8c8c;--panel:#000;--haze:transparent}
[data-theme=contrast] body,[data-theme=contrast] body[data-scene]{--scene:#fff;--glow:transparent}
[data-theme=contrast] body{background:#000}
[data-theme=contrast] h1{font-weight:900}
[data-theme=contrast] .meta,[data-theme=contrast] .outlets,[data-theme=contrast] .change{font-size:calc(clamp(17px,3.1vh,calc(42px*var(--big,1)))*var(--ts,1));color:#fff}
[data-theme=contrast] .rank{color:#fff;font-size:calc(clamp(18px,3vh,calc(40px*var(--big,1)))*var(--ts,1))}
[data-theme=contrast] #crawl{background:#000;border-top:2px solid #fff;font-size:calc(clamp(16px,2.8vh,calc(36px*var(--big,1)))*var(--ts,1))}
:root[data-theme=paper]{--bg:#f2ecdf;--text:#1d1913;--muted:#6a6052;--accent:#1f4f8f;--accent-ink:#fff;--line:#d6cab3;--panel:#fbf7ee;--haze:transparent;
  --red:#c8102e;--amber:#99580a;--blue:#1f5fa8;--green:#1c7a43}
[data-theme=paper] body,[data-theme=paper] body[data-scene]{--scene:var(--accent);--glow:rgba(140,100,40,.08)}
[data-theme=paper] h1,[data-theme=paper] .listscene .title{font-family:Georgia,"Iowan Old Style","Times New Roman",serif;font-weight:700;letter-spacing:0}
[data-theme=paper] .mtile,[data-theme=paper] .game,[data-theme=paper] .wx{box-shadow:0 .3vh 1vh rgba(60,40,10,.08)}
[data-theme=paper] #crawl{background:#e8dfcd}
[data-theme=paper] #crawl b#crawl-label{background:var(--accent);color:#fff}
[data-theme=paper] .badge.developing{background:#f1ddb5}
[data-theme=paper] .qr img{background:#fff}
[data-theme=paper] .brand em{color:#fff}
/* moods */
[data-mood=calm] .fade{animation-duration:1.4s}
[data-mood=ambient] #crawl,[data-mood=ambient] .outlets{display:none!important}
[data-mood=ambient] h1{font-size:calc(clamp(34px,8.6vh,calc(124px*var(--big,1)))*var(--tsb,1))}
/* a picked accent colour, last so it wins over the theme's */
.accented body,.accented body[data-scene]{--scene:var(--accent);--glow:var(--accent-glow)}
[data-theme=paper] .badge.us,[data-theme=paper] .badge.tilt.left{background:#dce6f4}
[data-theme=paper] .badge.blind{background:#ecdff7;color:#6a2b9a}
[data-theme=paper] .badge.tilt{background:#e6e0d2}
[data-theme=paper] .badge.tilt.everyone{background:#dbe5f5}
[data-theme=paper] .kicker .rank{color:var(--muted)}
[data-theme=paper] #crawl b#crawl-label{background:var(--accent)}
[data-theme=paper] #ab-lead{color:var(--text)}[data-theme=paper] .ac.on b{text-shadow:none}
[data-theme=paper]{--center:#77705f;--unrated:#cfc4ae}[data-theme=paper] .meta .absent{color:var(--muted)}
[data-theme=paper] .meta .absent b{color:var(--text)}

/* --- live coverage: a cable-news look while a big event is live (not on the high-contrast theme) --- */
:root[data-live]:not([data-theme=contrast]):not([data-theme=paper]){--bg:#040a1c;--panel:#0a1430;--line:#1d2c55;--accent:#ff3040;--accent-ink:#fff;--haze:#2a0612}
:root[data-live]:not([data-theme=contrast]):not([data-theme=paper]) body{background:radial-gradient(120% 70% at 50% 0%,#0d1c46 0%,var(--bg) 60%)}
#crawl.live{background:#0b1736;border-top-color:#e0101e;color:#fff}
#crawl.live b#crawl-label{background:#e0101e;color:#fff}
#crawl.live .ci b{color:#ff8f8f}
.lv-k{display:flex;align-items:center;gap:1em;color:#ff5a66;font:800 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}
.lv-tag{display:inline-flex;align-items:center;gap:.5em;padding:.25em .7em;border-radius:.3em;background:#e0101e;color:#fff}
.lv-tag .livedot{background:#fff;box-shadow:0 0 .6em #fff}
.live-hub,.live-feed,.live-who{display:flex;flex-direction:column;flex:none}
.live-hub h1{margin:1.4vh 0 2.4vh;font-size:calc(clamp(22px,5.4vh,calc(72px*var(--big,1)))*var(--tsb,1));line-height:1.1}
.live-feed h2,.live-who h2{margin:1.2vh 0 2.2vh;font-size:calc(clamp(18px,3.4vh,calc(46px*var(--big,1)))*var(--ts,1));line-height:1.15}
.lv-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.4vw;margin-bottom:2.6vh}
.lv-stats div{padding:1.4vh 1.2vw;border-radius:1vh;background:var(--panel);border-left:.5vh solid #e0101e}
.lv-stats b{display:block;font-size:calc(clamp(20px,5vh,calc(64px*var(--big,1)))*var(--tsb,1));line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-stats span{color:var(--muted);font-size:calc(clamp(11px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1))}
.lv-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:2.4vw;margin-bottom:2.2vh}
.lv-grid.nodevs{grid-template-columns:1fr}
.lv-grid h3{margin:0 0 1.2vh;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(22px*var(--big,1)))*var(--ts,1));letter-spacing:.14em;text-transform:uppercase}
.lv-latest ol,.lv-list{list-style:none;margin:0;padding:0}
.lv-latest li,.lv-list li{display:grid;grid-template-columns:auto auto 1fr;gap:1vw;align-items:baseline;padding:1vh 0;border-bottom:1px solid var(--line);
  animation:rise .5s both;animation-delay:var(--d,0ms)}
.lv-latest li time,.lv-list li time{color:#ff5a66;font:700 calc(clamp(11px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.lv-latest li>i,.lv-list li>i{width:.7em;height:.7em;border-radius:50%;background:var(--unrated);align-self:center}
li.left>i{background:var(--left)}li.center>i{background:var(--center)}li.right>i{background:var(--right)}
.lv-latest b,.lv-list b{display:block;font-size:calc(clamp(11px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1));color:var(--muted)}
.lv-latest span{font-size:calc(clamp(13px,2.5vh,calc(32px*var(--big,1)))*var(--ts,1));line-height:1.2}
.lv-list span{font-size:calc(clamp(14px,2.8vh,calc(36px*var(--big,1)))*var(--ts,1));line-height:1.2}
.lv-latest b .fp,.lv-list b .fp{font-size:.62em;margin-left:.5em;vertical-align:.15em}
.lv-blog{margin-left:.7em;padding:.05em .45em;border-radius:.25em;background:#e0101e;color:#fff;font-style:normal;font-size:.75em;font-weight:800;letter-spacing:.08em}
.lv-devs p{margin:0 0 1.4vh;padding:1.2vh 1vw;border-radius:.8vh;background:var(--panel)}
.lv-devs b{display:block;color:var(--amber);font-size:calc(clamp(13px,2.4vh,calc(30px*var(--big,1)))*var(--ts,1))}
.lv-devs span{color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(22px*var(--big,1)))*var(--ts,1))}
.lv-who{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2vh 1.4vw}
.lv-who div{display:flex;flex-wrap:wrap;align-items:center;gap:.2em .6em;min-width:0;padding:1.1vh 1vw;border-radius:.8vh;background:var(--panel);
  font-size:calc(clamp(12px,2.2vh,calc(28px*var(--big,1)))*var(--ts,1));animation:rise .4s both;animation-delay:var(--d,0ms)}
.lv-who div>i{flex:none;width:.7em;height:.7em;border-radius:50%;background:var(--unrated)}
.lv-who .left>i{background:var(--left)}.lv-who .center>i{background:var(--center)}.lv-who .right>i{background:var(--right)}
.lv-who b{flex:1;min-width:0;line-height:1.15;hyphens:auto}
.lv-who em{flex:none;padding:.05em .4em;border-radius:.25em;background:#fff;color:#c00010;font-style:normal;font-size:.7em;font-weight:900}
.lv-who span{flex:0 0 100%;padding-left:1.3em;color:var(--muted);font-size:.75em}
.lv-who .wire{outline:1px solid #ffffff55}
.lv-more{margin:2vh 0 0;color:var(--muted);font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}
@media (max-width:900px),(max-aspect-ratio:4/3){
  .lv-stats{grid-template-columns:repeat(2,1fr)}.lv-grid{grid-template-columns:1fr}.lv-who{grid-template-columns:repeat(2,1fr)}
  #crawl-hold .ch-m{display:none}}
@media (prefers-reduced-motion:reduce){.lv-latest li,.lv-list li,.lv-who div{animation:none}}
[data-theme=paper] #crawl.alert{background:#1e0407}[data-theme=paper] #crawl.live{background:#0b1736}
[data-theme=paper] #crawl.alert b#crawl-label,[data-theme=paper] #crawl.live b#crawl-label{background:#c8101c}

/* the crawl held on a story that just broke: headline and first report, standing still for five minutes */
#crawl-hold{flex:1;min-width:0;display:flex;align-items:center;height:100%;overflow:hidden}
#crawl-hold[hidden],#crawl.holding .track{display:none}
#crawl-hold .ch-h{flex:1;min-width:0;padding:0 1em;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:chin .55s cubic-bezier(.2,.8,.2,1) both}
#crawl-hold .ch-m{flex:none;padding:0 1.2em;font-size:.72em;font-weight:600;color:#ffc9ce;white-space:nowrap;animation:chin .55s .25s cubic-bezier(.2,.8,.2,1) both}
#crawl.live #crawl-hold .ch-m{color:#b9c8ee}
#crawl-hold.out{animation:chout .45s both}
@keyframes chin{from{opacity:0;transform:translate3d(0,80%,0)}}
@keyframes chout{to{opacity:0;transform:translate3d(0,-60%,0)}}
#crawl .ck{margin:0 .2em 0 .5em;padding:.05em .4em;border:1px solid #ffb54788;border-radius:.3em;color:#ffcf85;font:700 .6em/1.4 ui-monospace,Consolas,monospace;letter-spacing:.08em;vertical-align:.2em;font-style:normal}
@media (prefers-reduced-motion:reduce){#crawl-hold .ch-h,#crawl-hold .ch-m,#crawl-hold.out{animation:none}}

/* --- who's not covering it, the numbers don't match, by the numbers, map flyover, the House floor --- */
body[data-scene=absent]{--scene:#ffb05c;--glow:rgba(255,176,92,.12)}
body[data-scene=disagree]{--scene:#ff6b6b;--glow:rgba(255,107,107,.12)}
body[data-scene=number]{--scene:#ffd23f;--glow:rgba(255,210,63,.13)}
body[data-scene=flyover]{--scene:#3fd4f5;--glow:rgba(63,212,245,.13)}
body[data-scene=congress]{--scene:#9fb8ff;--glow:rgba(159,184,255,.12)}
.gone,.dis,.vote,.floorweek li,.nsm{animation:rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.listscene .gone{margin-bottom:3vh}
.gone .sub{display:flex;flex-wrap:wrap;align-items:center;gap:.5em .9em;margin-top:1vh;font-size:calc(clamp(13px,2.2vh,calc(30px*var(--big,1)))*var(--ts,1))}
.gone .have{color:var(--muted)}
.gone .not{color:#ffb05c;font:700 .8em ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.gone b{padding:.15em .6em;border-radius:.4em;border:1px solid currentColor;font-weight:700;opacity:.9}
.gone b.left{color:#6aa8ff}.gone b.center{color:#c9d2cd}.gone b.right{color:#ff7b7b}
.listscene .dis{margin-bottom:3.4vh}
.dline{display:flex;align-items:baseline;gap:1.4vw;margin-top:1.2vh}
.dk{min-width:6em;color:var(--muted);font:700 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.dn b{display:block;font:800 calc(clamp(28px,6.5vh,calc(90px*var(--big,1)))*var(--tsb,1)) ui-monospace,Consolas,monospace;line-height:1;color:var(--text)}
.dn.hi b{color:#ff6b6b}
.dn small{display:block;margin-top:.4vh;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(24px*var(--big,1)))*var(--ts,1))}
.dvs{color:var(--muted);font-size:calc(clamp(14px,2.4vh,calc(32px*var(--big,1)))*var(--ts,1))}
.dis .sub{margin-top:1vh;color:var(--muted);font-size:calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1))}
.numscene{display:flex;flex-direction:column;justify-content:center;gap:2.2vh;height:100%;max-width:88vw}
.bignum{font:900 calc(clamp(60px,19vh,calc(270px*var(--big,1)))*var(--tsb,1)) ui-monospace,"Cascadia Code",Consolas,monospace;letter-spacing:-.04em;line-height:.95;color:#ffd23f;white-space:nowrap;
  animation:numin .9s cubic-bezier(.2,.8,.2,1) both}
.bignum em{font-style:normal;font-size:.42em;letter-spacing:-.01em;margin-left:.3em}
.bignum small{display:block;margin-top:.6vh;font-size:.28em;letter-spacing:0;color:var(--text);font-weight:700}
@keyframes numin{from{opacity:0;transform:scale(.85);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
.numwhat{font-size:calc(clamp(18px,3.6vh,calc(48px*var(--big,1)))*var(--ts,1));font-weight:700;line-height:1.25;max-width:70vw}
.numwhat mark{background:none;color:#ffd23f}
.numsub{color:var(--muted);font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}
.nummore{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2vw;margin-top:2vh;padding-top:2.4vh;border-top:1px solid var(--line)}
.nsm b{display:block;font:800 calc(clamp(18px,4vh,calc(54px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;color:var(--text)}
.nsm span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:.6vh;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(24px*var(--big,1)))*var(--ts,1));line-height:1.3}
.flyscene{display:flex;gap:2.5vw;align-items:center;height:100%;padding:2vh 0;min-height:0}
.flyscene .map{flex:2.3;min-width:0;max-height:74vh;width:100%;overflow:hidden;background:radial-gradient(circle at 50% 50%,rgba(63,212,245,.07),transparent 60%);
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 60%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 60%,transparent 100%)}
.fly{transform-origin:0 0}
.fly.go{transition:transform 5s cubic-bezier(.45,0,.15,1) .5s}
.flyscene .land,.flyscene .borders,.flyscene .states{vector-effect:non-scaling-stroke;stroke-width:1}
.fdot{fill:var(--muted);fill-opacity:.55}.fdot.breaking{fill:var(--red)}.fdot.developing{fill:var(--amber)}
.flyside{flex:1;min-width:0;display:flex;flex-direction:column;gap:1.4vh;animation:rise .6s cubic-bezier(.2,.8,.2,1) 2.4s both}
.flyside .place{color:#3fd4f5;font:800 calc(clamp(18px,4.4vh,calc(60px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase}
.flyside .title{font-size:calc(clamp(16px,3.2vh,calc(44px*var(--big,1)))*var(--ts,1));font-weight:700;line-height:1.2}
.flyside .sub{color:var(--muted);font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}
.flyside ul{margin:1vh 0 0;padding:1.4vh 0 0 1.2em;border-top:1px solid var(--line);color:var(--muted);font-size:calc(clamp(12px,1.9vh,calc(24px*var(--big,1)))*var(--ts,1));line-height:1.3}
.flyside li{margin-bottom:.8vh}
.congress.two{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:3vw;align-items:start}
.congress .mcredit{grid-column:1/-1}
.congress h3{margin:0 0 1.6vh;color:var(--muted);font:700 calc(clamp(11px,1.8vh,calc(24px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase}
.vote{display:flex;gap:1.4vw;align-items:flex-start;margin-bottom:2.6vh}
.vres{flex:none;width:7.2em;text-align:center}
.vres b{display:block;padding:.3em 0;border-radius:.35em;font:800 calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em;background:#13351f;color:var(--green)}
.vote.fail .vres b{background:#3a1212;color:var(--red)}
.vres span{display:block;margin-top:.6vh;font:700 calc(clamp(14px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace}
.vote .title{font-size:calc(clamp(15px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1))}
.vote .what{margin-top:.4vh;color:var(--muted);font-size:calc(clamp(11px,1.8vh,calc(23px*var(--big,1)))*var(--ts,1))}
.vbar{width:100%;height:1.3vh;margin-top:1.2vh}
.vbar .ry{background:#e8555a}.vbar .dy{background:#4f8dff}.vbar .dn{background:rgba(79,141,255,.35)}.vbar .rn{background:rgba(232,85,90,.35)}
.vparty{display:flex;gap:1.6vw;margin-top:.6vh;font-size:calc(clamp(11px,1.8vh,calc(23px*var(--big,1)))*var(--ts,1))}
.vparty .r{color:#ff8a8e}.vparty .d{color:#8fb4ff}
.floorweek ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.5vh}
.floorweek li{font-size:calc(clamp(13px,2.2vh,calc(29px*var(--big,1)))*var(--ts,1));line-height:1.3}
.floorweek li b{display:block;color:#9fb8ff;font:700 .75em ui-monospace,Consolas,monospace;letter-spacing:.06em}
.floorweek li em{margin-left:.6em;padding:.1em .5em;border-radius:.3em;background:#1b2550;color:#c9d6ff;font:700 .6em ui-monospace,Consolas,monospace;font-style:normal;letter-spacing:.08em;text-transform:uppercase;vertical-align:middle}
[data-theme=paper] .bignum,[data-theme=paper] .numwhat mark{color:#9a6a00}
[data-theme=paper] .vres b{background:#d9f0e0}[data-theme=paper] .vote.fail .vres b{background:#f6dada}
[data-theme=paper] .floorweek li em{background:#dbe5f5;color:#1f3f7a}
@media (max-aspect-ratio:1/1){.flyscene{flex-direction:column}.congress.two{grid-template-columns:1fr}.nummore{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.gone,.dis,.vote,.floorweek li,.nsm,.bignum,.flyside{animation:none}.fly.go{transition:none}}

/* the station mark, as on every channel: under the clock's right edge, level with the scene dots above the crawl */
body .lab-mark.lab-tv{bottom:6.4vh}
html:is([data-theme=network],[data-theme=edition]) body .lab-mark.lab-tv{bottom:5.4vh}

/* the wordmark, as on Electiondesk and Civicdesk TV: icon, NEWS/TECH + DESK, a live status badge */
@font-face{font-family:"Barlow Condensed";src:url("/fonts/display.ttf") format("truetype");font-weight:700 900;font-display:swap}
.brand .logo{display:flex;align-items:center;gap:.08em;font:800 calc(clamp(18px,3.5vh,calc(47px*var(--big,1)))*var(--ts,1))/1 "Barlow Condensed","Arial Narrow",system-ui,sans-serif;letter-spacing:.05em}
.brand .logo svg{width:1em;height:1em;margin-right:.3em;color:var(--accent);filter:drop-shadow(0 0 .25em color-mix(in srgb,var(--accent) 55%,transparent))}
.brand .logo svg .f{fill:currentColor}.brand .logo svg .s{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* the name as on statesig.tv: the first word white, DESK in the desk's own colour */
.brand .logo b{color:var(--text);font-weight:800;text-shadow:none}.brand .logo>span{color:#3987e5;filter:brightness(1.3) saturate(1.1)}
.brand .logo i{display:flex;align-items:center;gap:.45em;font-style:normal;font-size:.5em;letter-spacing:.12em;margin-left:.7em;padding:.3em .55em;border-radius:.25em;
  background:var(--badge,var(--accent));color:var(--badge-ink,var(--accent-ink))}
.brand .logo i[hidden]{display:none}
.brand .logo i.live{--badge:color-mix(in srgb,var(--text) 14%,transparent);--badge-ink:var(--text)}
.brand .logo i.live::before,.brand .logo i.breaking::before{content:"";width:.6em;height:.6em;border-radius:50%;background:#ff3b3b;animation:badge-pulse 1.6s ease-in-out infinite}
.brand .logo i.breaking{--badge:#e63946;--badge-ink:#fff}.brand .logo i.breaking::before{background:#fff}
.brand .logo i.level{--badge-ink:#06110a}
@keyframes badge-pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.brand .logo i::before{animation:none}}
body[data-public="1"] #fullscreen{display:none}

/* The infographic scenes, drawn by gfx.py. */
body main>div.gx.gx{flex:1;min-height:0;display:flex;padding:0}
.gx svg{width:100%;height:100%;display:block}
.gx .d{font-family:"Barlow Condensed",system-ui,sans-serif}
.gx .t{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.gx .m{font-family:ui-monospace,Consolas,monospace}
body[data-scene^="gx-"] #alertbar{display:none!important}
.fp.fp-state{color:#ffc247;border-color:#7a5c17}
.fp.fp-ai{color:#b9d0ff;border-color:#3b5a9a}
.ai-note{margin-top:.5em;color:var(--muted);font:700 calc(clamp(12px,1.5vh,calc(20px*var(--big,1)))*var(--ts,1))/1.3 ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
#crawl.alert .fp.fp-state,#crawl.live .fp.fp-state{color:#ffd77a;border-color:#ffc24780}

/* --- Official looks: Network by day, Evening Edition at night (tv.js, wantedTheme) --- */
@font-face{font-family:"Newsdesk Text";src:url("/fonts/text.woff2") format("woff2");font-weight:400 500;font-display:swap}
@font-face{font-family:"Newsdesk Text";src:url("/fonts/text-semibold.woff2") format("woff2");font-weight:600 800;font-display:swap}
@font-face{font-family:"Newsdesk Serif";src:url("/fonts/serif-regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Newsdesk Serif";src:url("/fonts/serif-bold.woff2") format("woff2");font-weight:600 900;font-display:swap}
:root[data-theme=network]{--bg:#0a1834;--text:#f4f6fa;--muted:#a9b6cf;--accent:#fff;--accent-ink:#0a1834;--panel:#102347;--line:#2a3f6b;--haze:transparent;--amber:#f2c14e;--blue:#9cc3ff;
 --left:#5e9bff;--center:#b4bdcf;--right:#ff6b6b;--red:#c8102e;--f-head:"Barlow Condensed","Newsdesk Text",sans-serif;--head-track:0;
 --tk-bg:#0a1834;--tk-sub:#ffd2d8;--tk-mid:#c9d3e6;--tk-track:#2a3f6b;--tk-flash:#c8102e;
 --gx-bg:#0a1834;--gx-panel:#102347;--gx-line:#2a3f6b;--gx-brand:#6ea6ff;--gx-ink:#f4f6fa;--gx-mid:#c3cde0;--gx-dim:#a9b6cf;--gx-deep:#14294f}
:root[data-theme=edition]{--bg:#0f1622;--text:#f2f0ea;--muted:#a3acbb;--accent:#b9cbe4;--accent-ink:#0f1622;--panel:#0f1622;--line:#2f3a4d;--haze:transparent;--amber:#e4bd6a;--blue:#b9cbe4;
 --left:#6ea4f5;--center:#aeb5c2;--right:#f07a72;--red:#a81c26;--f-head:"Newsdesk Serif",Georgia,serif;--head-track:-.01em;
 --tk-bg:#2a0d11;--tk-sub:#f3c3bd;--tk-mid:#dcc9c5;--tk-track:#5b2a2e;--tk-flash:#a81c26;
 --gx-bg:#0f1622;--gx-panel:#161f2e;--gx-line:#2f3a4d;--gx-brand:#b9cbe4;--gx-ink:#f2f0ea;--gx-mid:#c7cbd3;--gx-dim:#a3acbb;--gx-deep:#1a2434}
:is([data-theme=network],[data-theme=edition]) body,:is([data-theme=network],[data-theme=edition]) body[data-scene]{--glow:transparent;--scene:var(--accent);background:var(--bg);font-family:"Newsdesk Text",system-ui,sans-serif}
:is([data-theme=network],[data-theme=edition]) body::before{display:none}
:is([data-theme=network],[data-theme=edition]) :is(.brand,#clock,.rank,.badge,#upnext span,#crawl-label,.ac b,.ac span,.ab-k,#ab-state,#alertbar,.tside,.rlabel,.tick,.fp,.num,.bignum,.bignum small,.tk-flash span,.tk-kicker,.tk-count b,.tk-count span,.tk-first b,#brand-badge,.key,.ci b,#ab-lead,.change b,.rlabel span,.dk,.dn b,.ecount b,.alater h3,.alater b,.floorweek h3,.side,.place,.gl,.gl span,.tbadge,.mtile b,.mtile em,.nsm b,.sday,.sday small,.not,.strend,.akind,.when-day,.kicker em,.rlabel b,.rlabel em,.floorweek b){font-family:"Newsdesk Text",system-ui,sans-serif}
:is([data-theme=network],[data-theme=edition]) :is(#clock,.rank,.tick,.bignum,.num,.ac b,.tk-count b){font-variant-numeric:tabular-nums}
:is([data-theme=network],[data-theme=edition]) :is(h1,.listscene .title,.numwhat,.tsaid){font-family:var(--f-head);letter-spacing:var(--head-track)}
:is([data-theme=network],[data-theme=edition]) h1{font-weight:700}
:is([data-theme=network],[data-theme=edition]) :is(#section,#upnext,.badge,#alertbar,#brand-badge,.fp){border-radius:0}
:is([data-theme=network],[data-theme=edition]) .ac.on b{text-shadow:none}
:is([data-theme=network],[data-theme=edition]) :is(#alertbar,#alertbar.toasting){box-shadow:none}
:is([data-theme=network],[data-theme=edition]) :is(.ab-k,.badge,#crawl-label,.tside,#upnext span){letter-spacing:.08em}
:is([data-theme=network],[data-theme=edition]) #ring .rf{stroke-linecap:butt}
:is([data-theme=network],[data-theme=edition]) #upnext{background:transparent;border:0}
:is([data-theme=network],[data-theme=edition]) .gx .d{font-family:var(--f-head)}
:is([data-theme=network],[data-theme=edition]) .gx :is(.t,.m){font-family:"Newsdesk Text",system-ui,sans-serif}
/* The drawings carry their colours as attributes; a stylesheet rule outranks those. */
.gx [fill="#060a14"]{fill:var(--gx-bg,#060a14)}.gx [stroke="#060a14"]{stroke:var(--gx-bg,#060a14)}
.gx [fill="#0c1222"]{fill:var(--gx-panel,#0c1222)}.gx [stroke="#0c1222"]{stroke:var(--gx-panel,#0c1222)}
.gx [fill="#232c44"]{fill:var(--gx-line,#232c44)}.gx [stroke="#232c44"]{stroke:var(--gx-line,#232c44)}
.gx [fill="#4f8dff"]{fill:var(--gx-brand,#4f8dff)}.gx [stroke="#4f8dff"]{stroke:var(--gx-brand,#4f8dff)}
.gx [fill="#eef2f8"]{fill:var(--gx-ink,#eef2f8)}.gx [stroke="#eef2f8"]{stroke:var(--gx-ink,#eef2f8)}
.gx [fill="#b7c1d6"]{fill:var(--gx-mid,#b7c1d6)}.gx [stroke="#b7c1d6"]{stroke:var(--gx-mid,#b7c1d6)}
.gx [fill="#8892a8"]{fill:var(--gx-dim,#8892a8)}.gx [stroke="#8892a8"]{stroke:var(--gx-dim,#8892a8)}
.gx [fill="#141c30"]{fill:var(--gx-deep,#141c30)}.gx [stroke="#141c30"]{stroke:var(--gx-deep,#141c30)}
/* A plain breaking takeover; story updates and weather alerts keep their own amber and purple. */
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx){background:var(--tk-bg)}
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx) .tk-flash{background:var(--tk-flash)}
:is([data-theme=network],[data-theme=edition]) #takeover .tk-flash span{letter-spacing:.04em;animation:none}
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx) :is(.tk-kicker,.tk-count span,.tk-first b,.rlabel b){color:var(--tk-sub)}
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx) :is(.meta,.outlets,.tk-count em,.tk-first span){color:var(--tk-mid)}
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx) .tk-progress{background:var(--tk-track)}
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx) .rline{border-bottom-color:var(--tk-track)}
:is([data-theme=network],[data-theme=edition]) #takeover:not(.followed):not(.wx) .tcol.center{--c:var(--tk-mid)}
/* Network: the bar across the top and a white crawl, which goes dark again for alerts */
[data-theme=network] header{background:#132b5a;padding:1.3vh 3vw;border-bottom:.45vh solid #c8102e}
[data-theme=network] .brand .logo :is(b,span){color:#fff}
[data-theme=network] .logo svg{color:#fff}
[data-theme=network] #section{background:#fff;color:#0a1834;font-weight:700}
[data-theme=network] #upnext{border-left:1px solid #4a6193}
[data-theme=network] #upnext span{color:#ffd2d8}
[data-theme=network] #alertbar{margin:0;border:0;border-bottom:1px solid var(--line);background:#0e2044}
[data-theme=network] #crawl:not(.alert):not(.live):not(.holding){background:#f4f6fa;color:#0a1834;border-top:0}
[data-theme=network] #crawl b#crawl-label{background:#c8102e;color:#fff}
[data-theme=network] #crawl:not(.alert):not(.live):not(.holding) .ci b{color:#33415f}
[data-theme=network] #crawl:not(.alert):not(.live):not(.holding) .fp{color:#44506a;border-color:#a6b0c4}
[data-theme=network] #crawl:not(.alert):not(.live):not(.holding) .fp.fp-state{color:#7a5300;border-color:#b58a2c}
/* Evening Edition: rules instead of panels, section names in quiet capitals */
[data-theme=edition] header{border-bottom:1px solid var(--line);padding-bottom:1.2vh}
[data-theme=edition] .brand .logo,[data-theme=edition] .brand .logo :is(b,span){font-family:"Newsdesk Serif",Georgia,serif;color:#f2f0ea;letter-spacing:.03em}
[data-theme=edition] .logo svg{color:#b9cbe4}
[data-theme=edition] #section{background:transparent;color:#b9cbe4;font-weight:600;text-transform:uppercase;letter-spacing:.14em;border-left:1px solid var(--line);padding-left:1em}
[data-theme=edition] #alertbar{background:transparent;border:0;border-bottom:1px solid var(--line);margin:0 3vw}
[data-theme=edition] .ab-title{background:transparent;border-left:0}
[data-theme=edition] :is(#alertbar>*+*,.ac+.ac){border-left-color:var(--line)}
[data-theme=edition] .badge:is(.tilt,.everyone,.us){background:transparent;color:#b9cbe4;border:1px solid #4c5a72}
[data-theme=edition] #crawl:not(.alert):not(.live):not(.holding){background:#161f2e;color:#f2f0ea}
[data-theme=edition] #crawl b#crawl-label{background:#161f2e;color:#b9cbe4}
:is([data-theme=network],[data-theme=edition]) :is(.bignum,.bignum small,mark){color:var(--text);background:transparent}
:is([data-theme=network],[data-theme=edition]) .flyside .place{color:var(--blue)}
/* The station mark on the crawl's right end takes the crawl's colour */

/* --- Liberty Blue, day and night: royal blue with a white top bar, red and white accents (the type of each look is unchanged) --- */
:root[data-theme=network],:root[data-theme=edition]{--bg:#1846a8;--text:#f3f6fc;--muted:#d6e2f8;--accent:#fff;--accent-ink:#1846a8;--panel:#2152ba;--line:#5580d6;--amber:#ffb9c2;--blue:#cfe0ff;--left:#cfe0ff;--center:#e6ebf5;--right:#ffb3b3;
 --tk-bg:#0f2f7d;--tk-sub:#ffe3e7;--tk-mid:#fff;--tk-track:rgba(255,255,255,.35);--tk-flash:#c8102e;
 --gx-bg:#1846a8;--gx-panel:#2152ba;--gx-line:#5580d6;--gx-brand:#ff6b7d;--gx-ink:#f3f6fc;--gx-mid:#dbe4f5;--gx-dim:#d6e2f8;--gx-deep:#2b5fc8}
html:is([data-theme=network],[data-theme=edition]) header{background:#f4f7fc;color:#14275a;padding:1.3vh 3vw;border-bottom:.45vh solid #c8102e}
html:is([data-theme=network],[data-theme=edition]) header :is(.brand,.brand *:not(em),#clock,#upnext,#upnext *){color:#14275a}
html:is([data-theme=network],[data-theme=edition]) #section{background:#c8102e;color:#fff;font-weight:700;border:0;padding-left:.8em}
html:is([data-theme=network],[data-theme=edition]) #alertbar{background:#143b92;--text:#fff;--muted:#fff;color:#fff;margin:0;border:0;border-bottom:1px solid var(--line)}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding){background:#f1f4fa;color:#14275a;border-top:0}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding) .ci b{color:#14275a}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding) .fp{color:#14275a;border-color:#14275a;background:none}
html:is([data-theme=network],[data-theme=edition]) #crawl b#crawl-label{background:#c8102e;color:#fff}
html:is([data-theme=network],[data-theme=edition]) #crawl b#crawl-label::before{content:'\2605';margin-right:.5em}
html:is([data-theme=network],[data-theme=edition]) #takeover{--text:#fff;--muted:#ffe3e7;color:#fff}
html:is([data-theme=network],[data-theme=edition]) .badge:is(.us,.tilt,.tilt.left,.tilt.right,.everyone,.developing){background:#c8102e;color:#fff;border:0}
html:is([data-theme=network],[data-theme=edition]) .map .land{fill:#2b5fc8;stroke:#5580d6}
html:is([data-theme=network],[data-theme=edition]) .meta .absent b.left,html:is([data-theme=network],[data-theme=edition]) .gone b.left{color:var(--left)}
html:is([data-theme=network],[data-theme=edition]) .meta .absent b.center,html:is([data-theme=network],[data-theme=edition]) .gone b.center{color:var(--text)}
html:is([data-theme=network],[data-theme=edition]) .meta .absent b.right,html:is([data-theme=network],[data-theme=edition]) .gone b.right{color:var(--right)}
html:is([data-theme=network],[data-theme=edition]) .mtile.down em{color:#ffc2c2}
html:is([data-theme=network],[data-theme=edition]) .mtile.down .ml{stroke:#ffc2c2}

/* --- The breaking banner: solid red, white type, a steady picture rather than a pulse, and up on the chart scenes too --- */
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"]{height:8.5vh}
html:is([data-theme=network],[data-theme=edition]) body[data-scene^="gx-"] #alertbar[data-calm="false"]{display:flex!important}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] .ab-title{background:#c8102e;border-left:0;padding:0 1.6vw;min-width:15vw}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] :is(.ab-k,#ab-state){color:#fff}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] #ab-state{font-size:calc(clamp(20px,3.9vh,calc(48px*var(--big,1)))*var(--ts,1));animation:none}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] .livedot{background:#fff;box-shadow:none}
html:is([data-theme=network],[data-theme=edition]) #alertbar :is(.ac b,.ac.on b,.ac span){color:#fff;text-shadow:none;animation:none}

/* --- Nothing fades into the blue: pastels strong enough for it, and chart text with a dark edge wherever it crosses a bar or tile --- */
:root[data-theme=network],:root[data-theme=edition]{--green:#8af5b0}
html:is([data-theme=network],[data-theme=edition]) .alerts :is(.weather,.internet){color:#e6dbff}
html:is([data-theme=network],[data-theme=edition]) .alerts :is(.quake,.disaster,.disaster.red){color:#ffd9b8}
html:is([data-theme=network],[data-theme=edition]) .absent{color:var(--muted)}
html:is([data-theme=network],[data-theme=edition]) :is(.rank,.rank small){color:#fff}
html:is([data-theme=network],[data-theme=edition]) .dn.hi b{color:#ffc2c2}
html:is([data-theme=network],[data-theme=edition]) .vparty .r{color:#ffc2c2}
html:is([data-theme=network],[data-theme=edition]) .vparty .d{color:#cfe0ff}
html:is([data-theme=network],[data-theme=edition]) .floorweek li b{color:#cfe0ff}
html:is([data-theme=network],[data-theme=edition]) .digest .dg-k{color:#e6dbff}
html:is([data-theme=network],[data-theme=edition]) .week .dg-k{color:#ffe0a3}
html:is([data-theme=network],[data-theme=edition]) .gx :is(text,tspan):is([fill="#4f8dff"],[fill="#ff6b7d"],[fill="#ff9d4d"]){fill:#ffd6db}
html:is([data-theme=network],[data-theme=edition]) .gx :is(text,tspan)[fill="#6ea8ff"]{fill:#cfe0ff}
html:is([data-theme=network],[data-theme=edition]) .gx :is(text,tspan)[fill="#ff7a80"]{fill:#ffc2c2}
html:is([data-theme=network],[data-theme=edition]) .gx text.t{paint-order:stroke;stroke:#0f2f7d;stroke-width:4px;stroke-linejoin:round}
html:is([data-theme=network],[data-theme=edition]) .gx :is(text,tspan)[fill="#ff8d90"]{fill:#ffc2c2}
html:is([data-theme=network],[data-theme=edition]) .gx text[fill="#060a14"]{fill:#0a1a45;stroke:none}
@media (min-height:1300px){:root{--big:1.34}}
@media (min-height:2000px){:root{--big:2}}

/* --- Old Glory, softened: flag blue, soft gray-white bars, a gentler red --- */
:root[data-theme=network],:root[data-theme=edition]{--bg:#0e2a5e;--accent-ink:#0e2a5e;--panel:#163670;--line:#3a5a96;--tk-bg:#091c42;--tk-flash:#b8233a;--gx-bg:#0e2a5e;--gx-panel:#163670;--gx-line:#3a5a96;--gx-deep:#1e4384}
html:is([data-theme=network],[data-theme=edition]) header{background:#dfe5f0;border-bottom-color:var(--nw-red,#b8233a)}
html:is([data-theme=network],[data-theme=edition]) #section,html:is([data-theme=network],[data-theme=edition]) #crawl b#crawl-label,html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] .ab-title{background:var(--nw-red,#b8233a)}
html:is([data-theme=network],[data-theme=edition]) .badge:is(.us,.tilt,.tilt.left,.tilt.right,.everyone,.developing){background:var(--nw-red,#b8233a)}
html:is([data-theme=network],[data-theme=edition]) #alertbar{background:#0b224e}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding){background:#d8dfeb}
html:is([data-theme=network],[data-theme=edition]) .map .land{fill:#1e4384;stroke:#3a5a96}
html:is([data-theme=network],[data-theme=edition]) .gx text.t{stroke:#0b224e}
html:is([data-theme=network],[data-theme=edition]) .gx [fill="#2b5fc8"]{fill:#1e4384}html:is([data-theme=network],[data-theme=edition]) .gx [stroke="#2b5fc8"]{stroke:#1e4384}html:is([data-theme=network],[data-theme=edition]) .gx [fill="#4c76cc"]{fill:#34568f}html:is([data-theme=network],[data-theme=edition]) .gx [stroke="#4c76cc"]{stroke:#34568f}

/* --- Bars in proportion with the header; the QR code rests on the bottom edge instead of running off it --- */
html:is([data-theme=network],[data-theme=edition]) #alertbar,html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"]{height:6.2vh;min-height:40px}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] #ab-state{font-size:calc(clamp(17px,3.1vh,calc(40px*var(--big,1)))*var(--ts,1))}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] .ab-title{min-width:12vw}
html:is([data-theme=network],[data-theme=edition]) #crawl{height:4.4vh;min-height:20px;font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1))}

/* --- The takeover in proportion too: a slimmer band and count, the headline still the biggest thing on screen --- */
html:is([data-theme=network],[data-theme=edition]) #takeover .tk-flash{padding:1.4vh 4vw}
html:is([data-theme=network],[data-theme=edition]) #takeover .tk-flash span{font-size:calc(clamp(20px,5.2vh,calc(75px*var(--big,1)))*var(--tsb,1))}
html:is([data-theme=network],[data-theme=edition]) #takeover .tk-count b{font-size:calc(clamp(24px,6vh,calc(86px*var(--big,1)))*var(--tsb,1))}

/* --- World Now bar: Deep Crimson --- */
html:is([data-theme=network],[data-theme=edition]) #alertbar{background:#7c1a2c;--text:#ffffff;--muted:#ffffff;color:#ffffff;border-bottom-color:transparent}
html:is([data-theme=network],[data-theme=edition]) #alertbar :is(.ac b,.ac.on b,.ac span,.ab-k,#ab-state,.ab-top,.ab-top *){color:#ffffff}
html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="true"] .livedot{background:#ffffff}

/* Takeover banner: a blinking dot before the word, as on every channel */
#takeover .tk-flash > span::before{content:"";display:inline-block;width:.38em;height:.38em;border-radius:50%;background:currentColor;margin-right:.4em;vertical-align:.12em;animation:tkdot 1s steps(2) infinite}
@keyframes tkdot{50%{opacity:.15}}
@media (prefers-reduced-motion:reduce){#takeover .tk-flash > span::before{animation:none}}

/* House floor: a plug for the Washington channel, which carries the floor live */
.congress .wplug{grid-column:1/-1;display:flex;align-items:center;gap:1.2vw;margin-top:3vh;padding-top:1.4vh;border-top:1px solid var(--line);font-size:calc(clamp(12px,2vh,calc(26px*var(--big,1)))*var(--ts,1));color:var(--text)}
.wplug b{flex:none;font:700 .78em ui-monospace,Consolas,monospace;letter-spacing:.12em;padding:.3em .65em;border-radius:.3em;background:var(--nw-red,#b8233a);color:#fff}
.wplug span{min-width:0}
.wplug u{margin-left:auto;flex:none;text-decoration:none;font:700 1em ui-monospace,Consolas,monospace;color:var(--text)}
.congress .wplug + .mcredit{margin-top:1vh}

/* --- The takeover as it was before the public launch (the user's pick, 2026-11-10): a dark red screen, the tall bright
   red band with BREAKING NEWS pulsing in big monospace, and the big system-font headline. Followed stories keep amber,
   weather warnings purple. The doubled id outranks the theme rules above. --- */
#takeover#takeover{--left:#4c8dff;--center:#9aa3b5;--right:#ff5a5a;--text:#eef2f8;--muted:#e8c4c4;color:#eef2f8;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#takeover#takeover:not(.followed):not(.wx){background:radial-gradient(ellipse at 50% 30%,#3a0606 0,#120202 70%)}
#takeover#takeover:not(.followed):not(.wx) .tk-flash{background:#ff3b3b}
#takeover#takeover .tk-flash{padding:2.5vh 4vw;box-shadow:none}
#takeover#takeover .tk-flash span{font:900 calc(clamp(36px,9vh,calc(130px*var(--big,1)))*var(--tsb,1))/1 ui-monospace,Consolas,monospace;letter-spacing:.12em;animation:pulse 1s infinite}
#takeover#takeover .tk-flash > span::before{display:none}
#takeover#takeover:not(.followed):not(.wx) .tk-flash span{color:#fff}
#takeover#takeover .tk-kicker{font:700 calc(clamp(14px,2.6vh,calc(34px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.1em}
#takeover#takeover:not(.followed):not(.wx) :is(.tk-kicker,.tk-count span,.tk-first b,.rlabel b){color:#ffb3b3}
#takeover#takeover:not(.followed):not(.wx) :is(.meta,.outlets,.tk-count em,.tk-first span){color:#e8c4c4}
#takeover#takeover h1{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-weight:800;letter-spacing:-.01em;font-size:calc(clamp(28px,5.6vh,calc(84px*var(--big,1)))*var(--tsb,1));line-height:1.12;text-transform:none}
#takeover#takeover .tk-count b{font:900 calc(clamp(36px,9vh,calc(130px*var(--big,1)))*var(--tsb,1))/1 ui-monospace,Consolas,monospace;color:#fff}
#takeover#takeover .tk-count span{font:700 calc(clamp(14px,2.8vh,calc(38px*var(--big,1)))*var(--ts,1)) ui-monospace,Consolas,monospace;letter-spacing:.06em}
#takeover#takeover .tk-first b{font-family:ui-monospace,Consolas,monospace}
#takeover#takeover :is(.tcol,.tcol *,.meta,.outlets,.tk-first){font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
#takeover#takeover:not(.followed):not(.wx) .tk-progress{background:#3a0a0a}
#takeover#takeover:not(.followed):not(.wx) .rline{border-bottom-color:#5a1a1a}
#takeover#takeover:not(.followed):not(.wx) .tcol.center{--c:#e8c4c4}

/* --- your look: the viewer's choices from Customize (lab-splash.js sets html[data-ss-*] and the --ss-* colours) --- */
/* ticker off: no crawl; the scenes take the room */
html[data-ss-tk=off] #crawl{display:none!important}
/* accent (this channel's own, from Customize) */
:root[data-ss-ac]{--accent:var(--ss-ac);--accent-ink:var(--ss-ac-ink);--accent-glow:rgba(var(--ss-ac-rgb),.13);--desk-color:var(--ss-ac)}
:root[data-ss-ac] body{--glow:rgba(var(--ss-ac-rgb),.13)}
/* the broadcast looks (network, edition) wear their red as the brand: an accent takes its place there (breaking news stays red) */
:root[data-ss-ac]{--nw-red:var(--ss-ac)}
/* the infographics in the viewer's themes (Customize): Newsprint, High contrast and Night (midnight) */
:root[data-theme=paper]{--gx-bg:#f2ecdf;--gx-panel:#fbf7ee;--gx-line:#d6cab3;--gx-brand:#1f4f8f;--gx-ink:#1d1913;--gx-mid:#3d362c;--gx-dim:#6a6052;--gx-deep:#e6dcc7}
:root[data-theme=contrast]{--gx-bg:#000;--gx-panel:#000;--gx-line:#8c8c8c;--gx-brand:#fff;--gx-ink:#fff;--gx-mid:#fff;--gx-dim:#e8e8e8;--gx-deep:#161616}
:root[data-theme=midnight]{--gx-bg:#000;--gx-panel:#05070b;--gx-line:#1a1f2b;--gx-brand:#5b72a6;--gx-ink:#a7aebb;--gx-mid:#8a91a0;--gx-dim:#6a7180;--gx-deep:#0b0e15}
/* your markets in the crawl: a dot that says which way it moved */
.ci i.mk{background:var(--muted,#8892a8);border-radius:.15em}.ci i.mk.up{background:#2fbf71}.ci i.mk.dn{background:#ff4d5e}

/* --- Red Top (2026-11-14, the user's pick from mockups): the broadcast looks go near-black under a bright red top
   band — black section tab, yellow story tab, a red rule under the top headline, and a yellow ticker with black type.
   Day and evening share the set; Evening Edition keeps its serif headlines. A Customize accent replaces the brand
   red as before (var(--nw-red)); the yellow stays yellow, and breaking keeps its own red. Takeover untouched. --- */
:root[data-theme=network],:root[data-theme=edition]{--bg:#0c0c0f;--text:#f6f6f6;--muted:#a2a2ab;--accent:#fff;--accent-ink:#0c0c0f;--panel:#17171c;--line:#2a2a31;
 --amber:#ffd400;--red:#e01020;--blue:#7db4ff;--green:#2fbf71;--left:#5e9bff;--center:#b4bdcf;--right:#ff6b6b;
 --gx-bg:#0c0c0f;--gx-panel:#17171c;--gx-line:#2a2a31;--gx-brand:#ff4d5c;--gx-ink:#f6f6f6;--gx-mid:#c9c9cf;--gx-dim:#a2a2ab;--gx-deep:#1e1e24}
html:is([data-theme=network],[data-theme=edition]) body,html:is([data-theme=network],[data-theme=edition]) body[data-scene]{background:radial-gradient(120% 90% at 50% -15%,#1c1c22 0,#0c0c0f 55%)}
html:is([data-theme=network],[data-theme=edition]) header{background:var(--nw-red,#e01020);color:#fff;border-bottom:0}
html:is([data-theme=network],[data-theme=edition]) header :is(.brand,.brand *:not(em),#clock,#upnext,#upnext *){color:#fff}
html:is([data-theme=network],[data-theme=edition]) #section{background:#0c0c0f;color:#fff}
html:is([data-theme=network],[data-theme=edition]) #alertbar{background:#0c0c0f;--text:#f6f6f6;--muted:#f6f6f6;color:#f6f6f6;border-bottom:1px solid var(--line)}
html:is([data-theme=network],[data-theme=edition]) #alertbar .ab-title,html:is([data-theme=network],[data-theme=edition]) #alertbar[data-calm="false"] .ab-title{background:var(--nw-red,#e01020)}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding){background:#ffd400;color:#171302;border-top:0}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding) .ci b{color:#7a1007}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding) .fp{color:#5c4d06;border-color:#b09a1c;background:none}
html:is([data-theme=network],[data-theme=edition]) #crawl:not(.alert):not(.live):not(.holding) .fp.fp-state{color:#5c4d06;border-color:#b09a1c}
html:is([data-theme=network],[data-theme=edition]) #crawl b#crawl-label{background:var(--nw-red,#e01020);color:#fff}
html:is([data-theme=network],[data-theme=edition]) #crawl b#crawl-label::before{content:none}
html:is([data-theme=network],[data-theme=edition]) .badge:is(.us,.tilt,.tilt.left,.tilt.right,.everyone,.developing){background:var(--nw-red,#e01020);color:#fff;border:0}
html:is([data-theme=network],[data-theme=edition]) .storyscene .rank{background:#ffd400;color:#171302;padding:.4em .8em}
html:is([data-theme=network],[data-theme=edition]) .storyscene .rank small{color:#5c4d06}
html:is([data-theme=network],[data-theme=edition]) .storyscene h1{animation:none;border-bottom:.55vh solid var(--nw-red,#e01020);padding-bottom:1.4vh}
html:is([data-theme=network],[data-theme=edition]) .map .land{fill:#1e1e24;stroke:#30303a}
html:is([data-theme=network],[data-theme=edition]) .gx text.t{stroke:#0c0c0f}
html:is([data-theme=network],[data-theme=edition]) .gx [fill="#2b5fc8"]{fill:#23232a}html:is([data-theme=network],[data-theme=edition]) .gx [stroke="#2b5fc8"]{stroke:#23232a}
html:is([data-theme=network],[data-theme=edition]) .gx [fill="#4c76cc"]{fill:#3a3a44}html:is([data-theme=network],[data-theme=edition]) .gx [stroke="#4c76cc"]{stroke:#3a3a44}

/* 2026-11-26: every story starts at the same height (was centred, so the headline moved story to story), and the
   story uses the full width now that the QR code that needed the right-hand gutter is gone */
main:has(>.storyscene){justify-content:flex-start}
main>div.storyscene{margin-top:3.4vh;padding-right:0!important}   /* 3.4vh: the grow-to-fill check keeps 3vh clear above a story */

/* 2026-11-26: the viewer's zone label after the clock, like every channel */
#clock small.c-z{font-size:.5em;margin-left:.35em;letter-spacing:.1em;color:inherit;opacity:.75}

/* 2026-11-26 frame B: the corner every channel shares - plain UP NEXT, date over the time, scene name as a ruled tag */
html #section,html:is([data-theme=network],[data-theme=edition]) #section{border-radius:0!important;background:none!important;box-shadow:none!important;padding:0 0 0 .7em!important;border:0!important;border-left:.25vw solid currentColor!important;color:#fff!important}
html #upnext{background:none!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important}
#clock .c-date{display:block;font-size:.4em;line-height:1.15;letter-spacing:.1em;text-transform:uppercase;opacity:.8;text-align:left}
