:root {
  --bg: #0b0e14; --panel: #121722; --panel-2: #171d2a; --line: #232b3b;
  --text: #e6e9ef; --muted: #8b94a7; --faint: #5d667a; --accent: #7aa2ff;
  --up: #3ecf8e; --down: #ff6b6b;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
/* Light follows the system unless the header switch picked a theme (data-theme on <html>) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f5f6f8; --panel: #fff; --panel-2: #f0f2f6; --line: #e1e5ec; --text: #141821; --muted: #5b6475; --faint: #8a93a5; --accent: #2f5bd3; --up: #14915c; --down: #d43c3c; }
}
:root[data-theme="light"] { --bg: #f5f6f8; --panel: #fff; --panel-2: #f0f2f6; --line: #e1e5ec; --text: #141821; --muted: #5b6475; --faint: #8a93a5; --accent: #2f5bd3; --up: #14915c; --down: #d43c3c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); background: var(--panel); }
/* logo on the far left, four sections beside it; on the right the homepage's "What is aggregaTHOR",
   the day/night switch and the menu */
header.top .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
header.top .brand { flex: none; }
.hdr-nav { display: flex; gap: 4px; }
.hdr-nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
header.top .why-link { text-align: right; }
@media (max-width: 900px) { header.top .why-link { display: none; } }
@media (max-width: 680px) { .hdr-nav { display: none; } }
.brand { font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand b { color: var(--accent); }
.theme-toggle { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.tag { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.spacer { flex: 1; }
.stamp { color: var(--faint); font: 12px var(--mono); }

.notice { margin: 20px 0 8px; color: var(--muted); font-size: 13px; }
.notice strong { color: var(--text); font-weight: 600; }

.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.controls input, .controls select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font: inherit; font-size: 13px; }
.controls input { flex: 1; min-width: 180px; }
.chips { display: flex; gap: 4px; }
.chip { cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.legend .bar { width: 120px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #eab308 50%, #ef4444); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 48px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); }
.card.front { cursor: pointer; }
.card h2 a { color: inherit; }
.card.closed { opacity: .55; }
.meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.imp { color: #0b0e14; background: var(--imp); font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.card h2 { font: 600 17px/1.3 var(--serif); margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.odds { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.odds b { font-size: 20px; color: var(--text); }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

/* article page */
.article { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
.back { color: var(--muted); font-size: 13px; }
.article h1 { font: 700 clamp(26px, 4vw, 36px)/1.15 var(--serif); margin: 14px 0 10px; letter-spacing: -.01em; }
.lede { font: 19px/1.5 var(--serif); color: var(--muted); margin: 0 0 20px; }
.article .body p { font: 18px/1.65 var(--serif); margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 20px 0; }
.facts div { background: var(--panel); padding: 10px 12px; }
.facts span { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.facts b { font: 600 18px var(--mono); }
/* the 24h / 7-day moves sit in a span (chg): full size, not the label style above */
.facts b span { display: inline; font: inherit; letter-spacing: 0; text-transform: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 20px 0; }
.panel h3 { margin: 0 0 10px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.meter { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #3b82f6, #eab308 50%, #ef4444); margin: 10px 0 6px; }
.meter i { position: absolute; top: -5px; width: 4px; height: 18px; background: var(--text); border-radius: 2px; transform: translateX(-50%); }
.meter-scale { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); }
.chart svg { width: 100%; height: 160px; display: block; }
.outcomes { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.outcomes li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.outcomes li:last-child { border: 0; }
details.rules pre { white-space: pre-wrap; font: 13px/1.55 var(--font); color: var(--muted); margin: 10px 0 0; }
details.rules summary { cursor: pointer; font-weight: 600; }
.cta { display: inline-block; margin-top: 4px; background: var(--accent); color: #fff; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.disclaimer { font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }

.badge { color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 5px; font-size: 10px; }
sup.cite a { color: var(--accent); font: 600 11px var(--mono); padding: 0 1px; }
.body a, .sources a { color: var(--accent); }
.sources { margin: 0; padding-left: 22px; font-size: 14px; }
.sources li { padding: 4px 0; }
.sources span { color: var(--faint); font-size: 12px; }

/* bet block inside researched articles */
.bet { margin: 28px 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--imp); border-radius: 10px; }
.bet-kicker { display: flex; justify-content: space-between; gap: 8px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bet-kicker span:first-child { color: var(--imp); }
.bet-q { font: 600 19px/1.3 var(--serif); margin: 8px 0 12px; }
.bet-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.bet-odds b { display: block; font: 700 40px/1 var(--mono); }
.bet-odds span { font-size: 12px; color: var(--muted); }
.bet-stats { display: flex; gap: 18px; margin: 0; }
.bet-stats dt { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.bet-stats dd { margin: 2px 0 0; font: 600 14px var(--mono); }
.bet .chart svg { height: 110px; }
.bet .chart .ch-wrap { margin: 12px 0 4px; }
.ch-wrap { position: relative; }
.ch-wrap svg { margin: 0; }
.ch-y { position: absolute; right: 2px; transform: translateY(calc(-100% - 2px)); font: 11px var(--mono); color: var(--faint); line-height: 1; pointer-events: none; }
.bet-sub { margin: 10px 0 2px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.bet details.rules { margin: 10px 0 14px; font-size: 14px; }

/* researched stories above the filters */
#featured { margin-top: 22px; }
h2.section { font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
h2.section span { font: 400 12px var(--font); text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.grid.featured { padding-bottom: 8px; }
.grid.featured .card h2 { font-size: 20px; }

/* featured images */
.card .thumb { display: block; width: calc(100% + 28px); margin: -14px -14px 4px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel-2); }
figure.hero { margin: 0 0 24px; }
figure.hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--panel-2); }

/* homepage segments */
.segment { margin-top: 20px; }
.segment + .segment { border-top: 1px solid var(--line); padding-top: 16px; }
.section-desc { margin: -4px 0 14px; color: var(--muted); font-size: 14px; }
.section-desc:empty { display: none; }
.segment .controls { margin-top: 0; }

/* what kind of item this is, under the article */
.about { margin-top: 28px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); }
.about strong { color: var(--text); }
/* the three top stories always share one row on desktop */
/* Top News: one lead story over two compact rows, two stacked beside it, then three in a row.
   Row heights are fixed so all of Top News and the start of Trending fit above the fold */
#top-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 145px 145px auto; }
#top-grid .card { overflow: hidden; }
#top-grid .card h2 { font-size: 16px; }
#top-grid .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#top-grid .flip.lead { grid-column: span 2; grid-row: span 2; }
#top-grid .card.lead h2 { font-size: 22px; }
/* lead: headline over its picture, like a front-page splash */
#top-grid .card.lead:has(.thumb) { justify-content: flex-end; padding: 16px 18px 14px; border-color: transparent; }
#top-grid .card.lead .thumb { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-position: center top; }
#top-grid .card.lead:has(.thumb)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 14, .92) 78%); }
#top-grid .card.lead:has(.thumb) > :not(.thumb) { position: relative; z-index: 1; }
#top-grid .card.lead:has(.thumb) h2 { color: #fff; }
#top-grid .card.lead:has(.thumb) p, #top-grid .card.lead:has(.thumb) .meta, #top-grid .card.lead:has(.thumb) .odds { color: rgba(255, 255, 255, .78); }
#top-grid .card.lead:has(.thumb) .odds b { color: #fff; }
#top-grid .card.lead:has(.thumb) .odds { border-top-color: rgba(255, 255, 255, .2); }
/* the two beside the lead: picture left, headline right, no teaser */
#top-grid .card.side:has(.thumb) { display: grid; min-height: 130px; grid-template-columns: 30% minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 12px; padding: 0 12px 0 0; }
#top-grid .card.side .thumb { grid-row: 1 / -1; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
/* only the lead keeps its teaser; the smaller ones are headline plus odds */
#top-grid .card:not(.lead) p { display: none; }
/* at most three lines (owner's rule 2026-11-25): headlines are kept to HEAD_MAX characters
   (lib/heads.mjs) so none is cut; minmax(0, 1fr) above keeps the nowrap odds row from widening the
   text column past the card's edge, which cut headlines off on the right */
#top-grid .card.side h2 { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#top-grid .card.lead:has(.thumb) .odds { margin-top: 0; }
/* the odds line must stay on one row in the narrow side cards, or it pushes the headline out */
#top-grid .card.side .odds { white-space: nowrap; overflow: hidden; font-size: 11px; gap: 6px; }
#top-grid .card.side .odds b { font-size: 17px; }
#top-grid .card.side .chg.surge { font-size: 11px; padding: 1px 5px; }
#top-grid .card.side:has(.thumb) .meta { padding-top: 12px; }
#top-grid .card.side:has(.thumb) .odds { margin-bottom: 10px; }
/* Trending: one row of four, the rest unfolds with More */
#trending-grid { grid-template-columns: repeat(4, 1fr); padding-bottom: 12px; }
#trending-grid .flip.more-item { display: none; }
#grid .flip.more-item, #grid .flip.over-max { display: none; }
#grid.open .flip.more-item { display: block; }
#grid:has(+ .more-btn:not([hidden])) { padding-bottom: 12px; }
#trending-grid.open .flip.more-item { display: block; }
.more-btn { display: block; margin: 0 auto 32px; padding: 8px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.more-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1000px) { #top-grid, #trending-grid { grid-template-columns: repeat(2, 1fr); } #top-grid { grid-template-rows: none; } #top-grid .flip.lead { grid-row: auto; } #top-grid .card.lead .thumb { position: static; height: auto; aspect-ratio: 16 / 9; margin: -16px -18px 4px; width: calc(100% + 36px); } #top-grid .card.lead:has(.thumb)::after { display: none; } #top-grid .card.lead:has(.thumb) h2 { color: var(--text); } #top-grid .card.lead:has(.thumb) p, #top-grid .card.lead:has(.thumb) .meta, #top-grid .card.lead:has(.thumb) .odds { color: var(--muted); } #top-grid .card.lead:has(.thumb) .odds b { color: var(--text); } }
@media (max-width: 600px) { #top-grid, #trending-grid { grid-template-columns: 1fr; } #top-grid .flip.lead { grid-column: auto; } }

/* segment headings: larger than the card titles they introduce */
.segment h2.section { font: 700 26px/1.2 var(--font); text-transform: none; letter-spacing: -.01em; margin-bottom: 8px; }
.segment .section-desc { margin-top: 0; font-size: 15px; }

/* same blue as THOR in the logo */
.accent { color: var(--accent); font-weight: 600; }

/* sharp rise on a card: green pill around the move */
.chg.surge { color: var(--up); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--up) 16%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--up) 35%, transparent); }

/* Potentials cards carry the impact colour as a bar on the left */
.card.with-impact { padding-left: 18px; }
.card.with-impact::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--imp); }
.card.with-impact:hover { border-color: var(--imp); }
.card.with-impact .thumb { width: calc(100% + 32px); margin-left: -18px; }


/* flip cards: front is the news, back is the bet; both faces share one grid cell, so the card is
   as tall as the taller face */
.flip { perspective: 1400px; min-width: 0; }
/* The turn: an even ease-in-out over 0.6 s, so it is edge-on exactly at half time (0.3 s), when the
   faces are switched (below). The front gets its own rotateY(0), so both faces are GPU layers from
   the start and phones do not rebuild them mid-turn */
.flip-inner { display: grid; height: 100%; transition: transform .6s cubic-bezier(.65, 0, .35, 1); transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.flip-inner > .card { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-width: 0; }
.flip-inner > .card:not(.back) { transform: rotateY(0deg); }
.flip .card.back { transform: rotateY(180deg); justify-content: space-between; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
/* Safari (iPhone) paints positioned layers of a face through its hidden back (the lead card's
   picture and text overlay showed mirrored): the face turned away is also made invisible, switched
   at half time, when the card is edge-on. Change the delay with the duration above */
.flip-inner > .card { transition: border-color .15s, visibility 0s .3s; }
.flip.flipped .flip-inner > .card:not(.back), .flip:not(.flipped) .flip-inner > .card.back { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .flip-inner, .flip-inner > .card { transition: none; } }
.insights { margin-left: 4px; padding: 3px 8px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.insights:hover { background: var(--accent); color: var(--bg); }
/* on the lead card's photo the button keeps its look (same colours as on every card), on the panel colour */
#top-grid .card.lead:has(.thumb) .insights { background: var(--panel); }
#top-grid .card.lead:has(.thumb) .insights:hover { background: var(--accent); color: var(--bg); }
.back-kicker { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.flip-back { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 600 10px var(--mono); cursor: pointer; }
.flip-back:hover { color: var(--text); border-color: var(--accent); }
.back-q { font: 600 15px/1.3 var(--serif); color: var(--text) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.back-odds { font: 12px var(--mono); color: var(--muted); }
.back-odds b { font-size: 26px; color: var(--text); margin-right: 4px; }
/* Market Pulse line: zoomed to the week (spark() in index.html), green up / red down, start dashed */
.spark { --sc: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px auto; gap: 6px; }
.spark.up { --sc: var(--up); } .spark.down { --sc: var(--down); }
.spark-plot { position: relative; }
.spark-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark-line { fill: none; stroke: var(--sc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--sc); opacity: .12; }
.spark-start { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.spark-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 2px var(--panel); }
.spark-dot.up { background: var(--up); } .spark-dot.down { background: var(--down); }
.spark-move { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; padding-left: 2px; font: 12px var(--mono); color: var(--muted); }
.spark-move .spark-dot { position: static; margin: 0; flex: none; }
.back-stats { display: flex; gap: 16px; margin: 0; }
.back-stats dt { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.back-stats dd { margin: 2px 0 0; font: 600 13px var(--mono); }
.back-links { display: flex; gap: 8px; flex-wrap: wrap; }
.back-links a { padding: 6px 10px; border-radius: 6px; font: 600 12px var(--font); background: var(--panel-2); border: 1px solid var(--line); }
.back-links a:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
/* the small Top News cards are 145px tall: keep their back to odds, line and links */
.card.back.compact { gap: 4px; padding: 10px 12px; }
.card.back.compact .back-odds b { font-size: 20px; }
.card.back.compact .spark { grid-template-rows: 26px; }
.card.back.compact .spark-move { display: none; }
.card.back.compact .back-links a { padding: 4px 8px; font-size: 11px; }
/* the meta line stays on one row next to the Quick check button: the source gives way first */
.card.front .meta { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.card.front .meta > span:not(.spacer):not(.src):not(.region) { flex: none; }
.card.front .meta > .src { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.insights { flex: none; }
/* Top News hides teasers on its small cards; the bet question on a full back stays */
#top-grid .card.back:not(.compact) .back-q { display: -webkit-box; }
/* Trending cards name no venue on the front */
#trending-grid .card.front .meta .src { display: none; }

/* Watchlist: star on every card and on the article page, Your watchlist row above Top News */
.watch-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.watch-topic { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 600; }
.watch-topic small { color: var(--muted); font: 600 11px var(--mono); }
.watch-topic button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--muted); cursor: pointer; line-height: 1; }
.watch-topic button:hover { color: var(--text); }
/* #watch-grid: tiles, laid out in clean.css (.wt-grid) */
#watch-grid { padding-bottom: 12px; }
.watch-lg { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 22px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: 600 13px var(--font); cursor: pointer; }
.watch-lg:hover { background: var(--accent); color: #fff; }
.watch-lg[aria-pressed="true"] { border-color: var(--line); color: var(--muted); }
.watch-lg[aria-pressed="true"]:hover { background: var(--panel-2); color: var(--text); }
/* Share + preferred source on Google (lib/render.mjs shareBox): plain links, no third-party script */
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.share { position: relative; }
.share > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share > summary:hover, .share[open] > summary { border-color: var(--accent); color: var(--accent); }
.share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 160px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.share-menu a, .share-menu button { display: block; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: 500 14px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--panel-2); color: var(--accent); }
.pref-src { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: 500 13px var(--font); text-decoration: none; }
.pref-src:hover { border-color: var(--accent); }
/* the region gives way too (ellipsis) so the Quick check button always shows in full */
.card.front .meta > .region { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the venue gives way well before the place does */
.card.front .meta > .src { flex-shrink: 1000; }
/* Card footer: Read story on the left, Market Pulse (turns the card) on the right. The odds and
   24h volume that used to sit here are on the back */
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.read-btn { padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.read-btn:hover { filter: brightness(1.1); }
.card-foot .insights { margin-left: 0; padding: 4px 10px; white-space: nowrap; }
#top-grid .card.lead:has(.thumb) .card-foot { border-top-color: rgba(255, 255, 255, .2); margin-top: 0; }
#top-grid .card.side .card-foot { padding-top: 6px; }
#top-grid .card.side:has(.thumb) .card-foot { margin-bottom: 10px; }
/* the back's odds line sits under the kicker, not pinned to the bottom */
.card.back .odds { margin-top: 0; padding-top: 0; border-top: 0; }
.card.back .odds b { font-size: 26px; }
.card.back.compact .odds b { font-size: 20px; }

/* Signals: same row of four as Trending, More for the rest */
#signals-grid { grid-template-columns: repeat(4, 1fr); padding-bottom: 12px; }
#signals-grid .flip.more-item { display: none; }
#signals-grid.open .flip.more-item { display: block; }
#signals-grid .card.front .meta .region { color: var(--accent); }
@media (max-width: 1000px) { #signals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #signals-grid { grid-template-columns: 1fr; } }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* A settled bet: the outcome above the story, which stays as written */
.resolved { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--panel); font-size: 14px; color: var(--muted); }
.resolved b { color: var(--text); }
.topics { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.topics a { color: var(--accent); font-weight: 600; }
/* Topic pages */
.topic-h1 { font: 700 34px/1.15 var(--serif); margin: 14px 0 6px; }
.topic-card { color: inherit; text-decoration: none; }
.topic-card h2 { font: 600 17px/1.3 var(--serif); margin: 0; }
.topic-bets li { gap: 12px; align-items: baseline; }
.topic-bets li a { flex: 1; color: var(--text); }
.topic-bets li span { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.topic-grid { padding-bottom: 12px; }
/* Byline, footer, author and policy pages */
.byline { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 13px; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline > div { display: flex; flex-direction: column; gap: 2px; }
.byline a { color: var(--text); font-weight: 600; }
.byline .dates { font: 11.5px var(--mono); color: var(--faint); }
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 28px; font-size: 13px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.author-head { display: flex; align-items: center; gap: 20px; margin: 18px 0 20px; }
.author-head img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.author-head h1 { margin: 0 0 4px; }
.plain-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.policy h2 { font: 700 19px var(--font); margin: 28px 0 8px; }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.policy a { color: var(--accent); }
.todo { background: rgba(234, 179, 8, .18); color: var(--text); padding: 0 4px; border-radius: 3px; font-family: var(--mono); font-size: .9em; }
.about a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Why aggregaTHOR */
.why-kicker { margin: 18px 0 4px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.why-table-wrap { overflow-x: auto; margin: 18px 0; }
.why-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.why-table th, .why-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.why-table th { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel-2); }
.why-table tr:last-child td { border-bottom: 0; }
.why-table td:first-child { font-weight: 600; white-space: nowrap; }
.why-compare td:last-child { color: var(--accent); font-weight: 600; }
.why-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; counter-reset: step; }
.why-flow div { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.why-flow div::before { counter-increment: step; content: counter(step); font: 700 12px var(--mono); color: var(--accent); }
.why-flow b { font-size: 16px; }
.why-flow span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .why-flow { grid-template-columns: 1fr 1fr; } .why-table td:first-child { white-space: normal; } }
.why-scales { display: flex; flex-direction: column; gap: 12px; }
.why-meter { display: grid; grid-template-columns: minmax(150px, 1.3fr) auto 1fr; gap: 12px; align-items: center; font-size: 14px; }
.why-meter em { font-style: normal; font-size: 12px; color: var(--muted); }
.why-bar { display: flex; gap: 4px; }
.why-bar i { width: 26px; height: 10px; border-radius: 3px; background: var(--line); }
.why-bar i.on { background: var(--accent); }
@media (max-width: 600px) { .why-meter { grid-template-columns: 1fr; gap: 4px; } }
.why-note { margin: 4px 0 0; font-size: 12px; color: var(--faint); }
/* buttons inside text sections keep their own colours (the section's link colour made them blue on blue) */
.policy a.cta, .body a.cta { color: #fff; text-decoration: none; }
.policy a.cta:hover { filter: brightness(1.1); }
/* HUD look (/why-aggregathor, LIVE, glossary pictures): glass in aggregaTHOR blue. Dark: deep navy
   with glow; light (theme switch or system): white glass, the light theme's blue, no glow */
.hud { --hud-rgb: 122 162 255; --hud-glass: 10 18 38; --hud-deep: 5 8 18; --hud-top: #08101f; --hud-red: #ff5a5a; --hud-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --c: #7aa2ff; --c2: #9db8ff; --dim: rgb(var(--hud-rgb) / .2); --txt: #e3ebff; --mut: #8d9fc4;
  position: relative; margin: 26px 0; padding: 18px; border-radius: 14px; color: var(--txt);
  background: radial-gradient(1200px 400px at 20% -10%, rgb(var(--hud-rgb) / .16), transparent 60%), linear-gradient(180deg, var(--hud-top), rgb(var(--hud-deep)));
  border: 1px solid var(--dim); box-shadow: 0 0 0 1px rgb(var(--hud-rgb) / .05) inset, var(--hud-shadow); overflow: hidden; }
.hud::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(var(--hud-rgb) / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--hud-rgb) / .06) 1px, transparent 1px); background-size: 28px 28px; }
@media (prefers-reduced-motion: reduce) { .hud-live i, .hud-status i { animation: none; } }
.hud > * { position: relative; }
.hud-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.hud-brand b { color: var(--c); }
.hud-status i, .hud-live i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: hud-pulse 1.6s ease-in-out infinite; vertical-align: 1px; }
@keyframes hud-pulse { 50% { opacity: .35; } }
.hud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hud-grid-2 { margin-top: 12px; }
@media (max-width: 760px) { .hud-grid { grid-template-columns: 1fr; } }
.hud-card, .hud-panel { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; color: var(--txt); text-decoration: none;
  background: rgb(var(--hud-glass) / .72); border: 1px solid var(--dim); backdrop-filter: blur(4px); transition: border-color .2s, box-shadow .2s; }
.hud-card:hover { border-color: var(--c); box-shadow: 0 0 24px rgb(var(--hud-rgb) / .18); }
/* corner brackets */
.hud-card::before, .hud-card::after, .hud-panel::before, .hud-panel::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--c); opacity: .7; }
.hud-card::before, .hud-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.hud-card::after, .hud-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.hud-head { display: flex; gap: 10px; align-items: center; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.hud-live { color: var(--txt); }
.hud-id { margin-left: auto; color: var(--mut); letter-spacing: .04em; }
.hud-ex { margin-left: auto; padding: 1px 6px; border: 1px solid var(--mut); border-radius: 4px; color: var(--mut); }
.hud-title { margin: 0; font: 600 15px/1.35 var(--font); color: var(--txt); }
.hud-body { display: flex; gap: 14px; align-items: center; }
.hud-body dl { flex: 1; display: grid; gap: 6px; margin: 0; }
.hud-body dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 5px; border-bottom: 1px dashed var(--dim); }
.hud-body dt { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.hud-body dd { margin: 0; font: 600 13px var(--mono); color: var(--txt); text-shadow: 0 0 8px rgb(var(--hud-rgb) / .35); }
.hud-gauge { width: 86px; flex: none; }
.hud-gauge circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.hud-gauge-bg { stroke: var(--dim); stroke-dasharray: 160 214; transform: rotate(135deg); transform-origin: 45px 45px; }
.hud-gauge-fg { stroke: var(--c); filter: drop-shadow(0 0 4px var(--c)); }
.hud-gauge text { fill: var(--txt); font: 700 20px var(--mono); text-anchor: middle; }
.hud-gauge .hud-gauge-l { font: 9px var(--mono); fill: var(--mut); }
.hud-chart span { display: block; margin-bottom: 4px; font: 10.5px var(--mono); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-spark { width: 100%; height: 56px; display: block; }
.hud-spark polyline { fill: none; stroke: var(--c2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hud-spark .hud-spark-glow { stroke: var(--c); stroke-width: 6; opacity: .12; }
.hud-radar { width: 100%; max-width: 340px; align-self: center; }
.hud-ring { fill: none; stroke: var(--dim); }
.hud-axis { stroke: var(--dim); }
.hud-area { fill: rgb(var(--hud-rgb) / .16); stroke: var(--c); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgb(var(--hud-rgb) / .6)); }
.hud-dot { fill: var(--c); }
.hud-label { fill: var(--mut); font: 9.5px var(--mono); text-anchor: middle; text-transform: uppercase; letter-spacing: .06em; }
.hud-timeline { list-style: none; margin: 4px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--dim); display: grid; gap: 12px; }
.hud-timeline li { position: relative; display: grid; grid-template-columns: 58px 74px 1fr; gap: 8px; align-items: baseline; font-size: 13px; }
.hud-timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--hud-deep)); border: 2px solid var(--c); }
.hud-timeline b { font: 700 12px var(--mono); color: var(--c); }
.hud-timeline span { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.hud-timeline em { font-style: normal; color: var(--txt); }
.hud-timeline .hud-t0::before { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.hud-timeline .hud-t0 b { color: #f59e0b; }
@media (max-width: 600px) { .hud-timeline li { grid-template-columns: 50px 1fr; } .hud-timeline em { grid-column: 1 / -1; } }
.hud-note { margin: 0; font-size: 12px; color: var(--mut); }
.hud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .hud-grid { grid-template-columns: minmax(0, 1fr); } }
.hud-card, .hud-panel { min-width: 0; }
.hud-head { min-width: 0; }
.hud-head > span { white-space: nowrap; }
.hud-id { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* buttons and the links beside them use the interface font, not the serif of the running text */
.cta { font-family: var(--font); }
.article .body p.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font: 600 14px/1.4 var(--font); }
.cta-row .cta { margin-top: 0; }
/* "More insights:" before the ConnecTHOR button on the card back */
.back-links { align-items: center; }
.back-more { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card.back.compact .back-more { font-size: 10px; }
.back-links a:first-of-type { background: var(--accent); border-color: var(--accent); color: #fff; }
/* "Learn more" under a section intro */
.learn-more-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); cursor: pointer; white-space: nowrap; }
.learn-more-btn::after { content: " +"; }
.learn-more-btn[aria-expanded="true"]::after { content: " −"; }
.learn-more-btn:hover { text-decoration: underline; }
.learn-more { margin: -6px 0 16px; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Trending cards: why they trend, the money staked in the last 24 hours */
.card .money { align-self: flex-start; margin: -2px 0 2px; padding: 2px 8px; border: 1px solid var(--accent); border-radius: 999px; font: 600 11px var(--mono); letter-spacing: .04em; color: var(--accent); white-space: nowrap; }

/* story pages: update paragraphs (research job) and what moved since the story */
.update { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0; background: var(--panel); font-size: 15px; line-height: 1.6; }
.update b { color: var(--accent); }
/* the outlet named after an update sentence is an external link to the source: blue, underlined, with ↗ */
.update a[target="_blank"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 600; }
.update a[target="_blank"]::after { content: "\2197"; font-size: .8em; margin-left: 1px; text-decoration: none; display: inline-block; }
.update a[target="_blank"]:hover { text-decoration-thickness: 2px; }
.since p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.sources-panel .sources + .since, .sources-panel details + .since { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.since h4 { margin: 0 0 8px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.since .since-sub { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* LIVE: the last 24 hours, in the HUD look of /why-aggregathor (.hud): one blue, red only for LIVE
   and NOW. Teaser under Top News (index.html), seismograph and log on /live (renderLive) */
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid rgba(239, 68, 68, .6); border-radius: 4px; background: rgba(239, 68, 68, .12); color: var(--hud-red); font: 700 11px/1 var(--mono); letter-spacing: .16em; text-shadow: 0 0 8px rgba(239, 68, 68, .7); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444, 0 0 2px #fff inset; animation: live-blink 1.1s steps(2, jump-none) infinite; }
.live-badge { animation: live-glow 2.2s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: .15; } }
@keyframes live-glow { 50% { box-shadow: 0 0 16px rgba(239, 68, 68, .35); } }
@media (prefers-reduced-motion: reduce) { .live-badge, .live-badge i, .seis .now::after { animation: none; } }

.live-segment .hud { margin: 0; padding: 16px 18px; }
.live-teaser { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: stretch; }
.live-text { display: grid; gap: 10px; align-content: center; min-width: 0; }
@media (max-width: 700px) { .live-teaser { grid-template-columns: minmax(0, 1fr); } .live-pic { min-height: 120px; } }
/* the picture: the seismograph's line sliding past the pen */
.live-pic { position: relative; display: block; min-height: 150px; border: 1px solid var(--dim); border-radius: 10px; overflow: hidden;
  background: linear-gradient(rgb(var(--hud-rgb) / .07) 1px, transparent 1px) 0 0 / 100% 20px, linear-gradient(90deg, rgb(var(--hud-rgb) / .07) 1px, transparent 1px) 0 0 / 20px 100%, rgb(var(--hud-deep) / .85); }
.live-pic::before, .live-pic::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--c); opacity: .7; z-index: 1; }
.live-pic::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.live-pic::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.live-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.live-pic .base { stroke: var(--dim); vector-effect: non-scaling-stroke; }
.live-pic .wave { fill: none; stroke: var(--c2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.live-pic .wave-glow { fill: none; stroke: var(--c); stroke-width: 7; opacity: .16; vector-effect: non-scaling-stroke; }
.live-pic .run { animation: live-run 7s linear infinite; }
@keyframes live-run { to { transform: translateX(-400px); } }
.live-pic .pen { position: absolute; right: 14%; top: 0; bottom: 0; border-right: 1px dashed rgba(239, 68, 68, .55); }
.live-pic .pen::after { content: ""; position: absolute; right: -5px; top: calc(50% - 5px); width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 12px #ef4444; }
.live-pic:hover { border-color: var(--c); }
/* paper the pen has not reached yet */
.live-pic .blank { position: absolute; right: 0; top: 0; bottom: 0; width: 14%; background: linear-gradient(90deg, rgb(var(--hud-deep) / .97), rgb(var(--hud-deep) / .9)); }
@media (prefers-reduced-motion: reduce) { .live-pic .run { animation: none; } }
.live-teaser .hud-top { margin: 0; align-items: center; }
.live-latest { display: grid; gap: 4px; color: var(--txt); }
.live-latest span { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.live-latest b { font: 600 19px/1.3 var(--font); }
.live-latest em { font: normal 12px var(--mono); color: var(--mut); }
.live-latest:hover b { color: var(--c2); }
.live-open { justify-self: start; padding: 6px 12px; border: 1px solid var(--c); border-radius: 6px; color: var(--c); font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.live-open:hover { background: rgb(var(--hud-rgb) / .12); box-shadow: 0 0 14px rgb(var(--hud-rgb) / .25); }

/* the seismograph: one spike per event, its height the event's weight */
.seis { position: relative; height: 150px; margin: 6px 0 2px; }
.seis svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; }
.seis .wave { fill: none; stroke: var(--c2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.seis .wave-glow { fill: none; stroke: var(--c); stroke-width: 6; opacity: .14; vector-effect: non-scaling-stroke; }
.seis .base { stroke: var(--dim); vector-effect: non-scaling-stroke; }
.seis .hour { stroke: rgb(var(--hud-rgb) / .08); vector-effect: non-scaling-stroke; }
.seis .spike { position: absolute; bottom: 30px; width: 18px; margin-left: -9px; display: flex; justify-content: center; }
.seis .spike::before { content: ""; width: 1px; height: 100%; background: linear-gradient(to top, transparent, var(--c)); opacity: .55; }
.seis .spike::after { content: ""; position: absolute; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--hud-deep)); border: 2px solid var(--c); box-shadow: 0 0 8px var(--c); }
.seis .spike:hover::after, .seis .spike:focus-visible::after { background: var(--c); transform: scale(1.4); }
.seis .tick { position: absolute; bottom: 8px; transform: translateX(-50%); font: 10px var(--mono); color: var(--mut); letter-spacing: .06em; white-space: nowrap; }
.seis .tick:first-of-type { transform: none; }
.seis .now { position: absolute; right: 0; top: 0; bottom: 26px; width: 0; border-right: 1px dashed rgba(239, 68, 68, .7); }
.seis .now::after { content: "NOW"; position: absolute; right: -4px; bottom: -20px; font: 700 10px var(--mono); color: var(--hud-red); letter-spacing: .12em; }
.seis .now::before { content: ""; position: absolute; right: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.live-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.live-stats div { flex: 1 1 110px; padding: 8px 10px; border: 1px solid var(--dim); border-radius: 8px; background: rgb(var(--hud-glass) / .6); }
.live-stats b { display: block; font: 700 22px var(--mono); color: var(--txt); text-shadow: 0 0 10px rgb(var(--hud-rgb) / .45); }
.live-stats span { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.live-log { margin-top: 14px; }
.live-log li { grid-template-columns: 52px 108px 1fr; }
.live-log a { display: contents; }
.live-log a:hover em { color: var(--c2); }
.live-log small { grid-column: 3; font: 11.5px var(--mono); color: var(--mut); }
/* below the log (lib/render.mjs resolvingNext): same HUD tokens, so both themes follow */
.live-more { margin: 18px 0; }
.live-soon { list-style: none; margin: 0; padding: 0; }
.live-soon li + li { border-top: 1px solid var(--dim); }
.live-soon a { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 2px; color: var(--txt); text-decoration: none; }
.live-soon b { font: 700 12px var(--mono); color: var(--c); letter-spacing: .04em; }
.live-soon em { font-style: normal; font-size: 14.5px; line-height: 1.4; }
.live-soon span { font: 700 15px var(--mono); color: var(--txt); }
.live-soon a:hover em { color: var(--c2); }
.live-how { margin-top: 8px; }
@media (max-width: 600px) { .live-soon a { grid-template-columns: 1fr auto; } .live-soon b { grid-column: 1 / -1; } }
@media (max-width: 600px) { .live-log li { grid-template-columns: 50px 1fr; } .live-log small { grid-column: 1 / -1; } }
.live-quiet { margin: 10px 0 0; color: var(--mut); font: 12px var(--mono); }
.live-log .hud-t0::before { background: #ef4444; border-color: #ef4444; box-shadow: 0 0 10px #ef4444; }
.live-log .hud-t0 b { color: var(--hud-red); }

/* Glossary: links in story text (lib/glossary.mjs, two per story at most) with the short meaning as
   a tooltip, the /glossary index and the term pages */
.body a.gl { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--accent); text-underline-offset: 3px; position: relative; }
.body a.gl:hover { color: var(--accent); }
.body a.gl:hover::after, .body a.gl:focus-visible::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: min(320px, 80vw);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font: 13px/1.45 var(--font); white-space: normal; pointer-events: none; }
@media (hover: none) { .body a.gl:hover::after { display: none; } }
.gl-kicker { margin: 18px 0 0; color: var(--accent); font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
h2.gl-cat { margin: 28px 0 10px; font: 700 20px/1.3 var(--font); }
.gl-list { margin: 0; display: grid; gap: 10px; }
.gl-list div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.gl-list dt a { font-weight: 700; color: var(--accent); }
.gl-list dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.gl-more, .gl-related { color: var(--muted); font-size: 14px; }
.gl-related a { color: var(--accent); }

/* Glossary pictures (lib/glossary-visuals.mjs): HUD panels with a timeline, a data sketch or a
   worked example. One blue; red only where something is "hot" (the move, the bet, the newest) */
.gv { margin: 22px 0; }
.gv-svg { display: block; width: 100%; height: auto; }
.gv-t { fill: var(--txt); font: 12px var(--mono); }
.gv-s { fill: var(--mut); font-size: 11px; }
.gv-c { fill: var(--c); font-weight: 600; letter-spacing: .06em; }
.gv-big { font-size: 15px; font-weight: 700; fill: var(--txt); }
.gv-num { font: 700 26px var(--mono); fill: var(--txt); }
.gv-box { fill: rgb(var(--hud-glass) / .8); stroke: var(--dim); }
.gv-core { stroke: var(--c); filter: drop-shadow(0 0 6px rgb(var(--hud-rgb) / .45)); }
.gv-out { stroke: var(--c); fill: rgb(var(--hud-rgb) / .12); }
.gv-flow { stroke: var(--c); stroke-width: 1.2; opacity: .7; }
.gv-ah { fill: var(--c); }
.gv-l { stroke: var(--dim); stroke-width: 1.5; }
.gv-hotl { stroke: #ef4444; stroke-dasharray: 4 4; }
.gv-axis { stroke: var(--dim); stroke-width: 1.5; }
.gv-line { fill: none; stroke-width: 2.2; }
.gv-hot { stroke: var(--c2); filter: drop-shadow(0 0 5px var(--c)); }
.gv-dim { stroke: var(--mut); stroke-dasharray: 5 4; }
.gv-gap { fill: rgba(239, 68, 68, .08); stroke: rgba(239, 68, 68, .45); stroke-dasharray: 4 4; }
.gv-quiet { fill: rgb(var(--hud-rgb) / .06); stroke: var(--dim); stroke-dasharray: 3 4; }
.gv-dot { fill: #ef4444; filter: drop-shadow(0 0 6px #ef4444); }
.gv-bar { fill: rgb(var(--hud-rgb) / .55); }
.gv-lamp { fill: rgb(var(--hud-glass) / .9); stroke: var(--dim); stroke-width: 2; }
.gv-lamp.on { fill: rgb(var(--hud-rgb) / .35); stroke: var(--c); filter: drop-shadow(0 0 10px var(--c)); }
.gv-tl em a { color: var(--txt); text-decoration: underline dotted var(--c); text-underline-offset: 3px; }
.gv-tl em a:hover { color: var(--c2); }
.gv-tl li { grid-template-columns: 96px 74px 1fr; }
@media (max-width: 600px) { .gv-tl li { grid-template-columns: 90px 1fr; } }
.gv-ex { display: grid; gap: 12px; color: var(--txt); }
.gv-q { margin: 0; font: 600 16px/1.4 var(--font); }
.gv-split { display: flex; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid var(--dim); }
.gv-split > div { display: flex; align-items: center; justify-content: center; font: 12px var(--mono); }
.gv-yes { background: rgb(var(--hud-rgb) / .35); box-shadow: inset 0 0 12px rgb(var(--hud-rgb) / .5); }
.gv-no { background: rgb(var(--hud-glass) / .8); color: var(--mut); }
.gv-kv { display: flex; flex-wrap: wrap; gap: 8px; }
.gv-kv div { flex: 1 1 100px; padding: 8px 10px; border: 1px solid var(--dim); border-radius: 8px; background: rgb(var(--hud-glass) / .6); }
.gv-kv span { display: block; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.gv-kv b { font: 700 20px var(--mono); text-shadow: 0 0 10px rgb(var(--hud-rgb) / .45); }
.gv-kv s { color: var(--mut); text-shadow: none; }
.gv-move { display: flex; align-items: center; gap: 10px; }
.gv-move i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--dim), var(--c)); }
.gv-pill { padding: 8px 14px; border: 1px solid var(--dim); border-radius: 999px; font: 700 18px var(--mono); }
.gv-pill.on { border-color: var(--c); box-shadow: 0 0 14px rgb(var(--hud-rgb) / .35); }
.gv-vol { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--mut); }
.gv-vol div { height: 14px; border: 1px solid var(--dim); border-radius: 4px; overflow: hidden; }
.gv-vol i { display: block; height: 100%; min-width: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.gv-vol b { color: var(--txt); text-align: right; }
.gv-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.gv-rules li::before { display: inline-block; width: 22px; font: 700 13px var(--mono); }
.gv-rules li.ok::before { content: "✓"; color: var(--c); }
.gv-rules li.no::before { content: "✕"; color: #ef4444; }
.gv-rules li.no { color: var(--mut); }
.gv-tl .hud-t0::before { background: #ef4444; border-color: #ef4444; box-shadow: 0 0 10px #ef4444; }
.gv-tl .hud-t0 b { color: var(--hud-red); }
.gv-t { white-space: pre; }
@media (max-width: 600px) { .hud.gv { overflow-x: auto; } .gv-svg { min-width: 560px; } }

/* Loading placeholder on the overview (index.html, removed once the stories are in) */
.boot { margin: 22px 0; display: grid; gap: 14px; justify-items: start; }
.boot .live-badge { color: var(--accent); border-color: var(--line); background: var(--panel); text-shadow: none; animation: none; }
.boot .live-badge i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.boot-grid { width: 100%; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 150px 150px; gap: 14px; }
.boot-grid i { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: boot-sheen 1.3s linear infinite; }
.boot-grid i:first-child { grid-row: span 2; }
@keyframes boot-sheen { to { background-position: -150% 0; } }
@media (max-width: 700px) { .boot-grid { grid-template-columns: 1fr; grid-template-rows: 200px 120px 120px; } .boot-grid i:first-child { grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .boot-grid i { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.why-link { color: var(--muted); }
.why-link:hover { color: var(--accent); }
/* phones: the header keeps only the switch and the logo */
@media (max-width: 600px) { header.top .why-link { display: none; } }

/* Top News: the impact band as a neutral badge (index.html) */
.card .meta .band { flex: none; margin-left: 2px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 10px; letter-spacing: .08em; }
.soon { margin: 6px 0 0; color: var(--muted); font: 12px var(--mono); letter-spacing: .04em; }

/* Header menu (every page): a ☰ button on the right that opens a panel; closes on outside click / Esc */
header.top .wrap { position: relative; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu summary { list-style: none; display: grid; place-items: center; width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--text); border-color: var(--accent); }
.menu-icon { display: grid; gap: 3px; width: 14px; }
.menu-icon i { height: 2px; border-radius: 1px; background: currentColor; }
.menu-panel { position: absolute; right: 16px; top: 52px; z-index: 50; min-width: 230px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.menu-panel a { padding: 9px 12px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.menu-panel a:hover { background: var(--panel-2); color: var(--accent); }
.menu-panel .menu-small { font-weight: 400; font-size: 13px; color: var(--muted); padding: 6px 12px; }
.menu-panel hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Hub pages: /topics, /signals, /markets, /watchlist (lib/render.mjs, public/watchlist.js) */
.hub-chips { flex-wrap: wrap; margin: 14px 0 4px; }
.topic-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.topic-tile { display: grid; gap: 6px; align-content: start; padding: 14px 16px; color: inherit; }
.topic-tile .region { color: var(--accent); font-size: 13px; }
.topic-tile h2 { margin: 0; font: 600 16px/1.3 var(--serif); }
.tt-counts, .tt-when { margin: 0; color: var(--muted); font: 12px var(--mono); }
.topic-tile:hover h2 { color: var(--accent); }
.radar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.radar-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.radar-list a { color: var(--accent); font-weight: 600; }
.radar-list span { color: var(--muted); font: 12px var(--mono); }
.mk-wrap { overflow-x: auto; margin: 10px 0; }
.mk { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk th { text-align: left; padding: 8px 10px; color: var(--muted); font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mk td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk .mk-n { text-align: right; white-space: nowrap; font-family: var(--mono); }
.mk-q a { font-weight: 600; }
.mk-q a:hover { color: var(--accent); }
.mk-q small { display: block; margin-top: 3px; color: var(--muted); font: 11px var(--mono); }
.mk-flat { color: var(--faint); }
@media (max-width: 600px) { .mk .mk-hide { display: none; } .mk td, .mk th { padding: 8px 6px; } }
.wl-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wl-n { color: var(--muted); font: 12px var(--mono); }
.wl-remove { margin: 0 0 0 auto; padding: 5px 12px; font-size: 12px; }
.wl-empty { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.wl-empty p { margin: 6px 0; }

/* Header logo (public/brand/, built by scripts/logo.mjs): the dark file by default, the light one in
   light mode, following the system setting and the day/night switch like the colour tokens */
.brand img { display: block; height: 38px; width: auto; }
.brand .logo-l { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand .logo-d { display: none; } :root:not([data-theme="dark"]) .brand .logo-l { display: block; } }
:root[data-theme="light"] .brand .logo-d { display: none; }
:root[data-theme="light"] .brand .logo-l { display: block; }
@media (max-width: 600px) { .brand img { height: 32px; } }
.story-link { margin: 4px 0 22px; }
.story-link .cta { color: #fff; text-decoration: none; }
.story-link .cta:hover { filter: brightness(1.1); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hud { --hud-rgb: 47 91 211; --hud-glass: 255 255 255; --hud-deep: 255 255 255; --hud-top: #fbfcff; --hud-red: #d43c3c; --hud-shadow: 0 10px 30px rgba(20, 24, 33, .08); --c: #2f5bd3; --c2: #3f6be0; --dim: rgb(47 91 211 / .24); --txt: #141821; --mut: #5b6475; background: radial-gradient(1200px 400px at 20% -10%, rgb(47 91 211 / .07), transparent 60%), linear-gradient(180deg, #fbfcff, #f3f6fc); }
  :root:not([data-theme="dark"]) .hud :is(.hud-body dd, .live-stats b, .gv-kv b, .live-badge) { text-shadow: none; }
  :root:not([data-theme="dark"]) .hud :is(.hud-gauge-fg, .hud-area, .gv-core, .gv-lamp.on) { filter: none; } }
:root[data-theme="light"] .hud { --hud-rgb: 47 91 211; --hud-glass: 255 255 255; --hud-deep: 255 255 255; --hud-top: #fbfcff; --hud-red: #d43c3c; --hud-shadow: 0 10px 30px rgba(20, 24, 33, .08); --c: #2f5bd3; --c2: #3f6be0; --dim: rgb(47 91 211 / .24); --txt: #141821; --mut: #5b6475; background: radial-gradient(1200px 400px at 20% -10%, rgb(47 91 211 / .07), transparent 60%), linear-gradient(180deg, #fbfcff, #f3f6fc); }
  :root[data-theme="light"] .hud :is(.hud-body dd, .live-stats b, .gv-kv b, .live-badge) { text-shadow: none; }
  :root[data-theme="light"] .hud :is(.hud-gauge-fg, .hud-area, .gv-core, .gv-lamp.on) { filter: none; }
/* THOR Market Analysis on bet-only pages (lib/render.mjs thorPanel): one HUD panel per data layer */
.thor { margin: 26px 0; }
.thor .hud-brand b { color: var(--c); }
.thor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .thor-grid { grid-template-columns: minmax(0, 1fr); } }
.thor-layer p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--txt); }
.thor-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.thor-facts div { flex: 1 1 90px; padding: 6px 9px; border: 1px solid var(--dim); border-radius: 8px; }
.thor-facts dt { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.thor-facts dd { margin: 2px 0 0; font: 700 15px var(--mono); color: var(--txt); }
.thor-news { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--txt); }
.thor-news a { color: var(--c); }
.thor-news span { color: var(--mut); font-size: 12px; }
.thor-note { margin-top: 12px; }
/* the figure tiles sit at the foot of each panel, so tiles in one row line up whatever the text above */
.thor-layer .thor-facts { margin-top: auto; padding-top: 4px; }
.thor-facts div { display: flex; flex-direction: column; justify-content: space-between; }
.thor-cta { margin: 14px 0 0; }
.hud-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--c); border-radius: 8px; background: rgb(var(--hud-rgb) / .12); color: var(--c); font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .15s, box-shadow .15s; }
.hud-btn:hover { background: rgb(var(--hud-rgb) / .22); box-shadow: 0 0 14px rgb(var(--hud-rgb) / .3); }
@media (max-width: 600px) { .thor-cta .hud-btn { display: flex; justify-content: center; text-align: center; padding: 10px 12px; font-size: 11px; letter-spacing: .04em; } }
/* subheadings inside a story's text (article.heads) */
.article .body h2.subhead { margin: 30px 0 10px; font: 700 20px/1.3 var(--font); letter-spacing: -.01em; color: var(--text); }
.article .body h2.subhead:first-child { margin-top: 8px; }
@media (max-width: 600px) { .article .body h2.subhead { font-size: 18px; margin-top: 24px; } }
/* /live on phones: the log becomes a vertical seismograph (lib/render.mjs quietBefore, .vbar). The
   axis runs down the left, NOW at the top; each event's spike points right from the axis, as long as
   its weight; an hour or more without events is a short quiet stretch. Wider screens keep .seis */
.live-log .vbar, .live-log .live-gap { display: none; }
@media (max-width: 600px) {
  .live-page .seis { display: none; }
  .live-log { position: relative; margin-top: 18px; padding: 22px 0 0 64px; border-left: 0; }
  .live-log::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--c), var(--dim) 40%, var(--dim)); }
  .live-log::after { content: "NOW"; position: absolute; left: 0; top: -8px; font: 700 10px var(--mono); letter-spacing: .12em; color: var(--hud-red); }
  .live-log li::before { display: none; }
  .live-log .vbar { display: block; position: absolute; left: -58px; top: 8px; height: 2px; width: calc(6px + var(--w) * 44px); background: linear-gradient(90deg, rgb(var(--hud-rgb) / .35), var(--c)); }
  .live-log .vbar::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--hud-deep)); border: 2px solid var(--c); box-sizing: border-box; }
  .live-log .hud-t0 .vbar { background: linear-gradient(90deg, rgba(239, 68, 68, .35), #ef4444); }
  .live-log .hud-t0 .vbar::after { border-color: #ef4444; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
  .live-log .live-gap { display: block; position: relative; margin: -2px 0; padding: 2px 0; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
  .live-log .live-gap::after { content: ""; position: absolute; left: -61px; top: -6px; bottom: -6px; width: 7px; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgb(var(--hud-rgb) / .35) 3px 4px); }
}
/* card back: THOR track record at this price, one line under the odds line */
.back-record { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.back-record b { color: var(--text); font-family: var(--mono); }

/* De-noised (lib/noise.mjs → noisePanel/noiseChip in lib/render.mjs): Top News stories only */
.noise { margin: 26px 0; scroll-margin-top: 80px; }
.noise .hud-brand b { color: var(--c); }
.noise-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 760px) { .noise-grid { grid-template-columns: minmax(0, 1fr); } }
.noise-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.noise-score svg { display: block; }
.noise-track { fill: none; stroke: var(--dim); stroke-width: 7; }
.noise-arc { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; }
.noise-score text { font: 700 20px var(--mono); fill: var(--txt); }
.noise-label { margin: 0; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.noise-line { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--txt); }
.noise-line b { color: var(--c); }
.noise-rows { grid-column: 1 / -1; display: grid; gap: 7px; }
.noise-row { display: grid; grid-template-columns: 70px minmax(40px, .8fr) minmax(0, 1.5fr); gap: 10px; align-items: center; font-size: 13px; color: var(--txt); }
.noise-bar { height: 7px; border-radius: 4px; background: var(--dim); overflow: hidden; }
.noise-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.noise-fig { font: 12px var(--mono); color: var(--mut); }
.noise-brief ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.noise-brief li { font-size: 14.5px; line-height: 1.55; color: var(--txt); }
.noise .hud-note { margin-top: 12px; }
@media (max-width: 600px) { .noise-row { grid-template-columns: 64px minmax(0, 1fr); } .noise-fig { grid-column: 2; margin-top: -4px; } }
.noise-more a { color: var(--c); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.noise-more a:hover { text-decoration: underline; }
/* De-noised as a sidebar on wide screens (owner's choice 2026-11-25): the story's head (headline to
   picture) and blocks stay in the left column; the panel and the watchlist button start right of the
   first paragraph after the picture and stay in view while reading; below 1100px they come after the
   story text */
.story-side .noise { margin: 26px 0 14px; }
.story-side .watch-lg { margin-bottom: 22px; }
@media (min-width: 1100px) {
  main.article.has-side { max-width: 1132px; display: grid; grid-template-columns: minmax(0, 760px) 324px; column-gap: 40px; align-content: start; }
  .article.has-side > * { grid-column: 1; }
  .article.has-side > .story-side { grid-column: 2; grid-row: 2 / span 40; align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
  .has-side .story-side .noise { margin: 0 0 14px; }
  .has-side .noise-grid { grid-template-columns: minmax(0, 1fr); }
  .has-side .noise-row { grid-template-columns: 70px minmax(0, 1fr); row-gap: 3px; }
  .has-side .noise-fig { grid-column: 1 / -1; }
  .has-side .noise-line, .has-side .noise-brief li { font-size: 13.5px; }
  .has-side .noise-score svg { width: 72px; height: 72px; }
}
/* the story's meta row (Impact, Noise chip, place, badge) sits after the story (owner's choice 2026-11-25) and wraps on phones */
/* desktop: a bigger headline and intro (owner's choice 2026-11-25). The head no longer stretches to fill
   the first screen (owner's choice 2026-11-30): the space it left grew with short headlines and tall screens
   and opened an uneven gap under the watch buttons; now the gap is always the same */
@media (min-width: 1100px) {
  .article:has(> .story-head) h1 { font-size: 48px; line-height: 1.1; margin: 18px 0 16px; }
  .article:has(> .story-head) .lede { font-size: 23px; line-height: 1.5; margin-bottom: 26px; }
  /* head (row 1) and intro (row 2) as a grid, so the sidebar starts at the intro; story pages only (a story
     head): other pages using .article keep the normal flow */
  .article:has(> .story-head) { display: grid; grid-template-columns: minmax(0, 760px); grid-template-rows: auto auto; justify-content: center; align-content: start; }
  .article:has(> .story-head) > * { grid-column: 1; }
  .article > .story-head { grid-row: 1; }
  .article > .story-intro { grid-row: 2; }
}
/* privacy preferences (public/privacy.js): a small banner on the first visit, the settings as a dialog */
.pv-banner { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.pv-banner p { flex: 1 1 340px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pv-banner p b { color: var(--text); }
.pv-banner a, .pv-dialog a { color: var(--accent); }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-btn { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.pv-btn:hover { border-color: var(--accent); }
.pv-btn.pv-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.pv-btn.pv-primary:hover { filter: brightness(1.1); }
.pv-dialog { width: min(520px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); }
.pv-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.pv-dialog h2 { margin: 0 0 6px; font: 700 20px var(--font); }
.pv-intro { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.pv-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pv-row span { display: grid; gap: 3px; }
.pv-row b { font-size: 14.5px; }
.pv-row small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pv-row input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.pv-dialog .pv-actions { justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv-dialog .pv-actions a { margin-right: auto; font-size: 13px; }
.site-foot a[data-privacy] { cursor: pointer; }
/* The Whole Picture (lib/render.mjs renderPicture / renderPictures) */
.wp-kicker { margin: 18px 0 0; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wp-kicker span { color: var(--accent); margin-right: 6px; }
.wp-kicker span::after { content: " ·"; color: var(--muted); }
.wp-page .story-head h1 { margin-top: 8px; }
.wp-changes { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--panel); }
.wp-changes h3 { margin: 0 0 8px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.wp-changes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.wp-editions { font-size: 13px; color: var(--muted); }
.wp-stories { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.wp-stories span { font: 12px var(--mono); color: var(--faint); }

/* the timeline: what happened | date and odds | what the data did */
.wp-tl { margin: 30px 0; padding: 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.wp-tl-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.wp-tl-head h2 { margin: 0; font: 700 20px var(--font); }
.wp-keys { display: flex; gap: 14px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wp-keys span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: 0; }
.wp-key-geo::before { background: var(--text); }
.wp-key-data::before { background: var(--accent); }
.wp-bet { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.wp-spark { position: relative; margin: 12px 0 4px; height: 64px; }
.wp-spark svg { display: block; width: 100%; height: 48px; }
.wp-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wp-spark span { position: absolute; bottom: 0; font: 11px var(--mono); color: var(--muted); }
.wp-spark span:last-child { right: 0; }
.wp-spark b { color: var(--text); }
.wp-line { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.wp-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(var(--line), var(--accent) 30%, var(--accent) 70%, var(--line)); }
.wp-day { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 8px 0; }
.wp-geo { display: grid; gap: 8px; justify-items: end; text-align: right; }
.wp-data { display: grid; gap: 8px; justify-items: start; }
.wp-axis { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 4px 0; background: var(--panel); }
.wp-axis time { font: 600 12px var(--mono); color: var(--text); white-space: nowrap; }
.wp-axis b { padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; font: 700 12px var(--mono); color: var(--accent); background: var(--panel); }
.wp-ev { max-width: 100%; display: grid; gap: 3px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 14px; line-height: 1.4; }
.wp-ev a, .wp-ev .wp-t { color: var(--text); font-weight: 600; }
.wp-ev small { font-size: 12.5px; color: var(--muted); }
.wp-k { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.wp-data .wp-ev { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.wp-data .wp-k { color: var(--accent); }
.wp-ev.wp-has-lead { border-color: #f59e0b; box-shadow: 0 0 0 1px color-mix(in srgb, #f59e0b 35%, transparent); }
.wp-lead { justify-self: start; padding: 1px 7px; border-radius: 4px; background: #f59e0b; color: #1a1305; font: 700 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.wp-point .wp-k, .wp-resolved .wp-k { color: var(--text); }
.wp-gap { display: flex; justify-content: center; padding: 6px 0; }
.wp-gap span { position: relative; z-index: 1; padding: 2px 10px; border: 1px dashed var(--line); border-radius: 999px; background: var(--panel); font: 11px var(--mono); color: var(--faint); }
.wp-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* phones: the axis on the left, both tracks to its right */
@media (max-width: 640px) {
  .wp-tl { padding: 16px 12px; }
  .wp-line::before { left: 30px; }
  .wp-day { grid-template-columns: 60px minmax(0, 1fr); gap: 6px 10px; }
  .wp-axis { grid-row: 1 / span 2; grid-column: 1; }
  /* the date breaks into day and year inside the narrow axis column, so it never runs into the cards */
  .wp-axis time { white-space: normal; text-align: center; font-size: 11px; line-height: 1.25; }
  .wp-axis b { font-size: 11px; padding: 1px 6px; }
  .wp-geo, .wp-data { grid-column: 2; justify-items: stretch; text-align: left; }
  .wp-gap { justify-content: flex-start; padding-left: 2px; }
}

/* the hub and the overview's section */
.wp-list { display: grid; gap: 18px; margin: 10px 0 24px; }
.wp-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 6px 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; }
.wp-card:hover { border-color: var(--accent); }
.wp-card img { grid-row: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.wp-card .wp-kicker { margin: 0; }
.wp-card b { font: 700 20px/1.25 var(--serif); }
.wp-card .wp-teaser { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.wp-card small { font: 11.5px var(--mono); color: var(--faint); }
@media (max-width: 700px) { .wp-card { grid-template-columns: minmax(0, 1fr); } .wp-card img { grid-row: auto; } }
/* The Whole Picture: visuals, quotes and FAQ inside the text (renderPicture in lib/render.mjs) */
.wp-vis { margin: 28px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.wp-vis figcaption { margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.wp-src { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.wp-vis sup.cite, .wp-src sup.cite { font-size: 10px; }
.wp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wp-stats div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); }
.wp-stats b { font: 700 28px/1.1 var(--font); letter-spacing: -.01em; color: var(--text); }
.wp-stats span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.wp-bars { display: grid; gap: 10px; }
.wp-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1.6fr) auto; gap: 12px; align-items: center; font-size: 13.5px; }
.wp-bar i { height: 12px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.wp-bar em { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.wp-bar b { font: 700 13px var(--mono); white-space: nowrap; }
.wp-actors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wp-actors div { padding: 12px 14px; border-radius: 10px; background: var(--panel-2); }
.wp-actors b { display: block; margin-bottom: 6px; font-size: 15px; }
.wp-actors p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.wp-actors p span, .wp-signs span { display: inline-block; min-width: 52px; margin-right: 6px; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wp-scen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wp-scen li { position: relative; padding: 14px; border-radius: 10px; background: var(--panel-2); }
.wp-scen-n { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 12px var(--mono); }
.wp-scen b { display: block; font-size: 15px; line-height: 1.3; }
.wp-scen p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; }
.wp-signs { color: var(--muted); }
.wp-quote { margin: 34px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); }
.wp-quote p { margin: 0; font: 600 clamp(22px, 2.6vw, 28px)/1.35 var(--serif); color: var(--text); }
.wp-quote p::before { content: "“"; } .wp-quote p::after { content: "”"; }
.wp-faq { margin: 34px 0 24px; }
.wp-faq h2 { margin: 0 0 12px; font: 700 22px var(--font); }
.wp-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.wp-faq details:last-child { border-bottom: 1px solid var(--line); }
.wp-faq summary { cursor: pointer; font: 600 16.5px/1.4 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::after { content: "+"; flex: none; color: var(--accent); font-weight: 700; }
.wp-faq details[open] summary::after { content: "−"; }
.wp-faq details p { margin: 10px 0 0; font: 16.5px/1.6 var(--serif); }
.wp-more-src { margin-top: 10px; }
.wp-more-src summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.wp-more-src[open] summary { margin-bottom: 8px; }
@media (max-width: 640px) {
  .wp-actors, .wp-scen { grid-template-columns: minmax(0, 1fr); }
  .wp-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .wp-bar i { grid-column: 1 / -1; grid-row: 2; }
  .wp-stats b { font-size: 24px; }
}
/* The Whole PicTHOR: the closing conclusion of every Whole Picture text */
.wp-picthor { margin: 34px 0 10px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.wp-picthor h2 { margin: 0 0 10px; font: 700 22px var(--font); letter-spacing: -.01em; }
.wp-picthor h2 span { color: var(--accent); }
.wp-picthor p { margin: 0; font: 18px/1.65 var(--serif); }
/* sources in a Whole Picture text: a chip after each paragraph, the collection grouped by outlet */
.wp-chip { margin: -8px 0 18px; font-size: 12.5px; }
.wp-chip summary { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); cursor: pointer; list-style: none; font: 600 11.5px var(--font); }
.wp-chip summary::-webkit-details-marker { display: none; }
.wp-chip summary::after { content: "▾"; font-size: 10px; }
.wp-chip[open] summary::after { content: "▴"; }
.wp-chip summary:hover { border-color: var(--accent); color: var(--text); }
.wp-chip ul { margin: 8px 0 0; padding: 10px 12px 10px 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: grid; gap: 6px; font: 13px/1.45 var(--font); }
.wp-chip a { color: var(--text); }
.wp-chip b { margin-right: 4px; color: var(--accent); }
.wp-vis .wp-chip, .wp-picthor .wp-chip, .wp-faq .wp-chip { margin: 12px 0 0; }
.wp-sources h3 { margin-bottom: 10px; }
.wp-outlet { border-top: 1px solid var(--line); }
.wp-outlet summary { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; }
.wp-outlet summary::-webkit-details-marker { display: none; }
.wp-outlet summary span::before { content: "▸"; display: inline-block; width: 16px; color: var(--muted); transition: transform .15s; }
.wp-outlet[open] summary span::before { transform: rotate(90deg); }
.wp-outlet summary b { font: 600 12.5px var(--mono); color: var(--muted); }
.wp-outlet ul { margin: 0 0 10px; padding-left: 34px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.wp-outlet small { margin-left: 6px; font: 11px var(--mono); color: var(--faint); }
.wp-sources .wp-more-src summary { padding: 9px 0; border-top: 1px solid var(--line); }
