/* ==================================================================
   TVNERVE — site style layer (loads last on every page)
   Carries the TVNerve logo across the site:
   - a clean white page with black bars and broadcast red, instead of
     Newstro's newsprint paper
   - heavy forward-slanted lettering in mixed case, like "Nerve"
   - black slanted bars with white lettering for headings, like the
     bar behind "Nerve"
   - glossy red buttons and play buttons, like the TV set
   - rounded "screen" frames with a thick black edge for pictures
   - the tapered red stripe under the wordmark as underline and edge
   - a small red TV with antennae as the heading emblem
   Section colors (section-themes.css) still drive each section.
   ================================================================== */

@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-latin-900-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-latin-ext-900-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --tv-red: #e1000f;
  --tv-red-hot: #ff3b3b;
  --tv-red-dark: #a8000c;
  --gloss: linear-gradient(180deg, #ff5a52 0%, #ef1420 38%, #d3000e 62%, #a8000c 100%);     /* the TV set's shine */
  --stripe: polygon(0 100%, 3% 55%, 100% 0, 97.5% 100%);                                    /* the tapered red stripe */
  --tvset: url("favicon.svg");
  --cut: 12px;                                   /* slant of bars, labels and buttons */
  --para: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  --bars: linear-gradient(90deg, #c8c8c8 0 14.28%, #d9d21a 0 28.57%, #17c9c9 0 42.85%, #1fc21f 0 57.14%, #d01fd0 0 71.42%, #e1000f 0 85.71%, #1f3fd9 0);   /* test-card color bars */

  --black: #0a0a0b;
  --char: #18181b;
  --paper: #f4f4f6;                              /* page */
  --paper-2: #dedee3;                            /* rules, card borders */
  --ink: #0d0d0f;
  --muted: #5d5d68;
  --head: "Kanit", "Anton", Impact, "Arial Narrow Bold", sans-serif;
}

/* ---------- page base: clean studio white with a faint halftone ---------- */
body,
body[data-page="home"],
body[data-page="archive"],
body[data-page="info"] {
  background:
    radial-gradient(rgba(10, 10, 11, .055) 1.1px, transparent 1.6px) 0 0 / 9px 9px,
    linear-gradient(180deg, #ffffff 0, #f1f1f4 520px),
    var(--paper);
  background-attachment: scroll, scroll;
  color: var(--ink);
}
::selection { background: var(--tv-red); color: #fff; }

/* --fill / --on-fill: label, tab and button color for the nearest section. --pop: its solid color for hard shadows. */
:root { --fill: var(--tv-red); --on-fill: #fff; --pop: var(--tv-red); }
[data-theme][data-theme] { --fill: var(--red); --on-fill: var(--on); --pop: var(--red); }
[data-theme="breaking"][data-theme="breaking"] { --fill: var(--gloss); --on-fill: #fff; --pop: var(--tv-red); }

/* ---------- lettering: everything set in --head is the heavy slanted face ---------- */
.mega, .label-bar, .section-head h2, .side-title h2, .side-item h3, .story h3, .story .side .big,
.gfx .g-label, .gfx .g-head, .gfx .g-words, .newsroom-bg .bg-words, .header-tag strong,
.showcase-heading h2, .showcase-lead h3, .showcase-placeholder, .site-footer h2,
.art-below h1, .art-below h2, .art-below h3, .art-below blockquote p, .art-below .timeline .what, .art-below .stat b,
.article-pagination-head h2, .article-page-link strong, .article-toc h2, .share-title, .selection-share-heading,
.prevnext strong, .aside-box h4 { font-weight: 900; font-style: italic; letter-spacing: 0; }
/* headlines and headings keep their own capitals, like "Nerve" */
.mega, .section-head h2, .side-title h2, .side-item h3, .story h3, .showcase-heading h2, .showcase-lead h3,
.art-below h1, .art-below h2, .art-below h3, .art-below blockquote p, .article-pagination-head h2, .article-page-link strong,
.prevnext strong, .aside-box h4, .gfx .g-head, .header-tag strong, .article-toc h2 { text-transform: none; }

.label-bar { font-size: 15px; padding-top: 8px; padding-bottom: 8px; }
.label-bar.sm { font-size: 10.5px; padding-top: 5px; padding-bottom: 5px; }
.mega { line-height: 1; letter-spacing: -.012em; color: var(--ink); }
.hero-paper .mega, #hero .hero-paper .mega { font-size: min(64px, 10.4cqw); line-height: 1; }
.showcase-hero .hero-paper .mega { font-size: min(42px, 7.2cqw); line-height: 1.02; }
.article-top .mega, .article-top.has-story-art .mega { font-size: clamp(32px, 5vw, 70px); max-width: 20ch; line-height: 1.01; }
.article-top.has-story-art .mega { max-width: 57%; font-size: clamp(30px, 3.8vw, 52px); }
.side-title h2 { font-size: 22px; }
.side-item h3, #hero .side-item h3 { font-size: clamp(14px, 1.2vw, 16.5px); line-height: 1.14; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1; }
.story h3 { font-size: clamp(20px, 2vw, 27px); line-height: 1.08; }
#stories .story h3 { font-size: clamp(18px, 1.75vw, 24px); }
.story .side .big, #stories .story .side .big { font-size: 16px; }
.gfx .g-label { font-size: 4.3cqw; }
.gfx .g-head { font-size: 7.4cqw; line-height: 1.02; max-width: 68%; }
.gfx .g-words { font-size: 11cqw; }
.gfx .g-mark { width: 30%; right: 3%; bottom: 5%; }
.newsroom-bg .bg-words { font-size: 92px; line-height: 1.02; }
.header-tag strong { font-size: 24px; }
.showcase-heading h2 { font-size: clamp(22px, 2.7vw, 32px); }
.showcase-lead h3 { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.12; }
.showcase-placeholder { font-size: 17px; }
.site-footer h2 { font-size: 16px; }
.art-below h1, .art-below h2 { font-size: clamp(22px, 2.7vw, 32px); line-height: 1.1; }
.art-below h3 { font-size: 18px; }
.art-below blockquote p { font-size: clamp(18px, 2vw, 25px) !important; line-height: 1.22 !important; }
.art-below .timeline .what { font-size: 16px; }
.art-below .stat b { font-size: 24px; }
.art-below .chapters h3 { font-size: 17px; }
.article-pagination-head h2 { font-size: clamp(21px, 2.7vw, 30px); }
.article-page-link strong { font-size: 16px; line-height: 1.18; }
.article-toc h2 { font-size: 18px; }
.share-title, .selection-share-heading { font-size: 15px; }
.prevnext strong { font-size: 17px; }
.aside-box h4 { font-size: 19px; }
.prose > p:first-child::first-letter { font-size: 3.7em; padding-right: .14em; }
@media (max-width: 760px) {
  .hero-paper .mega, #hero .hero-paper .mega { font-size: min(46px, 10.2cqw); line-height: 1.02; }
  .showcase-hero .hero-paper .mega { font-size: min(32px, 8cqw); }
  .article-top .mega, .article-top.has-story-art .mega { max-width: 100%; font-size: clamp(28px, 8vw, 46px); }
  .label-bar { font-size: 13px; }
  .site-header .header-tag strong { font-size: 14px; }
  .side-item h3, #hero .side-item h3 { font-size: 14.5px; }
  .newsroom-bg .bg-words { font-size: 64px; }
}

/* ---------- labels, chips, buttons ---------- */
.label-bar, .tabs button[aria-pressed="true"], .page-current { background: var(--fill); color: var(--on-fill); border-color: transparent; }
.label-bar {
  clip-path: var(--para); box-shadow: none; text-shadow: none; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .9));
  padding-left: calc(13px + var(--cut) * .6); padding-right: calc(13px + var(--cut) * .6);
}
.label-bar.sm { --cut: 7px; box-shadow: none; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .9)); }
.label-bar.dot::before { background: var(--on-fill); }
.type-chip { clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); padding-left: 10px; padding-right: 10px; font-style: italic; }
.type-chip.video { background: var(--tv-red); color: #fff; }
.btn {
  background: var(--gloss); color: #fff; clip-path: var(--para); box-shadow: none; font-style: italic;
  padding-left: 26px; padding-right: 26px; filter: drop-shadow(4px 4px 0 #0a0a0b); text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: none; filter: drop-shadow(6px 6px 0 #0a0a0b) brightness(1.08); }
.mega .accent {                 /* highlighted headline words: red block, slanted */
  background: var(--fill); color: var(--on-fill); box-shadow: .07em .07em 0 var(--ink); transform: skewX(-6deg); padding: .04em .16em .02em;
}

/* ---------- top strip / ticker ---------- */
.topstrip { background: #050506; }
.ticker-label { background: var(--gloss); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 20px; font-style: italic; }
.ticker-label::before { background: #fff; }
.ticker-track a:hover { color: var(--tv-red-hot); }
.ticker-track a::after { content: "▸"; color: var(--tv-red-hot); }

/* ---------- header ---------- */
.site-header { position: relative; border-bottom: 0; }
.site-header::after {               /* the red stripe under the wordmark runs along the bottom edge */
  content: ""; position: absolute; inset: auto 0 0 0; height: 14px; z-index: 2; pointer-events: none; animation: none;
  background: linear-gradient(90deg, var(--tv-red-dark), var(--tv-red) 35%, var(--tv-red-hot)); clip-path: polygon(0 100%, 0 70%, 100% 0, 100% 100%);
}
.site-header .wrap { padding-top: 20px; padding-bottom: 28px; }
.logo { position: relative; transition: transform .2s; }
.logo:hover { transform: rotate(-1.2deg) scale(1.02); }
.logo img { height: 106px; clip-path: none; position: relative; z-index: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .28)); }
/* The header is a black-and-white set beside the logo and comes into color toward the right:
   light grey behind the logo (so its black bar and red set read without an outline), then the section's color. */
.site-header.newsroom-bg {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #e9e9ec 0%, #d2d2d6 20%, #a2a2a8 36%, rgba(120, 120, 126, .55) 50%, transparent 70%),
    radial-gradient(ellipse at 92% 0, var(--red-hot), transparent 46%),
    linear-gradient(90deg, var(--red-dark) 30%, var(--red) 72%, var(--red-dark) 100%);
}
.site-header .bg-words { color: rgba(10, 10, 11, .075); }
.header-tag strong { text-shadow: 2px 3px 0 rgba(0, 0, 0, .8); }
.site-header .header-tag span { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.site-header .section-motif { opacity: .26; }
@media (max-width: 760px) {
  .logo img { height: 62px; } .site-header .wrap { padding-top: 14px; padding-bottom: 22px; }
  .site-header.newsroom-bg {
    background:
      repeating-linear-gradient(0deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 5px),
      linear-gradient(90deg, #e9e9ec 0%, #d2d2d6 34%, #a2a2a8 48%, rgba(120, 120, 126, .55) 58%, transparent 74%),
      radial-gradient(ellipse at 96% 0, var(--red-hot), transparent 50%),
      linear-gradient(90deg, var(--red-dark) 40%, var(--red) 78%, var(--red-dark) 100%);
  }
}

/* ---------- navigation ---------- */
.navbar { background: #0a0a0b; border-bottom: 3px solid var(--tv-red); }
.navbar a { font-style: italic; }
.navbar a:hover { background: rgba(255, 255, 255, .08); }
.navbar a.active, .navbar .nav-links a.active {
  background: var(--fill); color: var(--on-fill); box-shadow: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-left: 20px; padding-right: 20px;
}
.section-picker { background: transparent; }
.section-picker select { border-radius: 8px; }
.navbar.is-stuck .sticky-brand, .navbar.is-stuck .sticky-brand:hover { background: transparent; flex-basis: auto; padding: 3px 14px 3px 6px; }
.navbar.is-stuck .sticky-brand img { height: 40px; clip-path: none; }
@media (max-width: 760px) { .navbar.is-stuck .sticky-brand img { max-height: 32px; } }

/* ---------- homepage lead: one big screen ---------- */
#hero.hero-grid {
  --hero-panel: #fff; background: #fff; border: 4px solid #0a0a0b; border-radius: 22px; overflow: hidden;
  box-shadow: 9px 9px 0 var(--tv-red);
}
#hero .hero-main { border-top: 0; }
.hero-paper, .hero-paper::before { background: #fff; }
#hero .has-art .hero-paper, .showcase-hero .has-art .hero-paper { background: none; }
#hero .hero-paper .mega a, .showcase-hero .hero-paper .mega a { text-decoration: none; transition: color .15s; }
#hero .hero-paper .mega a:hover, .showcase-hero .hero-paper .mega a:hover { color: var(--hl); text-decoration: none; }
.hero-paper .dek { color: #33333b; }
.media-card { border: 4px solid #0a0a0b; border-radius: 18px; overflow: hidden; box-shadow: 7px 7px 0 var(--pop); }
#hero .has-art .media-card, .showcase-hero .has-art .media-card { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.media-card .card-bar { background: #0a0a0b; font-style: italic; border-bottom-color: var(--pop); }
.hero-side, .hero-side::after, #hero .hero-side::before, #hero .hero-side::after { background: #0a0a0b; }
.side-title h2 span { color: var(--tv-red-hot); }
[data-theme]:not([data-theme="breaking"]) .side-title h2 span { color: var(--red-hot); }
#hero .side-title h2::before, .side-title h2::before {
  content: ""; flex: none; width: 1.25em; height: 1.25em; margin-right: .1em; background: var(--tvset) center / contain no-repeat;
}
.side-title h2 { display: inline-flex; align-items: center; gap: .2em; }
.side-item:hover h3 { color: var(--tv-red-hot); }
[data-theme]:not([data-theme="breaking"]) .side-item:hover h3 { color: var(--red-hot); }
/* pictures sit in rounded screens with a thick black edge */
.side-item .thumb, .story .thumb, .showcase-image { border: 3px solid #0a0a0b; border-radius: 12px; }
.side-item .thumb { border-color: #2c2c31; transition: border-color .15s; }
.side-item:hover .thumb { border-color: var(--tv-red-hot); }
.play { background: var(--gloss); box-shadow: 0 0 0 5px #fff, 0 0 0 8px #0a0a0b, 0 12px 30px rgba(0, 0, 0, .55); }
.play svg { fill: #fff; }
.side-item .thumb .play { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #0a0a0b; }
.story .thumb .play { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0a0a0b; }

/* ---------- headings: white lettering on a black slanted bar, red stripe beneath ---------- */
.section-head { border-bottom: 0; position: relative; padding-bottom: 18px; align-items: center; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: linear-gradient(90deg, var(--tv-red-dark), var(--tv-red) 30%, var(--tv-red-hot)); clip-path: var(--stripe);
}
.section-head h2 {
  display: inline-flex; align-items: center; gap: .22em; background: #0a0a0b; color: #fff;
  padding: .16em .62em .14em .5em; clip-path: polygon(.34em 0, 100% 0, calc(100% - .34em) 100%, 0 100%);
}
.section-head h2::before, .showcase-heading h2::before, .art-below .paper h2::before, .art-below .roe h2::before {
  content: ""; flex: none; width: 1.05em; height: 1.05em; background: var(--tvset) center / contain no-repeat;
}
.art-below .paper h2::before, .art-below .roe h2::before { display: inline-block; vertical-align: -.16em; margin-right: .24em; }
.section-head h2 span { background: none; color: var(--tv-red-hot); padding: 0; }
[data-theme]:not([data-theme="breaking"]) .section-head h2 span { color: var(--red-hot); }

/* ---------- filter tabs, search, pagination ---------- */
.tabs button { border: 2px solid #0a0a0b; background: #fff; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-left: 18px; padding-right: 18px; font-style: italic; }
.tabs button:hover { background: #0a0a0b; color: #fff; }
.tabs button[aria-pressed="true"] { box-shadow: none; }
.browse-tools input, .browse-tools select { background: #fff; border: 2px solid #0a0a0b; border-radius: 9px; }
.browse-tools input:focus, .browse-tools select:focus { outline: 0; border-color: var(--tv-red); box-shadow: 0 0 0 3px rgba(225, 0, 15, .18); }
.page-links a, .page-current { border: 2px solid #0a0a0b; background: #fff; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); padding-left: 16px; padding-right: 16px; font-style: italic; }
.page-links a:hover, .page-links a:focus-visible { background: #0a0a0b; color: #fff; }
.page-current { background: var(--fill); color: var(--on-fill); }

/* ---------- story cards ---------- */
#stories .story {
  position: relative; background: #fff; border: 3px solid #0a0a0b; border-radius: 18px; box-shadow: 6px 6px 0 #0a0a0b;
  transition: transform .16s, box-shadow .16s;
}
#stories .story:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--pop); }
.story .thumb { box-shadow: none; }
.story:hover .thumb { transform: none; box-shadow: none; }
.story:hover h3 { text-decoration: none; color: var(--hl); }
.story h3 { transition: color .15s; }
.story p { color: #3a3a42; }
.story .side .big { color: var(--hl); }
.story .side .big::after { content: " ▸"; }
.empty { padding: 60px 0 56px; }
.empty::before { content: ""; display: block; width: 104px; height: 104px; margin: 0 auto 14px; background: var(--tvset) center / contain no-repeat; }
.gfx .g-label { clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); padding-left: 3.5%; padding-right: 3.5%; }

/* ---------- homepage section showcases ---------- */
.showcase-heading { clip-path: none; border: 3px solid #0a0a0b; border-bottom: 0; border-radius: 18px 18px 0 0; padding: 18px 20px 14px; }
.showcase-heading h2 { display: inline-flex; align-items: center; gap: .22em; text-shadow: 2px 3px 0 rgba(0, 0, 0, .7); }
.showcase-links a { font-style: italic; }
.showcase-content { border: 3px solid #0a0a0b; border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 6px 6px 0 #0a0a0b; }
.showcase-hero { border: 3px solid #0a0a0b; border-top: 0; border-bottom: 0; background: #fff; }
.showcase-hero .hero-paper { background: #fff; }
.showcase-image { transition: border-color .15s; }
.showcase-lead a:hover .showcase-image { border-color: var(--pop); }
.showcase-list a:hover, .showcase-lead a:hover h3 { text-decoration: none; }

/* ---------- footer ---------- */
.torn-top-dark {
  clip-path: polygon(0 100%, 0 78%, 100% 0, 100% 100%); height: 30px; margin-top: 70px; margin-bottom: 0;
  background: linear-gradient(90deg, var(--tv-red-dark), var(--tv-red) 35%, var(--tv-red-hot));
}
.site-footer { margin-top: 0; background: #0a0a0b; position: relative; overflow: hidden; }
.site-footer::before {                      /* a big faint TV set behind the footer */
  content: ""; position: absolute; right: -40px; bottom: -70px; width: 400px; height: 400px; opacity: .1; pointer-events: none;
  background: var(--tvset) center / contain no-repeat;
}
.site-footer .wrap { position: relative; }
.site-footer .footer-brand img { height: 84px; }
.site-footer h2 { display: flex; align-items: center; gap: 9px; }
.site-footer h2::after { content: ""; flex: 0 0 38px; height: 6px; background: var(--tv-red); clip-path: var(--stripe); }
.site-footer .footer-links a:hover { color: var(--tv-red-hot); }
.site-footer .footer-site-link { border-radius: 12px; }
.site-footer .footer-site-link:hover { border-color: var(--tv-red-hot); }
.site-footer .footer-site-link:hover .footer-site-copy strong { color: var(--tv-red-hot); }
.footer-strip { height: 8px; background: var(--bars); }

/* ---------- article pages ---------- */
body[data-page="archive"] .article-top { background: linear-gradient(180deg, #ffffff, #f1f1f4); }
.byline .sep { background: var(--tv-red); }
.article-top .story-paper-art::after,
.article-top.has-thumbnail-background .story-paper-art::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .86) 44%, rgba(255, 255, 255, .1) 80%);
}
@media (max-width: 760px) { .article-top.has-thumbnail-background .story-paper-art::after { background: rgba(255, 255, 255, .82); } }
.art-below .paper, .art-below .roe,
body[data-page="info"] .art-below .paper,
body[data-page="archive"] .article-layout .art-below > .paper,
body[data-page="archive"] .article-layout .art-below > .roe {
  background: #fff; border: 3px solid #0a0a0b; border-top: 6px solid var(--pop); border-radius: 18px; box-shadow: 6px 6px 0 #0a0a0b;
}
body[data-page="archive"] .article-layout .art-below > .paper + .paper { margin-top: 22px; }
.art-below .paper a, .art-below .roe a { color: var(--hl); }
.art-below blockquote { border-left: 0; padding-left: 28px; position: relative; }
.art-below blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--fill); transform: skewX(-6deg); }
.art-below figure img, .art-below .roe-photo img { border: 3px solid #0a0a0b; border-radius: 14px; }
.art-below .video-section { border: 4px solid #0a0a0b; border-radius: 20px; box-shadow: 8px 8px 0 var(--pop); overflow: hidden; }
.art-below .stat { border: 3px solid #0a0a0b; border-radius: 12px; box-shadow: 4px 4px 0 var(--pop); }
.art-below .stat b { color: var(--hl); }
body[data-page="archive"] .article-toc { background: #0a0a0b; border: 3px solid #0a0a0b; border-radius: 18px; box-shadow: 6px 6px 0 var(--pop); }
body[data-page="archive"] .article-toc nav ol a[aria-current="location"] { border-color: var(--pop); }
body[data-page="archive"] .article-pagination { background: #fff; border: 3px solid #0a0a0b; border-radius: 18px; padding: 24px; }
.article-page-link { border: 3px solid #0a0a0b; border-radius: 12px; box-shadow: 4px 4px 0 #0a0a0b; transition: transform .15s, box-shadow .15s; }
.article-page-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pop); }
.aside-box { border: 3px solid #0a0a0b; border-radius: 18px; }
.prevnext a { border-radius: 12px; }
.selection-share { border-radius: 14px; border-top-color: var(--tv-red); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--tv-red); outline-offset: 3px; }
.navbar a:focus-visible, .site-footer a:focus-visible, .hero-side a:focus-visible { outline-color: #fff; }

/* ==================================================================
   ON AIR — the header is a live set with TV static over its backdrop:
   black-and-white beside the logo, coming into color toward the right.
   Broadcast rings spread from the two antenna tips of the logo, and
   an "ON AIR" light blinks beside the section name. The rings are the
   .tv-signal blocks inside the logo link in header.html (two
   emitters, three rings each).
   ================================================================== */
.tv-signal { position: absolute; z-index: 0; top: 6.5%; width: 0; height: 0; pointer-events: none; }
.tv-signal.a { left: 13.6%; }
.tv-signal.b { left: 29.3%; }
.tv-signal i {
  position: absolute; left: 0; top: 0; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  border: 2.5px solid rgba(10, 10, 11, .5); opacity: 0; transform: scale(.08);
  animation: tv-ring 3.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.tv-signal i:nth-child(2) { animation-delay: 1.2s; }
.tv-signal i:nth-child(3) { animation-delay: 2.4s; }
.tv-signal.b i { animation-duration: 4.2s; border-color: rgba(225, 0, 15, .7); }
.tv-signal.b i:nth-child(1) { animation-delay: .6s; }
.tv-signal.b i:nth-child(2) { animation-delay: 2s; }
.tv-signal.b i:nth-child(3) { animation-delay: 3.4s; }
@keyframes tv-ring { 0% { transform: scale(.08); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
/* TV static: a layer of snow that jumps several times a second, a band of heavier static
   rolling down the set, and a short burst with a sideways tear every few seconds.
   The markup is the .tv-static block in header.html. The logo, section name and menu stay steady. */
.tv-static { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tv-static::before {                        /* the snow: white and black specks */
  content: ""; position: absolute; inset: -120px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.6 0 0 0 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px 240px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.6 0 0 0 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 90px 130px / 200px 200px;
  animation: tv-snow .5s steps(1) infinite, tv-burst 6.5s steps(1) infinite;
}
.tv-static::after {                         /* rolling band of heavier static */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16) 30%, rgba(255, 255, 255, .30) 50%, rgba(255, 255, 255, .12) 70%, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.6 0 0 0 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 60px 30px / 170px 170px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.6 0 0 0 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 10px 80px / 150px 150px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  opacity: .8; animation: tv-roll 5.5s linear infinite;
}
@keyframes tv-snow {
  0% { transform: translate(0, 0); } 12% { transform: translate(-41px, 27px); } 25% { transform: translate(53px, -62px); } 37% { transform: translate(-88px, -19px); }
  50% { transform: translate(29px, 71px); } 62% { transform: translate(-63px, 44px); } 75% { transform: translate(77px, 13px); } 87% { transform: translate(-17px, -83px); }
}
@keyframes tv-burst { 0%, 100% { opacity: .5; } 90% { opacity: .9; } 93% { opacity: .62; } 95% { opacity: 1; } 97% { opacity: .5; } }
@keyframes tv-roll { from { transform: translateY(-110%); } to { transform: translateY(260%); } }
.site-header .bg-words { animation: tv-tear 6.5s steps(1) infinite; }      /* the backdrop lettering tears sideways during the burst */
@keyframes tv-tear { 0%, 100% { translate: 0 0; } 90% { translate: 26px 0; } 93% { translate: -18px 0; } 95% { translate: 34px 0; } 97% { translate: 0 0; } }
.header-tag strong::before {                /* ON AIR light */
  content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .38em; vertical-align: .12em; border-radius: 50%;
  background: #ff2a2a; box-shadow: 0 0 0 .14em rgba(255, 255, 255, .9), 0 0 14px 4px rgba(255, 60, 60, .9); animation: tv-onair 1.6s steps(2, jump-none) infinite;
}
@keyframes tv-onair { from { opacity: 1; } to { opacity: .25; } }
@media (max-width: 760px) { .tv-signal i { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-width: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .tv-signal, .tv-static::after { display: none; }
  .tv-static::before, .site-header .bg-words { animation: none; }           /* the snow stays, frozen */
  .header-tag strong::before { animation: none; }
  .logo, #stories .story, .article-page-link, .btn { transition: none; }
  .logo:hover, #stories .story:hover, .btn:hover { transform: none; }
}

/* ==================================================================
   READABLE HEADINGS — November 16, 2026. The heavy slanted Kanit is
   kept for the lead headline, the black section banners and the
   section name in the header. Everything smaller that used it
   (story-card titles, the "Latest" list, labels, headings inside
   articles and small panel titles) is set in upright Oswald, which
   the site already loads, so it is easier to read at small sizes.
   ================================================================== */
.label-bar, .side-item h3, .story h3, .story .side .big, .showcase-lead h3, .showcase-placeholder, .site-footer h2,
.art-below h1, .art-below h2, .art-below h3, .art-below blockquote p, .art-below .timeline .what, .art-below .stat b,
.article-pagination-head h2, .article-page-link strong, .article-toc h2, .share-title, .selection-share-heading,
.prevnext strong, .aside-box h4, .author-card h2 {
  font-family: var(--label); font-weight: 700; font-style: normal; letter-spacing: .005em;
}
.label-bar { font-size: 14.5px; letter-spacing: .05em; padding-top: 7px; padding-bottom: 6px; }
.label-bar.sm { font-size: 11px; letter-spacing: .06em; padding-top: 4px; padding-bottom: 3px; }
.side-item h3, #hero .side-item h3 { font-weight: 600; font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.22; }
.story h3 { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.16; }
#stories .story h3 { font-size: clamp(20px, 1.9vw, 25px); }
.story .side .big, #stories .story .side .big { font-size: 15px; letter-spacing: .06em; }
.showcase-lead h3 { font-size: clamp(18.5px, 1.85vw, 24px); line-height: 1.18; }
.site-footer h2 { font-size: 17px; letter-spacing: .04em; }
.art-below h1, .art-below h2 { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.16; }
.art-below h3 { font-size: 19px; line-height: 1.2; }
.art-below blockquote p { font-weight: 600; font-size: clamp(19px, 2.1vw, 25px) !important; line-height: 1.3 !important; }
.art-below .timeline .what { font-size: 17px; }
.art-below .stat b { font-size: 26px; }
.article-pagination-head h2 { font-size: clamp(22px, 2.8vw, 30px); }
.article-page-link strong { font-size: 17px; line-height: 1.24; }
.article-toc h2 { font-size: 19px; letter-spacing: .03em; }
.share-title, .selection-share-heading { font-size: 15.5px; letter-spacing: .04em; }
.prevnext strong { font-size: 18px; }
.aside-box h4 { font-size: 20px; }
.author-card h2 { text-transform: none; font-size: 28px; }
@media (max-width: 760px) {
  .label-bar { font-size: 13px; }
  .side-item h3, #hero .side-item h3 { font-size: 15.5px; }
}
