/* AI Pulse — Design C "Commons".
   Change the colors here to restyle the whole site. */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --field: #f7f8fa;
  --line: #e4e7ee;
  --line-soft: #eef0f4;
  --ink: #0f1222;
  --ink-2: #343a4d;
  --muted: #5b6377;
  --accent: #007a70;
  --accent-btn: #0f1222;
  --accent-soft: #e6fbf8;
  --accent-soft-ink: #00675e;
  --signal: #19d3c5;
  --hype: #ffb547;
  --hype-ink: #8a5a00;
  --hot-soft: #fff4e2;
  --hot-ink: #8a5a00;
  --news-soft: #e6fbf8;
  --news-ink: #00675e;
  --talk-soft: #eef0ff;
  --talk-ink: #3b3fa8;
  --warn-soft: #fef3c7;
  --warn-ink: #78350f;
  --danger: #b91c1c;
  --ok: #00675e;
  --dark: #0f1222;
  --dark-line: #262b3d;
  --dark-muted: #9aa3b8;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Schibsted Grotesk", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 10px; }
.loading-screen { padding: 80px 16px; text-align: center; color: var(--muted); }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.search { flex: 1 1 260px; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: 999px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; z-index: 30; width: 230px; display: flex; flex-direction: column; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgb(26 29 41 / 0.14); }
.menu-panel a, .menu-panel button { display: block; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg); }

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-block: 24px 48px; }
.nav { flex: 1 1 200px; max-width: 220px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rail { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.layout.plain .main { max-width: 780px; margin: 0 auto; }
.nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 600; }
.nav a:hover { background: var(--card); }
.nav a.on { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; }
.nav h2 { margin: 18px 0 6px; padding: 0 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.nav .spaces a { height: 38px; font-size: 14px; font-weight: 500; }
@media (max-width: 1100px) { .rail { max-width: none; } }
@media (max-width: 860px) {
  .nav { position: static; max-width: none; flex-direction: row; flex-wrap: wrap; }
  .nav h2, .nav .spaces { display: none; }
}

/* Building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.pad { padding: 22px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.meta { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.c-hot { background: var(--hot-soft); color: var(--hot-ink); }
.c-q { background: var(--accent-soft); color: var(--accent-soft-ink); }
.c-talk { background: var(--talk-soft); color: var(--talk-ink); }
.c-news { background: var(--news-soft); color: var(--news-ink); }
.c-warn { background: var(--warn-soft); color: var(--warn-ink); }
.topic { font-weight: 600; }
.topic:hover { color: var(--ink); text-decoration: underline; }
.title-link { font-weight: 700; line-height: 1.35; }
.title-link:hover { text-decoration: underline; }
.t-feed { font-size: 20px; }
.t-page { font-size: 28px; font-weight: 800; line-height: 1.2; }
.h-page { font-size: 24px; font-weight: 800; }
.section-h { font-size: 18px; font-weight: 800; }
.lead { color: var(--ink-2); }
.body { color: var(--ink-2); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-p { background: var(--accent-btn); color: #fff; }
.btn-p:hover:not(:disabled) { filter: brightness(1.1); }
.btn-o { background: var(--card); border-color: var(--line); }
.btn-o:hover:not(:disabled) { background: var(--field); }
.btn-s { height: 36px; padding: 0 14px; }
.btn-soft { flex: 1 1 140px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.btn-soft:hover { background: var(--line-soft); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; }
.pill:hover { background: var(--field); }
.pill.on { background: var(--ink); color: var(--card); border-color: var(--ink); font-weight: 700; }
.pill-on { border-color: var(--accent); color: var(--accent-soft-ink); background: var(--accent-soft); }
.ghost { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.ghost:hover { color: var(--ink); background: var(--field); }
.ghost.up-on { color: var(--accent); }
.ghost.down-on { color: var(--danger); }
.ghost.danger:hover { color: var(--danger); }
.link { color: var(--accent); font-weight: 700; }
.link:hover { text-decoration: underline; }
.field { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--field); padding: 12px 16px; font-size: 15px; color: var(--ink); }
.field::placeholder { color: var(--muted); }
textarea.field { resize: vertical; min-height: 96px; }
select.field { height: 48px; padding-block: 0; }
.label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1em; }
.ok-msg { color: var(--ok); font-size: 14px; font-weight: 600; }
.note { border-radius: 14px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; object-fit: cover; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-size: 14px; font-weight: 700; }
a.who-name:hover { text-decoration: underline; }
.composer-input { flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); color: var(--muted); }
.composer-input:hover { border-color: var(--accent); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line-soft); }
.list-row:first-child { border-top: 0; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }

/* News */
.story { display: flex; flex-wrap: wrap; gap: 20px; }
.story-img { flex: 0 0 180px; height: 120px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; font-size: 13px; font-weight: 800; }
.story-img.has-img { padding: 0; background: var(--line-soft); }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 520px) { .story-img { flex-basis: 100%; height: 140px; } }
.summary-box { background: var(--field); border-radius: 12px; padding: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Polls */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 46px; width: 100%; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; font-weight: 600; cursor: pointer; }
.opt:hover:not(:disabled) { background: var(--field); }
.opt:disabled { cursor: default; }
.opt.mine { border: 2px solid var(--accent-btn); font-weight: 700; }
.opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--line-soft); transition: width 0.4s ease; }
.opt.mine .bar { background: var(--accent-soft); }
.opt .lbl { position: relative; display: flex; justify-content: space-between; gap: 12px; width: 100%; font-variant-numeric: tabular-nums; }

