/* The blend look: open newsroom columns, a full-screen backdrop per scene, glass panels on East Idaho.
   Everything is scoped to body.look-blend, so removing that one class from index.html returns the plain look. */

/* ---------- OPEN NEWSROOM: no boxes, type does the work, yellow only names the source ---------- */
body.look-blend{--bg:#161615}
body.look-blend .news-grid,body.look-blend .local-grid{gap:0;grid-template-columns:1.55fr 1fr 1fr}
body.look-blend .lead-story{padding:34px 40px 28px 34px;margin-right:34px}
body.look-blend .headline-column,body.look-blend .tech-column,body.look-blend .local-aside{background:transparent;padding:4px 30px 0;border-left:1px solid #43433e}
body.look-blend .panel-label{border-bottom:2px solid var(--bone);padding-bottom:10px;color:var(--bone)}
body.look-blend .panel-label>span:first-child{font-weight:700;letter-spacing:1.6px}
body.look-blend .panel-label>span:last-child{color:#8f8c84}
body.look-blend .story h3{font-weight:800;letter-spacing:-.6px;color:var(--bone)}
body.look-blend .story{border-bottom-color:#33332f}
body.look-blend .story-meta{font-size:16px;letter-spacing:1.4px}
body.look-blend .story-meta span:first-child{color:var(--yellow)}
body.look-blend .story-meta span+span{color:#8f8c84}
body.look-blend .lead-content h2{font-size:clamp(36px,2.7vw,56px);line-height:1.06;letter-spacing:-1.4px}
body.look-blend .weather-temp{font-size:96px}

/* ---------- THE BACKDROP: one layer per scene, all stacked behind the screen, header and footer included. The layer of the scene on air is switched on (.on) and
   every layer fades over 1.8 seconds, so one scene's picture dissolves into the next instead of cutting. A layer is a base colour, a photo, and a scrim that keeps the words readable.
   The Wire, Market Pulse and Field Notes: the Idaho photo as a yellow duotone. East Idaho and Weather: full colour, slowly moving, with drifting mist.
   What's Happening: the town at blue hour. Water & Snow: the Snake River. Every scene has film grain so nothing reads as flat black. ---------- */
body.look-blend .display{position:relative;isolation:isolate}
body.look-blend .stage{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#161615}
body.look-blend .display>:not(.stage){position:relative;z-index:1}
.stage i,.stage b{position:absolute;display:block}
/* The layer for the scene coming on (.on) fades in over 1.8 s on top; the layer going out (.prev) stays fully visible underneath until the new one has covered it, then drops away unseen. */
.bd{position:absolute;inset:0;opacity:0;overflow:hidden;will-change:opacity}
.bd.prev{opacity:1;z-index:1;transition:opacity .4s ease}
.bd.on{opacity:1;z-index:2;transition:opacity 1.8s ease}
/* The sun tint, the horizon glow and the grain sit ABOVE every backdrop layer (the layers have positive z-index, so these need one too). */
.stage .daylight,.stage .horizon,.stage .grain{z-index:3}
.bd-photo{inset:-3%;background-size:cover;background-position:center 38%;will-change:transform;animation:zwken 80s ease-in-out infinite alternate}
.bd-scrim{inset:0}
.stage .slides{position:absolute;inset:0}
.stage .slide{position:absolute;inset:-3%;display:block;background-size:cover;background-position:center 42%;opacity:0;will-change:transform,opacity;animation:zwslide 180s linear infinite both,zwken 45s ease-in-out infinite alternate}
.stage .s1{background-image:url(/assets/mountain-dusk.png);animation-delay:-8s,0s}
.stage .s2{background-image:url(/assets/scenes/sunrise-fields.jpg);animation-delay:45s,0s}
.stage .s3{background-image:url(/assets/scenes/snake-river.jpg);animation-delay:90s,-15s}
.stage .s4{background-image:url(/assets/scenes/winter-farm.jpg);animation-delay:135s,-30s}
.stage .mist{left:0;top:30%;width:200%;height:55%;background-size:50% 100%;background-repeat:repeat-x;background-image:radial-gradient(42% 30% at 22% 55%,#ffe6c838,transparent 70%),radial-gradient(36% 26% at 72% 62%,#ffd2b030,transparent 70%);will-change:transform;animation:zwmist 150s linear infinite}
.stage .pulse{left:0;bottom:0;width:4800px;height:80%;background:url(/assets/scenes/pulse.svg) repeat-x;background-size:2400px 100%;will-change:transform;animation:zwdrift 300s linear infinite}
.stage .daylight,.stage .horizon{inset:0;opacity:0}
.stage .grain{inset:0;mix-blend-mode:overlay;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");opacity:.3}
@keyframes zwdrift{to{transform:translateX(-2400px)}}
@keyframes zwslide{0%{opacity:0}4%{opacity:1}25%{opacity:1}29%{opacity:0}100%{opacity:0}}
@keyframes zwmist{to{transform:translateX(-50%)}}
@keyframes zwken{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.1) translate3d(-1.8%,-1.2%,0)}}

body.look-blend .masthead,body.look-blend .scene-nav{background:linear-gradient(180deg,#0d0d0cd9,#0d0d0c99);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
body.look-blend .broadcast-footer{background:#0d0d0cc4}

/* The Wire: yellow duotone photo, a scrim that keeps the words easy to read */
.bd-news{background:linear-gradient(135deg,#4a3703 0%,#b88a06 52%,#ffc60d 100%)}
.bd-news .bd-photo{background-image:url(/assets/scenes/sunrise-fields.jpg);background-position:62% 40%;mix-blend-mode:luminosity;filter:brightness(1.7) contrast(1.15)}
.bd-news .bd-scrim{background:linear-gradient(100deg,#161615e6 0%,#161615a0 36%,#16161528 100%),radial-gradient(65% 85% at 100% 100%,#ffc60d70,transparent 68%)}
body.look-blend #scene-news .lead-story{background:transparent;border-left:6px solid var(--yellow);padding-left:34px}
body.look-blend #scene-news .lead-story.bracketed:before,body.look-blend #scene-news .lead-story.bracketed:after{display:none}
body.look-blend #scene-news .headline-column,body.look-blend #scene-news .tech-column{background:#16161566}
body.look-blend #scene-news .lead-content h2{text-shadow:0 2px 20px #000a}

/* Market Pulse: the same duotone, a rising line moving behind the six quote cards */
.bd-markets{background:linear-gradient(225deg,#4a3703 0%,#b88a06 52%,#ffc60d 100%)}
.bd-markets .bd-photo{background-image:url(/assets/scenes/snake-river.jpg);background-position:40% 55%;mix-blend-mode:luminosity;filter:brightness(1.7) contrast(1.15)}
.bd-markets .bd-scrim{background:linear-gradient(180deg,#161615c4 0%,#16161570 100%),radial-gradient(65% 85% at 0% 100%,#ffc60d66,transparent 68%)}

/* East Idaho: the full-colour photos, slow push-in, mist drifting across the ridges */
.bd-local{background:#161615}
.bd-local .bd-scrim,.bd-weather .bd-scrim{background:linear-gradient(180deg,#0c1020a8 0%,#0c102050 38%,#0c1020a0 100%)}
body.look-blend #scene-local .local-grid{gap:26px;grid-template-columns:1.55fr 1fr 1fr}
body.look-blend #scene-local .lead-story,body.look-blend #scene-local .headline-column,body.look-blend #scene-local .local-aside{background:#0e1320b8;border:1px solid #ffffff26;margin:0;padding:24px 26px}
body.look-blend #scene-local .lead-story{background:linear-gradient(180deg,#0e132030,#0e1320b0);border-color:#ffc60d70}
body.look-blend #scene-local .lead-content h2{text-shadow:0 2px 22px #000b}
/* The weather card: temperature left, words stacked beside it, even rows underneath */
body.look-blend .local-aside{display:flex;flex-direction:column}
body.look-blend .weather{display:grid;grid-template-columns:auto 1fr;column-gap:22px;align-items:center;padding:14px 0 16px;border-bottom:1px solid #ffffff26}
body.look-blend .weather-temp{grid-row:1 / span 2;font-size:92px;line-height:1}
body.look-blend .weather p{margin:0;align-self:end;font-size:24px;color:var(--bone)}
body.look-blend .weather .story-meta{align-self:start;margin-top:4px;font-size:15px;letter-spacing:.8px}
body.look-blend .local-links-label{margin-top:16px}
body.look-blend .desk-link{padding:14px 0}

/* What's Happening: the town at blue hour, darkened enough for a full agenda to read */
.bd-events{background:#070b18}
.bd-events .bd-photo{background-image:url(/assets/scenes/main-street.jpg);background-position:center 38%}
.bd-events .bd-scrim{background:linear-gradient(180deg,#070b1888 0%,#070b1860 40%,#070b18c8 100%)}

/* The agenda: events in time order under a heading for each day, filled down the left column and then the right (CSS columns); fitScene removes
   the last rows until nothing spills into a third column, so every screen shows exactly what fits. Sizes follow the screen height. */
.agenda{flex:1;min-height:0;column-count:2;column-gap:clamp(36px,3.4vw,72px);column-fill:auto;overflow:hidden;background:#070b18dc;border-top:2px solid var(--yellow);padding:clamp(6px,1.2vh,16px) clamp(22px,2vw,40px) 0}
.agenda>.empty{column-span:all}
.ev-day{break-after:avoid;break-inside:avoid;display:flex;align-items:baseline;gap:14px;padding:clamp(8px,1.4vh,16px) 0 clamp(4px,.8vh,10px);border-bottom:2px solid #ffffff40}
.ev-day strong{font:400 clamp(26px,3.7vh,44px)/1 Anton,Impact,sans-serif;letter-spacing:.4px;color:var(--yellow)}
.ev-day span{font:700 clamp(16px,2.1vh,26px)/1 var(--mono);letter-spacing:.6px;color:var(--bone)}
.ev-day em{margin-left:auto;align-self:center;font:700 clamp(13px,1.7vh,19px)/1 var(--mono);letter-spacing:1px;color:#1a1a1a;background:var(--yellow);padding:4px 10px}
.event-row{break-inside:avoid;display:grid;grid-template-columns:clamp(98px,8.6vw,160px) minmax(0,1fr) auto;column-gap:clamp(14px,1.4vw,26px);align-items:start;padding:clamp(7px,1.25vh,15px) 0;border-bottom:1px solid #ffffff1f}
.ev-time{display:flex;flex-direction:column;gap:2px;font:700 clamp(19px,2.6vh,30px)/1.05 var(--mono);color:var(--yellow);letter-spacing:-.3px}
.ev-time small{font:700 clamp(12px,1.6vh,18px)/1 var(--mono);color:var(--muted);letter-spacing:.8px}
.ev-time.tba{font-size:clamp(15px,2vh,22px);color:var(--muted);padding-top:.2em}
.ev-body{min-width:0}
.ev-body h3{font:700 clamp(19px,2.8vh,32px)/1.18 Inter,Arial,sans-serif;letter-spacing:-.4px;margin:0;color:var(--bone);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ev-body h3 a{display:inline}
.ev-meta{font:400 clamp(14px,1.95vh,23px)/1.3 Inter,Arial,sans-serif;color:#b6b4ad;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev-tag{align-self:start;margin-top:.3em;font:700 clamp(11px,1.5vh,16px)/1 var(--mono);letter-spacing:1px;color:var(--yellow);border:1px solid #ffc60d99;padding:4px 7px}
.heading-right{display:flex;align-items:center;gap:clamp(18px,2vw,36px)}
@media(max-width:760px){.agenda{column-count:1;overflow:visible;padding:8px 18px 12px}.event-row{grid-template-columns:90px minmax(0,1fr)}.ev-tag{display:none}.heading-right{flex-direction:column;align-items:flex-start;gap:14px}}

/* Stay Connected: the mountains at dusk */
.bd-community{background:#0d161c}
.bd-community .bd-photo{background-image:url(/assets/mountain-dusk.png);background-position:center 44%}
.bd-community .bd-scrim{background:linear-gradient(90deg,#0d1b25bd 0%,#0d1b2533 80%),linear-gradient(0deg,#0d161ccf,#0d161c00 70%)}

/* Field Notes: the winter farm, yellow duotone */
.bd-notes{background:linear-gradient(135deg,#4a3703 0%,#b88a06 52%,#ffc60d 100%)}
.bd-notes .bd-photo{background-image:url(/assets/scenes/winter-farm.jpg);background-position:50% 58%;mix-blend-mode:luminosity;filter:brightness(1.7) contrast(1.15)}
.bd-notes .bd-scrim{background:linear-gradient(100deg,#161615ee 0%,#161615b4 46%,#16161548 100%),radial-gradient(60% 80% at 100% 100%,#ffc60d66,transparent 66%)}

/* Weather: the mountains in full colour, with mist */
.bd-weather{background:#161615}
.bd-weather .bd-photo{background-image:url(/assets/mountain-dusk.png);background-position:center 40%}

/* Water & Snow: the mountains at dusk, darkened to blue so the numbers read. Not the AI "snake river" picture: behind a list of real
   Snake River gauges it would read as a photo of the place. */
.bd-water{background:#07142a}
.bd-water .bd-photo{background-image:url(/assets/mountain-dusk.png);background-position:center 45%}
.bd-water .bd-scrim{background:linear-gradient(180deg,#07142aa8 0%,#07142a55 45%,#07142ad0 100%)}

@media(prefers-reduced-motion:reduce){.bd,.bd.on{transition:none}.bd-photo,.stage .mist,.stage .slide,.stage .pulse{animation:none}.stage .s1{opacity:1}}
body.look-blend .heading-note{color:var(--bone);border-left-color:#ffffff59;text-shadow:0 1px 14px #000d}
