/* elPagès web kit: shared base. Each site's site.css defines the tokens used here. */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 .5em; text-wrap: balance; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.wrap-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 16px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.head-nav { margin-left: auto; display: none; gap: 4px; }
.head-nav a, .menu-panel a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: var(--r-s); color: var(--muted); font-size: .95rem; transition: color .2s, background .2s; }
.head-nav a:hover, .head-nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .i { width: 24px; height: 24px; }
.menu-panel { position: absolute; right: 0; top: 52px; min-width: 230px; display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.menu-panel a { color: var(--ink); padding: 12px 14px; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: menu-in .2s cubic-bezier(.23,1,.32,1); transform-origin: top right; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
}
@media (max-width: 899px) { .menu-panel { position: fixed; left: 12px; right: 12px; top: 68px; min-width: 0; max-height: calc(100dvh - 84px); overflow-y: auto; } }
/* The header stays put while a cross-document view transition fades the page (language switch, links). */
.site-head { view-transition-name: site-head; }
@media (min-width: 900px) { .head-nav { display: flex; } .menu { display: none; } }
/* grouped nav (SITE["nav"] groups): a button per group and a panel of described links */
.nav-g { position: relative; }
.nav-gb { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px 8px 13px; border-radius: 999px; font-size: .92rem; color: var(--ink); transition: color .2s, background-color .2s; }
.nav-gb .i { width: 12px; height: 12px; opacity: .55; transition: transform .25s cubic-bezier(.23,1,.32,1); }
.nav-gb:hover, .nav-g.open .nav-gb, .nav-gb.cur { background: var(--surface-2); }
.nav-g.open .nav-gb .i { transform: rotate(180deg); }
.nav-gb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-pop { position: absolute; z-index: 50; top: calc(100% + 10px); left: 50%; width: 340px; margin-left: -170px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 4px rgb(0 0 0 / .04), 0 24px 56px -20px rgb(0 0 0 / .28); }
.nav-pop[hidden] { display: none; }
.nav-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.head-nav .nav-pop a { display: block; white-space: normal; padding: 10px 12px; border-radius: 12px; color: var(--ink); background: none; }
.nav-pop a b { display: block; font-weight: 500; font-size: .93rem; color: var(--head, var(--ink)); }
.nav-pop a small { display: block; margin-top: 1px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.head-nav .nav-pop a:hover, .head-nav .nav-pop a[aria-current] { background: var(--surface-2); }
.menu-h { margin: 12px 14px 2px; font: 500 .7rem var(--f-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-panel .menu-h:first-child { margin-top: 4px; }
@media (min-width: 900px) { .head-nav.grouped { display: flex; } .menu.grouped-menu { display: none; } }
@media (prefers-reduced-motion: no-preference) { .nav-g.open .nav-pop { animation: menu-in .2s cubic-bezier(.23,1,.32,1); transform-origin: top center; } }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .help { font-size: .82rem; color: var(--muted); margin: 0; }
.input { position: relative; display: flex; align-items: center; }
.input input, .input select, select.select {
  width: 100%; min-height: 50px; padding: 0 14px; background: var(--field); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-s); transition: border-color .2s, box-shadow .2s; appearance: none; }
.input select, select.select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input input:focus, .input select:focus, select.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input .unit { position: absolute; right: 14px; color: var(--muted); pointer-events: none; font-size: .95rem; }
.input input.has-unit { padding-right: 44px; }
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: calc(var(--r-s) + 4px); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-s); cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 0 0 1px var(--line); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.error-text { color: var(--danger); font-size: .85rem; margin: 0; }

/* ------------------------------------------------------------------ prose & tables */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a:not(.btn) { color: var(--accent-text); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 650; font-size: .85rem; color: var(--muted); }
tbody tr + tr td { border-top: 1px solid var(--line); }
td.r, th.r { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------------ legal */
.legal { padding-block: 56px 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-lead { font-size: 1.15rem; color: var(--muted); }
.legal a:not(.btn) { color: var(--accent-text); }
.legal-dl { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin: 0 0 1.5em; }
.legal-dl div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 12px 16px; }
.legal-dl div + div { border-top: 1px solid var(--line); }
.legal-dl dt { color: var(--muted); font-size: .9rem; }
.legal-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cookie-table td:first-child { white-space: nowrap; }

/* ------------------------------------------------------------------ ads */
.ad { margin: 40px auto; max-width: 970px; min-height: 120px; padding-inline: 16px; }
.ad-label { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 4px; text-align: center; }

/* ------------------------------------------------------------------ footer */
.site-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; gap: 28px 20px; padding-block: 40px 28px; grid-template-columns: 1fr 1fr; }
.foot-grid > .foot-about, .foot-grid > .foot-net { grid-column: 1 / -1; }
@media (max-width: 719px) { .foot-grid > :nth-child(2) { order: 1; } .foot-grid > :nth-child(4) { order: 2; } .foot-grid > .foot-net { order: 3; } }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 32px; padding-block: 48px 32px; } .foot-grid > .foot-about, .foot-grid > .foot-net { grid-column: auto; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a, .site-foot .linklike { color: var(--ink); text-decoration: none; font-size: .92rem; display: inline-block; min-height: 24px; padding-block: 2px; }
.site-foot a:hover, .site-foot .linklike:hover { text-decoration: underline; }
.foot-net li { display: grid; gap: 1px; }
.foot-net span { font-size: .82rem; }
.foot-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: .4em; }
.foot-h { font-weight: 650; color: var(--ink); margin-bottom: .8em; }
.foot-disclaimer { font-size: .82rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: .82rem; }

/* ------------------------------------------------------------------ consent */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 460px; padding: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-m); box-shadow: var(--shadow);
  transform: translateY(16px); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s; font-size: .93rem; }
