/* Incident reports and topic hubs (server-rendered SEO pages). Same tokens as styles.css. */
:root {
  color-scheme: dark;
  --page: #0b0d10;
  --surface-1: #14171c;
  --surface-2: #1b1f26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #eceef1;
  --text-secondary: #9aa1ab;
  --text-tertiary: #6b727d;
  --link: #6aa9f2;
  --critical: #dc3c3d;
  --warning: #fbb315;
  --good: #0aac23;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text-primary); font: 17px/1.65 var(--font); }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
.muted { color: var(--text-secondary); }

.site-head { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface-1); font-size: 15px; }
.site-head .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.brand-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 0 4px rgba(220, 60, 61, 0.2); }
.site-head .hub-link { color: var(--text-secondary); text-decoration: none; }
.site-head .hub-link:hover { color: var(--text-primary); }
.site-head .live-link { margin-left: auto; color: var(--text-primary); text-decoration: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 12px; }

.page { max-width: 760px; margin: 0 auto; padding: 20px 24px 40px; }
.page.hub { max-width: 900px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--text-secondary); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--text-tertiary); }
.crumbs a { color: var(--text-secondary); }

h1 { font-size: clamp(28px, 4.2vw, 38px); line-height: 1.2; margin: 4px 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 22px; margin: 34px 0 8px; }
h3 { font-size: 18px; margin: 0 0 4px; line-height: 1.35; }
.eyebrow { margin: 0; font-size: 14px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.dek { font-size: 19px; color: var(--text-secondary); margin: 0 0 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag, .status { font-size: 12.5px; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-secondary); }
.tag.ai { color: #b9a4ff; border-color: rgba(185, 164, 255, 0.4); }
.tag.attr.reclassified { color: #f08ab4; border-color: rgba(226, 77, 139, 0.5); }
.tag.attr.suspected { color: #e9b44c; border-color: rgba(210, 142, 5, 0.5); }
.tag.attr.disputed { color: var(--text-primary); }
.status.ongoing { color: #ff8a8a; border-color: rgba(220, 60, 61, 0.6); }
.status.investigating { color: var(--warning); border-color: rgba(251, 179, 21, 0.5); }
.status.resolved { color: #5fd07a; border-color: rgba(10, 172, 35, 0.5); }

.attr-note { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-1); border-left: 3px solid var(--text-tertiary); font-size: 15.5px; }
.attr-note.reclassified { border-left-color: #e24d8b; }
.attr-note.suspected { border-left-color: #d28e05; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 22px 0 12px; }
.fact { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.fact-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.fact-value { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.kind.reported { color: #5fd07a; }
.kind.estimated { color: var(--warning); }
.kind.modeled { color: #b9a4ff; }

.when { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; font-size: 15.5px; }
.when dt { color: var(--text-secondary); }
.when dd { margin: 0; }
.impact { padding-left: 20px; }
.impact li { margin-bottom: 8px; }
.sources li { margin-bottom: 8px; }

.related { margin-top: 40px; padding: 18px 20px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; }
.related h2 { margin-top: 0; font-size: 19px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 8px 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.related li:first-child { border-top: 0; }
.related li .muted { font-size: 14px; }
.related .more { font-weight: 600; }

.hub-head p { color: var(--text-secondary); }
.hub-head .covers { color: var(--text-primary); font-size: 15.5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 20px 0 8px; }
.stats > div { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; }
.stat { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.card > a { text-decoration: none; color: var(--text-primary); }
.card > a:hover h3 { text-decoration: underline; }
.card p { margin: 4px 0; font-size: 15.5px; }
.card-meta { color: var(--text-secondary); font-size: 14px !important; }

.site-foot { border-top: 1px solid var(--border); padding: 16px 24px 28px; font-size: 14px; max-width: 900px; margin: 0 auto; }

@media (max-width: 560px) {
  .site-head { flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; }
  .page { padding: 16px; }
  .site-head .hub-link { display: none; }
}

.byline { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 10px; }
.brief { margin: 14px 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--border); }
.brief p { margin: 0 0 8px; }
.brief p:last-child { margin-bottom: 0; }
.faq dt { font-weight: 650; margin-top: 14px; }
.faq dd { margin: 4px 0 0; }
.updates { padding-left: 20px; font-size: 15.5px; }
.cite { font-size: 14px; margin-top: 18px; }

.hero { margin: 16px 0; }
.hero img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.card.has-thumb { display: grid; grid-template-columns: 200px 1fr; column-gap: 16px; }
.card.has-thumb > *:not(.thumb) { grid-column: 2; }
.card .thumb { grid-row: 1 / span 4; align-self: start; }
.card .thumb img { display: block; width: 200px; height: auto; border-radius: 8px; border: 1px solid var(--border); }
@media (max-width: 560px) {
  .card.has-thumb { grid-template-columns: 1fr; }
  .card.has-thumb > * { grid-column: 1 !important; }
  .card .thumb { grid-row: auto; margin-bottom: 8px; }
  .card .thumb img { width: 100%; }
}

/* ads (lib/ads.js): labelled, height reserved to avoid layout shift, collapsed when unfilled */
.ad { margin: 28px 0; padding: 8px 0 0; border-top: 1px solid var(--border); min-height: 120px; }
.ad-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 6px; }
.ad ins.adsbygoogle { min-height: 100px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
