/* ==================================================================
   NEWSTRO TECH — site style layer (loads last on every page)
   Carries the Tech Newstro logo across the site:
   - deep navy "screen" base instead of Newstro's newsprint paper
   - the logo's cyan → blue → violet → pink gradient for brand accents
   - white headline lettering with a thick black outline, like "NEWSTRO"
   - forward-slanted labels and buttons, like "TECH"
   - circuit traces with ring nodes: the heading emblem, the page grid
     and the live traces in the header
   - the gradient swoosh under the wordmark as header and footer edge
   Section colors (section-themes.css) still drive each section.
   ================================================================== */

:root {
  --t-cyan: #00e5ff;
  --t-sky: #25d7ff;
  --t-blue: #2f7bff;
  --t-violet: #b026ff;
  --t-pink: #ff2bd6;
  --brand: linear-gradient(90deg, #00e5ff 0%, #2f7bff 42%, #b026ff 76%, #ff2bd6 100%);   /* the swoosh */
  --brand-h: linear-gradient(90deg, #00e5ff 0%, #2f7bff 42%, #b026ff 76%, #ff2bd6 100%);
  --brand-v: linear-gradient(180deg, #00f0ff 0%, #2f8bff 50%, #c42bff 100%);             /* the word "TECH" */
  --emblem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 44' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%2300e5ff'/%3E%3Cstop offset='.42' stop-color='%232f7bff'/%3E%3Cstop offset='.76' stop-color='%23b026ff'/%3E%3Cstop offset='1' stop-color='%23ff2bd6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 32H38L54 14H70' stroke='%23000' stroke-width='11'/%3E%3Ccircle cx='84' cy='14' r='10' stroke='%23000' stroke-width='11'/%3E%3Cpath d='M6 32H38L54 14H70' stroke='url(%23g)' stroke-width='5.5'/%3E%3Ccircle cx='84' cy='14' r='10' stroke='url(%23g)' stroke-width='5.5'/%3E%3Ccircle cx='84' cy='14' r='3' fill='%23fff'/%3E%3C/svg%3E");
  --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'%3E%3Cstop offset='0' stop-color='%2300e5ff'/%3E%3Cstop offset='.42' stop-color='%232f7bff'/%3E%3Cstop offset='.76' stop-color='%23b026ff'/%3E%3Cstop offset='1' stop-color='%23ff2bd6'/%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%3C/svg%3E");
  --cut: 11px;                                   /* slant of labels and buttons */
  --para: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);

  --black: #04060c;
  --char: #0d1326;
  --paper: #070a14;                              /* page */
  --paper-2: #1b2440;                            /* rules, card borders */
  --card: #0b1020;
  --card-2: #101730;
  --ink: #eef3ff;                                /* main text */
  --muted: #93a0bf;
  --line: #1b2440;
  --line-2: #2b3760;
}

/* ---------- page base: a dark board with a faint trace grid ---------- */
body,
body[data-page="home"],
body[data-page="archive"],
body[data-page="info"] {
  background:
    radial-gradient(circle, rgba(120, 190, 255, .28) 1.2px, transparent 1.8px) 0 0 / 96px 96px fixed,
    linear-gradient(rgba(90, 140, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px fixed,
    linear-gradient(90deg, rgba(90, 140, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px fixed,
    radial-gradient(ellipse 900px 520px at 0 0, rgba(0, 229, 255, .10), transparent 70%) fixed,
    radial-gradient(ellipse 900px 600px at 100% 100%, rgba(255, 43, 214, .08), transparent 70%) fixed,
    var(--paper);
  color: var(--ink);
}
::selection { background: var(--t-sky); color: #04101f; }
html { scrollbar-color: #2f7bff #04060c; }

/* --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: #04101f; --pop: #2f7bff; }
[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: #04101f; --pop: #2f7bff; }

/* ---------- labels, chips, buttons: blocky stickers ---------- */
.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(--t-cyan); color: #04101f; }
.btn {
  background: var(--brand); color: #04101f; 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; }

/* ---------- sticker 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: colored like the word "TECH" */
  background: none; box-shadow: none; padding: 0; color: var(--t-sky);
  background-image: none; -webkit-text-fill-color: var(--t-sky);
}
[data-theme]:not([data-theme="breaking"]) .mega .accent { color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }

/* ---------- top strip / ticker ---------- */
.topstrip { background: #02040a; color: #c3cde6; }
.ticker-label { background: var(--brand); color: #04101f; }
.ticker-label::before { background: #04101f; }
.ticker-track a:hover { color: var(--t-sky); }
.ticker-track a::after { content: "▸"; color: var(--t-sky); }

/* ---------- header ---------- */
.site-header { position: relative; border-bottom: 0; }
.site-header::after {               /* the gradient 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: #dfe6f7; }
@media (max-width: 760px) { .logo img { height: 64px; } .site-header .wrap { padding-top: 12px; padding-bottom: 22px; } }
.site-header .section-motif { opacity: .3; animation: t-glow 4.5s ease-in-out infinite; }
@keyframes t-glow { 0%, 100% { filter: drop-shadow(0 0 8px var(--glow)); } 50% { filter: drop-shadow(0 0 22px var(--glow)); } }

/* ---------- navigation ---------- */
.navbar { background: rgba(4, 6, 12, .96); backdrop-filter: blur(8px); border-bottom: 2px solid transparent; border-image: var(--brand-h) 1; }
.navbar a { color: #d5ddf2; }
.navbar a:hover { background: rgba(0, 229, 255, .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='%2325d7ff' 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(--t-sky); }
.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: #c8d1e8; }
.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: #04101f; text-shadow: none; border-bottom-color: var(--black); }
/* the picture reads like footage: faint scan lines and a cyan 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(0, 229, 255, .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(--t-sky); }
[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: #c3cde6; }
#hero .side-title .side-more:hover { color: var(--t-sky); }
.side-item, #hero .side-item { border-top-color: var(--line); }
.side-item:hover h3 { color: var(--t-sky); }
.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(--t-sky); }
.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: #04101f; }
.side-item .thumb .play { box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; }

/* ---------- headings: the circuit-trace emblem, with the logo 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.9em; height: .8em; margin-right: .1em; -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: 1.7em; height: .72em; }
.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: #e4eaf8; background: var(--char); }
.tabs button:hover { background: #141c38; color: #fff; border-color: var(--t-sky); }
.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: #7c88a8; }
.browse-tools input:focus, .browse-tools select:focus { outline: 0; border-color: var(--t-sky); box-shadow: 0 0 0 3px rgba(0, 229, 255, .22); }
.page-links a, .page-current { border: 2px solid var(--line-2); color: #e4eaf8; border-radius: 8px; background: var(--char); }
.page-links a:hover, .page-links a:focus-visible { background: #141c38; color: #fff; border-color: var(--t-sky); }
.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: #b3bdd6; }
.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(--t-sky); }
[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(--t-cyan); }
.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: #8490b0; }
.showcase-list li { border-bottom-color: var(--line); }
.showcase-list a { color: #e2e8f6; }
.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: #c8d1e8; }
.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: #adb8d2; position: relative; overflow: hidden; }
.site-footer::before {                      /* the 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: #adb8d2; }
.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: #d8dff2; }
.site-footer .footer-links a:hover { color: var(--t-sky); }
.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: #131b36; border-color: var(--t-sky); box-shadow: 4px 4px 0 var(--t-sky); }
.site-footer .footer-site-link:hover .footer-site-copy strong { color: var(--t-sky); }
.footer-strip { height: 6px; background: var(--brand-h); }

/* ---------- article pages ---------- */
body[data-page="archive"] .article-top {
  background:
    radial-gradient(ellipse at 85% 0, rgba(0, 229, 255, .14), transparent 55%),
    linear-gradient(180deg, #080c1a, var(--paper));
}
.article-top .crumbs, .byline { color: var(--muted); }
.byline .sep { background: var(--brand-h); }
.story-paper-art { background: #0d1428; }
.article-top.has-thumbnail-background .story-paper-art { background: #070a14; }
.article-top .story-paper-art::after,
.article-top.has-thumbnail-background .story-paper-art::after {
  background: linear-gradient(90deg, rgba(5, 8, 18, .94) 0%, rgba(5, 8, 18, .82) 44%, rgba(5, 8, 18, .15) 80%);
}
@media (max-width: 760px) {
  .article-top.has-thumbnail-background .story-paper-art::after { background: rgba(5, 8, 18, .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: #e0e6f6; 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: #d8dff2; }
.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: #e0e6f6; 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(--t-sky); }
[data-theme]:not([data-theme="breaking"]) .art-below .stat b { color: var(--red-hot); }
.art-below .yt-line .btn { background: var(--brand); color: #04101f; }
.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: #141c38; }
.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: #e0e6f6; border: 2px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000; }
body[data-page="archive"] .article-toc nav ol a { color: #d5ddf2; }
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(10, 15, 32, .96); color: #e0e6f6; border-color: var(--line-2); }
.selection-share::before { display: none; }
.selection-share::after { background: #0b1020; border-color: var(--line-2); }
.selection-close { color: #e0e6f6; }
.selection-share-buttons a, .selection-share-buttons button { color: #fff; background: #141c38; border-color: var(--line-2); }
.selection-share-buttons a:hover, .selection-share-buttons button:hover { color: #04101f; background: var(--t-sky); }
.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(--t-cyan); outline-offset: 3px; }
#hero a:focus-visible { outline-color: var(--t-cyan); }

@media (prefers-reduced-motion: reduce) {
  .site-header .section-motif { 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 — Russo One (SIL Open Font License), a heavy, squared
   face close to the logo's "NEWSTRO" lettering. It replaces Newstro's narrow
   Anton wherever --head is used. Russo One is much wider than Anton,
   so every headline size below is retuned (roughly 60%).
   ================================================================== */
@font-face { font-family: "Russo One"; src: url("assets/fonts/russo-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; 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: "Russo One"; src: url("assets/fonts/russo-one-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; 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: "Russo One", "Anton", Impact, "Arial Narrow Bold", sans-serif; }

/* everything set in --head uses the one real weight (no synthetic bold) */
.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: 400; font-style: normal; letter-spacing: 0; }

.label-bar { font-size: 15px; padding-top: 8px; padding-bottom: 7px; }
.label-bar.sm { font-size: 10.5px; padding-top: 5px; padding-bottom: 4px; }
.mega { line-height: 1.02; letter-spacing: 0; -webkit-text-stroke-width: .1em; }
.hero-paper .mega, #hero .hero-paper .mega { font-size: min(58px, 9.6cqw); line-height: 1.02; }
.showcase-hero .hero-paper .mega { font-size: min(38px, 6.6cqw); line-height: 1.04; }
.article-top .mega, .article-top.has-story-art .mega { font-size: clamp(30px, 4.6vw, 64px); max-width: 20ch; line-height: 1.03; }
.article-top.has-story-art .mega { max-width: 57%; font-size: clamp(28px, 3.5vw, 48px); }
.side-title h2 { font-size: 21px; }
.side-item h3, #hero .side-item h3 { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.16; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1; }
.story h3 { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.1; }
#stories .story h3 { font-size: clamp(16px, 1.55vw, 21px); }
.story .side .big, #stories .story .side .big { font-size: 15px; }
.gfx .g-label { font-size: 4cqw; }
.gfx .g-head { font-size: 6.6cqw; line-height: 1.04; }
.gfx .g-words { font-size: 10cqw; }
.newsroom-bg .bg-words { font-size: 84px; line-height: 1.06; }
.header-tag strong { font-size: 21px; }
.showcase-heading h2 { font-size: clamp(21px, 2.5vw, 30px); }
.showcase-lead h3 { font-size: clamp(15px, 1.5vw, 20px); line-height: 1.14; }
.showcase-placeholder { font-size: 16px; }
.site-footer h2 { font-size: 15px; }
.art-below h1, .art-below h2 { font-size: clamp(20px, 2.4vw, 29px); line-height: 1.12; }
.art-below h3 { font-size: 17px; }
.art-below blockquote p { font-size: clamp(17px, 1.8vw, 23px) !important; line-height: 1.24 !important; }
.art-below .timeline .what { font-size: 15px; }
.art-below .stat b { font-size: 22px; }
.art-below .chapters h3 { font-size: 16px; }
.article-pagination-head h2 { font-size: clamp(19px, 2.4vw, 27px); }
.article-page-link strong { font-size: 15px; line-height: 1.2; }
.article-toc h2 { font-size: 17px; }
.share-title, .selection-share-heading { font-size: 14px; }
.prevnext strong { font-size: 16px; }
.aside-box h4 { font-size: 18px; }
.prose > p:first-child::first-letter { font-size: 3.6em; }
@media (max-width: 760px) {
  .hero-paper .mega, #hero .hero-paper .mega { font-size: min(44px, 9.8cqw); line-height: 1.04; }
  .showcase-hero .hero-paper .mega { font-size: min(30px, 7.6cqw); }
  .article-top .mega, .article-top.has-story-art .mega { max-width: 100%; font-size: clamp(27px, 7.6vw, 44px); }
  .label-bar { font-size: 13px; }
  .site-header .header-tag strong { font-size: 13px; }
  .side-item h3, #hero .side-item h3 { font-size: 13.5px; }
  .newsroom-bg .bg-words { font-size: 58px; }
}


/* ==================================================================
   TECH LOOK — what sets this site apart from its sister sites:
   slanted gradient labels like "TECH", neon-edged panels instead of
   hard offset shadows, and live circuit traces in the header.
   ================================================================== */

/* ---------- labels, chips, buttons lean forward like "TECH" ---------- */
.label-bar {
  border: 0; border-radius: 0; box-shadow: none; clip-path: var(--para); font-style: italic;
  padding-left: calc(13px + var(--cut) * .6); padding-right: calc(13px + var(--cut) * .6);
  filter: drop-shadow(3px 3px 0 #000);
}
.label-bar.sm { --cut: 7px; box-shadow: none; }
.type-chip { clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); border-radius: 0; padding-left: 10px; padding-right: 10px; }
.type-chip.video { background: var(--t-cyan); color: #04101f; }
.btn {
  border: 0; border-radius: 0; clip-path: var(--para); box-shadow: none; font-style: italic;
  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.08); }
.ticker-label { clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 20px; font-style: italic; }
.navbar a.active, .navbar .nav-links a.active {
  box-shadow: none; font-style: italic;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-left: 20px; padding-right: 20px;
}
.header-tag strong { font-style: italic; }
.tabs button { border-radius: 0; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-left: 18px; padding-right: 18px; }
.tabs button[aria-pressed="true"] { box-shadow: none; 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; box-shadow: none; }
.section-head h2 span {
  border: 0; border-radius: 0; box-shadow: none; font-style: italic; padding: .04em .26em 0 .2em;
  clip-path: polygon(.16em 0, 100% 0, calc(100% - .16em) 100%, 0 100%);
}
.mega .accent, [data-theme]:not([data-theme="breaking"]) .mega .accent { font-style: italic; }
.mega .accent {                 /* highlighted words take the "TECH" gradient */
  background: var(--brand-v); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: none; padding-right: .08em;
}
[data-theme]:not([data-theme="breaking"]) .mega .accent { background: none; color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }

/* ---------- panels: thin lit edges instead of hard black shadows ---------- */
#hero.hero-grid {
  border: 1px solid var(--line-2); outline: 0; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .10), 0 30px 70px -36px rgba(47, 123, 255, .75);
}
#hero .hero-main { border-top: 4px solid var(--pop); }
#stories .story {
  border: 1px solid var(--line); outline: 0; border-radius: 12px; box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .9);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
#stories .story::before { top: -1px; height: 3px; border-radius: 0 0 3px 3px; transform: skewX(-20deg); box-shadow: 0 0 12px var(--pop); }
#stories .story:hover { transform: translateY(-4px); border-color: var(--pop); box-shadow: 0 0 0 1px var(--pop), 0 22px 44px -18px var(--glow); }
.side-item .thumb, .story .thumb, .showcase-image { border: 1px solid var(--line-2); border-radius: 8px; }
.story .thumb, .story:hover .thumb { box-shadow: none; }
.side-item:hover .thumb { transform: none; box-shadow: 0 0 0 2px var(--t-sky), 0 0 18px rgba(0, 229, 255, .45); }
.showcase-image { box-shadow: none; }
.showcase-lead a:hover .showcase-image { transform: none; box-shadow: 0 0 0 2px var(--pop), 0 0 22px var(--glow); }
.showcase-heading { border: 1px solid var(--line-2); border-bottom: 0; }
.showcase-content, .showcase-hero { border: 1px solid var(--line-2); border-top: 0; box-shadow: 0 24px 50px -34px rgba(47, 123, 255, .6); }
.showcase-hero { border-bottom: 1px solid var(--line); }
.media-card { border: 1px solid var(--line-2); box-shadow: 0 0 0 1px var(--pop), 0 0 30px -6px var(--glow); }
.play { box-shadow: 0 0 0 3px #000, 0 0 0 5px rgba(255, 255, 255, .9), 0 0 26px 4px rgba(0, 229, 255, .55); }
.side-item .thumb .play { box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; }
.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: 1px solid var(--line-2); border-top: 3px solid var(--pop); box-shadow: 0 24px 50px -34px rgba(47, 123, 255, .55);
}
body[data-page="archive"] .article-layout .art-below > .paper + .paper { border-top: 1px solid var(--line-2); }
body[data-page="archive"] .article-toc, body[data-page="archive"] .article-pagination, .aside-box { border: 1px solid var(--line-2); box-shadow: none; }
.art-below .video-section { border: 1px solid var(--line-2); box-shadow: 0 0 0 1px var(--pop), 0 0 34px -8px var(--glow); }
.art-below .stat { border: 1px solid var(--line-2); box-shadow: 0 0 0 1px var(--pop); }
.art-below blockquote::before { border-radius: 0; box-shadow: none; transform: skewX(-6deg); }
.article-page-link, .prevnext a { border: 1px solid var(--line-2); box-shadow: none; }
.article-page-link:hover { transform: translateY(-2px); border-color: var(--pop); box-shadow: 0 0 0 1px var(--pop), 0 14px 30px -14px var(--glow); }
.art-below figure img, .art-below .roe-photo img { border: 1px solid var(--line-2); }
.site-footer .footer-site-link { border: 1px solid var(--line-2); box-shadow: none; }
.site-footer .footer-site-link:hover { border-color: var(--t-sky); box-shadow: 0 0 0 1px var(--t-sky), 0 0 22px rgba(0, 229, 255, .3); }
.site-footer h2::after { border-radius: 0; box-shadow: none; height: 4px; transform: skewX(-20deg); }
.section-picker select, .browse-tools input, .browse-tools select { border-width: 1px; }
.empty::before { filter: drop-shadow(0 0 22px rgba(0, 229, 255, .45)); }

/* ==================================================================
   LIVE CIRCUIT — traces with ring nodes run across the header behind
   the logo, and a pulse of light travels along each one. The markup
   is the .circuit-run block in header.html (one <span> per trace).
   --y height in the header, --x start, --w length, --c color,
   --dur one trip, --delay offset. Traces 3 and 4 run right to left.
   ================================================================== */
.circuit-run { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.circuit-run span {
  position: absolute; top: var(--y); left: var(--x); width: var(--w); height: 2px; opacity: .7;
  background: linear-gradient(90deg, transparent, var(--c) 22%, var(--c));
}
.circuit-run span::before {                 /* the ring node at the end of the trace */
  content: ""; position: absolute; right: -13px; top: -6px; width: 14px; height: 14px; box-sizing: border-box;
  border: 2.5px solid var(--c); border-radius: 50%; animation: c-node var(--dur) linear var(--delay) infinite;
}
.circuit-run span::after {                  /* the pulse of light */
  content: ""; position: absolute; top: -2px; left: 0; width: 34px; height: 6px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff); box-shadow: 0 0 12px 3px var(--c);
  animation: c-pulse var(--dur) cubic-bezier(.45, 0, .25, 1) var(--delay) infinite;
}
.circuit-run span:nth-child(1) { --y: 24%; --x: -2%; --w: 44%; --c: #00e5ff; --dur: 5.2s; --delay: -1s; }
.circuit-run span:nth-child(2) { --y: 70%; --x: 24%; --w: 34%; --c: #2f7bff; --dur: 6.4s; --delay: -3.5s; }
.circuit-run span:nth-child(3) { --y: 34%; --x: 60%; --w: 42%; --c: #ff2bd6; --dur: 5.8s; --delay: -2.2s; }
.circuit-run span:nth-child(4) { --y: 80%; --x: 70%; --w: 32%; --c: #b026ff; --dur: 7s; --delay: -5s; }
.circuit-run span:nth-child(3), .circuit-run span:nth-child(4) { transform: scaleX(-1); }      /* node on the left, pulse runs leftward */
@keyframes c-pulse {
  0% { left: 0; opacity: 0; } 6% { opacity: 1; } 62% { opacity: 1; } 70%, 100% { left: calc(100% - 20px); opacity: 0; }
}
@keyframes c-node {                         /* the node lights up as the pulse arrives */
  0%, 60% { box-shadow: 0 0 0 0 transparent; background: transparent; } 70% { box-shadow: 0 0 14px 4px var(--c); background: #fff; } 86%, 100% { box-shadow: 0 0 0 0 transparent; background: transparent; }
}
@media (max-width: 760px) {
  .circuit-run span:nth-child(2), .circuit-run span:nth-child(4) { display: none; }
  .circuit-run span:nth-child(1) { --y: 20%; --w: 52%; }
  .circuit-run span:nth-child(3) { --y: 84%; --x: 50%; --w: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  .circuit-run span::after { display: none; }
  .circuit-run span::before { animation: none; }
}
