/* The public live edition (?edition=live) and its weather scene.
   Live: no tabs, buttons, settings, market prices or links; the address and QR code on screen carry every call to action.
   The weather scene exists only in the live edition (the office display never shows it). */
.live-bar{display:none}
body.live .scene-nav,body.live .rotation-track,body.live .broadcast-footer,body.live .ticker-shell,body.live .provider-foot{display:none}
body.live .display{grid-template-rows:96px minmax(0,1fr) 84px}
body.live .live-bar{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:0 var(--pad);background:linear-gradient(180deg,#0d0d0cd9,#0d0d0cf2);border-top:2px solid var(--yellow)}
body.live .live-bar div{display:flex;flex-direction:column;gap:3px;min-width:0}
body.live .live-bar span{font:16px var(--mono);letter-spacing:1.4px;color:var(--muted)}
body.live .live-bar strong{font:700 26px/1.1 Inter,Arial,sans-serif;letter-spacing:-.2px;color:var(--bone);white-space:nowrap}
body.live .live-bar div:first-child strong{color:var(--yellow)}
body.live a{pointer-events:none;cursor:default}
/* The website (wire.strategyzoo.com, body.site) can be clicked; the stream cannot. */
body.live.site a[href]{pointer-events:auto;cursor:pointer}
body.live.site a[href]:hover b,body.live.site a[href]:hover strong,body.live.site .live-bar a[href]:hover{text-decoration:underline}
body.live .arrow-diagonal,body.live .desk-link>span:last-child{display:none}
body.live .masthead{height:96px}
body.live .qr-card{width:320px}

/* Weather scene */
.weather-board{display:grid;grid-template-columns:minmax(300px,.85fr) 3fr;gap:28px;flex:1;min-height:0}
.weather-now{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:26px 28px;border:1px solid #ffffff26;border-top:2px solid var(--yellow);background:#0e1320c0;min-width:0}
.weather-now-label{font:16px var(--mono);letter-spacing:1.6px;color:var(--yellow)}
#weather-now .weather-temp{display:block;font:400 clamp(110px,10vw,200px)/.95 Anton,Impact,sans-serif}
#weather-now .weather-temp small{font:400 .26em var(--mono);color:var(--yellow);vertical-align:top;margin-left:6px}
#weather-now .weather-now-text{font:800 clamp(28px,2.2vw,46px)/1.15 Inter,Arial,sans-serif;letter-spacing:-.6px;margin:.35em 0 .1em;color:var(--bone)}
.forecast-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:20px;min-height:0}
.forecast-card{display:flex;flex-direction:column;gap:4px;padding:18px 22px;background:#0e1320c0;border:1px solid #ffffff1c;border-top:2px solid var(--yellow);min-width:0;min-height:0;overflow:hidden}
.forecast-card.night{border-top-color:#8fa6dd;background:#090d1ccc}
.forecast-card h3{font:400 clamp(24px,1.8vw,36px)/1.1 Anton,Impact,sans-serif;letter-spacing:.5px;margin:0}
.forecast-kind{font:15px var(--mono);letter-spacing:1.4px;color:var(--muted)}
.forecast-temp{font:400 clamp(56px,5vw,100px)/1 Anton,Impact,sans-serif;color:var(--yellow)}
.forecast-card.night .forecast-temp{color:#c9d6f5}
.forecast-text{font:700 clamp(19px,1.45vw,28px)/1.2 Inter,Arial,sans-serif;margin:2px 0 0}
.forecast-card .story-meta{font-size:clamp(14px,1vw,18px);margin-top:auto;color:#b6b4ad}
.weather-alert{flex-shrink:0;margin-bottom:18px;padding:14px 22px;background:var(--yellow);color:#1a1a1a;font:700 clamp(18px,1.4vw,26px)/1.25 Inter,Arial,sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

@media(max-height:850px){
  body.live .display{grid-template-rows:78px minmax(0,1fr) 64px}
  body.live .masthead{height:78px}
  body.live .live-bar strong{font-size:20px}body.live .live-bar span{font-size:14px}
  .weather-board{gap:20px}.forecast-list{gap:12px}.forecast-card{padding:12px 16px}
  .forecast-temp{font-size:52px}.forecast-text{font-size:18px}.forecast-kind{display:none}.forecast-card h3{font-size:24px}
  #weather-now .weather-temp{font-size:96px}
  body.live .qr-card{width:220px}
}
@media(min-height:851px) and (max-height:960px){
  body.live .display{grid-template-rows:96px minmax(0,1fr) 72px}
  .forecast-temp{font-size:68px}.forecast-text{font-size:21px}.forecast-card{padding:14px 20px}
  #weather-now .weather-temp{font-size:130px}
  body.live .live-bar strong{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.weather-alert{animation:none}}

/* The live data strip, Up Next and the real-sun backdrop (live edition only). */
.live-strip{display:none}
body.live:not(.no-strip) .live-strip{display:flex;align-items:stretch;background:#0d0d0cf2;border-top:1px solid #ffffff26;overflow:hidden;min-width:0}
body.live:not(.no-strip) .display{grid-template-rows:96px minmax(0,1fr) 50px 84px}
.strip-tag{flex:none;display:flex;align-items:center;background:var(--yellow);color:#1a1a1a;font:700 16px var(--mono);letter-spacing:1.6px;padding:0 22px}
.strip-window{flex:1;min-width:0;overflow:hidden;display:flex;align-items:center;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%)}
.strip-track{display:inline-flex;white-space:nowrap;animation:zwstrip var(--strip-duration,80s) linear infinite;will-change:transform}
.strip-item{padding:0 30px;font:600 21px/1 var(--mono);letter-spacing:.4px;color:#c9c6bd;position:relative}
.strip-item:before{content:'';position:absolute;left:-3px;top:50%;width:6px;height:6px;margin-top:-3px;background:var(--yellow);transform:rotate(45deg)}
.strip-item b{color:var(--bone);font-weight:700;margin-left:4px}
@keyframes zwstrip{to{transform:translateX(-50%)}}
body.live .live-bar .up-next{align-items:center;text-align:center}
body.live .live-bar .up-next strong{font-size:24px;color:var(--yellow);min-width:300px;letter-spacing:0}
body.live .stage .daylight,body.live .stage .horizon{inset:0;display:block;transition:none}
body.live .stage .daylight{background:#07123d;mix-blend-mode:multiply;opacity:calc(var(--night,0) * .62)}
body.live .stage .horizon{background:radial-gradient(130% 75% at 50% 100%,#ff8a3d 0%,#d9467a88 42%,transparent 76%);mix-blend-mode:screen;opacity:calc(var(--warm,0) * .34)}
@media(max-height:850px){
  body.live:not(.no-strip) .display{grid-template-rows:78px minmax(0,1fr) 40px 64px}
  .strip-item{font-size:17px;padding:0 24px}.strip-tag{font-size:13px;padding:0 16px}
  body.live .live-bar .up-next strong{font-size:18px;min-width:220px}
}
@media(min-height:851px) and (max-height:960px){
  body.live:not(.no-strip) .display{grid-template-rows:96px minmax(0,1fr) 44px 72px}
  body.live .live-bar .up-next strong{font-size:21px;min-width:260px}
}
@media(prefers-reduced-motion:reduce){.strip-track{animation:none}body.live .stage .daylight,body.live .stage .horizon{transition:none}}

/* Phone preview of the live edition (the stream itself is 16:9; a phone just stacks it). */
@media(max-width:760px){
  body.live .display,body.live:not(.no-strip) .display{grid-template-rows:96px auto auto auto;height:auto;min-height:100svh}
  body.live .live-bar{flex-direction:column;align-items:flex-start;gap:10px;padding:14px 18px;height:auto}
  body.live .live-bar strong{font-size:16px;white-space:normal;overflow-wrap:anywhere}
  body.live .live-bar .up-next{align-items:flex-start;text-align:left}body.live .live-bar .up-next strong{min-width:0;font-size:18px}
  body.live:not(.no-strip) .live-strip{height:40px}.strip-tag{font-size:12px;padding:0 12px}.strip-item{font-size:15px;padding:0 20px}
}

/* ===== Audit fixes (2026-11-05 independent audit): safe zone, type size, boot guard, alerts, call to action ===== */
/* If the page script fails to load, the live URL shows only the backdrop, never the private office layout. */
html.live-boot:not(.live-ready) .display>*:not(.stage){visibility:hidden}
.live-only{display:none}
body.live .live-only{display:flex}
body.live .events-foot a{display:none}
/* Bottom safe zone: the address bar sits about 3% in from the bottom edge, clear of TV overscan and the player controls. */
body.live .live-bar{padding-bottom:24px;align-items:center}
body.live .display{grid-template-rows:96px minmax(0,1fr) 106px}
body.live:not(.no-strip) .display{grid-template-rows:96px minmax(0,1fr) 54px 106px}
/* Backdrop first, then brand, in every size: the stream name and where it comes from are always readable. */
body.live .brand small,body.live .edition-sub{display:block}
body.live .edition{display:grid}
/* The weather scene without a current observation uses the full width for the forecast, never an empty panel. */
.weather-board:has(#weather-now:empty){grid-template-columns:1fr}
.weather-now:has(#weather-now:empty){display:none}
/* An alert: one line, then the forecast keeps its room. */
.weather-alert{-webkit-line-clamp:1;padding:12px 22px}
.weather-alert:not([hidden])~.weather-board .forecast-card{padding:12px 18px}
.weather-alert:not([hidden])~.weather-board .forecast-kind{display:none}
/* Field Notes: the top-right note sits on a dark pad so it reads over the bright yellow photo. */
body.live #scene-notes .heading-note{background:#0d0d0c99;padding:8px 16px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* Up Next: steady digits, and room for the longest label. */
body.live .live-bar .up-next strong{font-variant-numeric:tabular-nums;min-width:0;white-space:nowrap}
/* A live alert is the loudest thing in the strip. */
.strip-item.air b:before{content:'';display:inline-block;width:.62em;height:.62em;margin:0 .45em 0 0;border-radius:50%;background:var(--aqi,#00e400);vertical-align:baseline}
.strip-item.air-1{--aqi:#00e400}.strip-item.air-2{--aqi:#ffff00}.strip-item.air-3{--aqi:#ff7e00}.strip-item.air-4{--aqi:#ff0000}.strip-item.air-5{--aqi:#8f3f97}.strip-item.air-6{--aqi:#7e0023}
.strip-item.alert{background:var(--yellow);color:#1a1a1a}
.strip-item.alert b{color:#1a1a1a}
.strip-item.alert:before{display:none}
/* The events scene's constant call to action: a QR code and the short address. */
.foot-cta{align-items:center;gap:18px;color:var(--bone)}
.foot-qr{width:120px;height:120px;background:#fff;padding:5px;display:block}
.foot-cta>span{display:flex;flex-direction:column;gap:2px;font:600 16px var(--mono);letter-spacing:1px;color:var(--muted)}
.foot-cta b{font:800 30px/1.1 Inter,Arial,sans-serif;letter-spacing:-.4px;color:var(--yellow)}
body.live #scene-events .events-foot{align-items:center}
/* Type sized for a 1080p frame that YouTube compresses: nothing functional is under about 18px. */
@media(min-height:961px){
  body.live .live-bar span{font-size:22px}
  body.live .live-bar strong{font-size:30px}
  body.live .live-bar .up-next strong{font-size:28px}
  .strip-item{font-size:25px;padding:0 34px}.strip-tag{font-size:20px}
  .forecast-kind{font-size:20px}.forecast-card .story-meta{font-size:20px}
  .weather-now-label{font-size:20px}
  .events-foot,.events-foot span{font-size:20px}
  .note-meta{font-size:20px}
  body.live .brand small,.edition-sub{font-size:18px}
  /* Labels that were still about 16px in the 1080p frame (final audit 2026-11-11). */
  body.live .r-flow small,body.live .s-depth small,body.live .s-water small,body.live .sky-item>span{font-size:20px}
  body.live .ev-tag{font-size:19px}
  body.live .eyebrow,body.live .small-note,body.live .panel-label,body.live .scenic-foot,body.live .foot-cta>span{font-size:20px}
}
@media(min-height:851px) and (max-height:960px){
  body.live .display{grid-template-rows:96px minmax(0,1fr) 88px}
  body.live:not(.no-strip) .display{grid-template-rows:96px minmax(0,1fr) 46px 88px}
  body.live .live-bar{padding-bottom:16px}
  body.live .live-bar span{font-size:17px}
  .foot-qr{width:88px;height:88px}.foot-cta b{font-size:24px}
}
@media(max-height:850px){
  body.live .display{grid-template-rows:78px minmax(0,1fr) 76px}
  body.live:not(.no-strip) .display{grid-template-rows:78px minmax(0,1fr) 40px 76px}
  body.live .live-bar{padding-bottom:12px}
  .foot-qr{width:72px;height:72px}.foot-cta b{font-size:20px}.foot-cta>span{font-size:13px}
  body.live .brand small{display:none}
}
@media(max-width:760px){
  body.live .display,body.live:not(.no-strip) .display{grid-template-rows:96px auto auto auto}
  body.live .live-bar{padding-bottom:14px}
  .foot-qr{width:96px;height:96px}
  /* The header has no room for the source name beside the clock on a phone. */
  body.live .edition,body.live .brand small{display:none}
}

/* ===== Polish pass (2026-11-06): smooth data changes, a calmer screen, the events agenda header, and the Water & Snow scene ===== */
/* When the data strip's text changes it fades out, is rebuilt, and fades back in; it never jumps. The data credit is a scrolling item in the strip itself. */
.strip-track{transition:opacity .45s ease}
.strip-track.swap{opacity:0}
/* Less furniture: no taglines on the Field Notes or Stay Connected scenes, and no repeat of the address already shown on the lower bar. */
body.live #scene-notes .heading-note,body.live #scene-notes .events-foot,body.live .scenic-top{display:none}
body.live #scene-notes .notes-board{padding-bottom:12px}
/* The calendar's QR code sits in the events heading, so the agenda gets the whole height. */
.heading-right .foot-qr{width:clamp(72px,10vh,104px);height:clamp(72px,10vh,104px)}
.heading-right .foot-cta b{font-size:clamp(18px,2.6vh,28px)}
.heading-right .foot-cta>span{font-size:clamp(12px,1.6vh,17px)}
.heading-right .heading-note{text-align:right;border-left:0;padding-left:0;max-width:none;font:700 clamp(16px,2.3vh,26px)/1.35 Inter,Arial,sans-serif;color:var(--bone)}
.heading-right .heading-note b{color:var(--yellow)}
body.live #scene-events .events-foot{padding-top:clamp(6px,1vh,12px)}

/* Water & Snow */
.water-board{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(20px,2.4vw,44px);flex:1;min-height:0}
.water-panel{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:#07142a9e;border-top:2px solid var(--yellow);padding:clamp(10px,1.6vh,22px) clamp(18px,1.8vw,32px) clamp(6px,1vh,14px)}
.water-panel .panel-label{border-bottom:1px solid #ffffff40;padding-bottom:8px}
.river-list,.snow-list{display:flex;flex-direction:column;flex:1;min-height:0;justify-content:space-around}
.river-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(70px,.8fr) auto minmax(96px,auto);align-items:center;column-gap:clamp(12px,1.3vw,24px);padding:clamp(4px,.8vh,10px) 0;border-bottom:1px solid #ffffff1f}
.river-row:last-child,.snow-row:last-child{border-bottom:0}
.r-name strong,.s-name strong{display:block;font:700 clamp(17px,2.4vh,28px)/1.1 Inter,Arial,sans-serif;letter-spacing:-.3px;color:var(--bone)}
.r-name span,.s-name span{display:block;font:400 clamp(13px,1.8vh,21px)/1.25 Inter,Arial,sans-serif;color:var(--muted);margin-top:2px}
.spark{width:100%;height:clamp(28px,4.8vh,56px);display:block;overflow:visible}
.spark polyline{vector-effect:non-scaling-stroke;fill:none;stroke:var(--yellow);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.spark circle{fill:var(--bone)}
.r-flow{white-space:nowrap}
.r-flow b{font:400 clamp(28px,5vh,60px)/1 Anton,Impact,sans-serif;color:var(--yellow)}
.s-depth b,.s-water b{font:400 clamp(22px,3.7vh,42px)/1 Anton,Impact,sans-serif;color:var(--yellow)}
.r-flow small,.s-depth small,.s-water small{font:700 clamp(11px,1.5vh,17px)/1 var(--mono);color:var(--muted);letter-spacing:.8px;margin-left:6px}
.r-trend{font:700 clamp(14px,2vh,23px)/1.1 var(--mono);text-align:right;color:var(--muted);white-space:nowrap}
.r-trend.rising{color:var(--yellow)}.r-trend.falling{color:#9db3e6}
.r-trend small{display:block;font-size:.6em;letter-spacing:1px;color:var(--muted);margin-top:3px}
.snow-headline{font:800 clamp(19px,2.8vh,32px)/1.2 Inter,Arial,sans-serif;letter-spacing:-.4px;color:var(--bone);margin:clamp(8px,1.4vh,16px) 0 0}
.snow-row{display:grid;grid-template-columns:minmax(0,1.3fr) auto auto;align-items:center;column-gap:clamp(16px,1.8vw,34px);padding:clamp(2px,.45vh,6px) 0;border-bottom:1px solid #ffffff1f}
.s-depth,.s-water{text-align:right;white-space:nowrap}
.sky-row{display:grid;grid-template-columns:1fr 1fr 1.15fr 1.45fr;gap:clamp(14px,1.6vw,28px);margin-top:clamp(10px,1.8vh,22px)}
.sky-item{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center;background:#07142aaa;border-left:3px solid var(--yellow);padding:clamp(8px,1.3vh,16px) clamp(12px,1.2vw,22px)}
.sky-item>span{grid-column:2;font:700 clamp(11px,1.5vh,17px)/1 var(--mono);letter-spacing:1.4px;color:var(--muted)}
.sky-item>strong{grid-column:2;font:400 clamp(22px,3.2vh,38px)/1.05 Anton,Impact,sans-serif;color:var(--bone);letter-spacing:.3px;margin-top:3px}
.sky-item>small{grid-column:2;font:400 clamp(12px,1.7vh,19px)/1.25 Inter,Arial,sans-serif;color:var(--muted);margin-top:2px}
.sky-item>svg{grid-column:1;grid-row:1 / span 3;width:clamp(36px,5.6vh,60px);height:clamp(36px,5.6vh,60px)}
#scene-water .events-foot{padding-top:clamp(6px,1vh,12px)}
@media(max-width:760px){
  .heading-right .heading-note{text-align:left}.foot-cta{flex-wrap:wrap}
  .heading-right,.foot-cta,.foot-cta>span{max-width:100%;min-width:0}.foot-cta b{overflow-wrap:anywhere;font-size:clamp(16px,5vw,22px)}
  .water-board{grid-template-columns:1fr}.river-row{grid-template-columns:minmax(0,1fr) auto}.spark,.r-trend{display:none}
  .sky-row{grid-template-columns:1fr 1fr}.sky-item>svg{display:none}.sky-item>*{grid-column:1!important}
}
@media(prefers-reduced-motion:reduce){.strip-track{transition:none}}

/* ===== Audit fixes, second pass (2026-11-06) ===== */
/* Boot guard: a scene that is already .active must not defeat it either. */
html.live-boot:not(.live-ready) .display>*:not(.stage) *{visibility:hidden!important}
/* A stream machine with no graphics card redraws the whole 1080p frame whenever anything moves. So: the photo creeps in 160 small steps (a redraw a couple of times
   a second, not sixty), the mist and grain are off, the header is not frosted, and a layer that is not showing does not animate. The sun tint is in coarse steps (app.js). */
body.live .bd-photo{animation-timing-function:steps(160,end)}
body.live .stage .mist,body.live .stage .grain{display:none}
body.live .masthead{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0d0d0cf0}
.bd:not(.on):not(.prev) *{animation-play-state:paused}
/* ?fx=lite (set in the stream's page address if the machine still cannot keep up): no dissolves and no moving backdrop at all. */
body.lite .scene,body.lite .scene.active,body.lite .scene.leaving,body.lite .bd,body.lite .bd.on,body.lite .strip-track{transition:none}
body.lite .scene.entering *{animation:none!important}
body.lite .bd-photo,body.lite .stage .slide,body.lite .stage .pulse,body.lite .stage .mist{animation:none}
body.lite .stage .s1{opacity:1}
.weather-alert.unknown{background:#ffffff26;color:var(--bone)}
.ev-day.cont strong,.ev-day.cont span{opacity:.75}
.r-trend small{font-size:clamp(12px,1.65vh,18px)}


/* The data strip by topic (Morgan 2026-11-06): each topic has its own colour on its label and its bullet, so the strip reads as groups instead of one grey line.
   Rivers blue, snow ice, air white (with its official air-quality dot), weather white, gas and diesel yellow with a green or red arrow, sun amber, sources quiet. */
.strip-item[data-kind]{--topic:#c9c6bd}
.strip-item[data-kind=portneuf],.strip-item[data-kind=snake]{--topic:#4fb8ff}
.strip-item[data-kind=snow]{--topic:#bfe6ff}
.strip-item[data-kind=air],.strip-item[data-kind=weather]{--topic:#f2f0ec}
.strip-item[data-kind=fuel]{--topic:#ffc60d}
.strip-item[data-kind=roads]{--topic:#a8e0b0}
.strip-item[data-kind=sun]{--topic:#ffa94d}
.strip-item[data-kind=sources]{--topic:#8f8c84}
.strip-item[data-kind]{color:var(--topic)}
.strip-item[data-kind]:before{background:var(--topic)}
.strip-item[data-kind=portneuf] b.v,.strip-item[data-kind=snake] b.v{color:#e4f4ff}
.strip-item.roads-notice b.v{color:var(--yellow)}
.strip-item b.sep{color:#8f8c84;margin:0 10px;font-weight:400}
.strip-item b.mv{margin-left:8px}
.strip-item b.mv.up{color:#ff6b5e}
.strip-item b.mv.down{color:#3ddc84}
.strip-item b.mv.flat,.strip-item b.fine{color:#8f8c84;font-weight:400}
.strip-item b.fine{margin-left:14px}
.strip-item[data-kind=sources] b.v{color:#b9b6ae;font-weight:400}
