/* ============================================================
   Delta — Newsroom theme

   A modern broadcast set: midnight navy, blue edge-light, a red
   lower-third band, a lat/long globe grid behind the stage, glass
   panels with a lit top edge, scanlines and a running ticker.
   Loaded LAST on every page, so it overrides both the base sheets
   and stage.css.

   Same markup and behaviour as the other themes. Everything here
   is presentation.
   ============================================================ */

:root{
  /* The set is dark, so native UI — dropdown popups, scrollbars, caret,
     autofill — should be too. Without this the browser renders them light,
     which is also what an Artifact's page skeleton would otherwise impose. */
  color-scheme: dark;

  --nr-navy:     #0A1430;   /* the studio dark */
  --nr-navy-2:   #0E1E44;
  --nr-blue:     #1E6BD6;   /* key light */
  --nr-blue-lit: #4FA2F5;
  --nr-cyan:     #7FD6FF;   /* edge light */
  --nr-red:      #D0202E;   /* lower third */
  --nr-white:    #F2F6FF;
  --nr-line:     rgba(127,214,255,.22);

  --bg:          var(--nr-navy);
  --ink:         var(--nr-white);
  --orange:      var(--nr-red);
  --orange-lit:  #F04A54;
  --purple:      var(--nr-navy);
  --cream:       #101C3C;
  --card:        #101C3C;
  --line:        var(--nr-line);
  --ink-soft:    rgba(242,246,255,.82);
  --ink-mute:    rgba(242,246,255,.62);

  --serif: "Inter", system-ui, sans-serif;
  --sans:  "Inter", system-ui, sans-serif;
  --quote: "Inter", system-ui, sans-serif;
}

/* ---------- Ground ---------- */

body{
  background:var(--nr-navy) !important;
  color:var(--nr-white);
  position:relative;
}

/* The set: pools of key light, a cyan wash from the right, and the globe
   grid behind where the deck sits. */
