/* Situation Room — NEW DESIGN (test page situation-room-new.html only).
   Prototype layout from statix_situation_room_handoff.html, restyled on top
   of css/situation-room.css so the JS-generated feed / tripwires / outlook /
   DEFCON / map / cam cards keep working. Ticker stays yellow (#f0b429,
   black text) exactly like the live page — the prototype's dark ticker
   was NOT carried over. Red = escalation/live, amber = watch, green = calm. */
:root{
 --bg:#07090b;--panel:#0c1014;--panel2:#10161b;--line:#293139;--line2:#3b444c;
 --red:#e3262e;--red2:#8f171e;--amber:#d5a63d;--gold:#f0b429;--green:#78a66b;
 --white:#e8ebed;--muted:#8c969e;--mono:ui-monospace,SFMono-Regular,Consolas,monospace;
 --sans:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html{background:var(--bg)}
body{background:radial-gradient(ellipse at 50% -25%,#252b31 0,#0b0e11 45%,#050607 100%);color:var(--white);font-family:var(--sans);font-size:13px;line-height:1.55}
a{color:#5ec8d4}
a:hover,a:focus{color:#8fdde8}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:1em;top:1em;background:#000;color:#fff;padding:.4em;z-index:3000}
/* Prototype brand header */
.top{border-bottom:1px solid #4a2023;background:linear-gradient(90deg,#080a0c,#11161a 55%,#080a0c);position:sticky;top:0;z-index:1000}
.topin{max-width:1600px;margin:auto;display:flex;align-items:center;gap:24px;padding:14px 24px}
.brand{display:flex;align-items:center;gap:12px;min-width:300px;text-decoration:none}
.mark{width:52px;height:52px;flex:none;border-radius:4px;object-fit:cover}
.brandname{font-weight:800;letter-spacing:.28em;font-size:clamp(18px,2vw,27px);font-style:normal;white-space:nowrap;color:#5ec8d4;display:block}
.tag{font:10px var(--mono);letter-spacing:.35em;color:var(--red);margin-top:5px;display:block}
.top nav{display:flex;gap:3px;flex:1;justify-content:center;flex-wrap:wrap}
.top nav a{padding:14px 13px;color:#b7bec3;font-size:11px;letter-spacing:.09em;text-transform:uppercase;border:1px solid transparent;text-decoration:none}
.top nav a.active{color:#fff;border-color:#762127;background:linear-gradient(120deg,#481115,#160c0e);box-shadow:inset 0 -2px var(--red)}
.top nav a:hover,.top nav a:focus{color:#fff;border-color:#762127}
.status{border:1px solid #762127;padding:7px 15px;text-align:center;min-width:100px}
.status b{display:block;color:var(--red);font:700 11px var(--mono);letter-spacing:.2em}
.status strong{display:block;font-size:30px;line-height:1.1;color:#fff}
.status small{display:block;font:10px var(--mono);color:var(--amber);margin-top:2px}
/* Ticker — YELLOW, like the live page (not the prototype's dark bar) */
.sr-ticker{display:flex;align-items:center;gap:14px;background:#f0b429;color:#000;overflow:hidden;white-space:nowrap;margin:0 0 12px;border:1px solid #c9930a;padding:0 14px}
.sr-ticker-label{font:700 11px var(--mono);letter-spacing:.08em;flex:none;position:relative;z-index:2;background:#f0b429;padding:7px 0}
.sr-ticker-label .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 12px #e3262e;margin-right:7px}
.sr-ticker-track{flex:1;min-width:0;overflow:hidden;display:block}
.sr-ticker-live .sr-ticker-track{animation:none}
.sr-ticker-live .sr-ticker-text{animation:sr-ticker-scroll 40s linear infinite}
.sr-ticker:hover .sr-ticker-text{animation-play-state:paused}
.sr-top-time{color:#000;font:700 10px var(--mono);letter-spacing:.08em;flex:none}
main{max-width:1600px;margin:0 auto;padding:18px 20px 28px}
.sectionhead{display:flex;justify-content:space-between;align-items:center;margin:4px 0 12px;gap:12px;flex-wrap:wrap}
.eyebrow{font:10px var(--mono);letter-spacing:.2em;color:var(--red);text-transform:uppercase}
.sectionhead h1{font-size:22px;letter-spacing:.04em;margin:4px 0 0;font-weight:650;color:#fff}
.sub{font:11px var(--mono);color:var(--muted)}
.sub a{color:#5ec8d4}
/* Ops grid — prototype 3-column layout. align-items:start so a short
   centre column never stretches into a tall empty panel (that was the
   big empty space under the map). */
.layout{display:grid;grid-template-columns:minmax(220px,.92fr) minmax(440px,2.35fr) minmax(250px,1fr);gap:12px;align-items:start}
.stack{display:grid;gap:12px;align-content:start}
.panel{background:linear-gradient(145deg,rgba(19,25,30,.96),rgba(7,10,13,.98));border:1px solid var(--line2);border-radius:5px;box-shadow:0 8px 25px #0008;overflow:hidden;position:relative}
.panel:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,#ffffff06,transparent 30%);opacity:.7}
.phead{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative;z-index:1}
.ptitle{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;display:flex;align-items:center;gap:9px;color:#fff}
.picon{color:var(--red);font-size:17px}
.pbody{padding:14px;position:relative;z-index:1}
.pbody p{color:#b0b0b0}
/* Panels that are also .sr-panel: keep the prototype look, drop the old padding/margin */
.sr-panel{margin:0 0 12px}
.layout .sr-panel{margin:0}
#tab-feed,#tab-outlook,#tab-cams{margin-top:12px}
.sr-defcon-big{font-size:44px;color:#f0a030}
.sr-defcon-sub{color:#e8e8e8}
.sr-scale-seg{background:#0e0e0e}
/* DEFCON scale: the left column is narrow, so the 5 boxes must be compact
   or the "1" box clips off the right edge. DEFCON source/read stack to
   one column on this page — two ~100px columns were unreadable. */
.sr-scale{gap:4px}
.sr-scale-seg{padding:6px 2px;font-size:8px;line-height:1.3}
.sr-scale-seg strong{font-size:14px}
.sr-defcon-cols{grid-template-columns:1fr}
.sr-defcon-cols h3{color:#8a8a8a}
.sr-defcon-banner{font-size:11px}
/* Tripwires strip: full width below the ops grid, 9 cards in a row on
   desktop (the old .sr-trip-strip grid), notes clamped to 2 lines so the
   strip stays compact. */
#sr-tripwires{margin-top:12px}
#sr-tripwires .sr-trip-card p:nth-of-type(4){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Map — taller on desktop now the centre column also holds the cam panel */
.map-panel{min-height:620px}
.mapwrap{padding:14px;position:relative;z-index:1}
#sr-map{height:600px;margin:10px 0;scroll-margin-top:90px}
/* Anchored sections must clear the sticky header when reached via tabs */
#tab-feed,#tab-outlook,#tab-cams,#sr-tripwires,#situation{scroll-margin-top:90px}
.maplegend{display:flex;gap:12px;align-items:center;font:9px var(--mono);color:#c1c8cd;flex-wrap:wrap}
.mapcaption{font:9px var(--mono);color:#a9b2b8;margin:8px 0 0}
.sr-map-col p{color:#8a8a8a}
/* Right stack: summary, tracker, analyst, cams */
.summarytitle{font-size:25px;line-height:1.1;font-weight:750;color:var(--white);margin:4px 0 12px}
.summarytitle em{font-style:normal;color:var(--red)}
.copy{font-size:12px;line-height:1.6;color:#c2c9ce}
.rule{height:1px;background:linear-gradient(90deg,var(--red),transparent);margin:14px 0}
.take{font:11px var(--mono);color:var(--amber);letter-spacing:.14em;margin-bottom:9px}
ul.clean{list-style:none;padding:0;margin:0;display:grid;gap:9px;font-size:12px;color:#cbd0d4}
ul.clean li:before{content:"›";color:var(--red);font-weight:900;font-size:18px;margin-right:9px}
ul.clean li button{text-align:left;width:100%}
.action{display:inline-block;border:1px solid var(--red);padding:10px 13px;color:#fff;font:10px var(--mono);letter-spacing:.1em;text-transform:uppercase;margin-top:17px;background:#4a1015;text-decoration:none}
.action:hover,.action:focus{color:#fff;border-color:#fff}
.barline{display:grid;grid-template-columns:105px 1fr 60px;gap:9px;align-items:center;margin:12px 0;font-size:11px;color:#cbd0d4}
.track{height:8px;background:#050708;border:1px solid #343c42}
.fill{height:100%;background:linear-gradient(90deg,#8d151b,var(--red))}
.fill-orange{background:linear-gradient(90deg,#9b4a17,#e47b20)}
.fill-amber{background:linear-gradient(90deg,#8c6c1e,#d5a63d)}
.fill-green{background:linear-gradient(90deg,#456b3b,#78a66b)}
/* Threat strip: keep 4 cells, prototype panel look */
.sr-threat-cell{background:linear-gradient(145deg,rgba(19,25,30,.96),rgba(7,10,13,.98));border:1px solid var(--line2);border-radius:5px}
.sr-threat-value{font-size:24px}
.sr-whats-new{border-left:3px solid #f0b429;background:#121212}
/* Tabs: anchor navigation to the sections below the fold */
.sr-tabs{display:flex;gap:3px;flex-wrap:wrap;margin:16px 0 0;border-bottom:1px solid var(--line)}
.sr-tabs a{padding:12px 16px;color:#b7bec3;font:700 11px var(--mono);letter-spacing:.09em;text-transform:uppercase;border:1px solid transparent;border-bottom:0;text-decoration:none}
.sr-tabs a.active{color:#fff;border-color:#762127;background:linear-gradient(120deg,#481115,#160c0e);box-shadow:inset 0 -2px var(--red)}
.sr-tabs a:hover,.sr-tabs a:focus{color:#fff;border-color:#762127}
/* Feed / outlook / cams sections */
#tab-feed .sr-feed-col h2,#tab-outlook h2,#tab-cams h2{color:#e8e8e8}
.sr-incident,.sr-outlook{background:#121212}
.cam-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.2rem;margin:1rem 0}
.cam-card{border:1px solid #333;padding:1rem;background:#111}
.cam-card h3{margin-top:0;color:#e8e8e8}
.cam-provider,.cam-status{font-size:.9rem;color:#b0b0b0}
.cam-player{margin:.8rem 0;background:#000;min-height:120px;display:flex;align-items:center;justify-content:center}
.cam-player iframe{display:block}
.sr-cam-frame{width:100%;aspect-ratio:16 / 9;border:0;display:block}
.cam-load{width:100%}
#sr-rot-player{background:#000;min-height:120px;display:flex;align-items:center;justify-content:center;margin:10px 0}
#sr-rot-player iframe{display:block}
/* Footer */
.footer{border-top:1px solid #532126;margin-top:20px;padding:15px 4px;display:flex;align-items:center;justify-content:space-between;color:#9ca5ab;font:10px var(--mono);letter-spacing:.15em;gap:10px;flex-wrap:wrap}
.footer b{color:#e5e8ea;font:700 15px var(--sans);letter-spacing:.08em}
.disclaimer{font:9px var(--mono);color:#69747c;margin-top:8px}
.sr-footer{margin:16px 0 0}
/* Focus + reduced motion, same as prototype/live page */
:focus-visible{outline:2px solid #f0b429;outline-offset:2px}
@media (prefers-reduced-motion:reduce){
 .sr-ticker-live .sr-ticker-track{animation:none}
 .sr-ticker{overflow-x:auto}
 .sr-pin-red{animation:none}
}
@media (max-width:1050px){
 .topin{flex-wrap:wrap}
 .brand{min-width:0;flex:1}
 .top nav{order:3;flex-basis:100%;justify-content:flex-start;overflow:auto}
 .layout{grid-template-columns:250px 1fr}
 .layout>.stack:last-child{grid-column:1/-1;grid-template-columns:1fr 1fr}
 .sr-defcon-cols{grid-template-columns:1fr}
}
@media (max-width:700px){
 .topin{padding:10px 14px;gap:10px}
 .brand{min-width:0}
 .mark{width:42px;height:42px}
 /* v26.21: the wordmark must actually fit beside the DEFCON chip. At
    17px + .28em tracking + nowrap it overflowed its flex box and the
    status module painted over it. Smaller tracking + a compact chip. */
 .brandname{font-size:16px;letter-spacing:.14em}
 .tag{font-size:8px;letter-spacing:.2em}
 .status{min-width:0;padding:4px 8px;display:flex;align-items:baseline;gap:6px}
 .status b{display:inline}
 .status strong{display:inline;font-size:18px;line-height:1}
 .status small{display:none}
 /* v26.21: one scrolling nav row instead of a wrapping one that clips
    tabs mid-word. */
 .top nav{flex-wrap:nowrap;overflow-x:auto}
 .top nav a{padding:10px;font-size:9px;white-space:nowrap}
 /* v26.21: the TO TOP button sat at top:70px, which lands on the nav
    row once the mobile header wraps to two rows. Move both floats to
    the bottom corner, stacked, and shrink them. */
 .sr-feed-top-float{top:auto;bottom:76px;right:12px;padding:8px 10px;font-size:11px}
 .sr-skip-float{right:12px;bottom:12px;padding:8px 10px;font-size:11px}
 .sr-ticker{padding:0 10px}
 .sr-top-time{display:none}
 main{padding:14px 12px}
 .layout{grid-template-columns:1fr}
 .layout>.stack:last-child{grid-column:auto;grid-template-columns:1fr}
 .map-panel{min-height:380px}
 #sr-map{height:320px}
 .sr-defcon-cols{grid-template-columns:1fr}
 .footer{gap:10px;flex-wrap:wrap}
 .summarytitle{font-size:23px}
 .barline{grid-template-columns:80px 1fr 55px}
}

/* v26.18: house-ad slots (artwork + quote until real ads arrive) and
   feed <-> outlook cross-links. New page only; live page untouched. */
.sr-ad img{width:100%;display:block;border:1px solid #262626;object-fit:cover;aspect-ratio:16/9}
.sr-ad-quote{color:#e8e8e8;font-size:13px;letter-spacing:.14em;text-align:center;margin:8px 0 2px}
.sr-ad-panel .pbody{padding:12px}
.sr-xlink{color:#5ec8d4;font-size:12px;margin-left:10px;white-space:nowrap}
.sr-xlink:hover{color:#8fd8e0}
.sr-outlook-active{border-color:#f0b429 !important;background:#1d1700}
.sr-outlook,.sr-incident{scroll-margin-top:90px}
.sr-ad-wide img{aspect-ratio:21/9}
.sr-tip .copy{font-size:12px;color:#b0b0b0;margin:0 0 10px}
.sr-tip-btn{display:inline-block;border-color:#f0b429;color:#f0b429}
.sr-tip-btn:hover{background:#f0b429;color:#0b0b0b}

/* v26.21: extra-small phones — keep the wordmark on one line. */
@media (max-width:400px){
 .brandname{font-size:15px;letter-spacing:.1em}
 .mark{width:36px;height:36px}
 .topin{padding:8px 10px;gap:8px}
}
