/* ============================================================
   Delta — Stage additions

   styles.css still carries the carousel itself (card, stage, rail,
   controls) unchanged. This sheet adds only what the Regulation
   Report needs on top: the filter, the report-card variant, and
   the related strip.
   ============================================================ */

/* ---------- Intro ---------- */

.intro__eyebrow{
  margin:0 0 clamp(8px,.8vw,14px);
  font-size:12px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--orange);
}
/* Two lines, not three: the intro column is narrow and the theme's display
   size pushed the script onto a third. */
.intro__title{ white-space:normal; font-size:clamp(30px,2.9vw,50px); }
.intro__copy{ max-width:32ch; }

/* ---------- Filter ---------- */

.filters{
  margin-top:clamp(16px,1.6vw,26px);
  display:grid; gap:10px;
  pointer-events:auto;              /* the intro above it is click-through */
}
.filter{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; }

.filter__legend{
  font-size:10.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.45);
  margin-right:2px;
}
/* Community submissions carry no verdict, so the group dims rather than
   offering choices that can only return an empty stage. */
.filter--theme{ transition:opacity .3s var(--ease); }

.filter__btn--v{ padding:6px 12px; font-size:clamp(11.5px,.84vw,13px); }
.filter__btn--v::before{
  content:""; display:inline-block; width:7px; height:7px;
  border-radius:50%; background:currentColor; margin-right:.5em;
  vertical-align:.04em;
}
.filter__btn--v[data-verdict="all"]::before{ display:none; }
.t-all{ color:rgba(255,255,255,.8); }
.t-prohibition{ color:#FF7A6B; }
.t-economy{ color:#FFC368; }
.t-health{ color:#86D0D7; }
.t-money{ color:#C9A7FF; }
.t-all[aria-pressed="true"]{ background:#fff; border-color:#fff; color:var(--bg); }
.t-prohibition[aria-pressed="true"]{ background:#FF7A6B; border-color:#FF7A6B; color:var(--bg); }
.t-economy[aria-pressed="true"]{ background:#FFC368; border-color:#FFC368; color:var(--bg); }
.t-health[aria-pressed="true"]{ background:#86D0D7; border-color:#86D0D7; color:var(--bg); }
.t-money[aria-pressed="true"]{ background:#C9A7FF; border-color:#C9A7FF; color:var(--bg); }
.filter__btn--v:disabled{ opacity:.42; cursor:not-allowed; }
.filter__btn{
  font:inherit; font-size:clamp(12px,.88vw,14px); font-weight:600;
  color:rgba(255,255,255,.78); background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18); border-radius:999px;
  padding:8px 15px; cursor:pointer;
  transition:background .26s var(--ease), color .26s var(--ease), border-color .26s var(--ease);
}
.filter__btn:hover{ color:#fff; border-color:rgba(255,255,255,.36); }
.filter__btn[aria-pressed="true"]{ background:#fff; border-color:#fff; color:var(--bg); }
.filter__btn:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }

.filter__count{
  margin:0; flex-basis:100%;
  font-size:11.5px; font-weight:600; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(255,255,255,.5);
}

.stage-empty{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  margin:0; font-size:15px; color:rgba(255,255,255,.7);
}

/* ---------- Report card variant ---------- */

/* The claim is the card's headline, so a report card leads with it rather
   than with a person. */
/* ---------- Report cards: dark glass ----------
   The surface is what tells you which kind of thing you are looking at, so
   report episodes sit on dark glass and community submissions keep the cream.
   That is also why report cards no longer carry a badge — the card itself
   already said it. */

.card--report{
  --rc-ink:#FFFFFF;
  --rc-soft:rgba(255,255,255,.82);
  --rc-mute:rgba(255,255,255,.60);

  background:rgba(22,15,58,.82);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  backdrop-filter:blur(18px) saturate(1.15);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 40px 80px -46px rgba(0,0,0,.9);
}
/* the media placeholder tone was mixed for the cream card */
.card--report .card__media{ background:linear-gradient(150deg,#2A1E5E,#150E3C); }
.card--report .card__foot{ border-top-color:rgba(255,255,255,.18); }
.card--report .card__quote::before{ color:var(--orange-lit); }

/* ---------- Verdict stamp ----------
   Sized to stay legible in a screenshot with no surrounding context, which is
   how a single fact-check actually travels. */

.stamp{
  position:absolute; top:12px; left:12px; z-index:3;
  display:inline-grid; gap:3px; padding:9px 14px 8px;
  border-radius:10px;
  background:rgba(10,6,26,.66);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1.5px solid currentColor;
  transition:opacity .28s var(--ease), transform .28s var(--ease);
}

/* The stamp sits over the top-left of the frame. That is fine on a still
   poster and is clutter over a moving picture, so it steps aside while the
   video is actually rolling and comes straight back on pause, on the end
   card, and on close.
   Keyed on `is-rolling`, not `is-playing`: the latter only means a player is
   mounted, so it would stay hidden through a pause. It fades rather than
   disappearing, because an element that vanishes the instant you press play
   reads as a glitch. */
.card.is-rolling .stamp{
  opacity:0; pointer-events:none; transform:translateY(-4px);
}

/* Someone who turned animation down gets the plain version. */
@media (prefers-reduced-motion: reduce){
  .stamp{ transition-duration:.01ms; }
  .card.is-rolling .stamp{ transform:none; }
}
.stamp__q{
  font-family:var(--sans); font-weight:800;
  /* A question runs far longer than a one-word verdict, so this is sized to
     stay legible in a screenshot without wrapping past two lines. */
  font-size:clamp(13px,1.15vw,20px); line-height:1.12;
  letter-spacing:-.012em;
  color:currentColor;
  max-width:22ch;
}
.stamp__meta{
  font-size:clamp(8.5px,.62vw,10.5px); font-weight:700;
  letter-spacing:.13em; text-transform:uppercase;
  color:rgba(255,255,255,.74);
}
/* One colour per theme, so the stamp doubles as the theme cue. */
.stamp--prohibition{ color:#FF7A6B; }
.stamp--economy{ color:#FFC368; }
.stamp--health{ color:#86D0D7; }
.stamp--money{ color:#C9A7FF; }

.card__meta{ display:flex; align-items:center; gap:10px; margin:0 0 clamp(10px,.9vw,16px); }

.card__num{
  font-size:11px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--rc-mute);
}

/* Claims stay in the sans — below about 42px the script stops being quick to
   read, and a claim is the thing a viewer parses fastest. */
.card__quote--claim{
  font-family:var(--sans); font-weight:700;
  font-size:clamp(16px,1.55vw,28px); line-height:1.24;
  letter-spacing:-.02em; padding-left:0;
  color:var(--rc-ink);
}
.card__quote--claim::before{ content:none; }

.card--report .card__foot{ display:block; }
.card__line{
  margin:0; font-size:clamp(12px,.92vw,15px); line-height:1.5;
  color:var(--rc-soft);
}


/* ---------- Close, on the player ---------- */

.card__close{
  position:absolute; top:10px; right:10px; z-index:4;
  display:grid; place-items:center;
  width:30px; height:30px; border-radius:50%;
  background:rgba(12,8,32,.62); border:1px solid rgba(255,255,255,.34);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  color:#fff; cursor:pointer; padding:0;
  opacity:0; pointer-events:none;
  transform:scale(.9);
  transition:opacity .26s var(--ease), transform .26s var(--ease),
             background .26s var(--ease), color .26s var(--ease);
}
.card__close svg{
  width:44%; height:44%;
  fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round;
}
/* Only on the card that is actually playing — a close button on every card in
   the deck would read as "remove this video". */
.card.is-active.is-playing .card__close{ opacity:1; pointer-events:auto; transform:scale(1); }
.card__close:hover{ background:#fff; color:var(--bg); border-color:#fff; }
.card__close:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; opacity:1; pointer-events:auto; }

@media (prefers-reduced-motion:reduce){
  .card__close{ transition-duration:.01ms; }
}

/* ---------- Rail dots, by kind ---------- */

.dot--report::after{ background:var(--orange); }
.dot--community::after{ background:rgba(255,255,255,.5); }
.dot[aria-selected="true"]::after{ background:var(--orange); transform:scale(1.7); }
.dot--community[aria-selected="true"]::after{ background:#fff; }

/* ---------- Related strip ---------- */

.related{
  /* Sits ON the deck rather than beside it, and stops above the controls so
     the rail stays usable. It used to pad its own bottom by the full height
     of the controls (~164px of nothing), which made the drawer 376px tall
     and forced the deck to scale down to clear it. Now its height is its
     content, and the deck is nudged up instead of shrunk — see fitDeck. */
  position:fixed; left:0; right:0; z-index:600;
  bottom:var(--controls-h, 110px);
  padding:clamp(14px,1.3vw,22px) var(--pad-x) clamp(12px,1.2vw,18px);
  /* Solid, with a hard top edge. The gradient's transparent top let the
     card's headline ghost up through the drawer, which read as a rendering
     fault rather than a layer — and a soft fade is off-system in a set
     where every other corner and edge is hard. The theme draws a red rule
     along this edge. */
  background:#0A071C;
  animation:relIn .38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The mobile layout puts the strip in the flow under the deck, where a
   fixed offset would leave a gap. */
@media (max-width:760px){
  .related{ position:static; bottom:auto; }
}
@keyframes relIn{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }

/* The close sits next to the heading, not at the far edge of a full-width
   bar where it read as unrelated furniture. */
.related__top{
  display:flex; align-items:center; flex-wrap:wrap;
  gap:12px; margin-bottom:clamp(10px,1vw,16px);
}
.related__hd{
  margin:0; font-size:11px; font-weight:700; letter-spacing:.15em;
  text-transform:uppercase; color:var(--orange);
}
.related__close{
  flex:none; display:inline-flex; align-items:center; gap:.55em;
  padding:7px 14px 7px 11px; border-radius:999px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.26);
  color:#fff; cursor:pointer;
  font:inherit; font-size:clamp(12px,.88vw,14px); font-weight:600;
  transition:background .26s var(--ease), color .26s var(--ease), border-color .26s var(--ease);
}
.related__close svg{ width:1.05em; height:1.05em; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.related__close:hover{ background:#fff; border-color:#fff; color:var(--bg); }
.related__close:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }

.related__esc{
  font-size:11.5px; color:rgba(255,255,255,.48); letter-spacing:.02em;
}

.related__list{
  margin:0; padding:0 0 10px; list-style:none;   /* room for the card shadows */
  display:flex; gap:clamp(10px,1vw,16px);
  overflow-x:auto; scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.related__list::-webkit-scrollbar{ display:none; }
.related__list > li{ flex:0 0 auto; }

.rel{
  display:flex; align-items:center; gap:clamp(9px,.9vw,14px);
  width:clamp(300px,27vw,410px); padding:10px 18px 10px 10px;
  text-align:left; font:inherit; cursor:pointer;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px; color:inherit;
  transition:background .26s var(--ease), border-color .26s var(--ease), transform .26s var(--ease);
}
.rel:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.3); transform:translateY(-2px); }
.rel:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }

.rel__art{
  position:relative; flex:none; display:block;
  width:clamp(104px,8.6vw,136px); aspect-ratio:16/10;
  border-radius:9px; overflow:hidden; background:#241130;
}
.rel__art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.rel__art--text{
  display:grid; place-items:center;
  background:rgba(255,255,255,.10);
  font-family:var(--quote); font-size:38px; color:var(--orange);
  line-height:0; padding-top:20px;
}
.rel__play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:38%; aspect-ratio:1; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.92); color:var(--bg);
}
.rel__play svg{ width:40%; height:40%; fill:currentColor; stroke:none; margin-left:8%; }
.rel__dur{
  position:absolute; right:4px; bottom:4px;
  font-size:10.5px; font-weight:600; color:#fff;
  background:rgba(10,7,28,.76); border-radius:4px; padding:2px 5px;
}

.rel__body{ min-width:0; display:grid; gap:3px; }
.rel__kind{
  font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
}
.rel__kind--report{ color:var(--orange); }
.rel__kind--community{ color:rgba(255,255,255,.55); }
.rel__title{
  font-size:clamp(13.5px,1.02vw,16px); font-weight:700; color:#fff;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.rel__sub{
  font-size:clamp(12.5px,.92vw,14px); line-height:1.4; color:rgba(255,255,255,.72);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* The strip covers the bottom of the deck, so the cards lift clear of it.

   This used to also scale the deck down (--deck-fit) when a short viewport
   could not fit both clearances. That is what made the player visibly shrink
   the moment you pressed play, which is the one thing a video card must never
   do — so the deck now only ever MOVES. fitDeck pins --deck-fit to 1 and the
   scale has been taken out of this transform entirely: left in, a single
   future line writing --deck-fit would bring the shrinking straight back with
   nothing here to show why. The drawer lost 164px of dead padding, which is
   what bought the room. */
.stage__track{
  transform:translateY(var(--deck-shift, 0px));
  transition:transform .42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Short viewports can't satisfy both clearances at once — the deck is sized
   from width, so on a wide-but-short screen it nearly fills the height. The
   header wins: the strip's top edge is a transparent gradient, so letting it
   ride over the card's lower edge costs nothing, whereas sliding the card
   under the header hides the badge and controls. */
@media (max-height: 860px){
  /* The lift is computed in stage.js now and written to .stage__track; a
     value here would override it, which is how the JS shift ended up doing
     nothing. The drawer's clearance is gone too — it stops above the
     controls rather than padding itself past them. */
  .rel__art{ width:clamp(88px,7vw,110px); }
  .rel{ padding:8px 15px 8px 8px; }
}

/* ---------- Responsive ---------- */

@media (max-width:760px){
  .filters{ margin-top:4px; gap:8px; }

  /* One row each, scrolled sideways rather than wrapped: two wrapping groups
     ate roughly 200px of a phone screen before the deck even started. */
  .filter{
    flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;
    -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
    padding-bottom:2px;
  }
  .filter::-webkit-scrollbar{ display:none; }
  .filter > *{ flex:0 0 auto; }

  /* 40px minimum on the tap targets; they were 31px. */
  .filter__btn{
    padding:0 14px; min-height:40px; font-size:12.5px;
    display:inline-flex; align-items:center;
  }
  .filter__btn--v{ padding:0 13px; min-height:40px; font-size:12.5px; }
  .filter__legend{ align-self:center; }
  /* A bottom sheet, not a block in the flow.

     In flow it opened below the fold: you tapped "Review the Facts" and
     nothing appeared to happen until you scrolled. It was in flow because
     fixed used to cover the lower half of the card — but the card now parks
     under the header when the strip opens (see showRelated), so the video
     sits clear above the sheet and the fixed position is free to use.

     Height is its content. The old rule padded the bottom by the height of
     the desktop controls — 96px of nothing on a phone — which is what made
     the drawer 361px tall in a 660px viewport. The cap and the scroll are a
     guard for a long fact, not the normal case. */
  .related{
    position:fixed; left:0; right:0; bottom:0; top:auto;
    z-index:600; animation:none; margin-top:0;
    padding:clamp(12px,3.4vw,18px) var(--pad-x)
            calc(clamp(12px,3.4vw,18px) + env(safe-area-inset-bottom, 0px));
    max-height:58vh; overflow-y:auto; -webkit-overflow-scrolling:touch;
    background:#0A071C;
    box-shadow:0 -18px 40px rgba(2,5,16,.55);
  }
  .rel{ width:min(82vw,330px); }

  /* The stamp sits over the top of the video and repeats, word for word,
     the episode number and theme printed directly beneath it in the card
     body. On a 305px-wide phone video that cost 16% of the frame to say
     nothing new, so it is a desktop lower-third only. */
  .card .stamp{ display:none; }

  /* The card body carried desktop spacing on a phone, which pushed the
     "Review the Facts" link just under the fold. Tightened so the whole
     card — video, title, line and link — reads in one screen. */
  .card__body{ padding:14px 18px; }
  .card__meta{ margin-bottom:7px; }
  .card__foot{ margin-top:10px; padding-top:8px; }
  .card__line{ line-height:1.42; }
  .card__receipts{ margin-top:8px; }

  .filter__count{ font-size:10.5px; margin-top:8px; }

  /* 40px minimum: these were 30px, below what a thumb hits reliably — and the
     × is one of the ways out of the playing state. */
  .card__close{ width:40px; height:40px; top:9px; right:9px; }
  .card__close svg{ width:38%; height:38%; }
  .related__close{ min-height:40px; padding:0 16px 0 13px; }

  /* There is no Esc key on a phone. The line was taking a row of a sheet
     that is working to a height budget, to name a way out that does not
     exist on the device — the × above it is the way out here. */
  .related__esc{ display:none; }

  /* The deck arrows were 28×28, under the 40px the rest of the phone UI
     holds. The glyph keeps its size; only the target grows. */
  .rail__arrow{ width:40px; height:40px; padding:6px; }
  .rail__arrow svg{ width:100%; height:100%; }

  /* The facts sheet is a fixed panel across the bottom and the deck rail
     sits underneath it — measured at 393x852: arrows on screen at y736, the
     sheet's top edge at y625, and elementFromPoint over the arrow returns
     the sheet. They looked pressable and were not.
     A control that cannot be pressed is worse than one that is not there, so
     they stand down while the sheet is open. Swiping still moves the deck,
     and moving the deck closes the sheet. visibility, not display, so
     nothing reflows under the panel. */
  .related:not([hidden]) ~ .controls .rail{
    visibility:hidden; pointer-events:none;
  }

  /* The transport buttons were 16×16 on a phone — play, mute and fullscreen
     alike, less than half the 40px minimum this build holds everywhere else.
     The fullscreen button was reported as "not working" on mobile; it had a
     real bug underneath (see toggleFullscreen), but a 16px target is
     indistinguishable from a dead one anyway, so both are fixed.
     Only the target grows. The glyph stays the size it was. */
  .ctl{ width:40px; height:40px; aspect-ratio:auto; }
  .ctl svg{ width:17px; height:17px; }
  .card__controls{ padding:3px 8px; gap:2px; }
  .ctl__time{ font-size:11px; }

  /* Same argument for the scrubber: a 14px-tall drag target on a touch
     screen. The visible bar is drawn by ::before and stays 3px — the hit
     area around it is what grows, so it has to be re-centred explicitly
     rather than left on its static position. */
  .scrub{ height:30px; }
  .scrub::before, .scrub__fill{ top:50%; transform:translateY(-50%); }
}

@media (prefers-reduced-motion:reduce){
  .related{ animation:none; }
  .stage__track{ transition:none; }
  .rel, .filter__btn{ transition-duration:.01ms; }
}

/* ---------- Embedded episode ----------
   Same frame as a native video card: the poster fills the media box until the
   play gesture swaps in the iframe. */

.card__media--embed{ position:relative; }
.card__poster{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block;
}
.card__embed{ position:absolute; inset:0; z-index:2; }
.card__embed:empty{ display:none; }
.card__embed iframe{ width:100%; height:100%; display:block; border:0; }

.card__embed .card__ytmount, .card__embed iframe{ width:100%; height:100%; border:0; display:block; }

/* A transparent catcher over the frame, so a click on the video runs our
   toggle rather than YouTube's — the iframe would otherwise swallow it. */
.card__hit{
  position:absolute; inset:0; z-index:3;
  background:transparent; border:0; padding:0; cursor:pointer;
}
.card__media--embed:not(.is-armed) .card__hit{ display:none; }

/* An armed card has a real YouTube player mounted so the first tap can start
   it inside its own gesture (see "Arming" in stage.js) — but the viewer has
   not pressed play yet, so they should still be looking at our poster and
   our play button, not YouTube's chrome. The mount waits behind them. */
.card:not(.is-playing) .card__media--embed.is-armed .card__embed{
  opacity:0; pointer-events:none;
}
/* ── The frame belongs to YouTube once it is playing ──────────────────────
   The embed now runs YouTube's own controls (see playerVars in stage.js),
   because its fullscreen button is the only one that behaves properly on an
   iPhone. Two things of ours have to stand down for that to work:

   - .card__hit, the transparent catcher, sat over the whole frame and would
     swallow every press meant for those controls. It existed to route taps
     to our own play/pause; YouTube does that itself now.
   - .card__controls, our transport, would be a second set of controls over
     the top of YouTube's.

   What stays is everything YouTube does not own: the poster, the big play
   button that starts it, the close ×, and all the card chrome outside the
   frame. The local-video path is untouched — a real <video> element gets
   real fullscreen on iOS, so it keeps our transport. */
.card.is-playing .card__media--embed .card__hit{ display:none; }
.card__media--embed .card__controls{ display:none; }
/* the fallback shows YouTube's own controls, so the catcher must not block them */
.card.is-bare .card__hit{ display:none !important; }

/* Once it is playing the poster and the big button step aside. */
.card.is-playing .card__poster{ opacity:0; }
.card__media--embed .card__play{ z-index:4; }
.card__media--embed .card__close{ z-index:5; }
.card__media--embed .card__controls{ z-index:5; }
.card.is-bare .card__controls{ display:none; }

/* ============================================================
   End card — the post-video conversion state

   The scripts are locked and none of them asks anyone to contact a
   representative. The moment a video finishes is the only conversion
   surface the experience has, so it gets the whole card.
   ============================================================ */

.endcard{
  position:absolute; inset:0; z-index:6;
  display:grid; place-items:center;
  padding:clamp(14px,2vw,30px);
  background:linear-gradient(170deg, rgba(8,16,38,.95), rgba(6,11,28,.98));
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  animation:endIn .34s cubic-bezier(0.22, 1, 0.36, 1);
  text-align:center;
}
.endcard[hidden]{ display:none; }
@keyframes endIn{ from{ opacity:0; } to{ opacity:1; } }

.endcard__inner{ max-width:34ch; }

.endcard__q{
  margin:0 0 clamp(6px,.7vw,12px);
  font-family:var(--sans); font-weight:800;
  font-size:clamp(16px,1.5vw,26px); line-height:1.16;
  letter-spacing:-.02em; color:#fff;
}
.endcard__a{
  margin:0 0 clamp(14px,1.5vw,24px);
  font-size:clamp(12.5px,.95vw,15.5px); line-height:1.5;
  color:rgba(242,246,255,.76);
}
.endcard__a--lead{
  font-family:var(--sans); font-weight:800;
  font-size:clamp(16px,1.5vw,26px); letter-spacing:-.02em; color:#fff;
}

.endcard__cta{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:clamp(11px,1vw,15px) clamp(18px,1.7vw,28px);
  background:var(--orange); color:#fff; text-decoration:none;
  border-radius:3px; font-weight:800;
  font-size:clamp(13px,1vw,16px); letter-spacing:.01em;
  box-shadow:0 14px 30px -14px rgba(208,32,46,.9);
  transition:transform .24s var(--ease), box-shadow .24s var(--ease);
}
.endcard__cta svg{ width:1.1em; height:1.1em; fill:none; stroke:currentColor; stroke-width:2; }
.endcard__cta:hover{ transform:translateY(-2px); box-shadow:0 20px 38px -16px rgba(208,32,46,.95); }
.endcard__cta:focus-visible{ outline:3px solid #fff; outline-offset:3px; }

.endcard__alt{
  display:flex; justify-content:center; gap:clamp(8px,1vw,16px);
  margin-top:clamp(12px,1.2vw,20px); flex-wrap:wrap;
}
.endcard__btn{
  font:inherit; font-size:clamp(11.5px,.85vw,13.5px); font-weight:600;
  color:rgba(242,246,255,.76); background:transparent;
  border:1px solid rgba(127,214,255,.3); border-radius:3px;
  padding:8px 14px; min-height:40px; cursor:pointer;
  transition:background .24s var(--ease), color .24s var(--ease);
}
.endcard__btn:hover{ background:rgba(255,255,255,.1); color:#fff; }
.endcard__btn:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }

/* The close and the controls have no job once the end card is up. */
.card.is-ended .card__controls,
.card.is-ended .card__play,
.card.is-ended .card__hit{ display:none; }

/* ---------- Receipts ---------- */

.card__receipts{
  align-self:flex-start; margin-top:clamp(10px,1vw,16px);
  font:inherit; font-size:11px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--orange); background:transparent;
  border:0; border-bottom:1px solid currentColor;
  padding:2px 0; cursor:pointer;
}
.card__receipts:hover{ color:var(--orange-lit); }
.card__receipts:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }

/* Side cards are blurred, scaled-down previews inside a 3D transform, and a
   12px-tall link in there is neither readable nor reliably hit-testable —
   the browser often hands the click to the track behind it. So on anything
   but the active card the link stops being a target and the click falls
   through to the card, which brings it forward. Receipts are then one
   obvious click away, on a card you can actually read. */
.card:not(.is-active) .card__receipts{ pointer-events:none; }

.card__fda{
  margin:clamp(10px,1vw,14px) 0 0;
  font-size:10.5px; line-height:1.45;
  color:var(--rc-mute, rgba(255,255,255,.6));
  border-top:1px solid rgba(127,214,255,.18);
  padding-top:8px;
}

.card__theme{
  font-size:10.5px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--rc-mute, rgba(255,255,255,.55));
}

.rel-tabs{ display:flex; gap:8px; margin-bottom:clamp(10px,1vw,16px); }
.rel-tabs[hidden]{ display:none; }
.rel-tab{
  font:inherit; font-size:clamp(11.5px,.85vw,13.5px); font-weight:700;
  letter-spacing:.06em; text-transform:uppercase;
  color:rgba(242,246,255,.66); background:rgba(255,255,255,.06);
  border:1px solid rgba(127,214,255,.22); border-radius:3px;
  padding:0 14px; min-height:36px; cursor:pointer;
  transition:background .24s var(--ease), color .24s var(--ease);
}
.rel-tab:hover{ color:#fff; }
.rel-tab[aria-selected="true"]{ background:var(--nr-blue, #1E6BD6); border-color:var(--nr-blue, #1E6BD6); color:#fff; }
.rel-tab:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }

/* .related__list sets display:flex, which outranks the browser's own
   [hidden]{display:none}. Without this guard the related strip stayed on
   screen under the receipts, so switching tabs looked like nothing
   happened. Every panel that toggles needs its own guard. */
.related__list[hidden]{ display:none; }
.receipts-panel[hidden]{ display:none; }
.receipts{
  margin:0; padding:0 0 10px; list-style:none;
  display:flex; gap:clamp(10px,1vw,16px);
  overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain;
}
.receipts::-webkit-scrollbar{ display:none; }
.receipts > li{ flex:0 0 auto; }

.receipt{
  position:relative; display:grid; gap:4px;
  width:clamp(260px,24vw,360px);
  padding:clamp(12px,1.1vw,17px) clamp(40px,3vw,48px) clamp(12px,1.1vw,17px) clamp(13px,1.2vw,18px);
  background:rgba(255,255,255,.07);
  border:1px solid rgba(127,214,255,.24);
  border-radius:3px; text-decoration:none; color:inherit;
}
a.receipt:hover{ background:rgba(255,255,255,.14); }
a.receipt:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }
.receipt__kind{
  font-size:10px; font-weight:800; letter-spacing:.13em;
  text-transform:uppercase; color:var(--nr-cyan, #7FD6FF);
}
.receipt__title{ font-size:clamp(13px,.98vw,15.5px); font-weight:700; color:#fff; line-height:1.3; }
.receipt__note{ font-size:12px; line-height:1.45; color:rgba(242,246,255,.68); }
.receipt__go{ position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--orange); font-size:16px; }
.receipt__flag{
  position:absolute; right:12px; top:12px;
  font-size:9.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(242,246,255,.6);
  border:1px dashed rgba(242,246,255,.34); border-radius:3px; padding:2px 6px;
}

.rel-empty{
  margin:0; padding:clamp(12px,1.2vw,18px);
  font-size:13px; color:rgba(242,246,255,.66);
  border:1px dashed rgba(127,214,255,.24); border-radius:3px;
}

/* ---------- Disclosure ----------
   The cuts call themselves "a propaganda-free press report", delivered by
   an actor at a news desk. This is the only place left to say otherwise. */
.stage-disclosure{
  margin:clamp(10px,1.2vw,18px) 0 0;
  font-size:11.5px; line-height:1.5; letter-spacing:.02em;
  color:rgba(242,246,255,.56);
}
.stage-disclosure b{ color:rgba(242,246,255,.78); font-weight:700; }

/* ---------- Age gate ----------
   Shown in the playhead when YouTube refuses the embed. It sits above the
   poster and the hit layer but below the close button, so the card can
   still be dismissed. The transport is hidden because there is nothing
   behind it to control. */
.card__gate{
  position:absolute; inset:0; z-index:3;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:clamp(6px,.7vw,10px);
  padding:clamp(16px,2vw,30px);
  text-align:center;
  background:linear-gradient(to bottom, rgba(8,14,32,.86), rgba(8,14,32,.94));
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}

.card__gate-icon{ display:block; color:var(--orange); }
.card__gate-icon svg{
  width:clamp(26px,2.4vw,34px); height:auto;
  fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round;
}

.card__gate-hd{
  margin:0; max-width:26ch;
  font-family:var(--sans); font-weight:800;
  font-size:clamp(14px,1.2vw,18px); line-height:1.3;
  color:#fff;
}

.card__gate-copy{
  margin:0; max-width:34ch;
  font-family:var(--sans); font-size:clamp(11.5px,.92vw,13.5px);
  line-height:1.5; color:rgba(255,255,255,.76);
}

.card__gate-cta{
  margin-top:clamp(6px,.8vw,12px);
  display:inline-flex; align-items:center; gap:.55em;
  padding:.72em 1.15em;
  font-family:var(--sans); font-size:clamp(12px,.95vw,14px);
  font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  text-decoration:none;
  background:var(--orange); color:#fff;
  transition:background .2s var(--ease);
}
.card__gate-cta svg{
  width:1.05em; height:1.05em; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round;
}
.card__gate-cta:hover{ background:var(--orange-lit, var(--orange)); }
.card__gate-cta:focus-visible{ outline:3px solid #fff; outline-offset:2px; }

/* The hit layer would swallow the link, and the transport has nothing to
   drive, so both stand down while the notice is up. */
.card.is-gated .card__hit{ pointer-events:none; }
.card.is-gated .card__controls,
.card.is-gated .card__play{ display:none; }

/* The stamp is a lower-third for a playing episode. Nothing is playing
   here, and it sits on the same layer as the notice — it was landing on
   top of the icon. The card body below still names the episode. */
.card.is-gated .stamp{ display:none; }

/* Short media on a phone leaves very little room, so the notice tightens
   rather than overflowing. */
@media (max-width:760px){
  /* The close button is a 40px square pinned to the top-right of the player,
     and the centred headline ran straight under it — "on YouTube" sat behind
     the red square. Insetting the headline only pushed it to three lines and
     shoved the CTA out of a 182px player, so the clearance is bought at the
     top instead: the content starts below the button, and the padlock pays
     for it. The padlock was decorative — the headline says "age-restricted"
     in words — and it is the only thing here that can go. */
  .card__gate{
    gap:3px; padding:50px 12px 8px;
    justify-content:flex-start;
  }
  .card__gate-icon{ display:none; }
  .card__gate-hd{ font-size:14px; }
  .card__gate-copy{ font-size:11px; line-height:1.3; }
  /* 40px minimum, like every other control on a phone. This was 28px —
     the smallest target on the card, and in the gated state it is the only
     thing left to press. The gate fits the 190px player with room for it. */
  .card__gate-cta{
    margin-top:6px; padding:0 14px; font-size:11.5px;
    min-height:40px; display:inline-flex; align-items:center;
  }
}

@media (prefers-reduced-motion:reduce){
  .card__gate-cta{ transition:none; }
}

/* ---------- Related references ----------
   A related item is now a named article, report or study rather than
   another card on the deck, so it has no thumbnail and no play state.
   It borrows the receipt card's shape so the two tabs read as one system,
   and carries the same Link TK badge when no destination is confirmed. */
.rel--ref{
  display:flex; align-items:center; justify-content:space-between;
  gap:clamp(10px,1vw,16px);
  width:clamp(300px,27vw,410px);
  padding:clamp(12px,1.1vw,17px) clamp(13px,1.2vw,18px);
  text-align:left; font:inherit; text-decoration:none; color:inherit;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(127,214,255,.24);
}
a.rel--ref:hover{ background:rgba(255,255,255,.14); }
a.rel--ref:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }
.rel--ref .rel__body{ display:grid; gap:4px; min-width:0; }
.rel--ref .rel__title{ white-space:normal; }
.rel__go{ flex:none; font-size:1.1em; opacity:.8; }
.rel__flag{
  flex:none; font-family:var(--sans); font-size:10px; font-weight:800;
  letter-spacing:.1em; text-transform:uppercase;
  padding:.3em .5em; border:1px solid var(--line);
  color:var(--ink-mute); white-space:nowrap;
}

/* ---------- Cinema (fullscreen fallback) ----------
   iPhone Safari has no Fullscreen API for a div or an iframe, so the
   fullscreen button there pins the media box to the viewport instead. See
   toggleFullscreen in stage.js.

   position:fixed is relative to the nearest ancestor with a transform, a
   filter or a perspective — not the viewport. Three ancestors qualify here:
   the track's translate, the active card's inline translate3d from the depth
   maths, and any filter on that card. All three are cleared while cinema is
   on, which is invisible because the pinned media covers the deck anyway.
   Without this the "fullscreen" video would be pinned to the inside of its
   own card and barely move. */

/* The whole chain, measured rather than guessed — .card__media sits inside
   .card inside .stage__track inside .stage, and three of those four capture
   the containing block by a DIFFERENT property:
     .stage        perspective:2200px   (the deck's 3D)
     .stage__track transform + preserve-3d
     .card         will-change:transform,filter,opacity
   will-change alone is enough to do it, even with the transform cleared,
   which is why clearing only the transforms left the "fullscreen" video
   sitting at 198,303 instead of 0,0.
   .stage keeps its overflow:hidden — once it no longer creates the
   containing block it cannot clip a viewport-fixed child, and that rule is
   what stops mobile browsers widening the layout viewport to fit the deck. */
html.has-cinema .stage{ perspective:none !important; }
/* No transition here: the track animates transform over .42s, and while that
   is in flight the computed value is still a matrix, so the containing block
   would linger for most of half a second after the button is pressed. */
html.has-cinema .stage__track{
  transform:none !important; transform-style:flat !important;
  transition:none !important;
}
html.has-cinema .card.is-cinema{
  transform:none !important; filter:none !important; will-change:auto !important;
  /* The card is z-index:400 and positioned, so it is a stacking context: the
     media's z-index:2000 is scoped INSIDE it and counts for nothing against
     the rest of the page. The video was pinned correctly and still had the
     header and the intro painted straight over it. Lifting the card itself
     is what puts the whole subtree on top — above the header (900) and the
     decorative grain layers (8990/9000).
     overflow is opened up so the card's own rounded-corner clip can never
     cut the pinned media, even if an ancestor transform returns later. */
  z-index:9500 !important;
  overflow:visible !important;
}
html.has-cinema, html.has-cinema body{ overflow:hidden; }

/* EVERY cinema rule is gated on html.has-cinema as well as the card's own
   class, and that is load-bearing rather than tidiness.

   The pinning rule below only behaves because the rules above it clear the
   transform, filter and will-change on the ancestors. Those are gated on
   html.has-cinema. If the two classes ever drifted apart — the card still
   .is-cinema with the html flag gone — the media would keep position:fixed
   and height:100dvh while its ancestors went back to capturing the
   containing block, and the result is a 100vw x 100dvh media box jammed
   inside the card: the deck blown apart, the card body pushed off, the page
   header still painted on top. Requiring both classes makes that state
   unreachable: no html flag, no pinning, and the card falls back to its
   ordinary 16/10 media. */
html.has-cinema .card.is-cinema .card__media{
  position:fixed; inset:0; z-index:2000;
  width:100vw; height:100vh; height:100dvh;
  max-width:none; max-height:none; border-radius:0;
  background:#000;
}

/* The frame letterboxes rather than cropping: at full width a cover-fit
   would cut the speaker's head off on a tall phone. */
html.has-cinema .card.is-cinema .card__embed iframe,
html.has-cinema .card.is-cinema .card__video{ object-fit:contain; }

/* ── Full screen means landscape ──────────────────────────────────────────
   iOS Safari does not implement screen.orientation.lock(), so a web page
   cannot turn an iPhone — there is no API for it at any price. What it can
   do is present the video landscape anyway: the pinned frame swaps its two
   dimensions and takes a quarter turn, so a 16:9 picture fills the long axis
   of the screen instead of sitting in a thin band across a tall one, and it
   reads upright the moment the phone is turned.

   Android and desktop Chrome take the real orientation lock in
   lockLandscape() and never match this, because the lock rotates them into
   landscape and the media query stops applying.

   Everything that rotates is INSIDE the frame — the video, the transport,
   the close button and the cue below — so all of it is correctly oriented
   for a phone held sideways. */
@media (orientation: portrait) and (max-width:860px)
   and (hover:none) and (pointer:coarse) {
  html.has-cinema .card.is-cinema .card__media{
    inset:auto; top:50%; left:50%;
    width:100vh;  width:100dvh;
    height:100vw;
    transform:translate(-50%,-50%) rotate(90deg);
    transform-origin:50% 50%;
  }

  /* ::after is already spoken for by .is-missing-media. */
  html.has-cinema .card.is-cinema .card__media::before{
    content:"Turn your phone";
    position:absolute; left:50%; bottom:64px;
    transform:translateX(-50%);
    z-index:2300; pointer-events:none;
    font:700 11px/1 var(--font-ui, inherit);
    letter-spacing:.14em; text-transform:uppercase;
    color:#fff; background:rgba(10,7,28,.78);
    border:1px solid rgba(255,255,255,.18);
    padding:10px 16px; border-radius:999px;
    animation:cinemaHint 5s ease forwards;
  }
}

/* The cue has done its job once the phone is round; it fades rather than
   sitting on the video for the whole episode. */
@keyframes cinemaHint{
  0%,60% { opacity:1; }
  100%   { opacity:0; }
}

/* In cinema the viewport IS the whole screen, so a phone turned landscape
   reports ~850px wide and falls straight out of the max-width:760px phone
   rules — the transport and the close button shrank back to their desktop
   30px on exactly the device and the moment that needs 40. Size these by
   input type rather than by width whenever cinema is on. */
@media (hover:none) and (pointer:coarse) {
  html.has-cinema .card.is-cinema .ctl{
    width:40px; height:40px; aspect-ratio:auto;
  }
  html.has-cinema .card.is-cinema .ctl svg{ width:17px; height:17px; }
  html.has-cinema .card.is-cinema .card__close{ width:40px; height:40px; }
  html.has-cinema .card.is-cinema .scrub{ height:30px; }
  html.has-cinema .card.is-cinema .scrub::before,
  html.has-cinema .card.is-cinema .scrub__fill{
    top:50%; transform:translateY(-50%);
  }
}

/* The transport is the way back out, so it sits above the video and clear of
   the home indicator. */
html.has-cinema .card.is-cinema .card__controls{
  bottom:calc(14px + env(safe-area-inset-bottom, 0px));
  left:14px; right:14px;
}

/* Above the transport, not merely above the video: this is the way out, and
   it must never end up underneath another control. The inset follows the
   safe area on all four sides because in landscape the cutout is on a SIDE,
   not the top. */
html.has-cinema .card.is-cinema .card__close{
  top:calc(12px + env(safe-area-inset-top, 0px));
  right:calc(12px + env(safe-area-inset-right, 0px));
  z-index:2200;
}

/* The close button is normally tied to `.is-playing` — a × on every card in
   the deck would read as "remove this video". But full screen is the one
   state where it is the ONLY way out, and entering it before pressing play
   left the viewer filling their screen with a poster and an invisible,
   non-interactive ×: reported as the button "not rendering".
   Playback now starts with fullscreen, so this should not arise — it stays
   as the guarantee that nothing can strand a viewer full screen. Both the
   pinned fallback and real fullscreen are covered.

   These are three SEPARATE rules on purpose. An unknown selector invalidates
   the whole comma-separated list it sits in, so grouping the prefixed
   fullscreen selector with the others would silently drop the cinema rule in
   any browser that does not know it. */
html.has-cinema .card.is-cinema .card__close{
  opacity:1; pointer-events:auto; transform:scale(1);
}
.card__media:fullscreen .card__close{
  opacity:1; pointer-events:auto; transform:scale(1);
}
.card__media:-webkit-full-screen .card__close{
  opacity:1; pointer-events:auto; transform:scale(1);
}
/* Nothing card-shaped belongs over a full-screen video. */
html.has-cinema .card.is-cinema .stamp,
html.has-cinema .card.is-cinema .endcard{ display:none; }

/* ---------- Swipe indicator ----------
   Desktop shows the whole row, so there is nothing to indicate. The dots
   only appear where the row becomes a one-at-a-time carousel. */
.swipe{ display:none; }

.swipe__dots{ display:flex; align-items:center; gap:7px; }

.swipe__dot{
  width:22px; height:22px; padding:0; border:0; background:none;
  display:grid; place-items:center; cursor:pointer;
}
.swipe__dot::after{
  content:""; width:7px; height:7px;
  background:rgba(242,246,255,.34);
  transition:background .3s var(--ease), transform .3s var(--ease);
}
.swipe__dot[aria-current="true"]::after{
  background:var(--orange); transform:scale(1.5);
}
.swipe__dot:focus-visible{ outline:2px solid var(--orange); outline-offset:0; }

.swipe__count{
  margin:0; font-family:var(--sans); font-size:11px;
  letter-spacing:.09em; text-transform:uppercase; font-weight:700;
  color:var(--ink-mute);
}

@media (max-width:760px){
  .endcard__inner{ max-width:30ch; }
  .stage-disclosure{ padding:0 var(--pad-x); }

  /* One card at a time, with the next one peeking so the row reads as
     something you move through rather than a cut-off list. */
  .related__list,
  .receipts{
    scroll-snap-type:x mandatory;
    scroll-padding-left:0;
  }
  .related__list > li,
  .receipts > li{ scroll-snap-align:start; }

  .receipt{ width:min(82vw,330px); }
  .rel{ width:min(82vw,330px); }

  .swipe{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; margin:2px 0 0; padding:0 2px;
  }
}

@media (prefers-reduced-motion:reduce){
  .swipe__dot::after{ transition:none; }
}

@media (prefers-reduced-motion:reduce){
  .endcard{ animation:none; }
  .endcard__cta{ transition-duration:.01ms; }
}
