/* ═══════════════════════════════════════════════════════════
   THE HOLIDAY SPECIAL — the station's Christmas telethon
   Tokens all come from styles.css. No new ones here.
   Mobile first: 375 is the base, wider layouts add on.
   ═══════════════════════════════════════════════════════════ */

/* The live styles.css has no [hidden] guard, and class rules that set
   display (.tv-testcard, .tv-poster, .call-bar) beat the UA's [hidden].
   Scoped to this page's stylesheet so the Channel Guide is untouched. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── tote board ─────────────────────────────────────────── */
.tote {
  position: relative;
  padding: 1.5rem 1rem 1.25rem;
  border: var(--line);
  border-radius: var(--r-1);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(232,162,74,0.10) 0%, transparent 72%),
    rgba(0,0,0,0.22);
}
.tote-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}
.tote-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.2;
  color: var(--cream);
  margin-top: 0.5rem;
}
.tote-sub {
  font-family: var(--f-text);
  font-size: 1.02rem;
  line-height: 1.6;
  color: #B9A98A;
  margin: 0.35rem auto 0;
  max-width: 52ch;
}

/* tiles size off the board's own width, so any total fits at 375 */
.tote-board { container-type: inline-size; margin-top: 1.25rem; }
.tally {
  --w: min(5.5rem, calc(100cqw / (var(--n, 4) * 1.09)));
  --h: calc(var(--w) * 1.38);
  display: flex;
  justify-content: center;
  gap: calc(var(--w) * 0.07);
  min-height: var(--h);
  font-family: var(--f-display);
  font-size: calc(var(--w) * 1.08);
  line-height: var(--h);
  color: var(--amber);
}
.tile {
  position: relative;
  flex: none;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 49%, var(--surface) 51%, var(--bg-2) 100%);
  border: var(--line);
  border-radius: var(--r-1);
  box-shadow: inset 0 0 calc(var(--w) * 0.22) rgba(0,0,0,0.7);
}
/* the seam across the middle of each flap */
.tile::after {
  content: "";
  position: absolute; left: 0; right: 0; top: calc(50% - 1px);
  height: 2px;
  background: rgba(0,0,0,0.65);
}
.reel { display: block; }
.reel b { display: block; height: var(--h); font-weight: 400; }

.tile-mark, .tile-sep {
  background: none; border: 0; box-shadow: none;
  text-align: center;
}
.tile-mark::after, .tile-sep::after { display: none; }
.tile-mark { width: calc(var(--w) * 0.7); }
.tile-sep  { width: calc(var(--w) * 0.42); }

.tote-unit {
  margin-top: 0.75rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.tote-line {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--cream);
}
.tote.is-off .tally { display: none; }
.tote-call {
  max-width: 22rem;
  margin: 1.1rem auto 0;
}

.tote-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.75rem;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--muted);
}
.tote-meta li + li::before { content: "·"; margin-right: 0.75rem; }

/* ── the broadcast ──────────────────────────────────────── */
.broadcast { padding-bottom: 0.5rem; }

/* legs off. The cabinet ends at row 490 of 873 in tv-cut.png. The stage keeps
   its full 832/873 box so the glass coordinates (styles.css, tv.js) still line
   up; the wrapper reserves only the cabinet's height and the clip hides the
   legs. Negative side/top insets keep the screen glow from being cut. */
.tv-crop {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 832 / 490;
  min-height: 0;            /* else aspect-ratio grows to fit the full stage */
}
.tv-crop .tv-stage {
  max-width: none;
  clip-path: inset(-30% -30% 43.87% -30%);
}
@media (max-width: 1000px) {
  .tv-crop { max-width: 640px; }
}
.tv-caption {
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--t-meta);
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
}

/* snow on the glass while nothing's playing */
.tv-snow {
  position: absolute; inset: 0;
  z-index: 4; pointer-events: none;
  opacity: 0.10; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='s'><feTurbulence type='turbulence' baseFrequency='1.1' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.4'/></filter><rect width='160' height='160' filter='url(%23s)'/></svg>");
  animation: snow 800ms steps(4) infinite;
}
.tv-screen.is-live .tv-snow { display: none; }

/* the flyer holds the screen until the video goes up. Flyer is 16:9, the
   glass is ~4:3, so contain it and fill the gap with the flyer's own cream */
.tv-flyer-card { background: #fdf4e6; gap: 0; }
.tv-flyer {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
@keyframes snow {
  0%   { background-position: 0 0; }
  25%  { background-position: -40px 60px; }
  50%  { background-position: 70px -30px; }
  75%  { background-position: -60px -50px; }
  100% { background-position: 0 0; }
}

/* the rest of the room falls away with the header */
.tote, .tv-caption, .cause, .call-in, .give .signoff, .give .guide-return {
  transition: opacity 600ms ease, filter 600ms ease;
}
body.cinema .tote,
body.cinema .tv-caption,
body.cinema .cause,
body.cinema .call-in,
body.cinema .give .signoff,
body.cinema .give .guide-return {
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}
body.cinema .call-bar { display: none; }

/* ── the cause ──────────────────────────────────────────── */
.tiers-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--amber);
  margin-top: 2.25rem;
}
.tiers { margin-top: 0.75rem; border-bottom: var(--line-dash); }
.tiers .chapter { gap: 0.25rem; padding: 1.1rem 0; }
.tiers .chapter:first-child { padding-top: 0.5rem; }
.tiers .chapter-time { font-size: var(--t-body); letter-spacing: 0.08em; padding-top: 0; }
.tiers .chapter p { font-size: 1.05rem; line-height: 1.6; }

.fine {
  margin-top: 1rem;
  max-width: 78ch;
  font-size: var(--t-meta);
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--muted);
}

/* ── the phones ─────────────────────────────────────────── */
.call-in { text-align: center; }
.call-in .guide-title { text-align: left; }

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--amber);
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  transition: background .15s ease;
}
.btn-call:hover { background: var(--highlight); }
.btn-call:focus-visible { outline: 2px dashed var(--cream); outline-offset: 3px; }

.call-closed {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.35;
  color: var(--cream);
}
.call-closed a {
  color: var(--amber);
  overflow-wrap: anywhere;
}
.call-closed a:hover { color: var(--highlight); }
.call-closed a:focus-visible { outline: 2px dashed var(--amber); outline-offset: 3px; }

.share { margin-top: 1.25rem; }
.btn-share {
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  background: none;
  border: var(--line);
  border-radius: var(--r-1);
  font-family: var(--f-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-share:hover { background: rgba(232,162,74,0.1); color: var(--highlight); border-color: var(--highlight); }
.btn-share:focus-visible { outline: 2px dashed var(--amber); outline-offset: 3px; }
.share-note {
  min-height: 1.5rem;
  margin-top: 0.6rem;
  font-size: var(--t-meta);
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--cream);
  overflow-wrap: anywhere;
}

/* ── sticky call bar: phones only ───────────────────────── */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(15,12,11,0.94);
  border-top: var(--line);
}
body.has-call-bar { padding-bottom: 5rem; }

@media (min-width: 720px) {
  .call-bar { display: none; }
  body.has-call-bar { padding-bottom: 0; }
  .btn-call { display: inline-flex; width: auto; padding-inline: 3rem; }
  .tote { padding: 2rem 2.5rem 1.5rem; }
}

@media (min-width: 821px) {
  .tiers .chapter { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-snow { animation: none; }
  .tote, .tv-caption, .cause, .call-in, .give .signoff, .give .guide-return { transition: none; }
  .btn-call, .btn-share { transition: none; }
}