body::before{
  content:"" !important; display:block !important;
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  opacity:1 !important;
  animation:none !important; transform:none !important;
  clip-path:none;
  /* The set photograph, treated before it ever reaches CSS: blurred for depth
     kept sharp so the set's detail is visible, only lightly darkened and
     tinted toward the theme navy. The scrims above it do the legibility work,
     which keeps the image itself crisp.

     Learned the hard way on two earlier bakes: darkening the asset is the
     wrong lever. At brightness .62 the set sat at mean luminance 38 and
     loosening the scrim barely moved it — the asset was the limit, not the
     scrim.

     The scrims above it hold the left column, where every page puts its
     copy, and lift the blue key light back over the top. */
  background:
    linear-gradient(100deg,
      rgba(6,12,30,.90) 0%, rgba(6,12,30,.55) 34%, rgba(6,12,30,.10) 62%, rgba(6,12,30,.20) 100%),
    radial-gradient(58% 46% at 74% 22%, rgba(30,107,214,.34) 0%, rgba(30,107,214,0) 70%),
    url("assets/img/studio-set.jpg") center center / cover no-repeat,
    linear-gradient(180deg, var(--nr-navy-2) 0%, var(--nr-navy) 58%, #070E22 100%);
}

/* Studio floor: the reflected light every set photograph has along the base. */
body::after{
  content:""; position:fixed; left:0; right:0; bottom:0; top:auto; height:34vh;
  z-index:-1; pointer-events:none; clip-path:none;
  background:linear-gradient(to top,
    rgba(30,107,214,.26) 0%, rgba(30,107,214,.08) 42%, transparent 100%);
}

/* Scanlines, plus the ticker along the foot. */
.grain{
  display:block !important;
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:url("assets/img/scanline.png");
  background-repeat:repeat;
  /* full opacity: a blanket .5 here also halved the ticker on ::after and
     washed the red out. The scanline PNG carries its own alpha instead. */
  opacity:1; mix-blend-mode:normal;
}
.grain::after{
  content:"THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 THE REGULATION REPORT \00a0·\00a0 FACT CHECK \00a0·\00a0 SECTION 781 \00a0·\00a0 EFFECTIVE DEC 11 2026 \00a0·\00a0 ";
  /* above the floor gradient, which also sits at -1 and was dulling it */
  position:fixed; left:0; bottom:0; z-index:0;
  white-space:nowrap; will-change:transform;
  padding:7px 0;
  font-family:var(--sans); font-size:11.5px; font-weight:800;
  letter-spacing:.18em; color:var(--nr-white);
  background:var(--nr-red);
  border-top:2px solid rgba(255,255,255,.28);
  /* One set measures ~660px; at two repeats the element was 1323px, narrower
     than the viewport, so the right-hand edge was always empty. */
  animation:tick 120s linear infinite;
}
@keyframes tick{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.vignette{ display:none !important; }

/* Inner pages run content across the full width, so the set drops back. */
body:not([data-texture="quiet"])::before{ opacity:.55 !important; }

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

/* ---------- Type ---------- */

/* Display is set as a poster would set it: heavy, uppercase, tight, and
   nearly touching its own leading. */
.intro__title, .im-title, .ta-title, .ab-title, .bn-title, .tk-title, .rr-title{
  font-family:var(--sans) !important;
  font-weight:800 !important;
  text-transform:uppercase;
  letter-spacing:-.028em !important;
  line-height:.92 !important;
  color:var(--nr-white) !important;
  /* key-light glow instead of a print offset */
  text-shadow:0 0 34px rgba(79,162,245,.55), 0 2px 0 rgba(0,0,0,.35) !important;
}
/* Heavy uppercase sets far wider than the script it replaced; at 5vw
   "REGULATION" ran straight into the deck. */
.intro__title{ font-size:clamp(32px,3.5vw,62px) !important; }
.im-title, .ta-title, .bn-title, .ab-title{ font-size:clamp(32px,3.4vw,58px) !important; }

.intro__eyebrow, .ab-eyebrow, .bn-eyebrow, .tk-eyebrow, .rr-eyebrow{
  color:var(--nr-red) !important;
  font-weight:800; letter-spacing:.2em;
}

/* Rules become solid bars — the hairline belongs to the editorial build. */
.intro__rule, .im-rule, .ta-rule, .ab-rule, .bn-rule, .rr-rule,
.im-band__rule, .ab-band__rule, .bn-band__rule, .bn-fig__rule, .bn-panel__rule{
  background:linear-gradient(90deg,
    var(--nr-red) 0 58%, var(--nr-blue) 58% 100%) !important;
  height:6px !important; border-radius:0 !important;
  width:96px !important;
}

.intro__copy, .im-lede, .ta-lede, .ab-lede, .bn-lede, .rr-lede, .tk-sub{
  color:var(--ink-soft) !important;
}

/* ---------- Chrome ---------- */

.site-header{
  background:linear-gradient(180deg, #0C1836, #0A1430);
  border-bottom:2px solid var(--nr-blue) !important;
  box-shadow:0 10px 30px -18px rgba(30,107,214,.9);
}
.site-header .brand__tag{ color:rgba(242,246,255,.72); }
.brand__logo{ filter:invert(1) brightness(1.6); }
.brand__rule{ background:rgba(242,246,255,.3); }

.site-nav a{ color:var(--nr-white) !important; text-transform:uppercase; letter-spacing:.1em; font-size:12px; }
.site-nav a:not(.btn-share):hover{ color:var(--nr-cyan) !important; }
.site-nav a.is-current::after{ background:var(--nr-red) !important; height:4px; border-radius:0; }

.btn-share{
  background:var(--nr-red) !important; border:0 !important;
  color:var(--nr-white) !important; border-radius:0 !important;
  text-transform:uppercase; letter-spacing:.1em; font-weight:800;
}
.btn-share:hover{ background:var(--nr-cyan) !important; color:var(--nr-white) !important; }

/* ---------- Phone: reclaim the fold ----------
   The intro was 298px of a 660px viewport, so the video started below the
   halfway mark and the episode title sat under the fold. The theme pins the
   title size with !important, so the phone size has to be set here too or it
   is silently ignored. Nothing is removed — every line is just tighter. */
@media (max-width:760px){
  .intro__title{ font-size:28px !important; line-height:1 !important; }
  .intro__eyebrow{ margin-bottom:6px !important; }
  /* The 40ch cap forced the lede onto four lines in a column that had room
     for three. Width is not the constraint on a phone — height is. */
  .intro__copy{ font-size:12.8px !important; line-height:1.42 !important; max-width:none !important; }

  /* The ticker is a decorative band on a z-index:-1 background layer, built
     for a desktop stage that does not scroll. On a phone the page does
     scroll, so it sat fixed at the bottom of every scroll position and
     flashed red through the gaps around the cards — it read as a rendering
     fault rather than set dressing. The band is desktop-only. */
  .grain::after{ display:none; }
}

/* ---------- Mobile nav ----------
   The drawer's tokens are declared ON .mnav-toggle/.mnav/.mnav-scrim, not on
   :root, so a :root override here never reaches them — the same scoping trap
   as the overlay's --sd-* set. The panel was repainted navy while --mn-ink
   stayed the cream build's plum: #2B1539 on #0C1836 measures 1.05:1, which is
   why the links read as blank. The whole set is remapped here, so anything
   the module paints inherits the dark values rather than needing its own rule. */
.mnav-toggle,
.mnav,
.mnav-scrim{
  --mn-bg:     #0C1836;
  --mn-ink:    var(--nr-white);
  --mn-soft:   rgba(242,246,255,.72);
  --mn-orange: var(--nr-cyan);          /* interactive states, as the desktop nav */
  --mn-line:   rgba(127,214,255,.22);
}

.mnav-toggle{ border-color:rgba(242,246,255,.4); color:var(--nr-white); }
.mnav{ background:var(--mn-bg); }
.mnav__list a{ text-transform:uppercase; letter-spacing:.08em; font-weight:800; }

/* The desktop nav marks the current page with white type over a red bar
   rather than by recolouring the link. The drawer now says the same thing. */
.mnav__list a[aria-current="page"]{ color:var(--nr-white); }
.mnav__list a[aria-current="page"]::after{ background:var(--nr-red); }

.mnav__cta{ border-radius:0; background:var(--nr-red); color:var(--nr-white); border-color:var(--nr-red); }
.mnav__cta:hover{ background:var(--nr-white); color:var(--nr-navy); border-color:var(--nr-white); }
.mnav__close:hover{ background:var(--nr-white); color:var(--nr-navy); }

/* The scrim is a hard-coded plum from the cream build; on this set it should
   be the studio dark, so the page behind reads as dimmed rather than tinted. */
.mnav-scrim{ background:rgba(6,13,30,.62); }

/* ---------- Cards ---------- */

/* Both card kinds are lit glass panels: a bright top edge and a cool glow,
   the way a set lights an on-camera screen. */
.card{
  background:linear-gradient(180deg,#132247,#0D1836) !important;
  border:1px solid rgba(127,214,255,.28) !important;
  border-top:3px solid var(--nr-blue-lit) !important;
  border-radius:3px !important;
  box-shadow:0 30px 60px -26px rgba(0,0,0,.85),
             0 0 40px -18px rgba(79,162,245,.65) !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
}
.card--report{
  background:linear-gradient(180deg,#0F1C3E,#0A1430) !important;
  --rc-ink:var(--nr-white);
  --rc-soft:rgba(242,246,255,.78);
  --rc-mute:rgba(242,246,255,.70);
}
.card__media{ background:#060D1E !important; }
.card__foot{ border-top:2px solid var(--nr-white) !important; }
.card__quote{ color:var(--nr-white) !important; }
.card__quote::before{ color:var(--nr-red) !important; }
.card__quote--claim{ text-transform:uppercase; letter-spacing:-.02em; font-weight:800; }

.card__badge{
  background:rgba(6,13,30,.86) !important; color:var(--nr-white) !important;
  border-radius:0 !important; text-transform:uppercase; letter-spacing:.12em; font-weight:800;
}
.card__play, .rr-card__play, .ab-video__play{
  border-radius:0 !important;
  background:var(--nr-red) !important; color:var(--nr-white) !important;
}
.card__num{ color:var(--ink-mute) !important; }
.pill{ border-radius:0 !important; border:2px solid var(--nr-white) !important; text-transform:uppercase; font-weight:800; }
.card__avatar{ border-radius:0 !important; }

/* --- Verdict stamp: the poster device --- */

.stamp{
  border-radius:2px !important;
  background:var(--nr-red) !important;
  border:0 !important;
  border-left:5px solid var(--nr-white) !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  padding:10px 16px 9px !important;
  transform:none;
  box-shadow:0 10px 24px -12px rgba(0,0,0,.9);
}
.stamp__verdict{ letter-spacing:.01em !important; }
/* full-strength cream: at .7 it measured 3:1 on the red plate */
.stamp__meta{ color:var(--nr-white) !important; }
/* One stamp colour, three inks — the plate stays red, as it would on press. */
.stamp--false{ color:var(--nr-white) !important; }
/* the mid gold measured 2.64:1 on red — this is the lighter tint */
.stamp--misleading{ color:#F0C674 !important; }
.stamp--needs-context{ color:#BFE0E4 !important; }

/* ---------- Controls, rails, filters ---------- */

.filter__btn, .rel, .related__close, .rr-tab, .tk-tab, .tk-link,
.ta-btn, .im-band__btn, .bn-cta, .ov-btn, .rr-side__cta, .mnav__cta{
  border-radius:0 !important;
}
.filter__btn{
  border:1px solid rgba(127,214,255,.34) !important;
  background:transparent !important; color:var(--nr-white) !important;
  text-transform:uppercase; letter-spacing:.09em; font-weight:800;
}
.filter__btn[aria-pressed="true"]{ background:var(--nr-blue) !important; border-color:var(--nr-blue) !important; color:#fff !important; }
.v-false[aria-pressed="true"]{ background:var(--nr-red) !important; border-color:var(--nr-red) !important; color:var(--nr-white) !important; }
.v-misleading[aria-pressed="true"]{ background:var(--nr-cyan) !important; border-color:var(--nr-cyan) !important; color:var(--nr-white) !important; }
.v-needs-context[aria-pressed="true"]{ background:#2C6C77 !important; border-color:#2C6C77 !important; color:var(--nr-white) !important; }
.filter__legend, .filter__count{ color:var(--ink-mute) !important; }

.ta-btn, .im-band__btn, .bn-cta, .ov-btn{
  background:var(--nr-red) !important; color:#fff !important;
  box-shadow:0 14px 30px -14px rgba(208,32,46,.9);
  text-transform:uppercase; letter-spacing:.1em; font-weight:800;
}
.ta-btn svg, .im-band__btn svg, .bn-cta svg, .ov-btn svg{ color:var(--nr-white) !important; }

.rail__line{ background:rgba(242,246,255,.2); }
.rail__fill{ background:var(--nr-red); }
.dot::after{ border-radius:0 !important; }
.dot--report::after{ background:var(--nr-red); }
.dot--community::after{ background:rgba(242,246,255,.45); }
.dot[aria-selected="true"]::after{ background:var(--nr-white); }
.rail__arrow{ color:var(--nr-white); }
/* The bottom of the artwork is its darkest area, and the rail and hint sit
   right on it — so the footer gets a solid paper band, which is how a poster
   would set a footer anyway. */
/* The bunting runs along the very foot of the page, so the footer band stops
   just above it. */
/* The ticker runs along the very foot, so the control band stops above it. */
.controls{
  background:rgba(10,20,48,.92);
  border-top:1px solid rgba(127,214,255,.24);
  margin-bottom:30px;
}
.hint, .sig{ color:var(--ink-mute) !important; }
.hint__wheel{ fill:var(--nr-red) !important; stroke:var(--nr-red) !important; }

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

.related{
  /* Solid, not a gradient. The drawer sits over the deck rather than beside
     it now, and a translucent top let the card's headline ghost through —
     which read as a rendering fault. The red rule is the edge. */
  background:#08122A !important;
  border-top:3px solid var(--nr-red);
}
.related__hd{ color:var(--nr-cyan) !important; }
.related__esc{ color:rgba(242,246,255,.5) !important; }
.related__close{
  background:var(--nr-white) !important; color:var(--nr-navy) !important;
  border:0 !important; text-transform:uppercase; font-weight:800; letter-spacing:.08em;
}
.rel{
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(127,214,255,.26) !important;
}
.rel:hover{ background:rgba(242,246,255,.2) !important; }
.rel__title{ color:var(--nr-white) !important; text-transform:uppercase; letter-spacing:.01em; }
.rel__sub{ color:rgba(242,246,255,.7) !important; }
.rel__kind--report{ color:var(--nr-cyan) !important; }
.rel__kind--community{ color:rgba(242,246,255,.6) !important; }
.rel__art{ border-radius:0 !important; }
.rel__play{ border-radius:0 !important; background:var(--nr-red) !important; color:var(--nr-white) !important; }
.card__close{
  border-radius:0 !important; background:var(--nr-red) !important;
  border:0 !important; color:var(--nr-white) !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
}

/* ---------- Panels on the inner pages ---------- */

.im-card, .ta-card, .bn-fig, .bn-panel, .ab-fact, .rr-card__btn, .rr-side,
.ab-short, .bn-short, .im-band, .ab-band, .bn-band, .tk-card, .rr-player{
  border-radius:0 !important;
  background:rgba(16,28,60,.86) !important;
  border:1px solid rgba(127,214,255,.22) !important;
  border-top:2px solid var(--nr-blue) !important;
  color:var(--nr-white) !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  box-shadow:7px 7px 0 rgba(0,0,0,.55) !important;
}
.ab-short, .bn-short{
  background:linear-gradient(140deg,#12244F,#0A1430) !important;
  color:var(--nr-white) !important;
  border-top:2px solid var(--nr-red) !important;
}
.ab-short p, .bn-short p{ color:rgba(242,246,255,.86) !important; }
.ab-short__hd, .bn-short__hd{ color:var(--nr-white) !important; text-transform:uppercase; font-weight:800; }

.im-card__hd, .ta-card__hd, .bn-panel__hd, .ab-fact h3, .im-band__hd,
.ab-band__hd, .bn-band__hd, .bn-fig__num{
  color:var(--nr-white) !important; text-transform:uppercase;
  font-weight:800 !important; letter-spacing:-.015em;
}
.im-card__num{ background:var(--nr-red) !important; color:var(--nr-white) !important; border-radius:0 !important; }
.im-card__art{ background:var(--nr-navy-2) !important; border-radius:0 !important; }
.im-node__dot{ background:var(--nr-red) !important; border-radius:0 !important; }
.im-flow path{ stroke:var(--nr-red) !important; }

.ab-video, .ab-hero__media img, .rr-card__art{ border-radius:0 !important; }
.ab-hero__media img{ border:2px solid var(--nr-white); }

/* ---------- Overlays ---------- */

/* The overlay module declares its own token set scoped to .tk, so the page
   :root above never reaches inside it. Carried over from the poster fork
   these were still light-theme values — near-black ink on a dark card, which
   is why the finder's secondary buttons had no visible label. */
.tk{
  --sd-bg:#0A1430; --sd-bg-warm:#0E1E44;
  --sd-card:rgba(16,28,60,.90); --sd-ink:#F2F6FF; --sd-purple:#F2F6FF;
  --sd-ink-soft:rgba(242,246,255,.82); --sd-ink-mute:rgba(242,246,255,.66);
  --sd-orange:#4FA2F5; --sd-orange-lit:#8FC8FF;
  --sd-line:rgba(127,214,255,.30); --sd-line-soft:rgba(127,214,255,.16);
  background:linear-gradient(180deg,#0C1836,#080F26) !important;
  color:var(--nr-white);
}
.tk-card, .tk-script, .sf-input, .sf-textarea, .sf-select, .tk-select{
  border-radius:3px !important;
  border:1px solid rgba(127,214,255,.30) !important;
  border-top:2px solid var(--nr-blue) !important;
  background:rgba(16,28,60,.90) !important; color:var(--nr-white) !important;
}
.tk-tabs .tk-tab[aria-selected="true"], .tk-tab.is-on{
  background:var(--nr-blue) !important; color:#fff !important;
}
.tk-close, .vp__close{ border-radius:0 !important; }
.tk-link--call{ background:var(--nr-red) !important; color:var(--nr-white) !important; border-color:var(--nr-red) !important; }

/* ---------- Motion ---------- */

/* Poster work is static by nature; the deck keeps its depth, but the softer
   flourishes are dropped so the idiom stays consistent. */
.card{ transition:none; }

/* Cards stay opaque at every depth. The engine fades distant cards to 0.30,
   which is fine over a flat ground but lets the artwork read straight through
   them here — measured, dimming the artwork barely helped, because the
   transparency was the cause. Depth still reads through scale, blur and
   stacking order, and flat opaque panels suit the idiom better anyway.
   !important because render() writes opacity inline every frame. */
.card{ opacity:1 !important; }

@media (prefers-contrast: more){
  body::after{ display:none; }
}

/* The fine-print divider is decorative but was reading at 1.6:1. */
.bn-fine__div{ color:rgba(242,246,255,.78) !important; }

/* Uppercase with tracking runs wider than the theme it replaced, and at 320px
   the header overran by 6px — enough for a mobile browser to widen the layout
   viewport and zoom the whole page out. */
@media (max-width: 420px){
  .site-nav{ gap:8px; }
  .btn-share{
    letter-spacing:.04em; font-size:10.5px;
    padding:.55em .7em;
  }
  .brand__logo{ height:26px; }
}

/* On a phone the vertical wedge runs straight through the copy stack — the
   headline, lede and filters all sit in the left column that the wedge eats.
   The artwork moves to a bottom band with the same diagonal treatment, below
   the copy and behind the deck. */
@media (max-width: 760px){
  body::before{
    clip-path:polygon(0 56%, 100% 44%, 100% 100%, 0 100%);
    background-position:center bottom;
  }
  body::after{
    clip-path:polygon(0 56%, 100% 44%, 100% 45.4%, 0 57.4%);
  }
  body:not([data-texture="quiet"])::before{ opacity:.12 !important; }
}

/* ---------- Verdict filter layout ----------
   Four buttons in a column narrower than they need left "Needs context"
   stranded on a line of its own. An even grid guarantees 2x2 rather than
   3+1 at any width, and the legend takes its own line so the buttons get
   the full column. Four across only where the column can actually hold
   them — measured, that is about 1700px. */
/* Equal columns fill the whole intro width, which runs under the deck — the
   copy above wraps short, so it never did. The room available is whatever is
   left of the half-viewport once the card takes its half, so this is derived
   from --card-w rather than guessed: a fixed vw fraction held at 1440 and
   collided at 1100, where the card is proportionally much wider. */
.filters{
  max-width:min(100%, calc(50vw - (var(--card-w) / 2) - var(--pad-x) - 16px));
}

.filter--verdict{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:8px;
  align-items:stretch;
}
.filter--verdict .filter__legend{ grid-column:1 / -1; margin-right:0; }
.filter__btn--v{ justify-content:center; text-align:center; }

/* Four across only where the column can genuinely hold them. At 1700 the
   card is proportionally wider and "Needs context" clipped, so this waits
   for 1850. */
@media (min-width:1850px){
  .filter--verdict{ grid-template-columns:repeat(4, minmax(0,1fr)); }
}

/* The source row has the same problem below 1400, where it breaks 2+1. Three
   even columns hold instead, and a long label wraps inside its own button
   rather than dropping the last one onto a line by itself. */
.filters .filter:not(.filter--verdict){
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
  align-items:stretch;
}
/* A wrapping label makes its button taller; without this the row centres each
   button on its own height and the band reads ragged. */
.filter__btn{ align-self:stretch; }
.filter__btn{
  white-space:normal; text-align:center; justify-content:center;
  line-height:1.15;
}

/* The mobile rows stay single-line sideways scrollers, so the grids are undone
   below the breakpoint where stage.css sets that up. */
@media (max-width:760px){
  /* The deck-derived cap is meaningless here — the deck sits below the copy,
     not beside it — and on a phone it collapsed the whole filter block to
     about 9px. */
  .filters{ max-width:none; }
  .filter--verdict,
  .filters .filter:not(.filter--verdict){ display:flex; }
  .filter--verdict .filter__legend{ grid-column:auto; }
  .filter__btn{ white-space:nowrap; }
}

/* Between the mobile breakpoint and about 1200 the deck takes so much of the
   width that the column beside it cannot hold two chips without clipping the
   labels. One per row there — still even, and nothing is cut. */
@media (min-width:761px) and (max-width:1200px){
  /* matching the base selector's specificity, or the source row keeps its
     three columns and clips */
  .filters .filter:not(.filter--verdict),
  .filters .filter--verdict{ grid-template-columns:1fr; }
}

/* ---------- Panels the base sheets still light ----------
   The page stylesheets were written for a light build, and the two poster
   themes were light too, so these never surfaced. On a dark set every panel
   the theme does not claim is light stock with white type on it. */

.im-impact,
.im-drawer__toggle,
.sf-caption{
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(127,214,255,.20) !important;
  color:var(--nr-white) !important;
}
.im-drawer__toggle{ border-top:2px solid var(--nr-blue) !important; }
.im-impact__hd, .sf-caption-hd{ color:var(--nr-white) !important; }
.im-impact__copy, .sf-caption p{ color:rgba(242,246,255,.80) !important; }
.im-drawer__toggle span{ color:var(--nr-white) !important; }
.im-drawer__row{ border-color:rgba(127,214,255,.18) !important; }
.im-detail__icon, .im-impact__icon{ color:var(--nr-cyan) !important; }

/* Icon wells were mixed for a warm ground. */
.im-band__mark, .ab-band__icon, .bn-band__icon, .ab-fact__icon,
.bn-fig__icon, .bn-status__icon, .ta-card__badge, .ta-note__icon{
  background:rgba(30,107,214,.20) !important;
  color:var(--nr-cyan) !important;
}

/* Red on this navy measures 3.4:1 — under the bar for small labels, so the
   eyebrows take the lighter key-light blue instead. */
/* Red on this navy is 3.4:1, under the bar for small labels. The key-light
   blue replaced it, and against the sharper backdrop it wanted lifting again
   — small sparse text has little margin. */
.ab-eyebrow, .bn-eyebrow, .tk-eyebrow, .rr-eyebrow, .intro__eyebrow,
.cap-from__eyebrow{
  color:#8FC8FF !important;
}

/* "Review the Facts" belongs in that same group and was missed. It is the
   theme blue (#4FA2F5) at 11px, which measures 3.4:1 on the card — the very
   figure already recorded here for small labels, and a fail against the 4.5:1
   an 11px control needs. It is also the one control that leads to the
   sourcing on an advocacy page, so it is the worst one to make hard to read.
   Same lift as the eyebrows; hover goes brighter still so the state is not
   lost. */
.card__receipts{ color:#8FC8FF !important; }
.card__receipts:hover,
.card__receipts:focus-visible{ color:#D6EAFF !important; }

/* The base sheet puts a cream scrim behind the intro so copy stays readable
   over the blurred deck. On a dark set it becomes a white blob under white
   type. A contrast audit walks ancestor backgrounds, not sibling pseudo
   layers, so this one only shows on screen. */
.intro::before{
  background:radial-gradient(62% 56% at 32% 46%,
    rgba(5,10,26,.90) 0%, rgba(5,10,26,.66) 46%, rgba(5,10,26,0) 78%) !important;
}

/* The finder's controls live outside .tk on the page itself, so they need
   claiming too: the secondary buttons were painting their label in the page
   ink, which is navy here. */
.tk-link{
  color:var(--nr-white) !important;
  border-color:rgba(127,214,255,.34) !important;
  background:rgba(255,255,255,.06) !important;
}
.tk-link:hover{ background:rgba(255,255,255,.14) !important; }
.tk-link--call{
  color:#fff !important; background:var(--nr-red) !important;
  border-color:var(--nr-red) !important;
}
.tk-tab{
  color:var(--nr-white) !important;
  background:rgba(255,255,255,.06) !important;
  border-color:rgba(127,214,255,.30) !important;
}
/* The finder and studio mark the active tab with aria-pressed, not
   aria-selected — with only the latter styled, neither tab looked chosen. */
.tk-tab[aria-pressed="true"], .tk-tab[aria-selected="true"], .tk-tab.is-on{
  background:var(--nr-blue) !important; border-color:var(--nr-blue) !important; color:#fff !important;
}
.tk-name, .tk-card__name{ color:var(--nr-white) !important; }
.tk-meta, .tk-card__meta, .tk-count{ color:rgba(242,246,255,.70) !important; }
.tk-party{ color:var(--nr-white) !important; border-color:rgba(127,214,255,.34) !important; }
.tk-field label, .tk-label{ color:rgba(242,246,255,.70) !important; }
.tk-select, .rf-select{ color:var(--nr-white) !important; }


/* Placeholder text was the dimmest thing in the studio at 4:1. */
.sf-input::placeholder, .sf-textarea::placeholder, .tk-input::placeholder{
  color:rgba(242,246,255,.62) !important;
}

/* The native popup takes the select's own colours, so dark option text on a
   dark control was unreadable. Both are set explicitly. */
.tk-select, .sf-select, select{
  color:var(--nr-white) !important;
  background-color:rgba(16,28,60,.94) !important;
}
.tk-select option, .sf-select option, select option{
  background-color:#0F1C3E !important;
  color:#F2F6FF !important;
}
