:root {
  --bg: #0e1116;
  --panel: #161b22;
  --line: #262d38;
  --text: #e6e9ee;
  --muted: #8b95a5;
  --primary: #4aa3ff;
  --wire: #9b8cff;
  --established: #5ec2a7;
  --unrated: #8b95a5;
  --anonymous: #e0a458;
  --ok: #3fb97c;
  --multi: #4aa3ff;
  --single: #e0a458;
  --disputed: #e5736b;
  --denied: #e5736b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 36px 0 12px; font-weight: 600; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.lede { max-width: 70ch; margin: 0 0 8px; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.t-primary { color: var(--primary); } .t-wire { color: var(--wire); } .t-established { color: var(--established); }
.t-unrated { color: var(--unrated); } .t-tabloid { color: #d98ac4; } .t-anonymous { color: var(--anonymous); }
.s-confirmed_primary { color: var(--ok); } .s-multiple_independent { color: var(--multi); }
.s-single_source { color: var(--single); } .s-disputed, .s-denied { color: var(--disputed); }

.claims { display: grid; gap: 12px; }
.claim-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.claim-text { margin: 0; font-weight: 600; flex: 1 1 360px; }
.counts { display: flex; gap: 16px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.counts b { color: var(--text); }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.ev { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ev li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 13px; }
.role { font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; padding-top: 2px; }
.role-origin, .role-confirms { color: var(--ok); } .role-pickup { color: var(--muted); } .role-denial { color: var(--disputed); }

.lead { display: grid; gap: 12px; }
.lead-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lead-gap { font-size: 22px; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 18px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.timeline li.c-social::before { background: var(--anonymous); }
.timeline li.c-official::before { background: var(--primary); }
.timeline li.c-intl::before { background: var(--established); }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-ch { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; }

#map { height: 340px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.leaflet-container { background: var(--panel); font: inherit; }

.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.src { padding: 12px; }
.src h3 { font-size: 14px; margin: 0 0 6px; }
.src p { margin: 6px 0 0; }
footer { margin-top: 48px; }
@media (max-width: 520px) { h1 { font-size: 22px; } .ev li { grid-template-columns: 1fr; gap: 0; } }

nav { margin-bottom: 14px; }
.hero { margin: 0 0 20px; }
.hero img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.hero figcaption { margin-top: 6px; }
.src { overflow: hidden; }
.pv { display: block; margin: -12px -12px 10px; }
.pv img { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--bg); }
.pv span { display: block; padding: 4px 12px 0; font-size: 11px; }

/* home */
.topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.brand { font-size: 20px; font-weight: 700; margin: 0; }
.search { display: flex; gap: 8px; margin: 8px 0 14px; }
.search input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.search button, .btn { padding: 12px 16px; font: inherit; font-weight: 600; color: var(--bg); background: var(--primary); border: 0; border-radius: 10px; cursor: pointer; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button { font: inherit; font-size: 13px; padding: 4px 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--primary); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { display: block; color: inherit; padding: 0; overflow: hidden; }
.card:hover { border-color: var(--primary); text-decoration: none; }
.card img { display: block; width: 100%; height: 170px; object-fit: cover; background: var(--bg); }
.card .noimg { height: 170px; background: linear-gradient(135deg, var(--panel), var(--bg)); }
.card-body { padding: 14px; }
.card h3 { margin: 8px 0 6px; font-size: 17px; line-height: 1.3; }
.card .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-live { color: var(--ok); } .st-cooling { color: var(--single); } .st-archived { color: var(--muted); }
.stats { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.stats b { color: var(--text); }
.notice { padding: 20px; }
.notice h3 { margin: 0 0 6px; }
.notice p { margin: 0 0 12px; }
.notice form { display: flex; gap: 8px; flex-wrap: wrap; }
.notice input { flex: 1 1 220px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
[hidden] { display: none !important; }

/* v3 layout */
.head { display: grid; gap: 16px; margin-bottom: 8px; }
.head .hero { margin: 0; order: -1; }
.head .hero img { max-height: 260px; }
@media (min-width: 820px) {
  .head { grid-template-columns: 1fr 380px; align-items: start; gap: 28px; }
  .head .hero { order: 0; }
  .head .hero img { height: 250px; max-height: none; }
}
.claims { grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 820px) { .claims { grid-template-columns: 1fr 1fr; align-items: start; } }
.claim { padding: 0; }
.claim summary { display: grid; gap: 6px; padding: 12px 14px; cursor: pointer; list-style: none; color: var(--text); }
.claim summary::-webkit-details-marker { display: none; }
.claim summary .chip { justify-self: start; }
.claim .claim-text { font-weight: 600; font-size: 14px; line-height: 1.4; }
.claim .counts { margin: 0; gap: 12px; font-size: 12px; }
.claim[open] summary { border-bottom: 1px solid var(--line); }
.claim .ev { margin: 0; padding: 12px 14px; }
.claim summary:hover { background: rgba(255,255,255,.02); }
.leaflet-control-attribution { display: none; }

/* social */
.posts { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .posts { grid-template-columns: 1fr 1fr; align-items: start; } }
.post { padding: 14px; }
.post-text { margin: 8px 0; line-height: 1.45; }
.post-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* significance */
.sig { padding: 16px; }
.sig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .sig-grid { grid-template-columns: repeat(5, 1fr); } }
.sig-val { font-size: 28px; font-weight: 700; line-height: 1.2; }
.sig-why { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 720px) { .sig-why { grid-template-columns: repeat(3, 1fr); } }
.sig-why h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sig-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.sig-why li { display: flex; justify-content: space-between; gap: 10px; }
.tier-routine { color: var(--muted); } .tier-watch { color: var(--single); } .tier-alert { color: #f08a4b; } .tier-big { color: var(--disputed); }

/* stages + signal cards */
.stage-developing { color: var(--single); } .stage-spreading { color: #f08a4b; } .stage-major { color: var(--disputed); }
.sev-3 { color: var(--single); } .sev-4 { color: #f08a4b; } .sev-5 { color: var(--disputed); }
.sigcard h3 { margin: 10px 0 6px; font-size: 16px; }
.outs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
#developing h2, #topics-h { margin-top: 8px; }

/* scrollable timeline */
.tl-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.tl-head h2 { margin: 0; }
.tl-toggle { margin-left: auto; font: inherit; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.tl-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--primary); }
.tl-wrap { position: relative; margin-top: 12px; }
.tl-wrap::after { content: ""; position: absolute; left: 0; right: 10px; bottom: 0; height: 36px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }
.timeline.tl-scroll { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; outline-offset: 4px; }
.timeline.tl-scroll:focus-visible { outline: 2px solid var(--primary); }
.timeline .tl-month { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 4px 0 6px 18px; margin-left: -2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline .tl-month::before { display: none; }
.timeline li.major::before { width: 12px; height: 12px; left: -7px; top: 5px; box-shadow: 0 0 0 3px rgba(229,115,107,.25); background: var(--disputed); }
.timeline li.major .tl-date { color: var(--text); font-weight: 600; }

/* front page: featured + small */
.feat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .feat-grid:has(.feat-card + .feat-card) { grid-template-columns: 1fr 1fr; } }
.feat-card { display: grid; color: inherit; overflow: hidden; padding: 0; }
.feat-card:hover { border-color: var(--primary); text-decoration: none; }
@media (min-width: 640px) { .feat-grid:not(:has(.feat-card + .feat-card)) .feat-card { grid-template-columns: 5fr 6fr; } }
.feat-img img, .feat-img .noimg { display: block; width: 100%; height: 100%; min-height: 200px; max-height: 320px; object-fit: cover; background: var(--bg); }
.feat-body { padding: 18px; display: grid; gap: 10px; align-content: start; }
.feat-body h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.feat-sum { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.small-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 8px; }
.small-card { display: grid; gap: 6px; padding: 12px 14px; color: inherit; align-content: start; }
a.small-card:hover { border-color: var(--primary); text-decoration: none; }
.small-card h4 { margin: 0; font-size: 15px; line-height: 1.3; }
#cards h2 { margin-top: 28px; }
.emerging { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 14px; }
.emerging > summary { cursor: pointer; color: var(--text); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.emerging-title { color: var(--muted); }

/* featured 2x2 + status */
@media (min-width: 900px) { .feat-grid:has(.feat-card:nth-child(3)) { grid-template-columns: 1fr 1fr; } .feat-grid:has(.feat-card:nth-child(3)) .feat-card { grid-template-columns: 1fr; } }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spark-wrap { color: var(--primary); display: inline-flex; }
.spark { display: block; }
.status-rising { color: var(--disputed); } .status-peaking { color: #f08a4b; } .status-sustained { color: var(--single); }
.status-fading { color: var(--muted); } .status-quiet { color: var(--muted); }
.status-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; }

/* chapters */
.ch-head { font-size: 14px; font-weight: 600; margin: 18px 0 10px; color: var(--text); }
details.chapter { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
details.chapter > summary { cursor: pointer; list-style: none; }
details.chapter > summary::before { content: "▸ "; color: var(--muted); }
details.chapter[open] > summary::before { content: "▾ "; }

/* community */
.account { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
nav .account { float: right; }
.small-btn { padding: 6px 12px; font-size: 13px; text-decoration: none; display: inline-block; }
.linkbtn { font: inherit; font-size: 13px; color: var(--primary); background: none; border: 0; padding: 0; cursor: pointer; }
.linkbtn[aria-pressed="true"] { color: var(--ok); }
.votes { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.vote { font: inherit; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; cursor: pointer; }
.vote.on { color: var(--text); border-color: var(--primary); }
.vote:disabled { cursor: default; opacity: .6; }
.suggest { margin-top: 12px; padding: 16px; }
.suggest h3 { margin: 0 0 10px; font-size: 15px; }
.suggest-form { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .suggest-form { grid-template-columns: 2fr 1fr auto; } }
.suggest-form input { padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
ul.plain { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; z-index: 50; max-width: 90vw; }
.ts-box { position: fixed; right: 12px; bottom: 12px; z-index: 40; }

/* languages */
.lang-switch { margin-left: 12px; color: var(--muted); }
.lang-switch b { color: var(--text); }
nav .lang-switch { float: right; margin-right: 12px; }
.mt-note a { color: var(--primary); }

/* ---------- v4: brand, home grid, status band, lead time, sources, timeline cue, sharing ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand-sm { font-size: 15px; gap: 6px; margin-right: 12px; }
.topbar { align-items: center; }
.topbar { justify-content: flex-start; gap: 6px 14px; margin-bottom: 18px; }
.tagline { font-size: 16px; font-weight: 500; color: var(--text); }
.topbar .lang-switch, .topbar .account { margin-left: auto; }
.topbar .lang-switch + .account { margin-left: 12px; }
@media (max-width: 640px) { .tagline { font-size: 14px; } }

/* featured: always two across on desktop; an odd last card spans the row as a wide card */
@media (min-width: 900px) {
  .feat-grid, .feat-grid:has(.feat-card + .feat-card), .feat-grid:has(.feat-card:nth-child(3)) { grid-template-columns: 1fr 1fr; }
  .feat-grid .feat-card, .feat-grid:has(.feat-card:nth-child(3)) .feat-card { grid-template-columns: 1fr; }
  .feat-grid > .feat-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .feat-grid > .feat-card:last-child:nth-child(odd) .feat-img img { max-height: 300px; min-height: 260px; }
}
.feat-img img { aspect-ratio: 16 / 9; height: auto; }

/* emerging: always visible, four across */
.emerging { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 4px; }
.emerging h2 { margin-top: 20px; }
.emerging > p { margin: -4px 0 12px; max-width: 90ch; }
.emerging-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .emerging-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .emerging-grid { grid-template-columns: repeat(4, 1fr); } }

/* event head: taller image that adapts to the screen */
.head .hero img { aspect-ratio: 16 / 9; height: auto; max-height: 60vh; }
@media (min-width: 820px) {
  .head { grid-template-columns: minmax(0, 1fr) 400px; }
  .head .hero img { aspect-ratio: 4 / 3; height: auto; max-height: 520px; }
}
@media (min-width: 1100px) { .head .hero img { aspect-ratio: 3 / 2; } }

/* status band: a clear label for where the story stands, with the attention chart at readable size */
.status-band { display: grid; gap: 14px 24px; align-items: center; margin: 22px 0 0; padding: 16px 18px; }
@media (min-width: 820px) { .status-band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.att { margin: 0; color: var(--primary); }
.att-chart { display: block; width: 100%; height: 96px; }
.att-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.att-area { fill: currentColor; opacity: .14; }
.att-dot { fill: currentColor; stroke: var(--panel); stroke-width: 2; }
.att-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.att-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.sb-text { display: grid; gap: 4px; justify-items: start; }
.sb-status { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sb-line { font-size: 20px; font-weight: 700; line-height: 1.25; }
.sb-note { font-size: 16px; color: var(--muted); }
.status-band #watch { margin-top: 6px; }

/* lead time: two across, each card spread over its full width */
.lead { grid-template-columns: 1fr; }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1fr; } }
.lead-card { display: grid; gap: 10px; align-content: start; }
.lead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.lead-then { text-align: right; }
.lead-name { font-weight: 600; overflow-wrap: anywhere; }
.lead-gap { display: grid; justify-items: center; gap: 2px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.lead-arrow { width: 72px; height: 2px; background: var(--line); position: relative; }
.lead-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line); border-right: 0; }
@media (max-width: 480px) { .lead-row { grid-template-columns: 1fr; } .lead-then { text-align: left; } .lead-gap { justify-items: start; } .lead-arrow { display: none; } }

/* sources: 3 x 3, identical cards, the rest behind "show all" */
.sources { grid-template-columns: 1fr; }
@media (min-width: 620px) { .sources { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .sources { grid-template-columns: repeat(3, 1fr); } }
.pv { position: relative; display: block; height: 130px; margin: -12px -12px 12px; background: var(--bg); overflow: hidden; }
.pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv .pv-tile { padding: 0; font-size: inherit; position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: currentColor; background: linear-gradient(135deg, rgba(255,255,255,.04), transparent); }
.pv .pv-tile b { font-size: 34px; line-height: 1; opacity: .85; }
.pv .pv-tile span { display: block; padding: 0; font-size: 12px; color: var(--muted); }
.pv .pv-credit { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 4px; font-size: 11px; color: #d6dbe3; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.more-btn { display: block; margin: 12px auto 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.more-btn:hover { border-color: var(--primary); }

/* timeline: visible scrollbar, a "scroll" rail on the right and a button under the list */
.tl-wrap::after { right: 10px; }
.tl-wrap.tl-at-end::after { opacity: 0; }
.timeline.tl-scroll { scrollbar-width: auto; scrollbar-color: var(--muted) var(--panel); }
.timeline.tl-scroll::-webkit-scrollbar { width: 8px; }
.timeline.tl-scroll::-webkit-scrollbar-track { background: var(--panel); border-radius: 8px; }
.timeline.tl-scroll::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; }
.tl-more { margin-top: 10px; }

/* sharing */
.share { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.share-btn:hover { color: var(--text); border-color: var(--primary); }
.head-share { margin-top: 12px; }
.lead-top .share-btn span, .sec-head .share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-top .share-btn, .sec-head .share-btn { padding: 5px 7px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 12px; }
.sec-head h2 { margin: 0; }
.claim-share { padding: 0 14px 12px; }
.claim:target, .claim[open]:target { border-color: var(--primary); }
@media (max-width: 819px) { .status-band .sb-text { order: -1; } }

/* ---------- v5 ---------- */
/* emerging: one row, scrolls sideways, most important first */
.emerging-row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--muted) var(--panel); }
.emerging-row > * { scroll-snap-align: start; }
@media (min-width: 620px) { .emerging-row { grid-auto-columns: calc((100% - 10px) / 2); } }
@media (min-width: 1000px) { .emerging-row { grid-auto-columns: calc((100% - 30px) / 4); } }
.emerging-row::-webkit-scrollbar { height: 8px; }
.emerging-row::-webkit-scrollbar-track { background: var(--panel); border-radius: 8px; }
.emerging-row::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; }

/* event head: picture and attention chart on the left, story and status on the right */
.head-media { display: grid; gap: 14px; min-width: 0; }
.head .hero { order: 0; }
.att { margin: 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--primary); }
.att-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.att-legend { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.lg-solid, .lg-dot { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--primary); }
.lg-dot { border-top: 2.5px dotted #9cc9ff; margin-left: 8px; }
.att-chart { height: 120px; }
.att-fc { fill: none; stroke: #9cc9ff; stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.att-band { fill: #9cc9ff; opacity: .12; }
.att-now { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .6; }
.att-axis { position: relative; display: flex; justify-content: space-between; height: 18px; margin-top: 4px; }
.att-now-lbl { position: absolute; transform: translateX(-50%); }
.att-now-lbl:last-child { position: static; transform: none; }
.att-note { margin: 8px 0 0; color: var(--muted); }
.sb-text { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sb-line { font-size: 18px; }

/* On X: cards in a row share one height */
.posts { align-items: stretch; }
@media (min-width: 820px) { .posts { align-items: stretch; } }
.post { display: flex; flex-direction: column; }
.post-foot { margin-top: auto; padding-top: 10px; }

/* v6: attention chart full width under the head */
.head + .att { margin-top: 22px; }
.att-chart { height: 150px; }

/* discussion */
.discussion { margin-top: 8px; }
.cmt-form { display: grid; gap: 8px; margin: 10px 0 16px; }
.cmt-form textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.cmt-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.cmt-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cmts { gap: 10px; }
.cmt { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.cmt-own { border-style: dashed; }
.cmt-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmt-text { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-foot { display: flex; gap: 8px; align-items: center; }
.cmt-foot .creport { margin-left: auto; color: var(--muted); }
.report-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.report-form select { font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-left: 6px; max-width: 100%; }
.notice ul { margin: 0; }
.rules { max-width: 72ch; }
.rules li { margin-bottom: 6px; }

/* lead time: what each side said */
.lead-row { align-items: start; }
.lead-gap { align-self: center; }
.lead-said { margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lead-then .lead-said { border-left: 0; border-right: 2px solid var(--line); padding: 0 10px 0 0; }
.lead-orig { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) { .lead-then .lead-said { border-right: 0; border-left: 2px solid var(--line); padding: 0 0 0 10px; } }

.lead-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-quotes .lead-said { margin: 0; -webkit-line-clamp: 3; }
@media (max-width: 480px) { .lead-quotes { grid-template-columns: 1fr; } .lead-quotes .lead-then { text-align: left; } }

/* lead time v3: header (gap + label), two columns split by a faint line, footer */
.lead-card { display: grid; gap: 14px; padding: 16px 18px; align-content: start; }
.lead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lead-headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.lead-card .lead-gap { display: inline; font-size: 26px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.lead-label { font-size: 13px; color: var(--muted); }
.lead-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 14px; }
.lead-side { display: grid; gap: 6px; align-content: start; min-width: 0; }
.lead-side:first-child { padding-right: 16px; }
.lead-side + .lead-side { padding-left: 16px; border-left: 1px solid var(--line); }
.lead-kicker { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lead-card .lead-name { font-weight: 600; }
.lead-card .lead-said, .lead-then .lead-said { margin: 2px 0 0; padding: 0; border: 0; font-size: 13px; line-height: 1.45; color: var(--text); -webkit-line-clamp: 4; }
.lead-card .lead-orig { margin-top: 2px; font-size: 12px; }
.lead-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.sec-note { margin: -6px 0 12px; }
@media (max-width: 520px) {
  .lead-cols { grid-template-columns: 1fr; gap: 14px; }
  .lead-side:first-child { padding-right: 0; }
  .lead-side + .lead-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
.lead-headline { flex-direction: column; align-items: flex-start; gap: 4px; }
.lead-top .share { flex-wrap: nowrap; flex-shrink: 0; }
.lead-card .lead-gap { align-self: flex-start; justify-items: start; text-align: left; }

.signin-prompt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }

/* account chip + avatars */
.account { gap: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel); border: 1px solid var(--line); }
.avatar-sm { width: 26px; height: 26px; }
.avatar-none { display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
/* threads */
.cmts-scroll { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--muted) var(--panel); }
.cmt-row { display: flex; gap: 10px; align-items: flex-start; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-replies { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.cmt-replies .cmt { background: transparent; border: 0; padding: 4px 0 0; }
.cmt-replies .avatar { width: 26px; height: 26px; }
.cthread { margin-top: 6px; font-size: 13px; }
.reply-form { margin: 10px 0 4px; }
.reply-form .cmt-form-foot { justify-content: flex-end; }
@media (max-width: 520px) { .cmt-replies { padding-left: 8px; } }

.official-post { border-left: 3px solid var(--primary); }

/* ---------- every grid lines up: cards in a row share the tallest height, footers sit at the bottom ---------- */
@media (min-width: 820px) { .claims { align-items: stretch; } }
.claim { display: flex; flex-direction: column; }
.claim > summary { flex: 1; display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.claim > summary .counts { align-self: end; }
.claim[open] > summary { flex: 0 0 auto; }
.src { display: flex; flex-direction: column; }
.src > p:last-of-type { margin-top: auto; padding-top: 6px; }
.feat-card { align-content: stretch; }
.feat-body { grid-template-rows: auto auto 1fr auto auto; }
.feat-body .feat-foot { align-self: end; }
.small-card { grid-template-rows: auto auto 1fr auto; }
.emerging-row > .small-card { height: 100%; }
.sig-grid { align-items: stretch; }
.lead { align-items: stretch; }
.lead-card { grid-template-rows: auto 1fr auto; }

.sb-x { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.x-up { color: var(--disputed); font-weight: 600; } .x-down { color: var(--ok); font-weight: 600; }

/* contact */
.contact-form { display: grid; gap: 14px; max-width: 640px; margin-top: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { padding: 10px 12px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.contact-form textarea { resize: vertical; }
.contact-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .5; cursor: default; }
.site-foot { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
