/* Washington Desk: the channel's own header, crawl and between-segment slates, laid over each desk's TV page. */
@font-face{font-family:"Barlow Condensed";src:url("/fonts/display.woff2") format("woff2");font-weight:700 900;font-display:swap}
@font-face{font-family:"Desk Text";src:url("/fonts/text.woff2") format("woff2");font-weight:400 500;font-display:swap}
@font-face{font-family:"Desk Text";src:url("/fonts/text-semibold.woff2") format("woff2");font-weight:600 800;font-display:swap}

:root{
  color-scheme:dark;
  --u:min(1vh,.5625vw);  /* one hundredth of a 16:9 picture's height */
  --bg:#060a1c;--ink:#f3f6ff;--ink-2:#c6d2ee;--ink-3:#9fafd2;--line:rgba(255,255,255,.16);
  --navy:#14205a;--hi:#7ea6ff;--red:#ff2d48;--blue:#2f7bff;
  --disp:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;--text:"Desk Text","Segoe UI",system-ui,sans-serif;
  --seg:#7ea6ff;  /* the segment's colour; none of them is a party's */
}
body[data-seg="floor"]{--seg:#14f0d0}
body[data-seg="chamber"]{--seg:#ffc21f}
body[data-seg="briefing"]{--seg:#c58cff}
body[data-seg="statehouse"]{--seg:#a6ff4d}

html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--ink);font-family:var(--text);cursor:none}
body.pointer{cursor:default}
body .lab-mark{display:none!important}  /* the mark lives in the lower bar here, where it can't sit on a scene */
.defs{position:absolute}

#frames,#frames iframe{position:fixed;inset:0;width:100%;height:100%;border:0;background:var(--bg)}
#frames iframe{filter:saturate(1.38) contrast(1.07) brightness(1.1)}
#frames{transition:opacity .35s ease}
/* a replayed takeover: the sub-desk's own card in a full-screen frame, invisible until the card is up (2026-11-14) */
#replay-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:12;background:#000;opacity:0;pointer-events:none;transition:opacity .4s ease;filter:saturate(1.38) contrast(1.07) brightness(1.1)}
#replay-frame.on{opacity:1;pointer-events:auto}
html[data-ss-th=paper] #replay-frame{filter:none}
body.swap #frames{opacity:0}   /* between segments: the picture dips while the header's tab moves on */  /* every desk, a little more alive on a TV */

/* the desk leaves this room empty for the two bars (its ?channel=1 mode), so they cover nothing of it */
#top,#low{position:fixed;left:0;right:0;z-index:5;background:var(--bg);transition:opacity .35s}
body.tk #top,body.tk #low{opacity:0}

#top{top:0;height:6.6vh;display:flex;align-items:stretch;gap:2.4vw;padding:0 3vw;box-sizing:border-box;background:linear-gradient(180deg,#121c58,#0b1238);border-bottom:1px solid rgba(126,166,255,.3)}
#top::before{content:"";position:absolute;left:0;right:0;top:0;height:max(2px,.22vh);background:linear-gradient(90deg,var(--red) 0 33.3%,#fff 33.3% 66.6%,var(--blue) 66.6%)}
.brand{flex:none;display:flex;align-items:center;gap:.32em;font:700 calc(calc(3*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.14em}
.brand .logo{width:1.05em;height:1.05em;margin-right:.3em;color:var(--ink-2)}
.brand b{font-weight:700;color:var(--hd,#fff)}
.brand span{color:var(--red)}

#rail{position:relative;flex:1;min-width:0;display:flex;align-items:stretch;gap:1.8vw;padding-left:2.4vw}
/* larger text (the viewer's Text size): a tab that no longer fits wraps onto a second line, out of sight, instead of
   running into the next one; the clip leaves room for the playing tab's progress line */
#rail{flex-wrap:wrap;overflow:clip;overflow-clip-margin:3px}
.rl{height:100%}
html[data-ss-ts=xl] #upnext{display:none}
#rail::before{content:"";position:absolute;left:0;top:34%;bottom:34%;width:1px;background:rgba(255,255,255,.14)}
.rl{position:relative;display:flex;align-items:center;gap:.6em;font:700 calc(calc(2.1*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.11em;text-transform:uppercase;color:var(--ink-3);white-space:nowrap;transition:color .35s}
.rl.on{color:var(--hd,#fff)}
.rl.off{opacity:.55}
.rl.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:max(2px,.26vh);background:rgba(255,255,255,.12)}
.rl i{position:absolute;z-index:1;left:0;right:0;bottom:-1px;height:max(2px,.26vh);transform-origin:left;transform:scaleX(0);background:var(--seg)}

#upnext{flex:none;display:flex;align-items:center;gap:.7em;font:700 calc(calc(2*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2);white-space:nowrap}
#upnext small{font:700 calc(calc(1.5*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.18em;color:var(--ink-3)}
#upnext:empty{display:none}
/* one line, on the same type as the rail: date quiet, time bright */
#clock{position:relative;flex:none;display:flex;align-items:center;gap:.75em;padding-left:2vw;font:700 calc(calc(2.1*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.11em;text-transform:uppercase;white-space:nowrap;font-variant-numeric:tabular-nums}
#clock::before{content:"";position:absolute;left:0;top:34%;bottom:34%;width:1px;background:rgba(255,255,255,.14)}
#clock small{font:inherit;letter-spacing:inherit;color:var(--ink-3)}
#clock b{font:inherit;letter-spacing:inherit;color:var(--hd,#fff)}
#clock b em{font-style:normal;color:var(--ink-3);margin-left:.4em}

/* Your Statehouse plays on Civicdesk's page: this covers that page's Congress strip, so nobody takes state news for federal */
#strip{position:fixed;left:0;right:0;top:6.6vh;height:max(8.4vh,calc(1.4vh + 44px));z-index:5;display:flex;align-items:center;gap:1.6vw;padding:0 3vw;box-sizing:border-box;
  background:#101a50;border-bottom:1px solid var(--line);border-left:.5vw solid var(--seg);font-family:var(--disp);text-transform:uppercase;transition:opacity .35s}
#strip[hidden]{display:none}
body.tk #strip,body.toast #strip{opacity:0;pointer-events:none}
.st-kick{font:800 calc(calc(2.2*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.2em;color:var(--seg)}
#st-name{font:800 calc(calc(4.2*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.06em;color:var(--hd,#fff)}
#st-note{margin-left:auto;font:700 calc(calc(2.2*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.14em;color:var(--ink-2)}

#low{bottom:0;height:9.25vh;display:flex;flex-direction:column}
.lt-top{display:flex;align-items:stretch;height:3.6vh;font:800 calc(calc(2.2*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.12em;text-transform:uppercase;background:#101a50;border-top:1px solid var(--line)}
.lt-plate{flex:none;display:flex;align-items:center;gap:.35em;padding:0 2vw;color:#fff;background:linear-gradient(90deg,var(--red) 0 .3vw,#fff .3vw .6vw,var(--blue) .6vw .9vw,var(--navy) .9vw)}
.lt-plate b{font-weight:800}
#now-seg{flex:none;display:flex;align-items:center;padding:0 1.6vw;color:var(--seg)}
#now-line{flex:1;min-width:0;display:flex;align-items:center;color:var(--ink-2);white-space:nowrap;overflow:hidden}
/* The StateSig mark, to the standard every channel keeps (2026-11-25): right edge 3vw in, under the clock; the same size,
   divider and 85% as the corner mark elsewhere. Here it is the last thing in the lower bar, so it never sits on a scene. */
#ss-mark{flex:none;order:9;display:flex;align-items:center;gap:.9vh;padding:0 3vw 0 1.4vw;color:var(--ink);opacity:.85}
#ss-mark::before{content:"";width:1px;height:3vh;max-height:80%;margin-right:3px;background:currentColor;opacity:.4}
.ss-logo{height:1.96vh;width:auto;aspect-ratio:252/140;overflow:visible}   /* the stripes logo, 2026-11-12 */
.ss-wm{height:2.6vh;width:auto;aspect-ratio:891.3/188.5;fill:currentColor;overflow:visible}
#now-state{flex:none;display:flex;align-items:center;padding:0 2vw;color:#10131b;background:var(--seg)}
#now-state:empty{display:none}

.lt-bot{display:flex;align-items:center;height:5.65vh;font-size:calc(calc(2.4*var(--u))*var(--ts,1));overflow:hidden;background:linear-gradient(180deg,#f4f6fb,#d5dbe8);color:#0a1020;border-top:2px solid var(--red)}
#crawl-label{flex:none;align-self:stretch;display:flex;align-items:center;padding:0 2vw;font:800 calc(calc(2.5*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.14em;color:var(--ink);background:#101a50;position:relative;z-index:1}
.track{flex:1;min-width:0;overflow:hidden;white-space:nowrap}
#crawl-track{display:inline-flex;align-items:center;gap:3vw;padding-left:2vw;will-change:transform}
.ci{display:inline-flex;align-items:center;gap:.8vw;font-weight:600}
.ci b{font:800 calc(calc(2.05*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.1em;padding:.5vh .6vw;border-radius:.4vh;color:#fff;background:#1a2a6e}
.ci[data-tag="FLOOR"] b,.ci[data-tag="CONGRESS"] b{background:#008f7a}
.ci[data-tag="CHAMBER"] b,.ci[data-tag="COURTS"] b{background:#b67c00}
.ci[data-tag="BRIEFING"] b,.ci[data-tag="WHITE HOUSE"] b{background:#6c33c9}

/* the slate between segments */
#slate{position:fixed;inset:0;z-index:10;display:flex;align-items:center;overflow:hidden;color:var(--ink);
  background:radial-gradient(ellipse at 22% 40%,#22388f 0,#0e1647 55%,#060a22 100%);
  clip-path:inset(0 100% 0 0)}
#slate.in{clip-path:inset(0 0 0 0);transition:clip-path .5s cubic-bezier(.7,0,.2,1)}
#slate.out{clip-path:inset(0 0 0 100%);transition:clip-path .5s cubic-bezier(.7,0,.2,1)}
.sl-band{position:absolute;left:0;top:0;bottom:0;width:1.1vw;background:var(--seg)}
.sl-glyph{position:absolute;right:2vw;top:50%;width:21vw;height:40vh;transform:translateY(-50%);color:var(--seg);opacity:.3}
.sl-body{position:relative;display:flex;flex-direction:column;gap:2vh;padding:0 8vw;max-width:72vw}
#sl-kick{font:800 calc(calc(2.9*var(--u))*var(--ts,1))/1 var(--disp);letter-spacing:.28em;color:var(--seg);text-transform:uppercase}
#sl-name{margin:0;font:800 calc(calc(17*var(--u))*var(--tsb,1))/.95 var(--disp);letter-spacing:.005em;text-transform:uppercase;color:var(--hd,#fff)}
#sl-of{font:800 calc(calc(4*var(--u))*var(--ts,1))/1.1 var(--disp);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
#sl-line{font:500 calc(calc(3.2*var(--u))*var(--ts,1))/1.3 var(--text);color:var(--ink);padding-top:1.2vh;border-top:1px solid var(--line)}
#sl-line:empty{display:none}
#slate.in .sl-body>*{animation:rise .55s .18s both cubic-bezier(.2,.7,.2,1)}
#slate.in #sl-name{animation-delay:.25s}
#slate.in #sl-of{animation-delay:.32s}
#slate.in #sl-line{animation-delay:.42s}
@keyframes rise{from{opacity:0;transform:translateY(2.4vh)}to{opacity:1;transform:none}}

body.just #sl-kick{color:#fff;background:var(--red);align-self:flex-start;padding:.7vh 1vw}

@media (prefers-reduced-motion:reduce){
  #slate{clip-path:none;opacity:0;visibility:hidden}
  #slate.in{clip-path:none;opacity:1;visibility:visible;transition:opacity .25s}
  #slate.out{clip-path:none;opacity:0;visibility:visible;transition:opacity .25s}
  #slate.in .sl-body>*{animation:none}
  .rl.on i{transform:none}
}

/* --- your look: the viewer's choices from Customize (lab-splash.js sets html[data-ss-*] and the --ss-* colours) --- */
/* ticker off: the plate stays, the moving line goes (the desks in the frames make room to match) */
html[data-ss-tk=off] #low{height:3.6vh}
html[data-ss-tk=off] #low .lt-bot{display:none}
/* accent (Washington's own, from Customize): one colour for every segment, in place of each segment's own */
:root[data-ss-ac]{--hi:var(--ss-ac);--desk-color:var(--ss-ac)}
:root[data-ss-ac] body[data-seg]{--seg:var(--ss-ac)}
/* the corner logo, hidden from Customize: Washington's sits in its lower third */
.ss-nologo #ss-mark{visibility:hidden}
/* themes (Customize) for Washington's own chrome; the desks in the frames read the same choice and theme themselves */
:root[data-ss-th=contrast]{--bg:#000;--ink:#fff;--ink-2:#fff;--ink-3:#e8e8e8;--line:#fff;--navy:#000}
html[data-ss-th=contrast] #top{background:#000;border-bottom:2px solid #fff}
html[data-ss-th=contrast] :is(#strip,.lt-top){background:#000}
:root[data-ss-th=night]{--bg:#030407;--ink:#b3b9c6;--ink-2:#8d94a3;--ink-3:#666d7c;--line:rgba(255,255,255,.07);--navy:#0b0d14;--hd:#c9ced8;--hd-rgb:201,206,216}
html[data-ss-th=night] #top{background:#06070b;border-bottom-color:rgba(255,255,255,.06)}
html[data-ss-th=night] :is(#strip,.lt-top){background:#090b11}
html[data-ss-th=night] .lt-bot{background:#15171d;color:#a8aebb}
/* Newsprint: a paper header over the paper desks; the lower third stays a dark band, as on every desk */
:root[data-ss-th=paper]{--bg:#f3ede0;--ink:#1d1913;--ink-2:#463f33;--ink-3:#6d6455;--line:rgba(60,40,10,.18);--hd:#1d1913;--hd-rgb:29,25,19}
html[data-ss-th=paper] #top{background:#fbf8f1;border-bottom:1px solid #d9cdb6}
html[data-ss-th=paper] #strip{background:#fbf8f1}
html[data-ss-th=paper] #low{--ink:#f3f6ff;--ink-2:#c6d2ee;--ink-3:#9fafd2;--line:rgba(255,255,255,.16);--hd:#fff;--hd-rgb:255,255,255}
html[data-ss-th=paper] #frames iframe{filter:none}   /* the frames' TV brightening would wash the paper out */

/* 2026-11-26 frame B: the corner every channel shares - plain UP NEXT, date over the time, scene name as a ruled tag */
#clock{flex-direction:column;align-items:flex-start;justify-content:center;gap:.3em}
#clock small{font-size:.62em}
#wd-dots{flex:none;display:flex;align-items:center;gap:.8vw;padding:0 1.6vw}
#wd-dots i{width:1vh;height:1vh;border-radius:50%;background:rgba(255,255,255,.2)}
#wd-dots i.on{background:var(--seg)}

/* The recap card (2026-12-01): the short written piece from statesig.tv/briefing, between rounds of the segments. */
#recap{position:fixed;inset:0;z-index:1;display:flex;align-items:center;padding:calc(17*var(--u)) 6vw calc(12*var(--u));background:var(--bg);opacity:0;transition:opacity .35s ease}
#recap.on{opacity:1}
.rcp{max-width:74vw;display:flex;flex-direction:column;gap:calc(2.2*var(--u))}
.rcp-h{margin:0 0 calc(.6*var(--u));font:800 calc(5.6*var(--u)*var(--tsb,1))/1.06 var(--disp,inherit);color:#fff;text-wrap:balance}
.rcp p{margin:0;font-size:calc(3*var(--u)*var(--ts,1));line-height:1.42;color:#d5dde8;text-wrap:pretty}
.rcp p.rcp-ai{margin-top:calc(.6*var(--u));font-size:calc(1.7*var(--u)*var(--ts,1));letter-spacing:.04em;color:#8b98ab}