/* Comments */
.cm { padding-block: 18px; border-top: 1px solid var(--line-soft); }
.cm:first-child { border-top: 0; }
.cm .cm { margin-top: 14px; padding: 0 0 0 16px; border-top: 0; border-left: 2px solid var(--line-soft); }
.inline-box { margin-top: 10px; }

/* Right column, tables */
.rail h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.num { font-variant-numeric: tabular-nums; }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); }
td { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
.right { text-align: right; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); }
.footer { border-top: 1px solid var(--line); background: var(--card); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.footer a:hover { color: var(--ink); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.skeleton { height: 140px; border-radius: 16px; background: linear-gradient(90deg, var(--card), var(--line-soft), var(--card)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .opt .bar { transition: none; } }
@media (max-width: 520px) { .pad { padding: 18px; } .t-page { font-size: 24px; } .t-feed { font-size: 18px; } }

/* ---------- G · Flagship */
h1, h2, h3, .logo, .t-feed, .t-page, .h-page, .section-h { font-family: var(--display); letter-spacing: -0.015em; }
.card { border-radius: 20px; }
.mono { font-family: var(--mono); }
.pulse-row { display: flex; flex-wrap: wrap; gap: 20px; }
.pulse { flex: 999 1 560px; min-width: 0; background: var(--dark); color: #fff; border-radius: 22px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.pulse h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1; }
.pulse .stats { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--mono); }
.pulse .stats b { font-size: 28px; color: var(--signal); }
.pulse .stats span span { color: var(--dark-muted); font-size: 12px; letter-spacing: 0.06em; }
.pulse figure { margin: 0; overflow-x: auto; }
.pulse svg { display: block; width: 100%; min-width: 420px; height: auto; }
.pulse figcaption { font-size: 13px; color: var(--dark-muted); margin-top: 4px; }
.briefing { flex: 1 1 340px; }
.briefing ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.45; }
.briefing li a:hover { text-decoration: underline; }
.lead { display: flex; flex-direction: column; gap: 14px; }
.lead h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.08; }
.hype { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.hype-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.hype-bar .real { background: var(--signal); }
.hype-bar .fluff { background: var(--hype); }
.hype-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.hype-legend .r { color: var(--accent-soft-ink); }
.hype-legend .h { color: var(--hype-ink); }
.hype-mini { display: inline-flex; align-items: center; gap: 6px; }
.hype-mini .hype-bar { width: 64px; height: 8px; }
.rate-btn[aria-pressed="true"].real-on { background: var(--accent-soft); border-color: var(--accent-soft-ink); color: var(--accent-soft-ink); }
.rate-btn[aria-pressed="true"].hype-on { background: var(--hot-soft); border-color: var(--hype-ink); color: var(--hype-ink); }
.eyebrow-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.lead h2 a, .lead h2 { color: var(--ink); }

/* ---------- G · Flagship layout */
.top-in { gap: 12px 26px; }
.topnav { display: flex; flex-wrap: wrap; gap: 2px 4px; font-weight: 600; font-size: 15px; }
.topnav a { padding: 10px 10px; border-radius: 10px; }
.topnav a:hover { background: var(--bg); }
.topnav a.on { color: var(--accent); }
.search-sm { flex: 0 1 260px; height: 42px; border-radius: 12px; margin-left: auto; }
.top-right { margin-left: 0; }
.layout.full .main { max-width: none; }
.layout.full { padding-top: 28px; }
.pulse-row .briefing { flex: 1 1 360px; }
.brief-icon { flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--signal); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.lead-row { display: flex; flex-wrap: wrap; gap: 28px; }
.lead-row .lead { flex: 999 1 520px; min-width: 0; }
.timeline { flex: 1 1 300px; display: flex; flex-direction: column; }
.timeline h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.tl-item { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 12px; height: 12px; border-radius: 999px; background: #c9ceda; flex: none; margin-top: 3px; }
.tl-dot.on { background: var(--signal); }
.tl-line { flex: 1; width: 2px; background: var(--line); }
.tl-body { padding-bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.tl-body a { font-weight: 600; line-height: 1.35; }
.tl-body a:hover { text-decoration: underline; }
.timeline .link { margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.section-title { font-size: 30px; font-weight: 900; margin: 12px 0 0; }
@media (max-width: 760px) { .search-sm { flex: 1 1 100%; order: 10; } .topnav { order: 11; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .topnav a { white-space: nowrap; } }

/* ---------- Stage 2: predictions + Model Index */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sec-head h2 { font-size: 30px; font-weight: 900; margin: 0; }
.pred-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.pred-cards { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.pred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.pred .pred-q { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0; }
.pred h1.pred-q { font-size: clamp(24px, 3vw, 32px); }
.crowd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.crowd b { font-family: var(--display); font-size: 44px; font-weight: 900; line-height: 1; color: var(--accent); }
.crowd span { color: var(--muted); font-weight: 600; }
.fc { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.fc label { font-weight: 700; }
.fc output { color: var(--accent); }
.fc input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.fc-result { margin: 0; font-weight: 800; }
.fc-result.good { color: var(--accent); } .fc-result.bad { color: #b4232c; }
.leaders { flex: 1 1 300px; background: var(--dark); color: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.leaders h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.leaders .ldr { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #262b3d; font-weight: 600; }
.leaders .ldr span:last-child { color: var(--signal); font-family: var(--mono); font-size: 14px; }
.leaders .small { color: var(--dark-muted); font-size: 13px; margin-top: auto; }
.link-dark { color: var(--signal); font-weight: 700; }
.badge-fc { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 4px; border-radius: 999px; background: #e6fbf8; color: var(--accent); font-size: 11px; font-weight: 800; vertical-align: 1px; white-space: nowrap; }
table.mx td, table.mx th { vertical-align: middle; }
table.mx .up { color: var(--accent); font-size: 12px; margin-left: 4px; }
table.mx .down, .mstats .down { color: #b4232c; font-size: 12px; margin-left: 4px; }
.mstats .up { color: var(--accent); font-size: 12px; }
.mono { font-family: var(--mono); }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mstats div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mstats b { font-family: var(--display); font-size: 28px; font-weight: 900; }
.mstats span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stars { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.stars legend { margin-bottom: 6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { min-width: 52px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; cursor: pointer; background: var(--card, #fff); }
.stars input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.stars input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.how summary { cursor: pointer; }
.how .body { margin: 10px 0 0; }

/* ---------- live stock widgets */
.tv-box { position: relative; width: 100%; }
.tv-box .tradingview-widget-container { width: 100%; }
.tv-box .tradingview-widget-copyright { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tv-box .tradingview-widget-copyright a { color: var(--muted); }
.tv-wait { margin: 0; }

/* ---------- full story write-up on our own page */
.story-body { display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.story-body h2 { margin: 10px 0 0; }
.story-text { margin: 0; font-size: 18px; line-height: 1.6; }
.story-points { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.55; display: flex; flex-direction: column; gap: 4px; }
.why { background: #e6fbf8; border-radius: 14px; padding: 14px 16px; }
.why p { margin: 4px 0 0; font-size: 17px; line-height: 1.55; }
.credits { margin: 0; font-size: 13px; color: var(--muted); }
.credits a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }
.credits span { font-weight: 700; }

/* ---------- sign up / log in */
.pw { position: relative; }
.pw .field { padding-right: 72px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--accent); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.pw-eye:hover { background: var(--bg); }
@media (max-width: 520px) { .top-login { display: none; } }
.chip.c-full { background: var(--dark); color: var(--signal); }

/* ---------- top-stories slideshow */
.hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 16px; }
.hero-main { position: relative; border-radius: 22px; overflow: hidden; background: var(--dark); aspect-ratio: 16 / 9; min-height: 340px; }
.hero-slide { position: absolute; inset: 0; display: block; color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.hero-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 6s ease; }
.hero-slide.on .hero-img { transform: scale(1); }
.hero-fallback { display: flex; align-items: flex-start; justify-content: flex-end; padding: 26px; overflow: hidden; }
.hero-fallback span { font: 900 clamp(38px, 6vw, 84px)/0.95 var(--display); text-align: right; opacity: .55; max-width: 9ch; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 24, .94) 0%, rgba(10, 12, 24, .6) 42%, rgba(10, 12, 24, .05) 78%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 28px 64px; display: flex; flex-direction: column; gap: 10px; }
.hero-title { font: 800 clamp(24px, 3vw, 40px)/1.12 var(--display); max-width: 30ch; text-wrap: balance; }
.hero-sum { color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.5; max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-chip { background: var(--signal); color: var(--ink); }
.hero-meta { color: rgba(255, 255, 255, .78); font-size: 12px; font-family: var(--mono); text-transform: uppercase; }
.hero-cta { font-weight: 700; color: var(--signal); }
.hero-slide:hover .hero-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-ctrl { position: absolute; left: 22px; bottom: 16px; display: flex; gap: 8px; align-items: center; z-index: 2; }
.hero-dots { display: flex; }
.hero-dot { width: 26px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s; }
.hero-dot.on::before { width: 22px; background: var(--signal); }
.hero-pause { width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .35); color: #fff; font-size: 11px; cursor: pointer; }
.hero-pause:focus-visible, .hero-dot:focus-visible, .hero-slide:focus-visible, .hero-item:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.hero-side { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.hero-item { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 10px 13px; border: 0; border-radius: 14px; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.hero-item:hover, .hero-item.on { background: var(--bg); }
.hero-thumb { width: 76px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.hero-thumb.hero-fallback { padding: 0; }
.hero-thumb.hero-fallback span { display: none; }
.hero-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-item-topic { font: 600 11px var(--mono); text-transform: uppercase; color: var(--accent); }
.hero-item-title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; overflow: hidden; }
.hero-item.on .hero-bar { background: var(--line); }
.hero-item.on .hero-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: heroFill 5s linear forwards; }
.hero.paused .hero-item.on .hero-bar::after, .hero.hovering .hero-item.on .hero-bar::after { animation-play-state: paused; }
.hero.restart .hero-item.on .hero-bar::after { animation-name: heroFill2; }
@keyframes heroFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroFill2 { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-all { display: inline-block; padding: 8px 10px 4px; font-size: 14px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-main { aspect-ratio: auto; height: 440px; min-height: 0; }
  .hero-text { padding: 20px 20px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.on, .hero-img, .hero-dot::before { transition: none; }
  .hero-item.on .hero-bar::after { animation: none; transform: scaleX(1); }
}
/* pulse chart as a wide strip under the slideshow */
.pulse-wide { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); align-items: center; gap: 12px 32px; }
.pulse-h { font: 900 clamp(26px, 3vw, 36px)/1 var(--display); margin: 0; color: #fff; }
.pulse-cap { margin: 0; font-size: 13px; color: var(--dark-muted); }
@media (max-width: 760px) { .pulse-wide { grid-template-columns: 1fr; } }
.pulse-wide figure { margin: 0; }
.pulse-wide svg { min-width: 0; }
@media (max-width: 760px) { .pulse-wide figure { overflow-x: auto; } .pulse-wide svg { min-width: 560px; } }

/* ---------- share + follow */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-h { font: 600 12px var(--mono); text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.share-btn:hover { border-color: var(--ink); }
.share-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.follow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.follow span { font-weight: 700; }
.follow a { font-weight: 600; }
.follow a:hover { text-decoration: underline; }

/* ---------- in-site reader window */
.readers { display: flex; flex-direction: column; gap: 8px; }
.readers h2 { margin: 0; }
.reader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--dark); }
.reader[hidden] { display: none; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.reader-who { display: flex; flex-direction: column; min-width: 0; }
.reader-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.reader-note { margin: 0; padding: 6px 14px; font-size: 12px; color: var(--dark-muted); background: var(--dark); }
body.noscroll { overflow: hidden; }
/* model index benchmark */
.bench { display: inline-flex; align-items: center; gap: 8px; }
.bench b { font-family: var(--mono); min-width: 2ch; }
.bench-bar { width: 70px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bench-bar span { display: block; height: 100%; background: var(--accent); }

/* ---------- original article embedded in the story page */
.embed { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.embed-name { font-weight: 800; }
.embed-src { height: 34px; font-size: 13px; }
.embed-frame { width: 100%; height: 75vh; min-height: 520px; border: 0; background: #fff; }
.embed-note { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.embed:fullscreen { border-radius: 0; border: 0; }
.embed:fullscreen .embed-frame { height: auto; flex: 1; }
@media (max-width: 760px) { .embed-frame { height: 70vh; min-height: 420px; } }

/* ---------- Yes/No forecast buttons */
.fc-row { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-q { font-weight: 700; font-size: 14px; margin-bottom: 6px; width: 100%; }
.fc-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc-row label { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.fc-row input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.fc-row input:checked + label.fc-yes { background: var(--accent); border-color: var(--accent); }
.fc-row input:checked + label.fc-no { background: #b4232c; border-color: #b4232c; }
.fc-row input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.fc-yes, .fc-no { min-width: 80px; justify-content: center; }
.crowd-bar { height: 8px; border-radius: 8px; background: #f3c9cc; overflow: hidden; }
.crowd-bar span { display: block; height: 100%; background: var(--accent); }
