@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f5f6f8; --surface: #fff; --ink: #19242f; --muted: #556473; --line: #d2d8e0;
  --accent: #08758a; --violet: #724ac6; --magenta: #b53070; --fourth: #344d89;
  --soft: #edf0f5; --focus: #075dc6; --shadow: 0 10px 45px #263e6310;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none; font-size: 16px; line-height: 1.55; letter-spacing: -.012em;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111820; --surface: #18212c; --ink: #eff3f9; --muted: #adb9ca; --line: #3c495a;
  --accent: #58d9e7; --violet: #b7a0ff; --magenta: #f08abd; --fourth: #87acf3;
  --soft: #202c3a; --focus: #86bbff; --shadow: 0 10px 45px #0002;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111820; --surface: #18212c; --ink: #eff3f9; --muted: #adb9ca; --line: #3c495a;
    --accent: #58d9e7; --violet: #b7a0ff; --magenta: #f08abd; --fourth: #87acf3;
    --soft: #202c3a; --focus: #86bbff; --shadow: 0 10px 45px #0002;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, select, input { font: inherit; color: inherit; }
button, select { min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; }
button { cursor: pointer; padding: .5rem .9rem; }
button:hover, select:hover { border-color: var(--muted); }
button:disabled, select:disabled { cursor: default; opacity: .6; }
select { padding: .45rem 2rem .45rem .7rem; }
select option, select optgroup { color: var(--ink); background-color: var(--surface); }
input[type="range"] { accent-color: var(--accent); min-height: 44px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 6.1vw, 5.7rem); font-weight: 550; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 550; }
h3 { font-size: 1.8rem; font-weight: 550; }
svg { display: block; max-width: 100%; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 15px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 15px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; margin: auto; padding: 22px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.wordmark { font-weight: 750; font-size: 1.35rem; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
nav a { text-decoration: none; font-size: .92rem; color: var(--muted); padding: 12px 0; position: relative; }
nav a[aria-current] { color: var(--ink); }
nav a[aria-current]::after { content: ''; position: absolute; bottom: 5px; height: 2px; background: var(--accent); left: 0; right: 0; }
.preferences { display: flex; flex-shrink: 0; margin-left: auto; }
#theme-toggle { display: grid; place-items: center; width: 44px; min-width: 44px; padding: 0; background: transparent; }
.theme-icon { width: 20px; height: 20px; }
.theme-icon-dark { display: none; }
#theme-toggle[data-theme="dark"] .theme-icon-light, #theme-toggle[data-theme="light"] .theme-icon-dark { display: none; }
#theme-toggle[data-theme="dark"] .theme-icon-dark, #theme-toggle[data-theme="light"] .theme-icon-light { display: block; }
.external-icon { display: inline-block; margin-left: .2em; vertical-align: -.08em; }
main { max-width: 1344px; margin: auto; padding: 0 48px; }
.home-hero { padding: 78px 0 68px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; font-size: .72rem; font-weight: 650; letter-spacing: .14em; color: var(--muted); }
.small-cross { font-size: 1.25rem; color: var(--accent); margin-right: 10px; font-weight: 400; }
.hero-copy h1 { margin: 25px 0 26px; font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: 1.07; }
.intro { max-width: 460px; font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
.text-link { font-size: .9rem; font-weight: 600; display: inline-flex; gap: 25px; align-items: center; min-height: 44px; text-decoration: none; background: none; border: 0; padding: 0; }
.text-link span { color: var(--accent); font-size: 1.4rem; }
.hero-meta { display: flex; gap: 22px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; margin-top: 42px; }
.hero-meta span + span { border-left: 1px solid var(--line); padding-left: 22px; }
.hero-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px 28px 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-chart::before { content: ''; height: 2px; position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(90deg, var(--accent), var(--violet), var(--magenta)); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature-top > span:last-child { color: var(--muted); font-size: .75rem; }
.feature-value { font-size: 5.2rem; line-height: 1.15; letter-spacing: -.07em; font-variant-numeric: tabular-nums; margin-top: 18px; }
.feature-value > span { font-size: 2.2rem; color: var(--muted); margin-left: 10px; }
.feature-caption { color: var(--muted); font-size: .85rem; margin-bottom: 0; }
.hero-chart .plot { margin: 10px 0 12px; }
.feature-link { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 17px 0; text-decoration: none; font-size: .8rem; color: var(--muted); }
.feature-link span { font-size: 1.2rem; color: var(--ink); }
.section-title { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-title h2 { margin-bottom: 0; max-width: 500px; }
.section-title > p { max-width: 280px; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.topics-section { padding: 40px 0 0; border-top: 1px solid var(--line); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 28px; text-decoration: none; }
.topic-card:hover { color: var(--ink); border-color: var(--accent); }
.card-index { display: flex; justify-content: space-between; margin-bottom: 26px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-index > span { font-size: 1.2rem; color: var(--accent); }
.topic-card h3 { margin-bottom: 13px; }
.topic-card > p { font-size: .9rem; color: var(--muted); min-height: 65px; margin-bottom: 24px; }
.card-value { margin-top: auto; font-size: 2.6rem; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.card-value > span { font-size: .85rem; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.card-caption { font-size: .78rem; color: var(--muted); margin-top: 9px; }
.card-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .72rem; }
.card-footer > span:first-child { color: var(--muted); }
.footnote { font-size: .76rem; color: var(--muted); margin: 14px 0; }
.editorial-note { padding: 60px 0 76px; display: flex; gap: 32px; max-width: 820px; }
.note-mark { font-size: 2.4rem; color: var(--accent); line-height: 1; }
.editorial-note h2 { font-size: 1.5rem; margin-bottom: 14px; }
.editorial-note p { color: var(--muted); margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 48px; display: flex; justify-content: space-between; gap: 25px; max-width: 1440px; margin: auto; }
.site-footer p { color: var(--muted); font-size: .75rem; margin: 6px 0 0; }
.site-footer > div:last-child { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: .75rem; }
.site-footer > div:last-child > span { color: var(--muted); }
.site-footer a:not(.wordmark) { min-height: 44px; display: inline-flex; align-items: center; }
.page-intro { padding: 36px 0 32px; }
.breadcrumb { color: var(--muted); font-size: .8rem; text-decoration: none; display: inline-block; padding: 8px 0; }
.breadcrumb span { margin-left: 12px; color: var(--line); }
.page-title-row { display: flex; justify-content: space-between; gap: 36px; align-items: center; margin-top: 24px; }
.page-title-row h1 { margin: 12px 0 0; }
.title-dot { color: var(--accent); }
.page-title-row > p { max-width: 430px; color: var(--muted); margin: 0; }
.explorer { border-top: 1px solid var(--line); padding-top: 24px; }
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.year-controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.year-controls label, .base-control { display: flex; flex-direction: column; gap: 6px; font-size: .75rem; color: var(--muted); }
.year-controls select, .base-control select { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 94px; }
.year-dash { line-height: 44px; color: var(--muted); }
.range-presets { display: flex; gap: 4px; margin-left: 6px; }
.range-presets button { font-size: .78rem; padding: 8px 12px; background: transparent; border-color: transparent; }
.range-presets button:hover { background: var(--soft); }
.view-controls { display: flex; border: 1px solid var(--line); border-radius: 5px; padding: 3px; }
.view-controls button { border: 0; background: transparent; font-size: .85rem; min-height: 38px; }
.view-controls button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.metric-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 25px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.base-control { flex-shrink: 0; }
.swatch path { fill: none; stroke: currentColor; stroke-width: 2.5; }
.swatch { flex-shrink: 0; }
.line-0 { color: var(--accent); }
.line-1 { color: var(--violet); }
.line-2 { color: var(--magenta); }
.line-3 { color: var(--fourth); }
.line-4 { color: var(--ink); }
.line-4 path { stroke-dasharray: 5 3 1 3; }
.line-1 path { stroke-dasharray: 9 5; }
.line-2 path { stroke-dasharray: 2 5; }
.line-3 path { stroke-dasharray: 12 4 2 4; }
.data-context { display: flex; justify-content: space-between; gap: 24px; font-size: .75rem; color: var(--muted); margin: 22px 0 12px; }
.data-context p { margin: 0; }
.data-context > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-caveat { color: var(--muted); font-size: .78rem; padding-left: 12px; border-left: 2px solid var(--violet); margin: 14px 0 20px; }
.chart-panel { border: 1px solid var(--line); background: var(--surface); padding: 25px 24px 12px; border-radius: 5px; margin-bottom: 20px; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.chart-heading h2 { font-size: 1.2rem; margin-bottom: 12px; }
.chart-heading { flex-wrap: wrap; }
.panel-help { max-width: 75ch; color: var(--muted); font-size: .85rem; }
.decile-bars { list-style: none; padding: 0; }
.decile-bars li { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr 70px; gap: 16px; align-items: center; margin: 14px 0; font-size: .85rem; }
.decile-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 18px; background: var(--soft); }
.bar-track > div { height: 100%; background: var(--accent); }
.decile-year-label { margin-top: 18px; font-size: .9rem; }
.tooltip-detail { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); }
.cell-note { display: block; font-size: .72rem; color: var(--muted); margin-top: 5px; }
.table-scroll + .table-scroll { margin-top: 24px; }
.unit { font-size: .75rem; color: var(--muted); }
.legend { display: flex; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 12px -8px; }
.legend-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border-color: transparent; background: transparent; color: var(--muted); font-size: .75rem; text-align: left; }
.legend-toggle:hover { border-color: var(--line); background: var(--soft); color: var(--ink); }
.legend-toggle[aria-pressed="true"] { color: var(--ink); }
.legend-toggle[aria-pressed="false"] { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.legend-toggle[aria-pressed="false"] .swatch { opacity: .65; }
.plot { width: 100%; overflow: visible; }
.interactive-chart { position: relative; }
.interactive-chart .plot { cursor: crosshair; }
.chart-guide { pointer-events: none; }
.chart-guide line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-guide circle { fill: var(--surface); stroke: currentColor; stroke-width: 2.5; }
.chart-tooltip { pointer-events: none; position: absolute; z-index: 2; top: 12px; width: max-content; min-width: min(210px, calc(100% - 16px)); max-width: calc(100% - 16px); padding: 14px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--muted); border-radius: 4px; box-shadow: var(--shadow); font-size: .8rem; }
.chart-tooltip > strong { display: block; font-size: .95rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tooltip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; margin-top: 10px; }
.tooltip-label { display: flex; gap: 8px; align-items: baseline; }
.tooltip-label .swatch { width: 22px; align-self: center; }
.tooltip-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 5px; max-width: 132px; text-align: right; }
.tooltip-value b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.tooltip-value small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.grid line { stroke: var(--line); stroke-width: 1; }
.grid text, .axis { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.series path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.series circle { fill: currentColor; }
.break-line line { stroke: var(--muted); stroke-dasharray: 3 5; opacity: .6; }
.break-line text { fill: var(--muted); font-size: 11px; }
.inspector { padding: 5px 0 16px; }
.inspector > label { display: flex; gap: 20px; align-items: center; font-size: .82rem; }
.inspector output { font-size: 1.1rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.inspector input { width: 100%; margin: 0; }
.inspector .footnote { margin-top: 0; }
#inspect-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); gap: 20px; padding-top: 16px; }
#inspect-values > div { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 4px 9px; font-size: .78rem; }
#inspect-values strong { grid-column: 2; font-size: 1.65rem; font-weight: 500; font-variant-numeric: tabular-nums; }
#inspect-values span:last-child { grid-column: 2; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 20px; color: var(--muted); font-size: .8rem; }
th, td { text-align: right; padding: 14px 20px; border-top: 1px solid var(--line); }
thead th { background: var(--soft); font-weight: 600; font-size: .78rem; vertical-align: bottom; }
th:first-child { text-align: left; }
thead th span { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; white-space: nowrap; margin-top: 4px; }
tbody th { font-weight: 500; }
tbody tr:hover { background: var(--soft); }
.table-break th, .table-break td { border-top: 2px dashed var(--muted); }
.data-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .75rem; color: var(--muted); margin: 18px 0 36px; }
.data-footer button { color: var(--ink); font-size: .8rem; }
.method { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.method > summary { padding: 23px 0; font-size: .95rem; cursor: pointer; }
.method > summary > span { float: right; color: var(--accent); font-size: 1.3rem; }
.method-content { max-width: 880px; padding: 12px 0 32px; color: var(--muted); font-size: .9rem; }
.source-list article { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.source-list h3 { font-size: 1rem; letter-spacing: -.015em; line-height: 1.4; color: var(--ink); }
.source-list p { font-size: .8rem; }
.source-list code { overflow-wrap: anywhere; font-size: .75rem; }
.source-list summary { cursor: pointer; padding: 10px 0; }
.empty { background: var(--soft); text-align: center; padding: 64px 20px; }
.notice, .error { padding: 16px; background: var(--soft); border-left: 3px solid var(--magenta); }
.prose { max-width: 760px; padding: 70px 0 90px; }
.prose h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
.prose p { line-height: 1.8; color: var(--muted); }
.prose h2 { margin-top: 48px; }
@media (min-width: 1500px) { .home-hero { padding-top: 100px; padding-bottom: 90px; } }
@media (max-width: 1100px) {
  .header-inner { gap: 24px; padding: 20px 28px; flex-wrap: wrap; }
  nav { gap: 20px; }
  main { padding: 0 28px; }
  .home-hero { gap: 30px; }
  .hero-chart { padding: 22px 20px 0; }
  .topic-card { padding: 22px; }
  .card-footer { flex-direction: column; }
  .site-footer { padding: 30px 28px; }
  .site-footer > div:last-child { gap: 15px; }
  .toolbar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .header-inner { padding: 16px 20px 8px; gap: 10px 20px; }
  .wordmark { font-size: 1.15rem; }
  nav { order: 3; width: 100%; justify-content: flex-start; gap: 0 18px; }
  nav a { font-size: .85rem; }
  main { padding: 0 20px; }
  .home-hero { grid-template-columns: 1fr; padding: 45px 0; gap: 35px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 8vw, 4rem); }
  .intro { max-width: 540px; }
  .hero-meta { margin-top: 20px; }
  .feature-value { font-size: 4.5rem; }
  .section-title { display: block; }
  .section-title > p { max-width: none; margin-top: 15px; }
  .topic-grid { grid-template-columns: 1fr; gap: 14px; }
  .topic-card { padding: 24px; }
  .card-index { margin-bottom: 15px; }
  .topic-card > p { min-height: 0; }
  .card-footer { flex-direction: row; }
  .editorial-note { padding: 40px 0; gap: 20px; }
  .site-footer { flex-direction: column; padding: 25px 20px; }
  .page-intro { padding-top: 20px; }
  .page-title-row { display: block; margin-top: 18px; }
  .page-title-row h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); overflow-wrap: anywhere; margin-bottom: 20px; }
  .page-title-row > p { max-width: none; font-size: .95rem; }
  .toolbar { gap: 16px; }
  .year-controls { width: 100%; }
  .range-presets { margin: 0; gap: 0; }
  .range-presets button { padding: 8px; font-size: .72rem; }
  .metric-toolbar { justify-content: flex-start; gap: 16px; }
  .base-control { flex-wrap: wrap; }
  .decile-bars li { grid-template-columns: minmax(0, 1fr) 70px; gap: 5px 12px; }
  .decile-bars li > span { grid-column: 1; grid-row: 1; }
  .decile-bars .bar-track { grid-column: 1; grid-row: 2; }
  .decile-bars strong { grid-column: 2; grid-row: 1 / 3; }
  .base-control { flex-direction: row; align-items: center; gap: 12px; }
  .data-context { flex-direction: column; gap: 8px; }
  .chart-panel { padding: 20px 12px 8px; }
  .chart-heading h2 { font-size: 1.05rem; }
  .legend { gap: 4px 6px; }
  .legend-toggle { font-size: .7rem; }
  .data-footer { align-items: start; }
  .data-footer > span { max-width: 170px; }
  .prose { padding: 45px 0 60px; }
  .prose h1 { font-size: 2.8rem; }
}
@media (max-width: 390px) {
  .header-inner { gap: 8px; }
  .range-presets { width: 100%; }
  .legend-toggle .swatch { width: 20px; }
  .feature-top { align-items: start; flex-direction: column; }
}
@media print {
  .site-header, .site-footer, .interactive-only, #chart-view { display: none !important; }
  #table-view[hidden] { display: block !important; }
  body { background: white; color: black; }
  main { padding: 0; }
  .table-scroll { overflow: visible; }
}
