/* ==================================================================
   NEWSTRO GAMING — site style layer (loads last on every page)
   Carries the Gaming Newstro logo across the site:
   - near-black arcade base instead of Newstro's newsprint paper
   - the logo's yellow → orange → pink gradient for brand accents
   - forward-slanted heavy headlines, like the wordmark
   - parallelogram labels and buttons with black offset shadows
   - speed lines (left of "GAMING") before section headings
   - the tapered curved swoosh (under "NEWSTRO") as an underline
   Section colors (section-themes.css) still drive each section.
   ================================================================== */

:root {
  --g-yellow: #ffc800;
  --g-orange: #ff7a1f;
  --g-coral: #ff3d5e;
  --g-pink: #ff0a8c;
  --brand: linear-gradient(90deg, #ffc800 0%, #ff8a1f 34%, #ff3d5e 68%, #ff0a8c 100%);
  --brand-diag: linear-gradient(115deg, #ffc800 0%, #ff8a1f 34%, #ff3d5e 68%, #ff0a8c 100%);
  --swoosh: 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'%3E%3Cstop offset='0' stop-color='%23ffc800'/%3E%3Cstop offset='.35' stop-color='%23ff8a1f'/%3E%3Cstop offset='.68' stop-color='%23ff3d5e'/%3E%3Cstop offset='1' stop-color='%23ff0a8c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 38 Q500 -8 1000 38 Q500 16 0 38Z' fill='url(%23g)'/%3E%3C/svg%3E");
  --cut: 12px;                                   /* parallelogram slant */
  --para: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);

  --black: #08070b;
  --char: #16131d;
  --paper: #13101a;                              /* page */
  --paper-2: #2a2533;                            /* rules, card borders */
  --card: #17141f;
  --card-2: #1f1b29;
  --ink: #f5f2fb;                                /* main text */
  --muted: #a49fb3;
}

/* ---------- page base ---------- */
body,
body[data-page="home"],
body[data-page="archive"] {
  background:
    radial-gradient(ellipse 900px 520px at 100% 0, rgba(255, 10, 140, .10), transparent 70%),
    radial-gradient(ellipse 900px 600px at 0 100%, rgba(255, 140, 30, .07), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
}
::selection { background: #ff3d5e; color: #fff; }

/* On the dark base, "colored words" use each section's light tint. */
/* --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: #111; --pop: #ff2a7a; }
[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 colors. */
[data-theme="breaking"][data-theme="breaking"] {
  --red: #ff1f66; --red-hot: #ff7aa8; --red-dark: #b8004f; --red-deep: #1a0612; --on: #fff;
  --hl: #ff6a9a; --glow: rgba(255, 60, 120, .45); --words: rgba(255, 200, 150, .09);
  --fill: var(--brand); --on-fill: #111; --pop: #ff2a7a;
  --section-icon: url('assets/section-icons/breaking.svg');
  --section-backdrop:
    radial-gradient(ellipse at 80% 10%, rgba(255, 10, 140, .55), transparent 52%),
    radial-gradient(ellipse at 20% 120%, rgba(255, 170, 20, .40), transparent 55%),
    linear-gradient(115deg, #0d0812, #2a0b22 55%, #4a0a2c);
}
/* labels, tabs and current page follow the nearest section's fill */
.label-bar, .tabs button[aria-pressed="true"], .page-current { background: var(--fill); color: var(--on-fill); border-color: transparent; }
.label-bar.dot::before { background: var(--on-fill); }

/* ---------- headlines: forward slant like the wordmark ---------- */
.mega, .section-head h2, .side-title h2, .story h3, .showcase-heading h2, .showcase-lead h3,
.header-tag strong, .site-footer h2, .art-below h1, .art-below h2, .article-pagination-head h2,
.article-page-link strong, .prevnext strong, .gfx .g-head, .label-bar, .aside-box h4 {
  font-style: italic;
}
.mega { color: #fff; text-shadow: 3px 4px 0 #000; }
.mega .accent {
  background: var(--fill); color: var(--on-fill); box-shadow: .07em .07em 0 #000;
  clip-path: none; transform: skewX(-8deg); text-shadow: none; -webkit-text-stroke: 0;
}

/* ---------- labels, chips, buttons: parallelograms ---------- */
.label-bar { clip-path: var(--para); padding-left: calc(14px + var(--cut) * .6); padding-right: calc(14px + var(--cut) * .6); box-shadow: none; filter: drop-shadow(3px 3px 0 #000); }
.label-bar.sm { --cut: 7px; }
.type-chip { background: #2a2533; color: #fff; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); padding-left: 10px; padding-right: 10px; }
.type-chip.video { background: var(--g-yellow); color: #111; }

.btn {
  background: var(--brand); color: #111; box-shadow: none; clip-path: var(--para);
  padding-left: 24px; padding-right: 24px; filter: drop-shadow(4px 4px 0 #000);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: none; filter: drop-shadow(6px 6px 0 #000) brightness(1.06); }

/* ---------- top strip / ticker ---------- */
.topstrip { background: #050407; color: #c9c4d6; }
.ticker-label { background: var(--brand); color: #111; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 20px; }
.ticker-label::before { background: #111; }
.ticker-track a:hover { color: var(--g-yellow); }
.ticker-track a::after { content: "▶"; color: var(--g-pink); }

/* ---------- header ---------- */
.site-header { position: relative; border-bottom: 0; }
.site-header::after {               /* the logo's curved swoosh along the bottom edge */
  content: ""; position: absolute; inset: auto 0 0 0; height: 18px; z-index: 2;
  background: var(--swoosh) center bottom / 100% 100% no-repeat; pointer-events: none; animation: none;
}
.site-header .wrap { padding-top: 18px; padding-bottom: 26px; }
.logo { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); transition: transform .2s; }
.logo:hover { transform: rotate(-1.5deg) scale(1.02); }
.logo img { height: 104px; clip-path: none; }
.header-tag strong { font-size: 30px; text-shadow: 2px 3px 0 #000; }
.newsroom-bg .bg-words { font-style: italic; }
@media (max-width: 760px) { .logo img { height: 62px; } .site-header .wrap { padding-top: 12px; padding-bottom: 20px; } }

/* ---------- navigation ---------- */
.navbar { background: rgba(8, 7, 11, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.navbar a { font-style: italic; color: #d9d4e4; }
.navbar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.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 { background: #16131d; border: 2px solid #3a3446; border-radius: 6px; color: #fff; }
.section-picker select:hover { border-color: var(--g-orange); }
.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: 40px; clip-path: none; }
@media (max-width: 760px) { .navbar.is-stuck .sticky-brand img { max-height: 32px; } }

/* ---------- homepage lead ---------- */
.hero-paper, .hero-paper::before { background: var(--paper); }
#hero .has-art .hero-paper, .showcase-hero .has-art .hero-paper { background: none; }
.hero-paper .dek, .article-top .dek { color: #cfc9db; }
.hero-meta { color: var(--muted); }
.media-card { background: var(--black); }
.media-card .card-bar { background: var(--brand); color: #111; text-shadow: none; border-bottom-color: var(--black); }
.hero-side, .hero-side::after, #hero .hero-side::before, #hero .hero-side::after { background: var(--black); }
#hero .hero-side { border-top: 0; }
#hero .hero-side::before, #hero .hero-side::after { border-top: 0; }
.side-title h2 span { display: inline-block; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .22em 0 .04em; margin-right: -.18em; }
.side-item { border-top-color: #241f2d; }
#hero .side-item { border-top-color: #241f2d; }
.side-item:hover h3 { color: var(--g-yellow); }
.side-item .thumb, .story .thumb { border-radius: 6px; }
.play { background: var(--brand); box-shadow: 0 0 0 5px rgba(0, 0, 0, .85), 0 10px 30px rgba(0, 0, 0, .6); }
.play svg { fill: #111; }

/* ---------- section headings: speed lines + swoosh underline ---------- */
.section-head { border-bottom: 0; position: relative; padding-bottom: 20px; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 16px;
  background: var(--swoosh) center / 100% 100% no-repeat;
}
.section-head h2 { color: #fff; display: inline-flex; align-items: center; gap: .18em; text-shadow: 3px 3px 0 #000; }
.section-head h2::before, .side-title h2::before, .showcase-heading h2::before {
  content: ""; flex: none; width: .9em; height: .52em; margin-right: .08em; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, #ffc800 45%, #ff7a1f);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 26%, transparent 26% 37%);
          mask-image: repeating-linear-gradient(180deg, #000 0 26%, transparent 26% 37%);
}
.side-title h2 { display: inline-flex; align-items: center; gap: .15em; }
.section-head h2 span {
  background: var(--fill); color: var(--on-fill); text-shadow: none; -webkit-text-stroke: 0; padding: .02em .2em 0;
  clip-path: polygon(.14em 0, 100% 0, calc(100% - .14em) 100%, 0 100%);
}

/* ---------- filter tabs, search, pagination ---------- */
.tabs button {
  border: 2px solid #3a3446; border-radius: 0; color: #e8e4f0; background: #16131d;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-left: 18px; padding-right: 18px;
}
.tabs button:hover { background: #241f2d; color: #fff; }
.tabs button[aria-pressed="true"] { box-shadow: none; }
.browse-tools input, .browse-tools select { background: #16131d; color: #fff; border: 2px solid #3a3446; border-radius: 6px; }
.browse-tools input::placeholder { color: #8a8498; }
.browse-tools input:focus, .browse-tools select:focus { outline: 0; border-color: var(--g-orange); box-shadow: 0 0 0 3px rgba(255, 122, 31, .25); }
.page-links a, .page-current { border: 2px solid #3a3446; color: #e8e4f0; border-radius: 6px; }
.page-links a:hover, .page-links a:focus-visible { background: #241f2d; color: #fff; border-color: var(--g-orange); }


/* ---------- story cards ---------- */
.story { border-bottom-color: #241f2d; }
.story p { color: #bdb7ca; }
.story .side .big { color: #fff; }
.story .thumb { box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.story:hover .thumb { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--red), 0 14px 30px rgba(0, 0, 0, .55); }
.story:hover h3 { text-decoration-color: var(--hl); }
#stories .story {
  position: relative; background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid #2a2533; border-radius: 10px; transition: transform .18s, border-color .18s, box-shadow .18s;
}
#stories .story::before {            /* section-colored speed bar on the card's top edge */
  content: ""; position: absolute; left: 18px; top: -1px; width: 64px; height: 4px; border-radius: 0 0 3px 3px;
  background: var(--fill); transform: skewX(-20deg);
}
#stories .story:hover { transform: translateY(-3px); border-color: #4a4058; box-shadow: 0 18px 38px rgba(0, 0, 0, .5); }
#stories .story:hover .thumb { transform: none; }
.empty { color: var(--muted); }

/* generated fallback graphics */
.gfx .g-label { background: #fff; color: #111; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); padding-left: 3.5%; padding-right: 3.5%; }
.gfx .g-words { font-style: italic; }

/* ---------- homepage section showcases ---------- */
.showcase-heading { color: #fff; clip-path: polygon(0 0, 32% 0, calc(32% + 22px) 14px, 100% 14px, 100% 100%, 0 100%); }
.showcase-heading::after { background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15)); }
.showcase-heading h2 { text-shadow: 3px 3px 0 #000; display: inline-flex; align-items: center; gap: .15em; }
.showcase-content { background: var(--card); border: 1px solid #2a2533; border-top: 0; position: relative; }
.showcase-content::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--fill); }
.showcase-image { border-radius: 6px; }
.showcase-lead h3 { color: #fff; }
.showcase-lead time, .showcase-list time { color: #8f899c; }
.showcase-list li { border-bottom-color: #2a2533; }
.showcase-list a { color: #e6e1ee; }
.showcase-lead a:hover h3, .showcase-list a:hover { color: var(--hl); }

/* ---------- footer ---------- */
.torn-top-dark {
  clip-path: none; height: 26px; margin-top: 70px; margin-bottom: 0;
  background: var(--swoosh) center bottom / 100% 100% no-repeat;
}
.site-footer { margin-top: 0; background: var(--black); color: #b9b3c6; }
.site-footer .footer-brand img { height: 74px; }
.site-footer .footer-brand p { color: #b9b3c6; }
.site-footer h2 { color: #fff; display: flex; align-items: center; gap: 8px; }
.site-footer h2::after { content: ""; flex: 0 0 34px; height: 4px; background: var(--brand); transform: skewX(-20deg); }
.site-footer .footer-links a { color: #dcd7e6; }
.site-footer .footer-links a:hover { color: var(--g-yellow); }
.site-footer .footer-bottom { border-top-color: #241f2d; }
.footer-strip { height: 6px; background: var(--brand); }

/* ---------- article pages ---------- */
body[data-page="archive"] .article-top {
  background:
    radial-gradient(ellipse at 85% 0, rgba(255, 10, 140, .14), transparent 55%),
    linear-gradient(180deg, #14111b, var(--paper));
}
.article-top .crumbs { color: var(--muted); }
.byline { color: var(--muted); }
.byline .sep { background: var(--brand); }
/* story art behind the headline: darken instead of the paper wash */
.story-paper-art { background: #1a1622; }
.article-top.has-thumbnail-background .story-paper-art { background: #0f0d14; }
.article-top .story-paper-art::after,
.article-top.has-thumbnail-background .story-paper-art::after {
  background: linear-gradient(90deg, rgba(15, 13, 20, .94) 0%, rgba(15, 13, 20, .82) 44%, rgba(15, 13, 20, .15) 80%);
}
@media (max-width: 760px) {
  .article-top.has-thumbnail-background .story-paper-art::after { background: rgba(15, 13, 20, .8); }
}
.article-top .mega { position: relative; }

/* 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: #e4dfec; border: 1px solid #2a2533; border-top: 4px solid var(--red);
  border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
body[data-page="archive"] .article-layout .art-below > .paper + .paper { border-top-width: 1px; border-top-color: #2a2533; }
[data-theme="breaking"] .art-below .paper, [data-theme="breaking"] .art-below .roe { border-top-color: var(--g-coral); }
[data-theme="breaking"] .art-below > .paper + .paper { border-top-color: #2a2533; }
.art-below .paper p, .art-below .paper li, .art-below .roe p, .art-below .info p, .prose { color: #dcd7e6; }
.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-color: var(--red); background: rgba(255, 255, 255, .03); }
.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: #e4dfec; border-color: #2a2533; }
.art-below .yt-line .btn { background: var(--brand); color: #111; }
body[data-page="archive"] .article-toc {
  background: var(--black); color: #e4dfec; border: 1px solid #2a2533; border-radius: 10px;
}
body[data-page="archive"] .article-toc nav ol a { color: #d9d4e4; }
body[data-page="archive"] .article-toc nav ol a[aria-current="location"] { color: #fff; border-color: var(--red); background: rgba(255, 255, 255, .05); }
body[data-page="archive"] .article-pagination { background: var(--card); border: 1px solid #2a2533; border-radius: 10px; }
.article-page-link { background: var(--card-2); color: #fff; border-radius: 8px; }
.article-page-link small { color: var(--muted); }
.source-icon { background: #2a2533; }
.skip-link { background: #fff; color: #111; }
/* highlighted-text share bubble, dark to match */
.selection-share { background: rgba(23, 20, 31, .96); color: #e4dfec; border-color: #3a3446; }
.selection-share::before { display: none; }
.selection-share::after { background: #17141f; border-color: #3a3446; }
.selection-close { color: #e4dfec; }
.selection-share-buttons a, .selection-share-buttons button { color: #fff; background: #241f2d; border-color: #3a3446; }
.selection-share-buttons a:hover, .selection-share-buttons button:hover { color: #111; background: var(--brand); }
.selection-share-note, .selection-share-status { color: #a49fb3; }
.aside-box { background: var(--card); border: 1px solid #2a2533; border-radius: 10px; }
.prevnext a { background: var(--card); box-shadow: none; border: 1px solid #2a2533; border-radius: 8px; }
.prevnext a:hover { border-color: var(--red); }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--g-yellow); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .logo, #stories .story, .story .thumb { transition: none; }
  .logo:hover, #stories .story:hover { transform: none; }
}

/* ==================================================================
   ROUND 2 — closer to the logo: sticker outlines, hard offset
   shadows, the speedometer, and brand-gradient detail.
   ================================================================== */

/* ---------- page texture: faint speed streaks + halftone corner ---------- */
body, body[data-page="home"], body[data-page="archive"] {
  background:
    radial-gradient(rgba(255, 255, 255, .035) 1.2px, transparent 1.6px) 100% 0 / 9px 9px no-repeat fixed,
    repeating-linear-gradient(105deg, transparent 0 140px, rgba(255, 255, 255, .012) 140px 143px, transparent 143px 310px) fixed,
    radial-gradient(ellipse 900px 520px at 100% 0, rgba(255, 10, 140, .11), transparent 70%) fixed,
    radial-gradient(ellipse 900px 600px at 0 100%, rgba(255, 140, 30, .08), transparent 70%) fixed,
    var(--paper);
}
html { scrollbar-color: #ff3d5e #0b0910; }

/* ---------- sticker headlines: white letters, thick black outline ---------- */
.mega, .section-head h2, .showcase-heading h2, .header-tag strong, .art-below h1, .art-below h2 {
  -webkit-text-stroke: .11em #000; paint-order: stroke fill;
}
.mega { text-shadow: .05em .06em 0 #000; letter-spacing: .012em; }
.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; }
.section-head h2::before, .showcase-heading h2::before { -webkit-text-stroke: 0; }

/* article section headings get the speed lines too */
.art-below .paper h2::before, .art-below .roe h2::before {
  content: ""; display: inline-block; width: .8em; height: .5em; margin-right: .22em; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, #ffc800 45%, #ff7a1f);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 26%, transparent 26% 37%);
          mask-image: repeating-linear-gradient(180deg, #000 0 26%, transparent 26% 37%);
}

/* ---------- header: colored speedometer with a live needle (homepage look) ---------- */
[data-theme="breaking"] .site-header .section-motif {
  top: auto; bottom: 14px; left: 61%; width: clamp(150px, 19vw, 250px); aspect-ratio: 200 / 112;
  transform: translateX(-50%); opacity: .62; filter: drop-shadow(0 0 18px rgba(255, 60, 120, .45));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 112'%3E%3Cg fill='none' stroke-width='27'%3E%3Cpath d='M18.1 96.9A82 82 0 0 1 27.5 61.8' stroke='%23ffc800'/%3E%3Cpath d='M30.6 56.3A82 82 0 0 1 56.3 30.6' stroke='%23ffa21a'/%3E%3Cpath d='M61.8 27.5A82 82 0 0 1 96.9 18.1' stroke='%23ff7a28'/%3E%3Cpath d='M103.1 18.1A82 82 0 0 1 138.2 27.5' stroke='%23ff4a50'/%3E%3Cpath d='M143.7 30.6A82 82 0 0 1 169.4 56.3' stroke='%23ff2a78'/%3E%3Cpath d='M172.5 61.8A82 82 0 0 1 181.9 96.9' stroke='%23ff0a8c'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
[data-theme="breaking"] .site-header .section-motif::after {      /* needle + hub, pivots at the dial center */
  content: ""; position: absolute; inset: 0; transform-origin: 50% 89.3%; transform: rotate(48deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 112'%3E%3Cpath d='M100 22L108 100H92z' fill='%23fff' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='100' cy='100' r='11' fill='%23fff' stroke='%23000' stroke-width='3'/%3E%3Ccircle cx='100' cy='100' r='4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: g-rev 2.4s cubic-bezier(.2, .9, .25, 1) both, g-idle 2.8s ease-in-out 2.4s infinite;
}
@keyframes g-rev { 0% { transform: rotate(-84deg); } 55% { transform: rotate(66deg); } 78% { transform: rotate(40deg); } 100% { transform: rotate(48deg); } }
@keyframes g-idle { 0%, 100% { transform: rotate(48deg); } 30% { transform: rotate(53deg); } 60% { transform: rotate(45deg); } }
@media (max-width: 760px) { [data-theme="breaking"] .site-header .section-motif { left: 56%; width: 112px; bottom: 16px; opacity: .45; } }
@media (max-width: 560px) { [data-theme="breaking"] .site-header .section-motif { display: none; } }

/* thin brand line under the menu bar */
.navbar { border-bottom: 2px solid transparent; border-image: var(--brand) 1; }

/* ---------- homepage lead: hard slanted cut with speed slashes ---------- */
@media (min-width: 761px) {
  #hero .hero-art-photo, .showcase-hero .hero-art-photo {
    -webkit-mask-image: linear-gradient(100deg, transparent 0, transparent 88px, rgba(0, 0, 0, .45) 89px, rgba(0, 0, 0, .45) 108px, #000 109px);
            mask-image: linear-gradient(100deg, transparent 0, transparent 88px, rgba(0, 0, 0, .45) 89px, rgba(0, 0, 0, .45) 108px, #000 109px);
  }
  #hero .has-art .art-tile::before, #hero .has-art .art-tile::after,
  .showcase-hero .has-art .art-tile::before, .showcase-hero .has-art .art-tile::after {
    content: ""; position: absolute; z-index: 2; top: -12%; bottom: -12%; transform: skewX(-10deg); pointer-events: none;
    background: linear-gradient(180deg, #ffc800, #ff8a1f 35%, #ff3d5e 70%, #ff0a8c);
  }
  #hero .has-art .art-tile::before, .showcase-hero .has-art .art-tile::before { left: 106px; width: 9px; }
  #hero .has-art .art-tile::after, .showcase-hero .has-art .art-tile::after { left: 124px; width: 4px; opacity: .8; }
  #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, .55); }
}

/* ---------- sticker cards: black outline + hard offset shadow ---------- */
#stories .story {
  border: 2px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000;
  outline: 1px solid rgba(255, 255, 255, .07); outline-offset: -3px;
}
#stories .story:hover { transform: translate(-3px, -3px); border-color: #000; box-shadow: 9px 9px 0 var(--pop); }
.story .thumb, .side-item .thumb, .showcase-image { border: 2px solid #000; border-radius: 8px; }
.story .thumb { box-shadow: 4px 4px 0 #000; }
.story:hover .thumb { transform: none; box-shadow: 4px 4px 0 #000; }
.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); }
.side-item .thumb { transition: transform .16s, box-shadow .16s; }
.side-item:hover .thumb { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--g-yellow); }
.showcase-hero { position: relative; background: var(--card, #17141f); color: #f6f4ff; border: 2px solid #000; border-top: 0; border-bottom: 1px solid #2a2533; 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, #17141f); color: #f6f4ff; }
.showcase-hero .hero-paper .mega { font-family: "Kanit", var(--head); font-weight: 900; font-style: italic; color: #fff; font-size: min(56px, 9.8cqw); }
.showcase-hero .hero-paper .mega a { color: #fff; }
.showcase-hero .hero-paper .mega a:hover { text-decoration-color: #ffc800; }
.showcase-hero .hero-paper .mega .accent { color: #ffc800; }
.showcase-hero .hero-paper .dek { color: #d5cee6; }
.showcase-hero .hero-meta { color: #a79ec0; }
.showcase-hero .hero-meta .type-chip { background: rgba(255, 255, 255, .1); color: #f6f4ff; border-color: rgba(255, 255, 255, .18); }
@media (max-width: 760px) { .showcase-hero .hero-paper .mega { font-size: min(42px, 10.5cqw); } }
.showcase-content { border: 2px solid #000; border-top: 0; box-shadow: 6px 6px 0 #000; }
.media-card { 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; }
.site-footer .footer-site-link { background: var(--card, #17141f); border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.site-footer .footer-site-link:hover { background: #211c2c; border-color: #ffc800; box-shadow: 4px 4px 0 #ffc800; }
.site-footer .footer-site-link:hover .footer-site-copy strong { color: #ffc800; }

/* "READ" / runtime on cards in the brand gradient with a play arrow */
.story .side .big {
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; padding-right: .1em;
}
.story .side .big::after { content: " ▸"; }
.story h3 { transition: color .15s; }
.story:hover h3 { text-decoration: none; color: var(--hl); }

/* ---------- controls ---------- */
.btn { transition: transform .15s, filter .15s; }
.btn::after {                              /* speed lines trail the button on hover */
  content: ""; width: 0; height: 12px; margin-left: -4px; transition: width .18s;
  background: repeating-linear-gradient(180deg, #111 0 2px, transparent 2px 5px);
}
.btn:hover::after { width: 16px; margin-left: 0; }
.tabs button[aria-pressed="true"] { filter: drop-shadow(3px 3px 0 #000); }
.page-links a, .page-current {
  border-radius: 0; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); padding-left: 16px; padding-right: 16px;
  background: #16131d; font-style: italic;
}
.page-current { background: var(--fill); }
.browse-tools select, .section-picker 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='%23ff8a1f' 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;
}

/* ---------- empty state: idle speedometer ---------- */
.empty { padding: 70px 0 60px; }
.empty::before {
  content: ""; display: block; width: 96px; height: 96px; margin: 0 auto 16px; opacity: .9;
  background: url("favicon.svg") center / contain no-repeat; filter: drop-shadow(4px 4px 0 #000);
}

/* ---------- section showcase tab ---------- */
.showcase-heading { border: 2px solid #000; border-bottom: 0; }
.showcase-links a { font-style: italic; }
.showcase-links a:hover { color: var(--g-yellow); }

/* ---------- article pages ---------- */
.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 { border-bottom-color: #2a2533; }
.art-below .chapters button:hover, .art-below .chapters button.active { background: #241f2d; }
.art-below .transcript { border-top-color: #2a2533; }
.art-below .transcript summary span { color: var(--muted); }
.art-below .timeline li { border-bottom-color: #2a2533; }
.art-below .timeline button { color: #fff; }
.art-below .timeline .what { font-style: italic; }
.art-below .note { border-top-color: #2a2533; }
.art-below .stat { background: var(--black); border: 2px solid #000; border-radius: 8px; box-shadow: 4px 4px 0 var(--pop); }
.art-below .stat b { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.art-below blockquote { border-left: 0; padding-left: 26px; position: relative; border-radius: 0 8px 8px 0; }
.art-below blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--fill); transform: skewX(-6deg); }
.art-below blockquote p { font-style: italic; color: #fff; }
.art-below figure img, .art-below .roe-photo img { border: 2px solid #000; border-radius: 8px; }
.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 { border-color: #000; border-width: 2px; border-top: 4px solid var(--pop); box-shadow: 6px 6px 0 #000; }
body[data-page="archive"] .article-layout .art-below > .paper + .paper { border-top: 2px solid #000; }
body[data-page="archive"] .article-toc { border: 2px solid #000; box-shadow: 6px 6px 0 #000; }
.article-page-link { border: 2px solid #000; 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-top .mega { -webkit-text-stroke-width: .1em; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {                      /* big faint dial rising behind the footer */
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 420px; height: 420px; opacity: .06; pointer-events: none;
  background: url("favicon.svg") center / contain no-repeat;
}
.site-footer .wrap { position: relative; }
.site-footer .footer-brand img { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6)); }

@media (prefers-reduced-motion: reduce) {
  [data-theme="breaking"] .site-header .section-motif::after { animation: none; }
  .showcase-image, .side-item .thumb, .article-page-link, .btn::after { transition: none; }
}

/* image-less story cards: keep the headline clear of the logo */
.gfx .g-head { max-width: 68%; font-style: italic; }
.gfx .g-mark { width: 28%; right: 4%; bottom: 5%; }

/* ==================================================================
   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; }
}
