/* CH6 Newsdesk: retro broadcast look, tuned for small, low-power Android panels.
   Rules: only transform/opacity animate; no blur or filters; nothing under ~16px on the
   1280x720 stage (it gets scaled down onto a small screen).
   Four looks share one markup: html[data-look="a" | "b" | "c" | "d"]. */

:root {
  --navy-950: #040a1d;
  --navy-900: #06102b;
  --navy-800: #0b1d4d;
  --navy-700: #12296a;
  --blue-600: #1747b5;
  --blue-500: #2a62d9;
  --blue-300: #8fb4ff;
  --gold: #ffcc33;
  --red: #e3262f;
  --red-deep: #a8121a;
  --white: #f4f6fb;
  --soft: #d5ddf0;
  --muted: #a8b6d9;
  --line: rgba(143, 180, 255, 0.22);

  --font: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --top: 80px;   /* top bar height */
  --gap: 18px;   /* outer margin around the programme area */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--white);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* 1280x720 stage, scaled to fit by app.js */
.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, #10276a 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

/* ======================================================================
   TOP BAR
   ====================================================================== */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--top);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, #16307a 0%, #0b1d4d 60%, #071338 100%);
  border-bottom: 3px solid var(--gold);
  z-index: 3;
}

.bug { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.bug-num {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 40px; font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, #ff4a4a, var(--red) 50%, var(--red-deep));
  border: 2px solid #fff;
  border-radius: 8px;
}
.bug-name { font-size: 28px; font-weight: 700; letter-spacing: 3px; line-height: 1; }
.bug-tag { font-size: 16px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; white-space: nowrap; }

.rundown { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rd-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.rd-key {
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  color: var(--navy-900); background: var(--gold);
  padding: 1px 8px; border-radius: 3px;
}
.rd-key.dim { background: var(--muted); }
.rd-val { font-size: 26px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.rd-val.dim { font-size: 19px; color: var(--muted); }

.clockbox { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.live {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; letter-spacing: 2px;
  background: var(--red); padding: 5px 12px; border-radius: 4px;
  max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: 0 0 auto; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.clock { font-size: 40px; font-weight: 500; line-height: 1; text-align: right; }
.clock-ap { font-size: 18px; font-weight: 600; margin-left: 4px; color: var(--gold); letter-spacing: 1px; }
.date { font-size: 15px; letter-spacing: 2px; color: var(--muted); text-align: right; text-transform: uppercase; margin-top: 3px; }

/* Weather chip: only shown in looks B and C, where there's no side rail */
.wx-chip { display: none; align-items: center; gap: 6px; font-size: 36px; font-weight: 500; line-height: 1; }
.wx-chip svg { width: 44px; height: 44px; }

/* ======================================================================
   PROGRAMME AREA
   ====================================================================== */

.onair {
  position: absolute;
  top: var(--top); bottom: 0; left: 0;
  width: 860px;
}

.layer {
  position: absolute;
  inset: var(--gap) 10px var(--gap) var(--gap);
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; visibility: hidden;
}
.onair[data-mode="feature"] .layer-feature,
.onair[data-mode="card"] .layer-card,
.onair[data-mode="hits"] .layer-hits { opacity: 1; visibility: visible; }

/* ---------- feature: photo + lower third, captions underneath ---------- */

.frame {
  position: relative;
  flex: 1; min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--navy-800);
}
.frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-noimg {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 18px, transparent 18px 36px),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.frame-noimg span {
  font-size: 180px; font-weight: 700; letter-spacing: 6px;
  color: rgba(143, 180, 255, .10);
  transform: translateY(-40px);
  white-space: nowrap;
}
.frame.no-image .frame-img { display: none; }
.frame.no-image .frame-noimg { display: flex; }

.frame-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,10,29,.5) 0%, transparent 25%, transparent 38%, rgba(4,10,29,.94) 85%);
}

.seg-tab { position: absolute; top: 16px; left: 0; display: flex; align-items: stretch; font-weight: 600; text-transform: uppercase; }
.seg-name { background: var(--red); padding: 5px 16px 5px 20px; font-size: 22px; letter-spacing: 3px; }
.seg-count { background: rgba(4,10,29,.85); color: var(--gold); padding: 5px 14px; font-size: 20px; letter-spacing: 1px; display: flex; align-items: center; }
.frame.is-spot .seg-name { background: var(--gold); color: var(--navy-900); }
.frame.is-spot .seg-count { color: #fff; font-size: 16px; letter-spacing: 3px; }

.lower-third { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 26px 22px; }
.lt-meta { margin-bottom: 10px; }
.lt-source {
  display: inline-block;
  background: var(--gold); color: var(--navy-900);
  font-size: 18px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 2px 12px; border-radius: 2px;
}
.lt-headline {
  font-size: 42px; font-weight: 600; line-height: 1.12;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); }
.progress-bar { height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.progress-bar.run { animation: progress linear forwards; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Captions: one line at a time, sized to read from across a room */
.captions {
  position: relative;
  flex: 0 0 150px;
  background: rgba(4, 10, 29, .78);
  border-left: 6px solid var(--gold);
  border-radius: 6px;
  padding: 16px 28px;
  display: flex; align-items: center;
}
.cap-line {
  font-size: 34px; font-weight: 400; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cap-line.in { animation: cap-in .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cap-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 7px; }
.cap-dots i { width: 9px; height: 9px; border-radius: 2px; background: rgba(255,255,255,.2); }
.cap-dots i.on { background: var(--gold); }

/* ---------- card: show open / sign-off ---------- */

.layer-card {
  align-items: center; justify-content: center; gap: 8px;
  text-align: center;
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 18px, transparent 18px 36px),
    radial-gradient(ellipse at 50% 35%, #1a3a8f 0%, var(--navy-900) 70%);
}
.card-emblem {
  width: 92px; height: 92px; margin-bottom: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ff4a4a, var(--red) 50%, var(--red-deep));
  border: 3px solid #fff; border-radius: 50%;
  font-size: 58px; font-weight: 700; line-height: 1;
}
.card-kicker { font-size: 18px; letter-spacing: 5px; color: var(--muted); text-transform: uppercase; }
.card-title { font-size: 76px; font-weight: 700; letter-spacing: 3px; color: var(--gold); line-height: 1.05; text-shadow: 0 4px 0 rgba(0,0,0,.45); padding: 0 24px; }
.card-date { font-size: 24px; font-weight: 400; letter-spacing: 3px; color: var(--blue-300); text-transform: uppercase; }
.card-owner { font-size: 16px; letter-spacing: 4px; color: var(--muted); }
.card-lines { min-height: 92px; margin-top: 20px; max-width: 760px; padding: 0 24px; }
.card-lines .cap-line { font-size: 32px; }

/* ---------- list: quick hits and "What's On" ---------- */

.hits-head { display: flex; align-items: baseline; gap: 16px; }
.hits-head span {
  display: inline-block;
  background: var(--red); padding: 4px 18px; border-radius: 2px;
  font-size: 24px; font-weight: 600; letter-spacing: 4px;
}
.hits-head em { font-style: normal; font-size: 20px; letter-spacing: 3px; color: var(--gold); }
.hits { list-style: none; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.hits li {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center;
  background: rgba(11, 29, 77, .7);
  border-radius: 6px;
  padding: 10px;
  opacity: .12;
  transform: translateX(-12px);
  transition: opacity .4s, transform .4s;
}
.hits li.on { opacity: 1; transform: none; }
.hits li.on.done { opacity: .7; }
.hits li > div { min-width: 0; }
.hits .thumb { width: 170px; height: 100%; max-height: 100px; object-fit: cover; border-radius: 4px; background: var(--navy-700); }
.hits .thumb.empty { display: grid; place-items: center; color: rgba(143,180,255,.4); font-size: 22px; font-weight: 600; }
.hits .when {
  width: 170px; height: 100%; max-height: 100px;
  display: grid; place-items: center; text-align: center;
  background: var(--gold); color: var(--navy-900); border-radius: 4px;
  font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: 1px; padding: 0 8px;
}
.hits .src {
  display: inline-block; margin-bottom: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 1px 8px; border-radius: 2px; color: #fff; background: var(--src, var(--muted));
}
.hits .h { font-size: 28px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits .l { font-size: 21px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ======================================================================
   WEATHER RAIL (look A)
   ====================================================================== */

.rail {
  position: absolute;
  top: var(--top); bottom: 0; right: 0;
  width: 420px;
  padding: var(--gap) var(--gap) var(--gap) 8px;
  display: flex; flex-direction: column;
}
.wx-head {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  border-radius: 6px 6px 0 0;
  padding: 8px 18px;
  font-size: 19px; font-weight: 600; letter-spacing: 3px; color: var(--gold);
}
.wx-now, .wx-stats, .wx-sub, .wx-hours, .wx-days, .wx-foot { background: linear-gradient(180deg, #12307f, #0c2160); }
.wx-now { display: flex; align-items: center; gap: 16px; padding: 14px 18px 4px; }
.wx-now-icon { width: 92px; height: 92px; flex: 0 0 auto; }
.wx-temp { font-size: 80px; font-weight: 500; line-height: 1; }
.wx-temp .deg { font-size: 30px; color: var(--gold); vertical-align: top; margin-left: 2px; line-height: 1.6; }
.wx-label { font-size: 22px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); }
.wx-stats { padding: 4px 18px 14px; font-size: 20px; color: var(--muted); letter-spacing: 1px; }

.wx-sub { padding: 8px 18px 2px; font-size: 15px; font-weight: 600; letter-spacing: 3px; color: var(--gold); border-top: 1px solid var(--line); }
.wx-hours { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 10px 12px; }
.wx-hour { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wx-hour .h { font-size: 17px; letter-spacing: 1px; color: var(--muted); }
.wx-hour svg { width: 44px; height: 44px; }
.wx-hour .t { font-size: 26px; font-weight: 500; line-height: 1; }

.wx-days { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 2px 18px 6px; }
.wx-day { display: grid; grid-template-columns: 72px 40px 1fr auto; align-items: center; gap: 10px; }
.wx-day .d { font-size: 20px; font-weight: 600; letter-spacing: 2px; }
.wx-day svg { width: 38px; height: 38px; }
.wx-day .l { font-size: 18px; color: var(--soft); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-day .l em { font-style: normal; color: var(--blue-300); margin-left: 6px; }
.wx-day .hl { font-size: 24px; font-weight: 500; white-space: nowrap; }
.wx-day .hl .lo { color: var(--blue-300); }
.wx-foot { padding: 4px 18px 10px; border-radius: 0 0 6px 6px; font-size: 14px; letter-spacing: 2px; color: var(--muted); text-align: right; }

/* ======================================================================
   WEATHER SEGMENT (full width, all looks)
   ====================================================================== */

.wxshow {
  position: absolute; top: var(--top); bottom: 0; left: 0; width: 1280px;
  padding: var(--gap);
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden;
}
.stage.wx-mode .wxshow { opacity: 1; visibility: visible; }
.stage.wx-mode .onair,
.stage.wx-mode .onair .layer,
.stage.wx-mode .rail { visibility: hidden; }

.wxs-top { flex: 0 0 310px; display: grid; grid-template-columns: 560px 1fr; gap: 16px; }
.wxs-now { background: linear-gradient(180deg, #12307f, #0c2160); border-radius: 6px; padding: 16px 24px; }
.wxs-tag { font-size: 20px; font-weight: 600; letter-spacing: 3px; color: var(--gold); }
.wxs-sponsor { font-size: 17px; letter-spacing: 2px; color: var(--blue-300); text-transform: uppercase; margin-top: 2px; }
.wxs-sponsor:empty { display: none; }
.wxs-now-row { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.wxs-icon { width: 160px; height: 160px; flex: 0 0 auto; }
.wxs-temp { font-size: 120px; font-weight: 500; line-height: 1; }
.wxs-temp .deg { font-size: 44px; color: var(--gold); vertical-align: top; line-height: 1.7; }
.wxs-label { font-size: 30px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; }
.wxs-meta { font-size: 20px; color: var(--blue-300); letter-spacing: 1px; margin-top: 4px; }
.wxs-caption {
  position: relative;
  background: rgba(4, 10, 29, .78);
  border-left: 6px solid var(--gold); border-radius: 6px;
  padding: 20px 30px; display: flex; align-items: center;
}
.wxs-caption .cap-line { font-size: 38px; -webkit-line-clamp: 3; }

.wxs-days { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wxs-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600) 40%, #0c2160);
  border-radius: 6px;
}
.wxs-day .d { font-size: 22px; font-weight: 600; letter-spacing: 3px; color: var(--gold); }
.wxs-day svg { width: 70px; height: 70px; }
.wxs-day .l { font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft); }
.wxs-day .hl { font-size: 34px; font-weight: 500; line-height: 1.1; }
.wxs-day .hl .lo { color: var(--blue-300); }
.wxs-day .p { font-size: 17px; letter-spacing: 1px; color: var(--blue-300); }

/* ======================================================================
   TRANSITIONS & CRT TOUCHES
   ====================================================================== */

/* Segment change: a gold + blue bar sweeps across the programme area */
.wipe {
  position: absolute; top: var(--top); bottom: 0; left: -10%; width: 120%;
  background: linear-gradient(90deg, var(--gold) 0 3%, var(--blue-600) 3% 97%, var(--gold) 97%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 5;
}
.wipe.go { animation: wipe .8s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes wipe { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Static, drawn once, never animates */
.scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 6;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,.10) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 65%, rgba(0,0,0,.4) 100%);
}

/* ======================================================================
   LOOK B: "Big Glance": no rail, everything bigger, weather in the top bar
   (look D, "Bulletin", shares this layout; its colours and type are below)
   ====================================================================== */

[data-look="b"] .rail, [data-look="d"] .rail { display: none; }
[data-look="b"] .onair, [data-look="d"] .onair { width: 1280px; }
[data-look="b"] .layer, [data-look="d"] .layer { inset: var(--gap); }
[data-look="b"] .wx-chip, [data-look="d"] .wx-chip { display: flex; }
[data-look="b"] .rd-row:nth-child(2), [data-look="d"] .rd-row:nth-child(2) { display: none; }
[data-look="b"] .rd-val, [data-look="d"] .rd-val { font-size: 30px; }
[data-look="b"] .lt-headline, [data-look="d"] .lt-headline { font-size: 52px; }
[data-look="b"] .captions, [data-look="d"] .captions { flex-basis: 170px; padding: 18px 36px; }
[data-look="b"] .cap-line, [data-look="d"] .cap-line { font-size: 42px; }
[data-look="b"] .card-title, [data-look="d"] .card-title { font-size: 90px; }
[data-look="b"] .card-lines .cap-line, [data-look="d"] .card-lines .cap-line { font-size: 38px; }
[data-look="b"] .hits li, [data-look="d"] .hits li { grid-template-columns: 200px 1fr; gap: 24px; }
[data-look="b"] .hits .thumb, [data-look="d"] .hits .thumb,
[data-look="b"] .hits .when, [data-look="d"] .hits .when { width: 200px; max-height: 112px; }
[data-look="b"] .hits .when, [data-look="d"] .hits .when { font-size: 28px; }
[data-look="b"] .hits .h, [data-look="d"] .hits .h { font-size: 34px; }
[data-look="b"] .hits .l, [data-look="d"] .hits .l { font-size: 25px; }
[data-look="b"] .scanlines, [data-look="d"] .scanlines { background: radial-gradient(ellipse at center, transparent 65%, rgba(0,0,0,.35) 100%); }

/* ======================================================================
   LOOK C: "Full Screen": edge-to-edge photo, TV lower third, corner weather
   ====================================================================== */

[data-look="c"] { --gap: 0px; }
[data-look="c"] .rail { display: none; }
[data-look="c"] .onair { width: 1280px; }
[data-look="c"] .layer { inset: 0; gap: 0; }
[data-look="c"] .wx-chip { display: flex; }
[data-look="c"] .rd-row:nth-child(2) { display: none; }
[data-look="c"] .frame { border-radius: 0; }
[data-look="c"] .frame-shade { background: linear-gradient(180deg, rgba(4,10,29,.35) 0%, transparent 22%, transparent 45%, rgba(4,10,29,.75) 100%); }
[data-look="c"] .seg-tab { top: 22px; }
/* Headline sits on a solid bar above the caption bar */
[data-look="c"] .lower-third {
  bottom: 150px; left: 0; right: auto; max-width: 1060px;
  padding: 16px 30px 18px 28px;
  background: rgba(6, 16, 43, .92);
  border-left: 8px solid var(--red);
}
[data-look="c"] .lt-headline { font-size: 46px; text-shadow: none; }
[data-look="c"] .captions {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  border-radius: 0; border-left: 0; border-top: 4px solid var(--gold);
  background: rgba(244, 246, 251, .96);
  color: var(--navy-900);
  padding: 18px 40px;
}
[data-look="c"] .cap-line { font-size: 38px; font-weight: 500; }
[data-look="c"] .cap-dots i { background: rgba(6,16,43,.18); }
[data-look="c"] .cap-dots i.on { background: var(--red); }
[data-look="c"] .progress { bottom: 150px; z-index: 1; }
[data-look="c"] .layer-card { border-radius: 0; }
[data-look="c"] .card-title { font-size: 92px; }
[data-look="c"] .layer-hits { padding: 22px 28px; gap: 16px; }
[data-look="c"] .hits .h { font-size: 32px; }
[data-look="c"] .hits .l { font-size: 23px; }
[data-look="c"] .wxshow { padding: 22px 28px; }
[data-look="c"] .scanlines { display: none; }

/* ======================================================================
   ?lite=1: strip the extras for slow panels
   ====================================================================== */

.lite .scanlines,
.lite .wipe { display: none; }
.lite .live-dot { animation: none; }
.lite .stage { background: var(--navy-900); }
.lite .cap-line.in { animation: none; }
.lite .hits li { transition: none; }

/* ?record=1 (Norzad segments): fine scanlines turn to moiré once the video is compressed, and a
   recording plays later, so it shows the date only, never a clock */
.record .scanlines,
.record .clock { display: none; }

/* ?freeze=N (review captures): settle every animation instantly */
.still *, .still *::before, .still *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }

/* ======================================================================
   THINGS TO DO (kids / couples / adventurers) and LOCAL SPOTLIGHT
   ====================================================================== */

.onair[data-mode="todo"] .layer-todo { opacity: 1; visibility: visible; }
.todo { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.todo-col {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(11, 29, 77, .7);
  border-radius: 6px;
  border-top: 6px solid var(--aud, var(--gold));
  padding: 22px 24px;
  justify-content: center;
  opacity: .12;
  transform: translateY(10px);
  transition: opacity .4s, transform .4s;
}
.todo-col.on { opacity: 1; transform: none; }
.todo-col[data-aud="kids"] { --aud: var(--red); }
.todo-col[data-aud="couples"] { --aud: var(--gold); }
.todo-col[data-aud="adventurers"] { --aud: #3fae5a; }
.todo-col svg { width: 80px; height: 80px; }
.todo-for { font-size: 18px; font-weight: 600; letter-spacing: 3px; color: var(--aud); }
.todo-title { font-size: 30px; font-weight: 600; line-height: 1.12; }
.todo-line { font-size: 21px; color: var(--soft); line-height: 1.3; }
.todo-where { align-self: flex-start; font-size: 16px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--navy-900); background: var(--aud); padding: 2px 10px; border-radius: 2px; }

[data-look="b"] .todo-title, [data-look="d"] .todo-title { font-size: 34px; }
[data-look="b"] .todo-line, [data-look="d"] .todo-line { font-size: 24px; }
[data-look="c"] .layer-todo { padding: 22px 28px; gap: 16px; }

/* Spotlight reuses the feature frame with a green tab */
.frame.is-spotlight .seg-name { background: #2f8a4a; }
.frame.is-spotlight .seg-count { color: #fff; font-size: 16px; letter-spacing: 3px; }

/* Original illustrations fill the frame like a photo would */
.frame-img[src$=".svg"] { object-fit: cover; background: var(--navy-800); }
.lite .todo-col, .still .todo-col { transition: none; }

/* Weather credit line (required by the ECCC data licence) */
.wxs-credit { font-size: 15px; letter-spacing: .5px; color: var(--muted); margin-top: 10px; }
.wx-foot { text-transform: none; letter-spacing: .5px; text-align: left; }

/* ======================================================================
   LOOK D: "Bulletin" (the default; approved by Norzad 2026-10-19): look B's layout in one plain
   sans (bold titles, regular captions), red, grey and white, flat, few capitals, no CRT touches.
   The same look as the newsroom-v1 template's. Fonts ship with the site (SIL OFL).
   ====================================================================== */

@font-face { font-family: 'Public Sans'; src: url('fonts/PublicSans.ttf') format('truetype'); font-weight: 100 900; font-display: block; }

[data-look="d"] {
  --red: #c8102e; --red-deep: #8e0b20; --gold: #ffffff;
  --white: #f5f5f3; --soft: #cfd2d6; --muted: #8d939b; --line: #2a2e34;
  --navy-950: #0f1012; --navy-900: #141518; --navy-800: #1d2024; --navy-700: #2a2e34;
  --blue-600: #2a2e34; --blue-500: #3a3f47; --blue-300: #a9afb7;
  --font: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
}
[data-look="d"] .stage { background: #141518; }
[data-look="d"] .scanlines { display: none; }
[data-look="d"] .topbar { background: #0f1012; border-bottom: 1px solid var(--line); }
[data-look="d"] .bug-num, [data-look="d"] .card-emblem { background: var(--red); border: none; border-radius: 2px; font-weight: 800; }
[data-look="d"] .bug-num { font-size: 34px; }
[data-look="d"] .bug-name { font-size: 23px; font-weight: 800; letter-spacing: 1px; }
[data-look="d"] .bug-tag, [data-look="d"] .date, [data-look="d"] .card-kicker, [data-look="d"] .card-date, [data-look="d"] .rd-val, [data-look="d"] .seg-tab,
[data-look="d"] .wxs-label, [data-look="d"] .wxs-day .l, [data-look="d"] .wxs-sponsor { text-transform: none; letter-spacing: .5px; }
[data-look="d"] .rd-key { background: var(--red); color: #fff; }
[data-look="d"] .rd-val { font-size: 24px; font-weight: 600; }
[data-look="d"] .clock { font-weight: 600; }
[data-look="d"] .clock-ap { color: var(--muted); }
[data-look="d"] .live { border-radius: 2px; }
[data-look="d"] .wx-chip { font-size: 30px; font-weight: 600; }

[data-look="d"] .frame, [data-look="d"] .captions, [data-look="d"] .layer-card, [data-look="d"] .hits li, [data-look="d"] .hits .thumb, [data-look="d"] .hits .when,
[data-look="d"] .todo-col, [data-look="d"] .wxs-now, [data-look="d"] .wxs-caption, [data-look="d"] .wxs-day { border-radius: 2px; }
[data-look="d"] .frame-shade { background: linear-gradient(180deg, rgba(18,19,21,.35) 0%, transparent 25%, transparent 42%, rgba(18,19,21,.96) 86%); }
[data-look="d"] .seg-name { font-size: 18px; font-weight: 700; padding: 5px 14px; }
[data-look="d"] .seg-count { color: #fff; background: rgba(15,16,18,.85); font-size: 16px; }
[data-look="d"] .frame.is-spot .seg-name { background: var(--red); color: #fff; }
[data-look="d"] .frame.is-spotlight .seg-name { background: #2f6b47; }
[data-look="d"] .lt-source { background: transparent; color: #fff; padding: 0; font-size: 16px; border-bottom: 2px solid var(--red); border-radius: 0; }
[data-look="d"] .lt-headline { font-size: 48px; font-weight: 800; line-height: 1.15; text-shadow: none; }
[data-look="d"] .progress-bar { background: var(--red); }
[data-look="d"] .captions, [data-look="d"] .wxs-caption { background: #1d2024; border-left: 4px solid var(--red); }
[data-look="d"] .cap-line { font-size: 36px; line-height: 1.3; }
[data-look="d"] .cap-dots i.on { background: var(--red); }

[data-look="d"] .layer-card { align-items: flex-start; text-align: left; padding: 0 80px; background: #17191c; }
[data-look="d"] .card-emblem { width: 64px; height: 64px; font-size: 40px; }
[data-look="d"] .card-title { font-size: 76px; font-weight: 800; letter-spacing: 0; color: #fff; text-shadow: none; padding: 0; }
[data-look="d"] .card-date { font-size: 20px; color: var(--soft); }
[data-look="d"] .card-owner { letter-spacing: 1px; }
[data-look="d"] .card-lines { padding: 0; max-width: 1000px; }
[data-look="d"] .card-lines .cap-line { font-size: 34px; color: var(--soft); }

[data-look="d"] .hits-head span { background: var(--red); font-size: 20px; font-weight: 700; letter-spacing: 1px; }
[data-look="d"] .hits-head em { color: var(--muted); letter-spacing: 1px; }
[data-look="d"] .hits li, [data-look="d"] .todo-col, [data-look="d"] .wxs-now, [data-look="d"] .wxs-day { background: #1d2024; }
[data-look="d"] .hits .when { background: var(--red); color: #fff; }
[data-look="d"] .hits .h, [data-look="d"] .todo-title { font-weight: 700; }
[data-look="d"] .todo-col[data-aud] { --aud: var(--red); }
[data-look="d"] .todo-for { color: #fff; letter-spacing: 2px; }
[data-look="d"] .todo-where { color: #fff; }

[data-look="d"] .wxs-tag, [data-look="d"] .wxs-day .d { color: #fff; letter-spacing: 2px; }
[data-look="d"] .wxs-temp { font-weight: 600; }
[data-look="d"] .wxs-temp .deg, [data-look="d"] .wxs-meta, [data-look="d"] .wxs-sponsor, [data-look="d"] .wxs-day .hl .lo, [data-look="d"] .wxs-day .p { color: var(--muted); }
[data-look="d"] .wxs-label { font-weight: 600; }

[data-look="d"] .wipe { background: linear-gradient(90deg, var(--red) 0 2%, #1d2024 2% 98%, var(--red) 98%); }