.consent.open { transform: none; opacity: 1; }
@media (min-width: 640px) { .consent { left: 24px; bottom: 24px; } }
.consent-t { font-weight: 700; margin-bottom: .35em; }
.consent a { color: var(--accent-text); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ------------------------------------------------------------------ reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ 404 */
.nf { padding-block: 64px 40px; }
.nf-code { font-family: var(--f-mono); font-size: clamp(5rem, 22vw, 13rem); line-height: .9; letter-spacing: -0.06em; margin: 0; color: var(--accent); }
.nf-links { display: grid; gap: 10px; margin-top: 32px; max-width: 520px; }
.nf-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; background: var(--surface); transition: border-color .2s, transform .2s; }
.nf-links a:hover { border-color: var(--accent); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print { .site-head, .site-foot, .consent, .ad { display: none !important; } }

/* ------------------------------------------------------------------ language switcher (multilingual sites) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-switch { display: flex; gap: 2px; margin-left: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; color: var(--muted); min-width: 34px; text-align: center; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--bg); }
.head-nav + .lang-switch { margin-left: 12px; }
.head-search { display: none; place-items: center; flex: none; width: 40px; height: 40px; margin-left: 12px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.js .head-search { display: grid; }
.head-search:hover { color: var(--ink); background: var(--surface-2); }
.head-search .i { width: 20px; height: 20px; }
.head-search + .lang-switch { margin-left: 8px; } .head-search ~ .menu { margin-left: 8px; }
/* light/dark switch (SITE["theme_toggle"]): shows the moon in light, the sun in dark */
.head-theme { display: none; place-items: center; flex: none; width: 40px; height: 40px; margin-left: 12px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.js .head-theme { display: grid; }
.head-theme:hover { color: var(--ink); background: var(--surface-2); }
.head-theme .i { width: 19px; height: 19px; }
.head-theme .i-sun, :root[data-theme="dark"] .head-theme .i-moon { display: none; }
:root[data-theme="dark"] .head-theme .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .head-theme .i-sun { display: block; } :root:not([data-theme="light"]) .head-theme .i-moon { display: none; } }
.head-theme + .head-search { margin-left: 8px; }
:root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; }
@media (max-width: 899px) { .head-search { margin-left: auto; } }
@media (max-width: 899px) { .lang-switch { margin-left: auto; } .lang-switch + .menu { margin-left: 8px; } }

