/* ==================================================================
   SCANNERSQUAD — site style layer (loads last on every page)
   Carries the ScannerSquad logo across the site:
   - a night-black page instead of Newstro's newsprint paper
   - chrome lettering with a black outline, like the wordmark
   - the blue-and-red light bar as the brand accent and panel edge
   - badge-style labels and buttons: black outline, white keyline
   - a small light bar as the heading emblem
   - the white arc under the wordmark as header and footer edge
   Section colors (section-themes.css) still drive each section.
   ================================================================== */

:root {
  --s-blue: #1f5bff;
  --s-accent: #7fb0ff;                           /* light blue for colored words on the dark page */
  --s-red: #e0131f;
  --s-flash: #ff5a63;                            /* light red for colored words on the dark page */
  --brand: linear-gradient(90deg, #1a4fe6 0 50%, #dc1422 50% 100%);                       /* the two lenses, for fills with lettering on them */
  --brand-h: linear-gradient(90deg, #1a4fe6 0 50%, #dc1422 50% 100%);
  --bar: linear-gradient(90deg, #1a4fe6 0%, #2f6bff 40%, #eef1f6 47%, #eef1f6 53%, #ff3340 60%, #dc1422 100%);   /* the whole light bar, for edges */
  --chrome: linear-gradient(180deg, #ffffff 0%, #eef0f4 26%, #b9bfca 50%, #f3f5f8 55%, #cfd4dc 76%, #8f97a5 100%);
  --emblem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Crect x='11' y='13' width='98' height='30' rx='12'/%3E%3C/clipPath%3E%3C/defs%3E%3Crect x='3' y='5' width='114' height='46' rx='20' fill='%23fff'/%3E%3Crect x='6' y='8' width='108' height='40' rx='17'/%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='60' height='56' fill='%231a4fe6'/%3E%3Crect x='60' width='60' height='56' fill='%23dc1422'/%3E%3C/g%3E%3Crect x='17' y='17' width='24' height='5' rx='2.5' fill='%2396beff'/%3E%3Crect x='79' y='17' width='24' height='5' rx='2.5' fill='%23ff9696'/%3E%3Cpolygon points='49,2 71,2 78,54 42,54'/%3E%3Cpolygon points='52,6 68,6 73,50 47,50' fill='%23d6dae2'/%3E%3Crect x='53' y='15' width='14' height='4' rx='2' fill='%23141418'/%3E%3Crect x='53' y='25' width='14' height='4' rx='2' fill='%23141418'/%3E%3Crect x='53' y='35' width='14' height='4' rx='2' fill='%23141418'/%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%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='%23fff'/%3E%3C/svg%3E");

  --black: #050608;
  --char: #12151c;
  --paper: #08090d;                              /* page */
  --paper-2: #1e222c;                            /* rules, card borders */
  --card: #0e1016;
  --card-2: #141821;
  --ink: #f1f3f7;                                /* main text */
  --muted: #9aa1ad;
  --line: #1e222c;
  --line-2: #2e3442;
}

/* ---------- page base: a street at night, blue to one side and red to the other ---------- */
body,
body[data-page="home"],
body[data-page="archive"],
body[data-page="info"] {
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .012) 22px 23px) fixed,
    radial-gradient(ellipse 760px 520px at 0 0, rgba(31, 91, 255, .13), transparent 70%) fixed,
    radial-gradient(ellipse 760px 520px at 100% 0, rgba(224, 19, 31, .12), transparent 70%) fixed,
    var(--paper);
  color: var(--ink);
}
::selection { background: var(--s-accent); color: #ffffff; }
html { scrollbar-color: #1f5bff #050608; }

/* --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: #1f5bff; }
[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: #1f5bff; }

/* ---------- 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(--s-flash); 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; }

/* ---------- 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: in the lighter tint */
  background: none; box-shadow: none; padding: 0; color: var(--s-accent);
  background-image: none; -webkit-text-fill-color: var(--s-accent);
}
[data-theme]:not([data-theme="breaking"]) .mega .accent { color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }

/* ---------- top strip / ticker ---------- */
.topstrip { background: #030305; color: #c5cad3; }
.ticker-label { background: var(--brand); color: #ffffff; }
.ticker-label::before { background: #ffffff; }
.ticker-track a:hover { color: var(--s-accent); }
.ticker-track a::after { content: "•"; color: var(--s-accent); }

/* ---------- header ---------- */
.site-header { position: relative; border-bottom: 0; }
.site-header::after {               /* the white arc 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: #e1e5ec; }
@media (max-width: 760px) { .logo img { height: 64px; } .site-header .wrap { padding-top: 12px; padding-bottom: 22px; } }
/* ---------- navigation ---------- */
.navbar { background: rgba(4, 5, 8, .96); backdrop-filter: blur(8px); border-bottom: 2px solid transparent; border-image: var(--brand-h) 1; }
.navbar a { color: #d7dbe3; }
.navbar a:hover { background: rgba(127, 176, 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='%237fb0ff' 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(--s-accent); }
.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: #cbd0d9; }
.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 footage: faint scan lines and a blue 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(127, 176, 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(--s-accent); }
[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: #c5cad3; }
#hero .side-title .side-more:hover { color: var(--s-accent); }
.side-item, #hero .side-item { border-top-color: var(--line); }
.side-item:hover h3 { color: var(--s-accent); }
.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(--s-accent); }
.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 light-bar emblem, with the white arc 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: .9em; margin-right: .08em; -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: .8em; }
.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: #e5e8ee; background: var(--char); }
.tabs button:hover { background: #181c26; color: #fff; border-color: var(--s-accent); }
.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: #808795; }
.browse-tools input:focus, .browse-tools select:focus { outline: 0; border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(127, 176, 255, .22); }
.page-links a, .page-current { border: 2px solid var(--line-2); color: #e5e8ee; border-radius: 8px; background: var(--char); }
.page-links a:hover, .page-links a:focus-visible { background: #181c26; color: #fff; border-color: var(--s-accent); }
.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: #b5bbc6; }
.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(--s-accent); }
[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(--s-flash); }
.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: #868d9a; }
.showcase-list li { border-bottom-color: var(--line); }
.showcase-list a { color: #e3e6ec; }
.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: #cbd0d9; }
.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: #aeb4bf; position: relative; overflow: hidden; }
.site-footer::before {                      /* the light bar, 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: #aeb4bf; }
.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: #d9dde5; }
.site-footer .footer-links a:hover { color: var(--s-accent); }
.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: #161a24; border-color: var(--s-accent); box-shadow: 4px 4px 0 var(--s-accent); }
.site-footer .footer-site-link:hover .footer-site-copy strong { color: var(--s-accent); }
.footer-strip { height: 6px; background: var(--brand-h); }

/* ---------- article pages ---------- */
body[data-page="archive"] .article-top {
  background:
    radial-gradient(ellipse at 85% 0, rgba(31, 91, 255, .14), transparent 55%),
    linear-gradient(180deg, #0a0c11, var(--paper));
}
.article-top .crumbs, .byline { color: var(--muted); }
.byline .sep { background: var(--brand-h); }
.story-paper-art { background: #0f1218; }
.article-top.has-thumbnail-background .story-paper-art { background: #08090d; }
.article-top .story-paper-art::after,
.article-top.has-thumbnail-background .story-paper-art::after {
  background: linear-gradient(90deg, rgba(6, 7, 11, .94) 0%, rgba(6, 7, 11, .82) 44%, rgba(6, 7, 11, .15) 80%);
}
@media (max-width: 760px) {
  .article-top.has-thumbnail-background .story-paper-art::after { background: rgba(6, 7, 11, .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: #e1e4ea; 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: #d9dde5; }
.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: #e1e4ea; 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(--s-accent); }
[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: #181c26; }
.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: #e1e4ea; border: 2px solid #000; border-radius: 12px; box-shadow: 6px 6px 0 #000; }
body[data-page="archive"] .article-toc nav ol a { color: #d7dbe3; }
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(12, 14, 20, .96); color: #e1e4ea; border-color: var(--line-2); }
.selection-share::before { display: none; }
.selection-share::after { background: #0e1016; border-color: var(--line-2); }
.selection-close { color: #e1e4ea; }
.selection-share-buttons a, .selection-share-buttons button { color: #fff; background: #181c26; border-color: var(--line-2); }
.selection-share-buttons a:hover, .selection-share-buttons button:hover { color: #ffffff; background: var(--s-accent); }
.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(--s-flash); outline-offset: 3px; }
#hero a:focus-visible { outline-color: var(--s-flash); }

@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; }
}

/* ==================================================================
   SCANNERSQUAD LOOK — what sets this site apart from its sister
   sites: chrome lettering like the wordmark, badge-style labels with
   a black outline and white keyline, and the blue-and-red light bar.
   ================================================================== */

/* ---------- chrome headlines: silver gradient per line, black outline ---------- */
.mega, .section-head h2, .showcase-heading h2, .header-tag strong, .side-title h2 {
  color: transparent; -webkit-text-stroke: 0; text-shadow: none;
  background: var(--chrome) 0 0 / 100% 100%; background-size: 100% 1lh; background-repeat: repeat-y;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(1.5px 0 0 #000) drop-shadow(-1.5px 0 0 #000) drop-shadow(0 1.5px 0 #000) drop-shadow(0 -1.5px 0 #000) drop-shadow(3px 4px 0 #000);
}
.mega { letter-spacing: .012em; line-height: .98; }
.article-top .mega { -webkit-text-stroke-width: 0; }
.art-below h1, .art-below h2 { color: #fff; -webkit-text-stroke: 0; text-shadow: 2px 3px 0 #000; }
#hero .has-art .hero-paper .mega, .showcase-hero .has-art .hero-paper .mega { text-shadow: none; }
#hero .hero-paper .mega a:hover, .showcase-hero .hero-paper .mega a:hover { color: #fff; }
/* colored words keep their color on top of the chrome */
.mega .accent { color: var(--s-flash); -webkit-text-fill-color: var(--s-flash); }
[data-theme]:not([data-theme="breaking"]) .mega .accent { color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }
.side-title h2 span { color: var(--s-flash); -webkit-text-fill-color: var(--s-flash); }
[data-theme]:not([data-theme="breaking"]) .side-title h2 span { color: var(--red-hot); -webkit-text-fill-color: var(--red-hot); }
.section-head h2 span { -webkit-text-fill-color: var(--on-fill); border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }

/* ---------- labels and buttons: badges with a black outline and white keyline ---------- */
.label-bar { border: 2px solid #000; border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .88), 3px 4px 0 1.5px #000; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.label-bar.sm { border-width: 1.5px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 2px 3px 0 1px #000; }
.label-bar.dot::before { background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .7); animation: s-dot 1.8s ease-in-out infinite; }
@keyframes s-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.type-chip.video { background: var(--s-red); color: #fff; }
.btn {
  background: var(--chrome) 0 0 / 100% 100%; color: #08090d; border: 2px solid #000; border-radius: 7px; text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .88), 4px 5px 0 1.5px #000;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 1.5px #fff, 6px 7px 0 1.5px #000, -10px 0 24px -6px rgba(31, 91, 255, .9), 10px 0 24px -6px rgba(224, 19, 31, .9); }
.ticker-label { background: var(--s-red); color: #fff; }
.ticker-label::before { background: #fff; }
.play { background: var(--s-red); box-shadow: 0 0 0 4px #000, 0 0 0 6px #fff, 0 10px 30px rgba(0, 0, 0, .6); }
.play svg { fill: #fff; }
.navbar a.active, .navbar .nav-links a.active { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3.5px rgba(255, 255, 255, .8); }
.navbar { border-image: var(--bar) 1; border-bottom-width: 3px; }

/* ---------- panels: the light bar runs along the top edge ---------- */
#hero .hero-main, #hero .hero-main[data-theme="breaking"] { border-top: 6px solid transparent; border-image: var(--bar) 1; }
#hero .hero-main:not([data-theme="breaking"]) { border-image: none; border-top-color: var(--pop); }
#hero.hero-grid { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 7px 8px 0 1.5px #000; outline: 0; }
#stories .story { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 6px 7px 0 1.5px #000; outline: 0; }
#stories .story:hover { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 9px 10px 0 1.5px var(--pop); }
#stories .story[data-theme="breaking"]::before { background: var(--bar); width: 96px; }
.showcase-content, .showcase-hero { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 6px 7px 0 1.5px #000; }
.footer-strip { background: var(--bar); height: 8px; }
.site-footer h2::after { background: var(--bar); box-shadow: 0 0 0 1.5px #000; flex-basis: 42px; }
.site-header .section-motif { opacity: .22; animation: none; }
.logo, .logo img { filter: none; }                 /* no shadow or glow behind the logo */
.logo:hover { transform: scale(1.02); }

/* ==================================================================
   ON SCENE — the header is lit like a street at night with a patrol
   car parked out of frame: a blue glow on the left and a red glow on
   the right take turns, slowly and softly (never a hard strobe), and
   a scanner read-out of moving bars sits above the section name.
   The markup is the .cop-lights block and the .scan-wave block in
   header.html.
   ================================================================== */
.cop-lights { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cop-lights::before, .cop-lights::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 62%; opacity: .16;
  animation: s-light 2.2s ease-in-out infinite;
}
.cop-lights::before { left: -12%; background: radial-gradient(ellipse at 30% 50%, rgba(40, 110, 255, .95), rgba(31, 91, 255, .35) 38%, transparent 68%); }
.cop-lights::after { right: -12%; background: radial-gradient(ellipse at 70% 50%, rgba(255, 40, 55, .95), rgba(224, 19, 31, .35) 38%, transparent 68%); animation-delay: -1.1s; }
@keyframes s-light { 0%, 100% { opacity: .14; } 50% { opacity: .82; } }
.site-header .bg-words { color: rgba(255, 255, 255, .05); }
.site-header::after {               /* the light bar along the bottom edge */
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px; z-index: 2; background: var(--bar); pointer-events: none; animation: none;
  box-shadow: 0 -1px 0 #000;
}
.scan-wave { display: flex; justify-content: flex-end; align-items: flex-end; gap: 3px; height: 22px; margin-bottom: 7px; }
.scan-wave i {
  display: block; width: 4px; height: 100%; border-radius: 2px; transform-origin: 50% 100%; transform: scaleY(.2);
  background: linear-gradient(180deg, #fff, #9fb3d6); animation: s-wave 1.1s ease-in-out infinite;
}
.scan-wave i:nth-child(3n) { background: linear-gradient(180deg, #8fb6ff, #1f5bff); }
.scan-wave i:nth-child(4n) { background: linear-gradient(180deg, #ff8a90, #e0131f); }
.scan-wave i:nth-child(1) { animation-duration: .9s; animation-delay: -.2s; }
.scan-wave i:nth-child(2) { animation-duration: 1.3s; animation-delay: -.7s; }
.scan-wave i:nth-child(3) { animation-duration: .8s; animation-delay: -.1s; }
.scan-wave i:nth-child(4) { animation-duration: 1.15s; animation-delay: -.9s; }
.scan-wave i:nth-child(5) { animation-duration: .95s; animation-delay: -.4s; }
.scan-wave i:nth-child(6) { animation-duration: 1.4s; animation-delay: -1.1s; }
.scan-wave i:nth-child(7) { animation-duration: .85s; animation-delay: -.3s; }
.scan-wave i:nth-child(8) { animation-duration: 1.25s; animation-delay: -.6s; }
.scan-wave i:nth-child(9) { animation-duration: 1s; animation-delay: -.8s; }
.scan-wave i:nth-child(10) { animation-duration: .75s; animation-delay: -.15s; }
.scan-wave i:nth-child(11) { animation-duration: 1.35s; animation-delay: -1s; }
.scan-wave i:nth-child(12) { animation-duration: .9s; animation-delay: -.5s; }
.scan-wave i:nth-child(13) { animation-duration: 1.2s; animation-delay: -.35s; }
.scan-wave i:nth-child(14) { animation-duration: .8s; animation-delay: -.75s; }
@keyframes s-wave { 0%, 100% { transform: scaleY(.18); } 30% { transform: scaleY(1); } 55% { transform: scaleY(.42); } 78% { transform: scaleY(.8); } }
@media (max-width: 760px) { .scan-wave { height: 14px; gap: 2px; margin-bottom: 4px; } .scan-wave i { width: 3px; } .scan-wave i:nth-child(n+11) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cop-lights::before, .cop-lights::after { animation: none; opacity: .4; }
  .scan-wave i { animation: none; transform: scaleY(.6); }
  .scan-wave i:nth-child(odd) { transform: scaleY(.9); }
  .label-bar.dot::before { animation: none; }
}

/* ---------- EVIDENCE WALL: article-page background ----------
   The evidence-board picture (img/bg/article-evidence-board.webp) sits behind the story
   column and sidebar, exactly as wide as them, and stays put on screen while the reader
   scrolls (a sticky layer inside .article-layout, so it also works on phones, where
   fixed backgrounds are ignored). Its edges fade into the night-black page, scan lines
   run across it, and the reading panels are see-through dark glass on top. */
body[data-page="archive"] .article-layout { position: relative; isolation: isolate; }
body[data-page="archive"] .article-layout::before {
  content: ""; grid-row: 1 / -1; grid-column: 1 / -1; align-self: start;
  position: sticky; top: 0; z-index: -1; height: 100vh; margin: 0 -24px; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .42) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 75% 70% at 50% 50%, transparent 40%, rgba(8, 9, 13, .7) 100%),
    url("img/bg/article-evidence-board.webp") center 42% / cover no-repeat,
    var(--paper);
  opacity: .92;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 80%, transparent);
  mask-composite: intersect;
}
body[data-page="archive"] .article-layout .art-below > .paper,
body[data-page="archive"] .article-layout .art-below > .roe {
  background: rgba(12, 14, 20, .64);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
body[data-page="archive"] .article-toc {
  background: rgba(5, 6, 8, .78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  body[data-page="archive"] .article-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  body[data-page="archive"] .article-layout > .archive-feature { grid-row: 1; grid-column: 1; }
  body[data-page="archive"] .article-layout > .article-toc { grid-row: 2; grid-column: 1; }
  body[data-page="archive"] .article-layout > .art-below { grid-row: 3; grid-column: 1; }
  body[data-page="archive"] .article-layout::before { margin: 0 -16px; }
}
