@import url("fonts.css");
/* Static pages: the readable layer under the Atlas.
 *
 * Mobile first, one column, no JavaScript. They use the Atlas's own faces (Geist, Bricolage Grotesque for
 * headings and big numbers), loaded with font-display: swap so text is on screen at once in the fallback
 * face. Every size is set in relative units that respect the reader's own font size.
 */
:root {
  --ground: #edf1ef; --card: #fff; --ink: #0f1a17; --ink-2: #3c4a45; --ink-3: #5f6d68;
  --line: rgba(15, 26, 23, 0.12); --accent: #c27a06; --link: #1d4fbf; --species: #218a5b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  padding: 0 16px env(safe-area-inset-bottom, 0px);
}
a { color: var(--link); }
main, .top, footer { max-width: 44rem; margin: 0 auto; }
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 18px 0 10px; }
.brand { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--species); font-weight: 800; }
.tag { color: var(--ink-3); font-size: 0.82rem; }
.crumbs { font-size: 0.8rem; color: var(--ink-3); margin: 6px 0 14px; }
h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.18; letter-spacing: -0.02em; margin: 6px 0 12px; text-wrap: balance; }
h2 { font-size: 1.14rem; margin: 30px 0 10px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; color: var(--ink-2); }
.lede { font-size: 1.06rem; color: var(--ink); }
.small { font-size: 0.82rem; color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: 0.86rem; }
.account { background: var(--card); border-radius: 14px; padding: 16px 18px 6px; margin: 14px 0 6px; }
.account p:first-child { color: var(--ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; background: var(--card);
  border-radius: 14px; padding: 16px 18px; margin: 0; }
.facts dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.facts dd { margin: 0; }
ul { padding-left: 1.1rem; }
ul.cols { list-style: none; padding: 0; display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
ul.cols li, ul.cases li, ul.sources li { background: var(--card); border-radius: 10px; padding: 9px 12px; }
ul.cases, ul.sources { list-style: none; padding: 0; display: grid; gap: 4px; }
ul.cases a, ul.sources a { text-decoration: none; }
ul.cases a:hover, ul.sources a:hover { text-decoration: underline; }
.pill { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; margin: 0 6px 8px 0; text-decoration: none; font-size: 0.9rem; min-height: 40px; line-height: 26px; }
.pill:hover { border-color: var(--accent); }
footer { border-top: 1px solid var(--line); margin-top: 38px; padding: 16px 0 34px; }
footer p { font-size: 0.86rem; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols2 h3 { margin: 0 0 4px; font-size: 1rem; }
@media (max-width: 640px) { .cols2 { grid-template-columns: 1fr; } }

/* Risk pathways page */
.eyebrow { font: 700 0.74rem/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin: 10px 0 6px; }
.answer { background: var(--card); border-radius: 14px; padding: 4px 18px 8px; border-left: 4px solid var(--accent); margin: 16px 0; }
.answer h2 { margin: 12px 0 6px; font-size: 1rem; }
.answer li { margin: 4px 0; color: var(--ink-2); }
figure.pw { margin: 18px 0 8px; background: var(--card); border-radius: 16px; padding: 12px; }
figure.pw figcaption { font-size: 0.8rem; color: var(--ink-3); margin-top: 6px; }
svg.pathway { width: 100%; height: auto; display: block; }
svg.pathway .pw-t { font: 700 15px system-ui, sans-serif; }
svg.pathway .pw-s { font: 11.5px system-ui, sans-serif; fill: var(--ink-3); }
svg.pathway .pw-n { font: 800 14px system-ui, sans-serif; }
svg.pathway .pw-g { font: 600 11.5px system-ui, sans-serif; fill: var(--ink-3); }
svg.pathway a:hover circle, svg.pathway a:focus circle { stroke-width: 4; }
.link { background: var(--card); border-radius: 14px; padding: 14px 18px 4px; margin: 12px 0; scroll-margin-top: 16px; }
.link-h { display: flex; align-items: center; gap: 10px; }
.link-h h2 { margin: 0; font-size: 1.06rem; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2.4px solid var(--c); color: var(--c); display: grid; place-items: center; font-weight: 800; }
.badge { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  border-radius: 8px; padding: 3px 8px; margin: 8px 0 10px; }
.link:target { outline: 2px solid var(--accent); }
ol.refs li { margin: 4px 0; }
@media (max-width: 560px) { svg.pathway .pw-s { display: none; } }
.pw-list { display: none; list-style: none; padding: 0; margin: 0; }
.pw-list a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 4px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); }
.pw-list .num { width: 28px; height: 28px; font-size: 0.86rem; }
@media (max-width: 560px) { svg.pathway { display: none; } .pw-list { display: block; } }

/* Answer pages */
.big { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 8px; line-height: 1.05; }
.big span { display: block; font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-top: 4px; }
ul.bars { list-style: none; padding: 0; margin: 16px 0; background: var(--card); border-radius: 14px; padding: 12px 16px; }
ul.bars li { display: grid; grid-template-columns: minmax(8rem, 38%) 1fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: 0.9rem; }
ul.bars .b { background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 6px; height: 10px; overflow: hidden; }
ul.bars .b i { display: block; height: 100%; border-radius: 6px; }
ul.bars .n { font-variant-numeric: tabular-nums; color: var(--ink-2); }
ul.who { list-style: none; padding: 0; display: grid; gap: 6px; }
ul.who li { background: var(--card); border-radius: 10px; padding: 9px 12px; }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { display: block; }

/* One design system with the Atlas (jury fixes, 2026-10-19): the same ground, glass cards, logotype and
 * colour meanings; a hover answer on everything clickable; page changes cross-fade; 44 px targets on phones;
 * small text in the darker ink of each colour so it passes 4.5:1. */
:root { --accent-ink: #8a5300; --glass: rgba(255, 255, 255, 0.78); --edge: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 18px 40px -24px rgba(15, 26, 23, 0.3), 0 2px 8px -3px rgba(15, 26, 23, 0.07);
  --ease: cubic-bezier(0.2, 0, 0, 1); --link: #1d4fbf; }

/* Page changes (Impeccable: 300-500 ms for a view change, exit faster than entrance, natural ease-out).
   The old page lets go with a short blur, the new one settles up into place; the logotype stays put. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms cubic-bezier(0.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 380ms cubic-bezier(0.16, 1, 0.3, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; filter: blur(3px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(37, 99, 235, 0.07), transparent 60%),
  radial-gradient(900px 500px at -10% 10%, rgba(33, 138, 91, 0.08), transparent 60%), var(--ground); background-attachment: fixed; }
.brand { view-transition-name: brand; }
h1 { view-transition-name: title; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.account, .facts, ul.cols li, ul.cases li, ul.sources li, .answer, figure.pw, .link, ul.bars, ul.who li, .pill {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), var(--glass)); border: 1px solid var(--edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
@media (prefers-reduced-transparency: reduce) { .account, .facts, ul.cols li, ul.cases li, ul.sources li, .answer, .link, .pill { backdrop-filter: none; background: #fff; } }
ul.cols { gap: 8px; }
ul.cols li, ul.cases li, ul.sources li, ul.who li { padding: 0; border-radius: 14px; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
ul.cols li > a, ul.cases li > a, ul.sources li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
ul.cols li > a::after, ul.cases li > a::after { content: "→"; color: var(--ink-3); transition: transform 180ms var(--ease), color 180ms; }
ul.cols li:hover, ul.cases li:hover, ul.sources li:hover { transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--species) 35%, transparent); }
ul.cols li:hover > a::after, ul.cases li:hover > a::after { transform: translateX(3px); color: var(--species); }
ul.who li { padding: 9px 12px; }
.pill { color: var(--ink); transition: background 180ms var(--ease), color 180ms, transform 180ms var(--ease); }
.pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.brand { transition: transform 180ms var(--ease); }
.brand:hover { transform: translateY(-1px); }
.big { color: var(--ink); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--ink);
  color: #fff; font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } @view-transition { navigation: none; } }
.chart-t { font-size: 0.86rem; color: var(--ink-2); margin: 2px 4px 4px; }
figure.pw ul.bars { box-shadow: none; border: 0; background: transparent; margin: 0; }
pre.cite { white-space: pre-wrap; overflow-wrap: anywhere; font: 0.84rem/1.5 ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; user-select: all; }
.qn { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-3); margin-right: 4px; }

/* Browse rows read as data: name, a fixed right-aligned count column, the arrow, and a thin bar along the
   foot scaled to the largest row in the list. */
ul.cols { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
ul.cols li > a { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem 1rem; align-items: center;
  background: linear-gradient(var(--bar, var(--species)), var(--bar, var(--species))) 12px calc(100% - 6px) / calc((100% - 24px) * var(--w, 0) / 100) 3px no-repeat; }
ul.cols li > a { padding-bottom: 15px; }
ul.cols li > a .n { text-align: right; font-variant-numeric: tabular-nums; }
/* Answers index: audience labels under each question. */
.qlist .auds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.qlist .auds span { font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; background: rgba(15, 26, 23, 0.06); color: var(--ink-2); }
/* Answer cards: the card lifts and tints; only the question is underlined. */
.qlist li > a:hover { text-decoration: none; }
.qlist li > a:hover .qq { text-decoration: underline; text-decoration-color: var(--link); }
footer a, .crumbs a { display: inline-block; min-height: 24px; line-height: 24px; }

/* One system with the Atlas: its faces, its headline weight, tabular figures for numbers. */
body { font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
h1, h2, .brand, .answer .num, .big { font-family: "Bricolage Grotesque", "Geist", "Segoe UI", sans-serif; letter-spacing: -0.03em; }
h1 { font-weight: 700; }
.num, .n, td.num { font-variant-numeric: tabular-nums; }
/* The logotype answers the pointer: the mark turns and the word gains a drawn underline. */
.brand { display: inline-flex; align-items: center; gap: 8px; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.brand img { transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.brand:hover { background-size: 100% 2px; }
.brand:hover img { transform: rotate(-14deg) scale(1.06); }
p.small a { display: inline-block; min-height: 24px; line-height: 24px; }
@media (prefers-reduced-motion: reduce) { .brand, .brand img { transition: none; } }
/* Breadcrumbs answer the pointer like the logotype: a drawn underline. */
.crumbs a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px;
  background-position: 0 100%; background-repeat: no-repeat; transition: background-size 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.crumbs a:hover { background-size: 100% 1.5px; }
ul.who a, ul.sources a, .answer a, main p a { display: inline-block; min-height: 24px; line-height: 24px; }