/* ------------------------------------------------------------------ motion (kit/motion.js) */
.read-progress { position: fixed; z-index: 41; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@media print { .read-progress { display: none !important; } }

/* ------------------------------------------------------------------ data plates (kit/charts.js)
   A "plate" is a numbered data section: mono kicker, title, figure, source line and a corner title block.
   Chart colours are tokens a site may override: --series-1..3 (categorical, validated order), --seq-0..4
   (one-hue sequential ramp, low to high) and --ch-grid / --ch-base. */
:root {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-mute: #b4b9bf;
  --seq-0: #cde2fb; --seq-1: #9ec5f4; --seq-2: #5598e7; --seq-3: #256abf; --seq-4: #0d366b; --seq-none: #e6e7e9;
  --ch-grid: color-mix(in srgb, var(--ink) 9%, transparent); --ch-base: color-mix(in srgb, var(--ink) 26%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-mute: #4a525b;
    --seq-0: #173a63; --seq-1: #1c5cab; --seq-2: #3987e5; --seq-3: #86b6ef; --seq-4: #cde2fb; --seq-none: #262c33;
  }
}
:root[data-theme="dark"] {
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-mute: #4a525b;
  --seq-0: #173a63; --seq-1: #1c5cab; --seq-2: #3987e5; --seq-3: #86b6ef; --seq-4: #cde2fb; --seq-none: #262c33;
}
.plate { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(20px, 3.4vw, 40px); padding-bottom: clamp(48px, 5vw, 60px); }
.plate + .plate { margin-top: 20px; }
.plate-k { margin: 0 0 10px; font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.plate h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 26ch; margin: 0 0 .4em; }
.plate-lead { color: var(--muted); max-width: 64ch; margin-bottom: 22px; }
.plate-box { position: absolute; right: -1px; bottom: -1px; display: flex; max-width: calc(100% - 24px); border: 1px solid var(--line); border-radius: 10px 0 var(--r-m) 0; overflow: hidden; font: 500 .7rem/1 var(--f-mono); color: var(--muted); background: var(--surface); }
.plate-box > * { padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-box > :first-child { border-right: 1px solid var(--line); color: var(--ink); font-weight: 700; flex: none; }
.plate-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .plate-grid { grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; } .plate-grid.even { grid-template-columns: 1fr 1fr; } }
.dp-src { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.dp-src a { color: inherit; }
.dp-tag { display: inline-block; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; font: 600 .64rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; color: var(--series-1); }
.dp-tag-calc { color: var(--muted); }
.dp-tag-est { color: var(--accent-text); }

/* KPI tiles: hairline rule on top, big proportional figure, caption, source */
.dp-kpis { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin: 0; }
@media (min-width: 720px) { .dp-kpis { gap: 22px 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.dp-kpi { border-top: 2px solid var(--ink); padding-top: 12px; margin: 0; }
.dp-kpi dt { font-size: .86rem; color: var(--muted); margin-bottom: 4px; }
.dp-kpi dd { margin: 0; }
.dp-kpi-v { display: block; font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.dp-kpi-v small { font-size: .45em; font-weight: 700; letter-spacing: -0.01em; margin-left: 3px; }
.dp-kpi-d { display: block; margin-top: 8px; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.dp-kpi .ch-spark { margin-top: 8px; }

/* charts */
.ch { position: relative; width: 100%; }
.ch-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-sans); }
.ch-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.ch-grid line { stroke: var(--ch-grid); stroke-width: 1; shape-rendering: crispEdges; }
.ch-grid line.base { stroke: var(--ch-base); }
.ch-ax { fill: var(--muted); font: 500 11.5px var(--f-mono); font-variant-numeric: tabular-nums; }
.s1 { --c: var(--series-1); } .s2 { --c: var(--series-2); } .s3 { --c: var(--series-3); } .s0 { --c: var(--series-mute); }
.ch-line { fill: none; stroke: var(--c, var(--series-1)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ch-draw 1.1s var(--ease-in-out) .1s forwards; }
@keyframes ch-draw { to { stroke-dashoffset: 0; } }
.ch-area { fill: var(--c, var(--series-1)); opacity: .1; }
.ch-dot { fill: var(--c, var(--series-1)); stroke: var(--surface); stroke-width: 2; }
.ch-end { fill: var(--ink); font: 700 12px var(--f-mono); font-variant-numeric: tabular-nums; }
.ch-cross { stroke: var(--ch-base); stroke-width: 1; }
.ch-mark { stroke: var(--ch-base); stroke-width: 1; }
.ch-mark-t { fill: var(--muted); font: 500 11px var(--f-sans); }
.ch-seg { fill: var(--c); }
.ch-col:focus { outline: none; }
.ch-col.on .ch-seg, .ch-col:focus-visible .ch-seg { filter: brightness(1.12); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .86rem; color: var(--muted); }
.ch-legend li { display: inline-flex; align-items: center; gap: 7px; }
.ch-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--series-1)); flex: none; }
.ch-key.line { width: 14px; height: 2px; border-radius: 1px; }
.ch-tip { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; min-width: 120px; max-width: 260px; padding: 9px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .35); font-size: .82rem; line-height: 1.35; }
.ch-tip-t { margin: 0 0 4px; color: var(--muted); font-size: .76rem; }
.ch-tip-r { display: flex; align-items: center; gap: 7px; margin: 2px 0 0; }
.ch-tip-r .ch-key { width: 12px; height: 2px; }
.ch-tip-r strong { font-variant-numeric: tabular-nums; }
.ch-tip-l { color: var(--muted); }
/* horizontal bars and dumbbells as HTML rows: text never clips */
.ch-bars, .ch-dumb { display: grid; gap: 2px; }
.ch-bar-row, .ch-db-row { display: grid; grid-template-columns: minmax(96px, 30%) 1fr auto; align-items: center; gap: 10px; min-height: 30px; padding: 2px 6px; margin: 0 -6px; border-radius: 8px; color: inherit; text-decoration: none; font-size: .88rem; }
a.ch-bar-row:hover, a.ch-db-row:hover, a.ch-bar-row:focus-visible, a.ch-db-row:focus-visible { background: var(--surface-2); }
.ch-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-bar-t { position: relative; height: 14px; }
.ch-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 2px; background: var(--c); border-radius: 0 4px 4px 0; }
.ch-bar-v { font: 600 .82rem var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; min-width: 4.5ch; }
.ch-bar-row.dim .ch-bar, .ch-db-row.dim .ch-db-dot { --c: var(--series-mute); }
.ch-bar-row.hl, .ch-db-row.hl { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .ch-bars.ch-anim .ch-bar { transform-origin: left; animation: ch-grow .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 20ms); }
  @keyframes ch-grow { from { transform: scaleX(0); } }
}
.ch-db-t { position: relative; height: 18px; }
.ch-db-line { position: absolute; top: 8px; height: 2px; background: var(--ch-base); }
.ch-db-dot { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
/* choropleth */
.ch-map .ch-svg { max-height: 560px; }
.ch-reg { fill: var(--seq-none); stroke: var(--surface); stroke-width: 1.2; stroke-linejoin: round; transition: fill 200ms ease, opacity 150ms ease; cursor: default; }
.ch-reg[role="button"] { cursor: pointer; }
.ch-reg.q0 { fill: var(--seq-0); } .ch-reg.q1 { fill: var(--seq-1); } .ch-reg.q2 { fill: var(--seq-2); } .ch-reg.q3 { fill: var(--seq-3); } .ch-reg.q4 { fill: var(--seq-4); }
@media (hover: hover) and (pointer: fine) { .ch-reg:hover { opacity: .82; } }
.ch-reg:focus { outline: none; }
.ch-reg.sel, .ch-reg:focus-visible { stroke: var(--ink); stroke-width: 2.4; }
.ch-frame { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.ch-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.ch-scale-t { font-weight: 600; color: var(--ink); }
.ch-scale-row { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ch-scale-i { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ch-sw { width: 14px; height: 10px; border-radius: 2px; background: var(--seq-none); }
.ch-sw.q0 { background: var(--seq-0); } .ch-sw.q1 { background: var(--seq-1); } .ch-sw.q2 { background: var(--seq-2); } .ch-sw.q3 { background: var(--seq-3); } .ch-sw.q4 { background: var(--seq-4); }
.ch-spark .ch-line { stroke: var(--series-mute); }
.ch-spark .ch-dot { fill: var(--series-1); }
/* table view under every chart */
.ch-table { margin-top: 14px; font-size: .88rem; }
.ch-table > summary { cursor: pointer; color: var(--muted); font-size: .84rem; width: max-content; max-width: 100%; }
.ch-table > summary:hover { color: var(--ink); }
.ch-table .table-scroll { margin-top: 10px; max-height: 420px; overflow: auto; }
.ch-table table { font-size: .84rem; }
.ch-table th, .ch-table td { padding: 7px 10px; }
.ch-table thead th { position: sticky; top: 0; z-index: 1; }
/* filter row: one row above what it scopes */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; }
.filters .seg label { min-height: 36px; padding: 0 12px; font-size: .86rem; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dp-chips a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--surface); }
.dp-chips a:hover, .dp-chips a[aria-current] { border-color: var(--ink); }
@media print { .ch-tip, .plate-box { display: none !important; } .plate { break-inside: avoid; } }
/* data page layout: head with KPIs, a stack of plates */
.page-head { padding-block: 40px 28px; }
@media (min-width: 1024px) { .page-head { padding-block: 48px 28px; } }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 22ch; margin-bottom: .35em; }
.dp-lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-bottom: 32px; }
.page-head .dp-kpis { margin-top: 8px; }
.plates { display: grid; gap: 20px; }
.plates > .ad { margin: 8px auto; }
.plates > *, .plate-grid > * { min-width: 0; }
.h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 26px 0 12px; }
.plate-grid .h3 { margin-top: 0; }
.dp-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.dp-note a, .plate-lead a, .dp-kpi-d a { color: var(--accent-text); }
.dp-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.dp-toc a { font-size: .86rem; font-weight: 600; text-decoration: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.dp-toc a:hover { border-color: var(--ink); }
.select-ctl { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.select-ctl select { min-width: 200px; }
@media (max-width: 560px) {
  .filters { width: 100%; }
  .filters .seg { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
  .select-ctl { width: 100%; flex-wrap: wrap; } .select-ctl select { width: 100%; }
}

/* dateline under a data page's lead (sources and freshness), never an eyebrow above the heading */
.dp-meta { margin: -18px 0 28px; font-size: .84rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.dp-meta::before { content: ""; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%; background: var(--series-1); flex: none; }
/* browser surfaces carry the palette too */
html { accent-color: var(--accent); scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
input, textarea, [contenteditable] { caret-color: var(--accent); }
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
