/* Happened in AI. Editorial layout with scientific precision. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #F7F7F3;
  --surface: #FFFFFF;
  --ink: #14232B;
  --slate: #52616A;
  --rule: #D8DEDC;
  --accent: #087C82;
  --accent-hover: #075F64;
  --amber: #F1B84B;
  --amber-ink: #14232B;
  --amber-soft: #FBEFD4;
  --red: #B94A48;
  --teal-soft: #EEF6F5;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 76rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A20;
    --surface: #14242B;
    --ink: #E7ECEA;
    --slate: #A5B3B8;
    --rule: #2B3D45;
    --accent: #5CC6CB;
    --accent-hover: #8ED9DC;
    --amber: #F1B84B;
    --amber-ink: #14232B;
    --amber-soft: #3A3120;
    --red: #EB8A87;
    --teal-soft: #17343A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A20;
  --surface: #14242B;
  --ink: #E7ECEA;
  --slate: #A5B3B8;
  --rule: #2B3D45;
  --accent: #5CC6CB;
  --accent-hover: #8ED9DC;
  --amber: #F1B84B;
  --amber-ink: #14232B;
  --amber-soft: #3A3120;
  --red: #EB8A87;
  --teal-soft: #17343A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 48rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.preview-banner { background: var(--amber); color: var(--amber-ink); font-size: .875rem; padding: .5rem var(--gutter); text-align: center; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--bg); }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand__word { white-space: nowrap; }
.brand .mark { width: 1.7rem; height: 1.7rem; color: var(--accent); flex: none; }
.brand--small { font-size: 1.125rem; }
.masthead__tools { display: flex; align-items: center; gap: .5rem; }
.search-form { display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); padding-left: .85rem; }
.search-form input { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; width: 11rem; padding: .35rem 0; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.icon-button { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.icon-button svg { width: 1.25rem; height: 1.25rem; }
.icon-button:hover { background: var(--teal-soft); }
.newsletter-link { font-size: .95rem; font-weight: 600; text-decoration: none; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--accent); }
.newsletter-link:hover { background: var(--teal-soft); }

.nav { border-top: 1px solid var(--rule); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: .7rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

@media (max-width: 40rem) {
  .brand { font-size: 1.15rem; }
  .search-form { border: 0; background: none; padding: 0; }
  .search-form input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .search-form:focus-within { outline: none; }
  .newsletter-link { padding: .3rem .6rem; font-size: .875rem; }
  .nav ul { gap: 1.1rem; }
}

/* ---------- Shared bits ---------- */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0 0 .4rem; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.label { font-weight: 500; color: var(--ink); }
.label--opinion { color: var(--red); }
.label--analysis::before, .label--explainer::before, .label--research-watch::before, .label--opinion::before, .label--news::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; vertical-align: .05em; border: 1.5px solid currentColor; }
.label--news::before { background: currentColor; }
.label--analysis::before { border-radius: 50%; }
.label--research-watch::before { transform: rotate(45deg); }
.label--opinion::before { border-radius: 50%; background: currentColor; }
.category { color: var(--slate); text-decoration: none; }
.category:hover { color: var(--accent); text-decoration: underline; }
.developing { background: var(--amber); color: var(--amber-ink); padding: .05rem .4rem; font-weight: 500; border-radius: 2px; }
.sample-flag { border: 1px dashed var(--slate); color: var(--slate); padding: 0 .35rem; border-radius: 2px; }
.meta { font-family: var(--mono); font-size: .8rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin: 0 0 .5rem; }
.empty { color: var(--slate); font-style: italic; }
.more-link { font-size: .95rem; font-weight: 600; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 2px solid var(--ink); padding-top: .6rem; margin-bottom: 1rem; }
.section-head h2 { font-size: 1.25rem; margin: 0; }
.button { font: inherit; font-weight: 600; font-size: 1rem; background: var(--accent); color: var(--bg); border: 1px solid var(--accent); border-radius: 4px; padding: .6rem 1.1rem; cursor: pointer; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.toggle { font: inherit; font-size: .9rem; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Story cards ---------- */
.story__title { font-weight: 600; }
.story__title a { color: var(--ink); text-decoration: none; }
.story__title a:hover { color: var(--accent); text-decoration: underline; }
.story__summary { color: var(--slate); margin-bottom: .6rem; }
.story--lead .story__title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.story--lead .story__summary { font-size: 1.2rem; color: var(--ink); max-width: 38rem; }
.story--card .story__title { font-size: 1.3rem; }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list > li { border-top: 1px solid var(--rule); padding: 1.25rem 0; }
.story-list > li:first-child { border-top: 0; padding-top: 0; }

/* ---------- Homepage ---------- */
.home { padding-top: 1.75rem; padding-bottom: 3rem; }
.home__top { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.home__support .story { border-top: 1px solid var(--rule); padding-top: 1rem; margin-bottom: 1.25rem; }
.home__main, .home__side { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 60rem) {
  .home__top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .home__support { border-left: 1px solid var(--rule); padding-left: 2rem; }
  .home__support .story:first-child { border-top: 0; padding-top: 0; }
}
.home__clusters, .home__feature, .home__newsletter { margin-top: 3rem; }

/* The Brief */
.brief { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.brief__date { font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin: 0 0 .5rem; }
.brief__item { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.brief__item.is-developing { box-shadow: inset 3px 0 0 var(--amber); padding-left: .6rem; }
.brief__time { font-family: var(--mono); font-size: .85rem; color: var(--slate); padding-top: .15rem; }
.brief__headline { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin-bottom: .2rem; }
.brief__headline:hover { color: var(--accent); text-decoration: underline; }
.brief__takeaway { color: var(--slate); font-size: 1rem; margin: 0; }
.headlines-only .brief__takeaway, .headlines-only .brief__body .kicker { display: none; }
.headlines-only .brief__item { padding: .5rem 0; }

/* What's confirmed panel */
.confirmed-panel { border: 1px solid var(--rule); border-top: 4px solid var(--amber); background: var(--surface); padding: 1.25rem; }
.confirmed-panel__eyebrow { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.confirmed-panel__title { font-size: 1.2rem; }
.confirmed-panel__title a { color: var(--ink); text-decoration: none; }
.confirmed-panel__title a:hover { color: var(--accent); text-decoration: underline; }
.confirmed-panel ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 1rem; }
.confirmed-panel li { margin-bottom: .3rem; }
.cp-h { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin: 1rem 0 .4rem; }
.cp-h--claim, .cp-h--open { color: var(--slate); }

/* Clusters */
.cluster-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.cluster-card { background: var(--bg); padding: 1.1rem 1.2rem; }
.cluster-card h3 { font-size: 1.15rem; }
.cluster-card h3 a { color: var(--ink); text-decoration: none; }
.cluster-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.cluster-card p { font-size: .95rem; color: var(--slate); margin-bottom: .5rem; }
.cluster-card__count { font-family: var(--mono); font-size: .75rem; margin: 0; }
.cluster-grid--section { margin-bottom: 2.5rem; }
.section-subhead { font-size: 1.25rem; border-top: 2px solid var(--ink); padding-top: .6rem; }

/* Feature */
.feature { display: grid; gap: 1.5rem; }
@media (min-width: 50rem) { .feature:has(.feature__image) { grid-template-columns: 1fr 1fr; align-items: center; } }
.feature__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover { color: var(--accent); text-decoration: underline; }

/* Newsletter */
.newsletter { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--teal-soft); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 6px; }
.newsletter__bird { flex: none; width: 4.5rem; color: var(--ink); }
.bird__body { fill: var(--accent); }
.bird__wing { fill: var(--accent-hover); }
.bird__tail { fill: var(--accent-hover); }
.bird__beak { fill: var(--amber); }
.bird__eye { fill: var(--bg); }
.bird__signal { stroke: var(--accent); }
.newsletter h2 { font-size: 1.4rem; }
.newsletter-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.newsletter-form__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input, .search-page input { flex: 1 1 14rem; font: inherit; font-size: 1rem; padding: .55rem .75rem; border: 1px solid var(--slate); border-radius: 4px; background: var(--surface); color: var(--ink); min-width: 0; }
.newsletter-form__status { min-height: 1.5rem; margin: .5rem 0 0; font-size: .95rem; }
.newsletter-form__status.is-error { color: var(--red); }
.fine-print { font-size: .85rem; color: var(--slate); margin: 0; }
.hp { position: absolute; left: -9999px; }
.how-we-report-link { margin-top: 1rem; font-size: .95rem; }
@media (max-width: 30rem) { .newsletter { flex-direction: column; } }

/* ---------- Section & cluster pages ---------- */
.page-head { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.025em; }
.page-head__intro { color: var(--slate); max-width: 42rem; font-size: 1.15rem; }
.crumbs { padding-top: 1.25rem; font-size: .9rem; }
.crumbs + .page-head { padding-top: .5rem; }
.wrap > .story-list, .latest-list { max-width: 48rem; padding-bottom: 3rem; }
.cluster-layout { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 60rem) { .cluster-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.start-here { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); padding: 1.25rem; margin-bottom: 2rem; }
.side-box { border-top: 2px solid var(--ink); padding-top: .6rem; margin-bottom: 2rem; }
.side-box h2 { font-size: 1rem; }
.side-box p { font-size: .95rem; color: var(--slate); }
.terms { margin: 0; font-size: .95rem; }
.terms dt { font-weight: 600; margin-top: .75rem; }
.terms dd { margin: 0; color: var(--slate); }
.plain-list, .tag-list { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.plain-list li, .tag-list li { padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.count { font-family: var(--mono); font-size: .75rem; color: var(--slate); }

/* ---------- Article ---------- */
.article { padding-bottom: 3rem; }
.article__head { padding-top: 2rem; }
.article__head > * { max-width: 50rem; }
.article__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1rem; }
.article__summary { font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.article__byline { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .75rem 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.article__author { margin: 0; font-weight: 600; font-size: 1rem; }
.article__times { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--mono); font-size: .8rem; color: var(--slate); }
.article__times div { display: flex; gap: .4rem; }
.article__times dt { text-transform: uppercase; letter-spacing: .06em; }
.article__times dd { margin: 0; color: var(--ink); }
.correction-note { border-left: 4px solid var(--red); padding-left: .75rem; font-size: .95rem; }
.correction-note a { color: var(--red); }
.article__media { margin-bottom: 2rem; }
.article__media .figure { max-width: 52rem; }
.article__grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .article__grid { grid-template-columns: minmax(0, var(--measure)) minmax(0, 18rem); justify-content: space-between; } }
.article__main { max-width: var(--measure); }
.article__side-inner { position: sticky; top: 1rem; }

.key-facts, .why, .unknowns, .evidence, .corrections { margin-bottom: 2rem; }
.key-facts h2, .why h2, .unknowns h2, .evidence h2, .corrections h2, .related h2 { font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin-bottom: .6rem; }
.key-facts { background: var(--surface); border: 1px solid var(--rule); padding: 1.1rem 1.25rem; }
.key-facts ul, .unknowns ul, .verify ul { margin: 0; padding-left: 1.2rem; }
.key-facts li, .unknowns li, .verify li { margin-bottom: .4rem; }
.why p { font-size: 1.15rem; }
.verify { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 2rem; }
@media (min-width: 40rem) { .verify:has(.verify__col + .verify__col) { grid-template-columns: 1fr 1fr; } }
.verify__col { background: var(--bg); padding: 1rem 1.1rem; font-size: 1rem; }
.verify__col h3 { font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.verify__col--yes h3::before { content: "✓ "; color: var(--accent); }
.verify__col--claim h3::before { content: "? "; color: var(--slate); }
.unknowns { border-left: 4px solid var(--amber); padding-left: 1rem; }

.prose { font-size: 1.125rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--slate); }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.prose code { font-family: var(--mono); font-size: .9em; }
.prose--page { max-width: var(--measure); padding-bottom: 3rem; }

.sources { list-style: none; margin: 0; padding: 0; counter-reset: src; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 2rem 1fr; column-gap: .25rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.sources li::before { content: counter(src); grid-row: span 3; font-family: var(--mono); font-size: .85rem; color: var(--slate); }
.source__type { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.source__title { font-weight: 600; }
.source__meta { font-family: var(--mono); font-size: .8rem; color: var(--slate); }

.corrections { border-top: 2px solid var(--red); padding-top: .6rem; }
.corrections h2 { color: var(--red); }
.corrections ol { list-style: none; margin: 0; padding: 0; }
.corrections time, .corrections-log time { font-family: var(--mono); font-size: .8rem; color: var(--slate); display: block; }
.corrections-log { list-style: none; padding: 0; max-width: 48rem; }
.corrections-log li { border-top: 1px solid var(--rule); padding: 1rem 0; }
.corrections-log a { font-weight: 600; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.chip { display: inline-block; font-size: .85rem; padding: .2rem .7rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--company { font-family: var(--mono); font-size: .78rem; }

.related { margin-top: 3rem; }
.related h2 { border-top: 2px solid var(--ink); padding-top: .6rem; }
.related__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

/* Figures */
.figure { margin: 0 0 1rem; }
.figure img, .figure > svg, .figure__media > svg { display: block; width: 100%; background: var(--surface); border: 1px solid var(--rule); }
.figure figcaption { font-size: .85rem; color: var(--slate); margin-top: .5rem; }
.figure__credit { font-family: var(--mono); font-size: .75rem; }
.figure__flag { font-weight: 500; color: var(--ink); }
.story__image { margin-bottom: 1rem; }
.figure img { height: auto; }
.figure picture { display: block; }
.review-label { font-family: var(--mono); font-size: .7rem; color: var(--slate); }
.review-notice { padding: 1rem; border-left: 3px solid var(--accent); background: var(--surface); font-size: .95rem; margin-top: 1rem; }
.cluster-card__visual { display: block; color: inherit; text-decoration: none; }
.cluster-visual img { aspect-ratio: 3 / 2; object-fit: contain; }
.cluster-visual figcaption { font-size: .75rem; }
.list-visual { max-width: 40rem; margin-bottom: 1.2rem; }

/* Diagrams (inline SVG): colours follow the theme */
.dg-ink { fill: var(--ink); }
.dg-slate { fill: var(--slate); }
.dg-accent { fill: var(--accent); }
.dg-amber { fill: var(--amber); }
.dg-bg { fill: var(--bg); }
.dg-surface { fill: var(--surface); }
.dg-rule { stroke: var(--rule); }
.dg-line { stroke: var(--slate); }
.dg-accent-line { stroke: var(--accent); }
.figure svg text { font-family: var(--sans); }
.figure svg .dg-mono { font-family: var(--mono); }

/* Search */
.search-page { max-width: 40rem; margin-bottom: 1rem; }
.search-page label { display: block; font-weight: 600; margin-bottom: .4rem; }
.search-status { color: var(--slate); }
.search-results mark, .story-list mark { background: var(--amber-soft); color: inherit; }

/* 404 */
.not-found { padding: 4rem 0; text-align: center; }
.not-found .newsletter__bird { margin: 0 auto 1.5rem; width: 6rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: .2rem 0; }
.footer__tagline, .footer__legal { color: var(--slate); }
.footer__legal { font-size: .85rem; margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  a, .button, .chip, .toggle { transition: color .15s, background-color .15s, border-color .15s; }
}


/* ===== Search as you type ===== */
.search-form { position: relative; }
.search-form__key { font-family: var(--mono); font-size: .7rem; color: var(--slate); border: 1px solid var(--rule); border-radius: 4px; padding: 0 .35rem; line-height: 1.4; }
.search-form:focus-within .search-form__key { display: none; }
.suggest { position: absolute; top: calc(100% + .4rem); right: 0; width: min(30rem, calc(100vw - 2rem)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 12px 32px rgb(0 0 0 / .14); z-index: 20; padding: .35rem; }
.suggest__item, .suggest__all { display: block; padding: .55rem .7rem; border-radius: 4px; text-decoration: none; color: var(--ink); }
.suggest__item + .suggest__item { border-top: 1px solid var(--rule); }
.suggest__item.is-active, .suggest__item:hover, .suggest__all.is-active, .suggest__all:hover { background: var(--teal-soft); color: var(--ink); }
.suggest__meta { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); margin-bottom: .15rem; }
.suggest__meta .developing { font-size: .65rem; }
.suggest__title { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.suggest__all { font-size: .9rem; font-weight: 600; color: var(--accent); border-top: 1px solid var(--rule); margin-top: .2rem; }
.suggest__empty { margin: 0; padding: .7rem; font-size: .9rem; color: var(--slate); }
mark { background: var(--amber-soft); color: inherit; border-radius: 2px; padding: 0 .05em; }
@media (max-width: 40rem) { .search-form__key, .suggest { display: none; } }

/* Search filters */
.filters { border: 0; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.filters__group { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters__row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .95rem; }
.filters__row label { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin: 0; }
.filters select, .tz-pref select { font: inherit; font-size: .95rem; padding: .3rem .5rem; border: 1px solid var(--slate); border-radius: 4px; background: var(--surface); color: var(--ink); max-width: 100%; }
.chip-check { position: relative; margin: 0 !important; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; font-size: .85rem; font-weight: 600; padding: .25rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== Evidence line ===== */
.evidence-line { font-family: var(--mono); font-size: .75rem; line-height: 1.5; color: var(--slate); margin: 0 0 .5rem; }
.evidence-line strong { color: var(--ink); font-weight: 500; }
.evidence-line--compact { font-size: .7rem; margin: .25rem 0 0; }
.headlines-only .evidence-line--compact { display: none; }
.evidence-line--article { font-size: .8rem; margin-top: -.25rem; }

/* ===== New since last visit ===== */
.new-flag { background: var(--teal-soft); color: var(--accent); padding: .05rem .4rem; border-radius: 2px; font-weight: 500; }
.brief__item.is-new .brief__time { color: var(--accent); font-weight: 500; }

/* ===== Citations ===== */
.cites { white-space: nowrap; }
.cite { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .25rem; margin-left: .15rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; line-height: 1; text-decoration: none; color: var(--accent); border: 1px solid currentColor; border-radius: 3px; vertical-align: .1em; }
.cite:hover, .cite:focus-visible { background: var(--accent); color: var(--bg); }
.cite-pop { position: absolute; z-index: 30; max-width: min(22rem, calc(100vw - 16px)); background: var(--ink); color: var(--bg); border-radius: 6px; padding: .6rem .75rem; font-size: .85rem; line-height: 1.35; box-shadow: 0 8px 24px rgb(0 0 0 / .2); display: grid; gap: .2rem; pointer-events: none; }
.cite-pop__type, .cite-pop__meta { font-family: var(--mono); font-size: .7rem; opacity: .8; }
.cite-pop__type { text-transform: uppercase; letter-spacing: .05em; }
.sources li { scroll-margin-top: 5rem; border-radius: 4px; }
.sources li:target, .sources li.is-flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--amber-soft); } to { background: transparent; } }

/* ===== Updates on developing stories ===== */
.update-note { border-left: 4px solid var(--amber); padding-left: .75rem; font-size: .95rem; }
.update-note a { color: var(--ink); }
.updates { border: 1px solid var(--rule); border-top: 4px solid var(--amber); background: var(--surface); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.updates h2 { font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.updates ol { list-style: none; margin: 0; padding: 0; }
.updates li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.updates li:first-child { border-top: 0; }
.updates time { font-family: var(--mono); font-size: .8rem; color: var(--slate); }
.updates p { margin: .15rem 0 0; font-size: 1rem; }
.confirmed-panel__latest { font-size: .95rem; border-left: 3px solid var(--amber); padding-left: .6rem; margin: .5rem 0; }

/* ===== Article extras ===== */
.share { display: flex; align-items: center; gap: .6rem; }
.share__status { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.toc li { margin-bottom: .3rem; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 1.5rem; }

/* ===== Page heads: follow and RSS ===== */
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .75rem; }
.page-head__actions:empty { display: none; }
.follow[aria-pressed="true"]::before { content: "✓ "; }
.feed-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.feed-link svg { width: 1rem; height: 1rem; }
.chips--counted li { display: inline-flex; align-items: center; gap: .3rem; }
.section-head__links { display: flex; gap: 1rem; }
.section-head__note { font-size: .9rem; color: var(--slate); }

/* Your topics */
.home__yours { margin-top: 3rem; }
.yours-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.yours-grid .story { border-top: 1px solid var(--rule); padding-top: .75rem; }
.yours-grid .story__title { font-size: 1.1rem; }

/* ===== Figures: tools, data, dialog ===== */
.figure__media { position: relative; }
.figure__tools { display: flex; gap: .5rem; margin-top: .5rem; }
.figure__btn { font: inherit; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .6rem; cursor: pointer; }
.figure__btn:hover { border-color: var(--accent); color: var(--accent); }
.figure__btn[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.figure__data { overflow-x: auto; margin-top: .5rem; border: 1px solid var(--rule); background: var(--surface); }
.figure__data table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.figure__data th, .figure__data td { text-align: left; padding: .45rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.figure__data thead th { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.figure__data tbody th { font-weight: 600; }
.figure-dialog { width: min(72rem, 96vw); max-height: 94vh; border: 0; border-radius: 8px; padding: 2.75rem 1.25rem 1.25rem; background: var(--surface); color: var(--ink); }
.figure-dialog::backdrop { background: rgb(10 20 26 / .72); }
.figure-dialog__media svg { width: 100%; height: auto; display: block; }
.figure-dialog__caption { font-size: .9rem; color: var(--slate); margin: .75rem 0 0; }
.figure-dialog__close { position: absolute; top: .6rem; right: .6rem; font: inherit; font-size: .85rem; font-weight: 600; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .8rem; cursor: pointer; }
/* Small screens: keep chart text legible and pan inside the frame, not the page. */
@media (max-width: 30rem) {
  .article__media .figure--wide .figure__media { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); }
  .article__media .figure--wide .figure__media > svg { min-width: 34rem; border: 0; }
  .article__media .figure--wide .figure__media::after { content: "Swipe to see the whole graphic, or tap Expand"; position: sticky; left: 0; display: block; font-family: var(--mono); font-size: .7rem; color: var(--slate); padding: .3rem .5rem; background: var(--surface); }
}

/* ===== Daily Brief ===== */
.brief-page .page-head { margin-bottom: 1rem; }
.brief--day { margin-top: 1rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; padding: .75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 1rem 0; }
.day-list { list-style: none; margin: 0 0 3rem; padding: 0; }
.day-list li { border-top: 1px solid var(--rule); padding: 1rem 0; }
.day-list a { font-weight: 600; font-size: 1.1rem; }
.day-list p { margin: .3rem 0 0; color: var(--slate); font-size: .95rem; }
.brief__date a { color: inherit; text-decoration: none; }
.brief__date a:hover { color: var(--accent); text-decoration: underline; }

/* Footer time zone preference */
.tz-pref { font-size: .9rem; color: var(--slate); }

/* ===== Smooth page changes (supported browsers only) ===== */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

@media print {
  .masthead, .footer, .article__side, .related, .newsletter, .share, .page-head__actions, .pager, .figure__tools, .preview-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .brief__item { break-inside: avoid; }
}
.brief-page .page-head { border-bottom: 0; padding-bottom: 0; }
