/* ==================================================================
   DORKVERSE — site style layer (loads last on every page)
   Carries the DorkVerse logo across the site:
   - a deep violet page with halftone dots instead of Newstro's
     newsprint paper
   - the logo's pink → magenta → purple gradient for brand accents
   - comic lettering: white italic capitals, thick black outline,
     colored layers stacked behind
   - comic panels: square corners, thick black borders, hard shadows
   - the comic burst from behind the wordmark as the heading emblem
   - the swoosh under the wordmark as header, heading and footer edge
   Section colors (section-themes.css) still drive each section.
   ================================================================== */

:root {
  --d-pink: #ff1a8c;
  --d-purple: #8a2bff;
  --d-flash: #ff6cba;                            /* light pink for colored words on the dark page */
  --d-accent: #c9a0ff;                           /* light violet for hovers and focus rings */
  --brand: linear-gradient(90deg, #ff1a8c 0%, #e61fd8 50%, #8a2bff 100%);                 /* like the logo's outline: pink on the left, purple on the right */
  --brand-h: linear-gradient(90deg, #ff1a8c 0%, #e61fd8 50%, #8a2bff 100%);
  --burst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23ff1a8c'/%3E%3Cstop offset='.5' stop-color='%23e61fd8'/%3E%3Cstop offset='1' stop-color='%238a2bff'/%3E%3C/linearGradient%3E%3Cpattern id='d' width='7' height='7' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='3.5' cy='3.5' r='1.5' fill='%23000' fill-opacity='.22'/%3E%3C/pattern%3E%3C/defs%3E%3Cpolygon points='70.2,2.3 77.2,31.6 97.2,22.2 93.8,43.0 122.7,44.0 97.6,62.6 118.2,77.4 94.2,81.6 106.6,109.1 80.7,96.7 73.6,115.2 60.5,98.8 40.7,121.4 42.2,91.4 20.4,94.7 29.5,75.7 2.1,66.7 31.4,55.9 15.8,35.9 40.0,38.6 35.9,8.8 57.2,27.9'/%3E%3Cpolygon points='69.5,9.3 75.7,35.3 93.4,27.0 90.4,45.4 116.1,46.3 93.7,62.7 112.0,75.9 90.8,79.6 101.8,104.0 78.8,93.0 72.5,109.4 60.9,94.8 43.3,115.0 44.7,88.3 25.3,91.3 33.5,74.4 9.1,66.4 35.1,56.8 21.3,39.0 42.7,41.5 39.0,15.0 58.0,32.0' fill='url(%23g)'/%3E%3Cpolygon points='69.5,9.3 75.7,35.3 93.4,27.0 90.4,45.4 116.1,46.3 93.7,62.7 112.0,75.9 90.8,79.6 101.8,104.0 78.8,93.0 72.5,109.4 60.9,94.8 43.3,115.0 44.7,88.3 25.3,91.3 33.5,74.4 9.1,66.4 35.1,56.8 21.3,39.0 42.7,41.5 39.0,15.0 58.0,32.0' fill='url(%23d)'/%3E%3C/svg%3E");
  --emblem: var(--burst);
  --arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 40' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23ff1a8c'/%3E%3Cstop offset='.5' stop-color='%23e61fd8'/%3E%3Cstop offset='1' stop-color='%238a2bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 40Q500 -14 1000 40Q500 20 0 40Z' fill='%23000'/%3E%3Cpath d='M16 37.5Q500 -5 984 37.5Q500 14 16 37.5Z' fill='url(%23g)'/%3E%3Cpath d='M120 30Q500 2 880 30Q500 8 120 30Z' fill='%23fff' fill-opacity='.45'/%3E%3C/svg%3E");

  --black: #07020e;
  --char: #1a0d2e;
  --paper: #0d0518;                              /* page */
  --paper-2: #2a1a47;                            /* rules, card borders */
  --card: #150a26;
  --card-2: #1c0f33;
  --ink: #f6f1ff;                                /* main text */
  --muted: #a99bc2;
  --line: #2a1a47;
  --line-2: #3d2866;
}

/* ---------- page base: a dark comic page, halftone dots fading down from the top ---------- */
body,
body[data-page="home"],
body[data-page="archive"],
body[data-page="info"] {
  background:
    linear-gradient(180deg, rgba(13, 5, 24, 0) 0, rgba(13, 5, 24, .9) 44vh, #0d0518 76vh) fixed,
    radial-gradient(circle, rgba(255, 255, 255, .085) 1.6px, transparent 2.2px) 0 0 / 13px 13px fixed,
    radial-gradient(ellipse 820px 560px at 0 0, rgba(255, 26, 140, .2), transparent 70%) fixed,
    radial-gradient(ellipse 820px 560px at 100% 0, rgba(138, 43, 255, .24), transparent 70%) fixed,
    var(--paper);
  color: var(--ink);
}
::selection { background: var(--d-flash); color: #ffffff; }
html { scrollbar-color: #ff1a8c #07020e; }

/* --fill / --on-fill: label, tab and button color for the nearest section.
   --pop: that section's solid color for hard "sticker" shadows. */
:root { --fill: var(--brand); --on-fill: #ffffff; --pop: #ff1a8c; }
[data-theme][data-theme] { --hl: var(--red-hot); --fill: var(--red); --on-fill: var(--on); --pop: var(--red); }
/* Breaking News (the homepage default) wears the logo's own gradient. */
[data-theme="breaking"][data-theme="breaking"] { --fill: var(--brand); --on-fill: #ffffff; --pop: #ff1a8c; }

/* ---------- labels, chips, buttons: caption boxes ---------- */
.label-bar, .tabs button[aria-pressed="true"], .page-current { background: var(--fill); color: var(--on-fill); }
.label-bar { border: 2px solid #000; border-radius: 6px; box-shadow: 3px 3px 0 #000; text-shadow: none; padding-top: 7px; padding-bottom: 6px; }
.label-bar.sm { border-radius: 4px; box-shadow: 2px 2px 0 #000; padding-top: 4px; padding-bottom: 3px; }
.label-bar.dot::before { background: var(--on-fill); }
.type-chip { background: var(--line); color: #fff; border-radius: 4px; }
.type-chip.video { background: var(--d-accent); color: #ffffff; }
.btn {
  background: var(--brand); color: #ffffff; border: 2px solid #000; border-radius: 9px;
  box-shadow: 4px 4px 0 #000; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 2px #fff, 6px 6px 0 2px #000; }

/* ---------- comic headlines: white letters, thick black outline ---------- */
.mega, .section-head h2, .showcase-heading h2, .header-tag strong, .art-below h1, .art-below h2 {
  color: #fff; -webkit-text-stroke: .11em #000; paint-order: stroke fill;
}
.mega { text-shadow: .05em .06em 0 #000; letter-spacing: .014em; line-height: .96; }
.section-head h2, .showcase-heading h2 { text-shadow: .06em .07em 0 #000; }
.art-below h1, .art-below h2 { -webkit-text-stroke-width: .09em; text-shadow: .05em .06em 0 #000; }
.mega .accent {                 /* highlighted headline words: in the lighter pink */
  background: none; box-shadow: none; padding: 0; color: var(--d-flash);
  background-image: none; -webkit-text-fill-color: var(--d-flash);
}
[data-theme]:not([data-theme="breaking"]) .mega .accent { color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }

/* ---------- top strip / ticker ---------- */
.topstrip { background: #05010a; color: #cdc3de; }
.ticker-label { background: var(--brand); color: #ffffff; }
.ticker-label::before { background: #ffffff; }
.ticker-track a:hover { color: var(--d-flash); }
.ticker-track a::after { content: "✦"; color: var(--d-flash); }

/* ---------- header ---------- */
.site-header { position: relative; border-bottom: 0; }
.site-header::after {               /* the swoosh under the wordmark runs along the bottom edge */
  content: ""; position: absolute; inset: auto 0 0 0; height: 20px; z-index: 2;
  background: var(--arc) center bottom / 100% 100% no-repeat; pointer-events: none; animation: none;
}
.site-header .wrap { padding-top: 16px; padding-bottom: 28px; }
.logo { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); transition: transform .2s; }
.logo:hover { transform: scale(1.03) rotate(-1deg); }
.logo img { height: 112px; clip-path: none; }
.header-tag strong { font-size: 30px; text-shadow: 2px 3px 0 #000; }
.header-tag span { color: #e8e1f3; }
@media (max-width: 760px) { .logo img { height: 64px; } .site-header .wrap { padding-top: 12px; padding-bottom: 22px; } }
/* ---------- navigation ---------- */
.navbar { background: rgba(7, 2, 14, .96); backdrop-filter: blur(8px); border-bottom: 2px solid transparent; border-image: var(--brand-h) 1; }
.navbar a { color: #ddd5ea; }
.navbar a:hover { background: rgba(255, 26, 140, .08); color: #fff; }
.navbar a.active, .navbar .nav-links a.active { background: var(--fill); color: var(--on-fill); box-shadow: inset 0 0 0 2px #000; }
.section-picker { background: transparent; }
.section-picker select, .browse-tools select {
  -webkit-appearance: none; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff6cba' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 11px auto;
}
.section-picker select { background-color: var(--char); border: 2px solid var(--line-2); border-radius: 8px; color: #fff; }
.section-picker select:hover { border-color: var(--d-flash); }
.navbar.is-stuck .sticky-brand, .navbar.is-stuck .sticky-brand:hover { background: transparent; flex-basis: auto; padding: 2px 14px 2px 4px; }
.navbar.is-stuck .sticky-brand img { height: 42px; clip-path: none; }
@media (max-width: 760px) { .navbar.is-stuck .sticky-brand img { max-height: 32px; } }

/* ---------- homepage lead ---------- */
#hero.hero-grid {
  --hero-panel: var(--card); background: var(--card); border: 2px solid #000; border-radius: 14px; overflow: hidden;
  box-shadow: 6px 6px 0 #000; outline: 1px solid rgba(255, 255, 255, .07); outline-offset: -3px;
}
#hero .hero-main { border-top: 6px solid var(--pop); }
#hero .hero-main[data-theme="breaking"] { border-image: var(--brand-h) 1; }
.hero-paper, .hero-paper::before { background: var(--card); }
#hero .has-art .hero-paper, .showcase-hero .has-art .hero-paper { background: none; }
.hero-paper .mega a, #hero .hero-paper .mega a { color: #fff; }
/* outlined letters would outline an underline too, so the lead headline changes color instead */
#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, .article-top .dek { color: #d1c7e2; }
.hero-meta { color: var(--muted); }
.media-card { background: var(--black); border: 2px solid #000; box-shadow: 7px 7px 0 var(--pop); }
#hero .has-art .media-card, .showcase-hero .has-art .media-card { border: 0; box-shadow: none; }
.media-card .card-bar { background: var(--brand-h); color: #ffffff; text-shadow: none; border-bottom-color: var(--black); }
/* the picture reads like a printed panel: faint lines and a pink edge where it meets the headline */
#hero .has-art .art-tile::after, .showcase-hero .has-art .art-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 4px), radial-gradient(ellipse at 100% 0, rgba(255, 26, 140, .16), transparent 55%);
}
#hero .has-art .hero-paper .mega, .showcase-hero .has-art .hero-paper .mega { text-shadow: .05em .06em 0 #000, 0 0 34px rgba(0, 0, 0, .6); }
.hero-side, .hero-side::after, #hero .hero-side::before, #hero .hero-side::after { background: var(--black); }
#hero .hero-side { border-top: 0; }
.side-title h2 span { color: var(--d-flash); }
[data-theme]:not([data-theme="breaking"]) .side-title h2 span { color: var(--red-hot); }
#hero .side-title { border-bottom-color: var(--line); }
#hero .side-title .side-more { color: #cdc3de; }
#hero .side-title .side-more:hover { color: var(--d-flash); }
.side-item, #hero .side-item { border-top-color: var(--line); }
.side-item:hover h3 { color: var(--d-flash); }
.side-item .thumb, .story .thumb, .showcase-image { border: 2px solid #000; border-radius: 8px; }
.side-item .thumb { transition: transform .16s, box-shadow .16s; }
.side-item:hover .thumb { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--d-flash); }
.play { background: var(--brand); box-shadow: 0 0 0 4px #000, 0 0 0 6px #fff, 0 10px 30px rgba(0, 0, 0, .6); }
.play svg { fill: #ffffff; }
.side-item .thumb .play { box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; }

/* ---------- headings: the comic burst as emblem, with the swoosh as underline ---------- */
.section-head { border-bottom: 0; position: relative; padding-bottom: 22px; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 14px;
  background: var(--arc) center / 100% 100% no-repeat;
}
.section-head h2, .side-title h2, .showcase-heading h2 { display: inline-flex; align-items: center; gap: .2em; }
.section-head h2::before, .side-title h2::before, #hero .side-title h2::before, .showcase-heading h2::before,
.art-below .paper h2::before, .art-below .roe h2::before {
  content: ""; flex: none; width: 1.08em; height: 1.08em; margin-right: .06em; -webkit-text-stroke: 0;
  background: var(--emblem) center / contain no-repeat; filter: drop-shadow(.04em .05em 0 #000);
}
.art-below .paper h2::before, .art-below .roe h2::before { display: inline-block; vertical-align: -.14em; margin-right: .22em; width: 1em; height: 1em; }
.section-head h2 span {             /* highlighted word: a section-colored sticker block */
  background: var(--fill); color: var(--on-fill); -webkit-text-stroke: 0; text-shadow: none;
  border: 2px solid #000; border-radius: 7px; padding: .04em .16em 0; box-shadow: 3px 3px 0 #000;
}

/* ---------- filter tabs, search, pagination ---------- */
.tabs button { border: 2px solid var(--line-2); border-radius: 8px; color: #e9e3f2; background: var(--char); }
.tabs button:hover { background: #22123c; color: #fff; border-color: var(--d-flash); }
.tabs button[aria-pressed="true"] { border-color: #000; box-shadow: 3px 3px 0 #000; }
.browse-tools input, .browse-tools select { background-color: var(--char); color: #fff; border: 2px solid var(--line-2); border-radius: 8px; }
.browse-tools input::placeholder { color: #8a7da3; }
.browse-tools input:focus, .browse-tools select:focus { outline: 0; border-color: var(--d-flash); box-shadow: 0 0 0 3px rgba(255, 26, 140, .22); }
.page-links a, .page-current { border: 2px solid var(--line-2); color: #e9e3f2; border-radius: 8px; background: var(--char); }
.page-links a:hover, .page-links a:focus-visible { background: #22123c; color: #fff; border-color: var(--d-flash); }
.page-current { background: var(--fill); border-color: #000; box-shadow: 3px 3px 0 #000; }

/* ---------- story cards: black outline + hard offset shadow ---------- */
.story { border-bottom-color: var(--line); }
.story p { color: #bcb0d0; }
.story h3 { transition: color .15s; }
.story:hover h3 { text-decoration: none; color: var(--hl); }
.story .thumb { box-shadow: 4px 4px 0 #000; }
.story:hover .thumb { transform: none; box-shadow: 4px 4px 0 #000; }
#stories .story {
  position: relative; background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 2px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000;
  outline: 1px solid rgba(255, 255, 255, .07); outline-offset: -3px;
  transition: transform .18s, box-shadow .18s;
}
#stories .story::before {            /* section-colored tab on the card's top edge */
  content: ""; position: absolute; left: 18px; top: -2px; width: 64px; height: 5px; border-radius: 0 0 4px 4px; background: var(--fill);
}
#stories .story:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--pop); }
.story .side .big { color: var(--d-flash); }
[data-theme]:not([data-theme="breaking"]) .story .side .big { color: var(--red-hot); }
.story .side .big::after { content: " ▸"; }
.empty { color: var(--muted); padding: 70px 0 60px; }
.empty::before {
  content: ""; display: block; width: 104px; height: 104px; margin: 0 auto 16px;
  background: url("favicon.svg") center / contain no-repeat; filter: drop-shadow(4px 4px 0 #000);
  }

/* generated fallback graphics (stories without a picture) */
.gfx .g-label { background: #fff; color: #111; border-radius: 4px; }
.gfx .g-head { max-width: 68%; }
.gfx .g-mark { width: 30%; right: 3%; bottom: 5%; }

/* ---------- homepage section showcases ---------- */
.showcase-heading { color: #fff; border: 2px solid #000; border-bottom: 0; }
.showcase-heading::after { background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15)); }
.showcase-links a:hover { color: var(--d-accent); }
.showcase-content { background: var(--card); border: 2px solid #000; border-top: 0; box-shadow: 6px 6px 0 #000; position: relative; }
.showcase-content::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--fill); }
.showcase-image { box-shadow: 5px 5px 0 #000; transition: transform .16s, box-shadow .16s; }
.showcase-lead a:hover .showcase-image { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pop); }
.showcase-lead h3 { color: #fff; }
.showcase-lead time, .showcase-list time { color: #8d81a6; }
.showcase-list li { border-bottom-color: var(--line); }
.showcase-list a { color: #e7e1f0; }
.showcase-lead a:hover h3, .showcase-list a:hover { color: var(--hl); }
.showcase-hero { position: relative; background: var(--card); color: var(--ink); border: 2px solid #000; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: 6px 6px 0 #000; }
.showcase-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--fill); z-index: 4; pointer-events: none; }
.showcase-hero + .showcase-content::before { display: none; }
.showcase-hero .hero-paper { background: var(--card); color: var(--ink); }
.showcase-hero .hero-paper .mega, .showcase-hero .hero-paper .mega a { color: #fff; }
.showcase-hero .hero-paper .dek { color: #d1c7e2; }
.showcase-hero .hero-meta { color: var(--muted); }
.showcase-hero .hero-meta .type-chip { background: rgba(255, 255, 255, .1); color: var(--ink); border-color: rgba(255, 255, 255, .18); }

/* ---------- footer ---------- */
.torn-top-dark {
  clip-path: none; height: 30px; margin-top: 70px; margin-bottom: 0;
  background: var(--arc) center bottom / 100% 100% no-repeat;
}
.site-footer { margin-top: 0; background: var(--black); color: #b6aaca; position: relative; overflow: hidden; }
.site-footer::before {                      /* the burst mark, large and faint, behind the footer */
  content: ""; position: absolute; right: -50px; bottom: -90px; width: 420px; height: 420px; opacity: .07; pointer-events: none;
  background: url("favicon.svg") center / contain no-repeat;
}
.site-footer .wrap { position: relative; }
.site-footer .footer-brand img { height: 84px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6)); }
.site-footer .footer-brand p { color: #b6aaca; }
.site-footer h2 { color: #fff; display: flex; align-items: center; gap: 8px; }
.site-footer h2::after { content: ""; flex: 0 0 34px; height: 5px; border-radius: 3px; background: var(--brand-h); box-shadow: 0 0 0 1.5px #000; }
.site-footer .footer-links a { color: #dfd8eb; }
.site-footer .footer-links a:hover { color: var(--d-flash); }
.site-footer .footer-bottom { border-top-color: var(--line); }
.site-footer .footer-site-link { background: var(--card); border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.site-footer .footer-site-link:hover { background: #1e1036; border-color: var(--d-flash); box-shadow: 4px 4px 0 var(--d-flash); }
.site-footer .footer-site-link:hover .footer-site-copy strong { color: var(--d-flash); }
.footer-strip { height: 6px; background: var(--brand-h); }

/* ---------- article pages ---------- */
body[data-page="archive"] .article-top {
  background:
    radial-gradient(ellipse at 85% 0, rgba(138, 43, 255, .14), transparent 55%),
    linear-gradient(180deg, #12081f, var(--paper));
}
.article-top .crumbs, .byline { color: var(--muted); }
.byline .sep { background: var(--brand-h); }
.story-paper-art { background: #160b27; }
.article-top.has-thumbnail-background .story-paper-art { background: #0d0518; }
.article-top .story-paper-art::after,
.article-top.has-thumbnail-background .story-paper-art::after {
  background: linear-gradient(90deg, rgba(11, 4, 20, .94) 0%, rgba(11, 4, 20, .82) 44%, rgba(11, 4, 20, .15) 80%);
}
@media (max-width: 760px) {
  .article-top.has-thumbnail-background .story-paper-art::after { background: rgba(11, 4, 20, .8); }
}
.article-top .mega { position: relative; -webkit-text-stroke-width: .1em; }

/* reading panels */
.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: var(--card); color: #e6dff0; border: 2px solid #000; border-top: 4px solid var(--pop);
  border-radius: 12px; box-shadow: 6px 6px 0 #000;
}
body[data-page="archive"] .article-layout .art-below > .paper + .paper { border-top: 2px solid #000; }
.art-below .paper p, .art-below .paper li, .art-below .roe p, .art-below .info p, .prose { color: #dfd8eb; }
.art-below h1, .art-below h2, .art-below h3 { color: #fff; }
.art-below .paper a, .art-below .roe a { color: var(--hl); text-decoration-color: currentColor; }
.art-below blockquote { border-left: 0; padding-left: 26px; position: relative; border-radius: 0 8px 8px 0; background: rgba(255, 255, 255, .03); }
.art-below blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 5px; background: var(--fill); box-shadow: 0 0 0 2px #000; }
.art-below blockquote p { color: #fff; }
.art-below figcaption, .art-below .note, .art-below .credits { color: var(--muted); }
.art-below .stat, .art-below .info, .art-below .card { background: var(--card-2); color: #e6dff0; border-color: var(--line); }
.art-below .stat { background: var(--black); border: 2px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 var(--pop); }
.art-below .stat b { color: var(--d-flash); }
[data-theme]:not([data-theme="breaking"]) .art-below .stat b { color: var(--red-hot); }
.art-below .yt-line .btn { background: var(--brand); color: #ffffff; }
.art-below .video-section { background: var(--black); border: 2px solid #000; border-radius: 12px; box-shadow: 7px 7px 0 var(--pop); }
.art-below .chapters li, .art-below .timeline li { border-bottom-color: var(--line); }
.art-below .chapters button:hover, .art-below .chapters button.active { background: #22123c; }
.art-below .transcript, .art-below .note { border-top-color: var(--line); }
.art-below .transcript summary span { color: var(--muted); }
.art-below .timeline button { color: #fff; }
.art-below figure img, .art-below .roe-photo img { border: 2px solid #000; border-radius: 8px; }
body[data-page="archive"] .article-toc { background: var(--black); color: #e6dff0; border: 2px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000; }
body[data-page="archive"] .article-toc nav ol a { color: #ddd5ea; }
body[data-page="archive"] .article-toc nav ol a[aria-current="location"] { color: #fff; border-color: var(--pop); background: rgba(255, 255, 255, .05); }
body[data-page="archive"] .article-pagination { background: var(--card); border: 2px solid #000; border-radius: 12px; }
.article-page-link { background: var(--card-2); color: #fff; border: 2px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 #000; transition: transform .15s, box-shadow .15s; }
.article-page-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pop); }
.article-page-link small { color: var(--muted); }
.source-icon { background: var(--line); }
.skip-link { background: #fff; color: #111; }
.selection-share { background: rgba(20, 10, 36, .96); color: #e6dff0; border-color: var(--line-2); }
.selection-share::before { display: none; }
.selection-share::after { background: #150a26; border-color: var(--line-2); }
.selection-close { color: #e6dff0; }
.selection-share-buttons a, .selection-share-buttons button { color: #fff; background: #22123c; border-color: var(--line-2); }
.selection-share-buttons a:hover, .selection-share-buttons button:hover { color: #ffffff; background: var(--d-flash); }
.selection-share-note, .selection-share-status { color: var(--muted); }
.aside-box { background: var(--card); border: 2px solid #000; border-radius: 12px; }
.prevnext a { background: var(--card); box-shadow: 4px 4px 0 #000; border: 2px solid #000; border-radius: 8px; }
.prevnext a:hover { border-color: var(--pop); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 3px; }
#hero a:focus-visible { outline-color: var(--d-accent); }

@media (prefers-reduced-motion: reduce) {
  .empty::before { animation: none; }
  .logo, #stories .story, .story .thumb, .showcase-image, .side-item .thumb, .article-page-link, .btn { transition: none; }
  .logo:hover, #stories .story:hover, .btn:hover { transform: none; }
}

/* ==================================================================
   HEADLINE FONT — Kanit Black Italic (SIL Open Font License), a wide,
   chunky italic close to the logo's lettering. It replaces Newstro's
   narrow Anton wherever --head is used. Kanit is much wider than
   Anton, so every headline size below is retuned (roughly two thirds).
   ================================================================== */
@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 { --head: "Kanit", "Anton", Impact, "Arial Narrow Bold", sans-serif; }

/* everything set in --head uses the real black italic (no synthetic slant) */
.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; }

.label-bar { font-size: 16px; padding-top: 8px; padding-bottom: 8px; }
.label-bar.sm { font-size: 11px; padding-top: 5px; padding-bottom: 5px; }
.mega { line-height: .98; letter-spacing: -.005em; -webkit-text-stroke-width: .1em; }
.hero-paper .mega { font-size: min(64px, 10.4cqw); }
.article-top .mega { font-size: clamp(32px, 5vw, 72px); max-width: 19ch; line-height: 1; }
.side-title h2 { font-size: 23px; }
.side-item h3, #hero .side-item h3 { font-size: clamp(14px, 1.25vw, 16px); line-height: 1.14; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1; }
.story h3 { font-size: clamp(20px, 2vw, 27px); line-height: 1.08; }
#stories .story h3 { font-size: clamp(18px, 1.8vw, 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; }
.gfx .g-words { font-size: 11cqw; }
.newsroom-bg .bg-words { font-size: 92px; line-height: 1.02; }
.header-tag strong { font-size: 23px; }
.showcase-heading h2 { font-size: clamp(23px, 2.8vw, 33px); }
.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: 18px; }
.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; }
@media (max-width: 760px) {
  .hero-paper .mega { font-size: min(46px, 10cqw); }
  .label-bar { font-size: 14px; }
  .site-header .header-tag strong { font-size: 14px; }
  .side-item h3, #hero .side-item h3 { font-size: 14px; }
  .newsroom-bg .bg-words { font-size: 64px; }
}

/* ==================================================================
   DORKVERSE LOOK — what sets this site apart from its sister sites:
   a comic-book page. Headlines are stacked like the wordmark (white
   letters, black outline, a pink layer, a purple layer), panels have
   square corners and thick black borders, and halftone dots fill
   labels, buttons and panel corners.
   ================================================================== */
:root { --pop2: #8a2bff; }
[data-theme][data-theme] { --pop2: var(--red-dark); }
[data-theme="breaking"][data-theme="breaking"] { --pop2: #8a2bff; }

/* ---------- headlines: white, black outline, then two colored layers behind ---------- */
.mega, .section-head h2, .showcase-heading h2 {
  text-shadow: none; filter: drop-shadow(.045em .055em 0 var(--pop)) drop-shadow(.035em .045em 0 var(--pop2));
}
#hero .has-art .hero-paper .mega, .showcase-hero .has-art .hero-paper .mega { text-shadow: none; }
.header-tag strong { text-shadow: none; filter: drop-shadow(2px 3px 0 var(--pop)) drop-shadow(2px 2px 0 #000); }
.art-below h1, .art-below h2 { text-shadow: .05em .06em 0 var(--pop2); }
.section-head h2 span { border-radius: 3px; rotate: -1.5deg; }

/* ---------- labels and buttons: caption boxes with halftone dots ---------- */
.label-bar {
  background: radial-gradient(circle, rgba(0, 0, 0, .17) 1.1px, transparent 1.6px) 0 0 / 6px 6px, var(--fill);
  border: 2px solid #000; border-radius: 3px; box-shadow: 3px 4px 0 #000; rotate: -1.5deg; text-shadow: 0 1.5px 0 rgba(0, 0, 0, .55);
}
.hero-paper .label-bar { align-self: flex-start; }          /* a caption box only as wide as its words */
.label-bar.sm { background: var(--fill); border-radius: 2px; box-shadow: 2px 3px 0 #000; rotate: -1deg; }
.label-bar.dot::before {            /* the "live" dot becomes a twinkling spark */
  width: 12px; height: 12px; border-radius: 0; background: var(--on-fill);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: d-twinkle 1.7s ease-in-out infinite;
}
@keyframes d-twinkle { 0%, 100% { transform: scale(.65) rotate(0); } 50% { transform: scale(1.2) rotate(45deg); } }
.type-chip { border-radius: 2px; }
.type-chip.video { background: var(--d-pink); color: #fff; }
.btn {
  background: radial-gradient(circle, rgba(0, 0, 0, .16) 1.2px, transparent 1.7px) 0 0 / 7px 7px, var(--brand);
  color: #fff; border: 2.5px solid #000; border-radius: 4px; box-shadow: 4px 5px 0 #000; text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 0 0 0 2px #fff, 6px 7px 0 2px #000; }
.art-below .yt-line .btn { background: var(--brand); color: #fff; }
.tabs button, .page-links a, .page-current, .section-picker select, .browse-tools input, .browse-tools select { border-radius: 3px; }
.navbar a.active, .navbar .nav-links a.active { text-shadow: 0 1.5px 0 rgba(0, 0, 0, .5); }
[data-theme="starwars"] .navbar a.active, [data-theme="startrek"] .navbar a.active, [data-theme="doctorwho"] .navbar a.active, [data-theme="powerrangers"] .navbar a.active { text-shadow: none; }
.navbar { border-bottom-width: 3px; }

/* ---------- panels: comic panels with square corners and a halftone corner ---------- */
#hero.hero-grid { border: 3px solid #000; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 8px 8px 0 1.5px #000; outline: 0; }
#stories .story {
  background:
    radial-gradient(ellipse 50% 62% at 100% 100%, rgba(21, 10, 38, 0) 0, var(--card) 72%),
    radial-gradient(circle, color-mix(in srgb, var(--pop) 42%, transparent) 1.6px, transparent 2.3px) 0 0 / 11px 11px,
    var(--card);
  border: 3px solid #000; border-radius: 4px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .13), 6px 6px 0 1.5px #000; outline: 0;
}
#stories .story:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .4), 9px 9px 0 1.5px var(--pop); }
#stories .story::before { left: 20px; width: 76px; height: 6px; border-radius: 0; transform: skewX(-24deg); }
.side-item .thumb, .story .thumb, .showcase-image, .art-below figure img, .art-below .roe-photo img { border-radius: 3px; }
.showcase-content, .showcase-hero { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12), 6px 6px 0 1.5px #000; }
.showcase-content {
  background:
    radial-gradient(ellipse 46% 70% at 100% 100%, rgba(21, 10, 38, 0) 0, var(--card) 72%),
    radial-gradient(circle, color-mix(in srgb, var(--pop) 50%, transparent) 1.6px, transparent 2.3px) 0 0 / 11px 11px,
    var(--card);
}
.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,
body[data-page="archive"] .article-toc, body[data-page="archive"] .article-pagination, .aside-box,
.art-below .video-section, .art-below .stat, .article-page-link, .prevnext a, .media-card { border-radius: 4px; }
.art-below blockquote::before { border-radius: 0; transform: skewX(-6deg); }
.site-footer {
  background:
    linear-gradient(180deg, rgba(7, 2, 14, 0) 0, var(--black) 62%),
    radial-gradient(circle, rgba(255, 26, 140, .3) 1.7px, transparent 2.4px) 0 0 / 12px 12px,
    var(--black);
}
.site-footer .footer-site-link { border-radius: 4px; }
.site-footer h2::after { border-radius: 0; transform: skewX(-24deg); height: 6px; }
.footer-strip { height: 8px; }
.site-header .section-motif { opacity: .2; animation: none; }
.site-header .bg-words { color: rgba(255, 255, 255, .05); }
.logo, .logo img, .site-footer .footer-brand img { filter: none; }      /* no shadow or glow behind the logo */
.logo img { clip-path: none; }
.logo:hover { transform: scale(1.03) rotate(-1.5deg); }
.empty::before { animation: d-throb 2.6s ease-in-out infinite; }

/* ==================================================================
   INTO THE VERSE — the header is a live comic panel: halftone dots
   drift across it, comic bursts like the one behind the wordmark pop
   up and vanish in turn, and a burst sits behind the section name.
   The markup is the .verse-fx block (one <span> per burst) and the
   .pow-tag span in header.html.
   --x / --y position, --s size, --dur one cycle, --delay offset.
   ================================================================== */
.verse-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.verse-fx::before {
  content: ""; position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(255, 255, 255, .2) 1.9px, transparent 2.6px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 100%); mask-image: linear-gradient(100deg, transparent 18%, #000 100%);
  animation: d-drift 2.4s linear infinite;
}
@keyframes d-drift { to { transform: translate(14px, 14px); } }
.verse-fx span {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: 0;
  background: var(--burst) center / contain no-repeat; animation: d-pow var(--dur) linear var(--delay) infinite;
}
.verse-fx span:nth-child(1) { --x: 37%; --y: -26%; --s: 126px; --dur: 8s; --delay: -1s; }
.verse-fx span:nth-child(2) { --x: 54%; --y: 34%; --s: 150px; --dur: 9.5s; --delay: -5.4s; }
.verse-fx span:nth-child(3) { --x: 70%; --y: -34%; --s: 104px; --dur: 7s; --delay: -3.3s; }
@keyframes d-pow {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  4% { transform: scale(1.2) rotate(8deg); opacity: .95; }
  7% { transform: scale(.94) rotate(-3deg); opacity: .95; }
  10% { transform: scale(1) rotate(0); opacity: .95; }
  30% { transform: scale(1.05) rotate(3deg); opacity: .95; }
  35%, 100% { transform: scale(0) rotate(24deg); opacity: 0; }
}
.header-tag { position: relative; isolation: isolate; }
.pow-tag {
  position: absolute; z-index: -1; right: -34px; top: 50%; width: 168px; height: 168px; margin-top: -84px; opacity: .6;
  background: var(--burst) center / contain no-repeat; animation: d-throb 2.6s ease-in-out infinite;
}
@keyframes d-throb { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.09) rotate(4deg); } }
@media (max-width: 760px) {
  .verse-fx span:nth-child(1), .verse-fx span:nth-child(3) { display: none; }
  .verse-fx span:nth-child(2) { --x: 46%; --y: 20%; --s: 64px; }
  .pow-tag { width: 76px; height: 76px; margin-top: -38px; right: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  .verse-fx::before, .pow-tag, .label-bar.dot::before, .empty::before { animation: none; }
  .verse-fx span { animation: none; opacity: .45; transform: none; }
}
