:root {
  --paper:#fcfaf5;
  --ink:#172b40;
  --muted:#58616b;
  --accent:#a44313;
  --line:#d9d6cf;
  --green:#275e49;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; border-top:4px solid var(--accent); font-size:16px; line-height:1.65; }
a { color:var(--accent); text-underline-offset:.2em; }
a:hover { text-decoration-thickness:2px; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
button,input,select { font:inherit; }
.masthead,main,footer { max-width:1140px; margin:auto; padding-inline:32px; }
.masthead { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.masthead nav { display:flex; gap:24px; font-size:14px; }
.masthead a { text-decoration:none; }
.masthead a:hover { text-decoration:underline; }
.masthead [aria-current=page] { font-weight:700; }
.brand { font-size:25px; font-weight:750; letter-spacing:-.04em; color:var(--ink); }
.brand span { color:var(--accent); }
.skip-link { position:absolute; top:-100px; left:20px; z-index:10; padding:12px 20px; background:white; }
.skip-link:focus { top:8px; }
.hero { padding:44px 0 30px; }
.story-hero { max-width:930px; padding-top:52px; }
.eyebrow { font-size:12px; letter-spacing:1.3px; font-weight:650; margin:0 0 14px; color:var(--accent); }
h1,h2,h3 { line-height:1.2; text-wrap:balance; }
h1,h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; }
h1 { font-size:clamp(38px,5.6vw,68px); letter-spacing:-.04em; margin:0 0 20px; line-height:1.07; }
h2 { font-size:clamp(27px,3vw,35px); letter-spacing:-.025em; margin:0 0 18px; }
h3 { font-size:16px; margin:0 0 12px; }
p { margin:0 0 18px; }
.intro { font-size:21px; max-width:760px; line-height:1.55; color:var(--muted); }
.byline,.snapshot { font-size:13px; color:var(--muted); margin-bottom:0; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--ink); border-bottom:1px solid var(--line); }
.story-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stat { padding:22px 20px 22px 0; }
.stat:not(:first-child) { border-left:1px solid var(--line); padding-left:22px; }
.stat strong { display:block; font-family:Georgia,serif; font-size:44px; font-weight:400; line-height:1.2; margin-bottom:5px; }
.stat span { font-size:13px; font-weight:650; }
.stat p { color:var(--muted); font-size:12px; line-height:1.5; margin:6px 0 0; }
.story-lead { max-width:780px; font-size:19px; margin:28px 0 18px; }
.story-action { display:flex; flex-wrap:wrap; gap:12px 26px; font-size:14px; margin-bottom:32px; }
.read-link { font-weight:650; }
.chapter { display:grid; grid-template-columns:240px minmax(0,1fr); gap:44px; padding:38px 0; border-top:1px solid var(--line); }
.chapter-heading h2 { font-size:30px; }
.chapter-body { min-width:0; }
.chapter-body p:last-child { margin-bottom:0; }
.chapter-body .chart-card { margin:24px 0; }
.comparison-card { display:block; color:var(--ink); text-decoration:none; padding:0 0 22px; margin-bottom:20px; border-bottom:1px solid var(--line); }
.comparison-card>span { font-size:11px; font-weight:650; letter-spacing:.8px; }
.comparison-card strong { display:block; font-family:Georgia,serif; font-weight:400; font-size:50px; line-height:1.35; margin:6px 0 10px; }
.comparison-card b { color:var(--accent); font-weight:400; }
.comparison-card p { margin-bottom:10px; }
.comparison-card small { color:var(--accent); font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.finding { margin:0 0 18px; padding:16px 0 0; border-top:1px solid var(--line); }
.finding h3 { margin-bottom:6px; }
.finding p { font-size:14px; margin-bottom:8px; }
.finding>a { font-size:13px; }
.dashboard-page .hero { padding:30px 0 24px; }
.dashboard-page h1 { font-size:clamp(34px,4.3vw,50px); margin-bottom:10px; }
.section-nav { position:sticky; top:0; z-index:4; display:flex; gap:4px 20px; flex-wrap:wrap; padding:18px 0 0; margin:0 0 26px; border-bottom:1px solid var(--line); background:var(--paper); font-size:14px; }
.section-nav a { padding:0 0 12px; text-decoration:none; color:var(--muted); border-bottom:3px solid transparent; }
.section-nav a[aria-current=location] { color:var(--ink); border-bottom-color:var(--accent); font-weight:650; }
.section-nav a:hover { color:var(--accent); }
.section { padding-bottom:32px; }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:20px; }
.section-heading>a { font-size:13px; white-space:nowrap; }
.section-intro { color:var(--muted); max-width:850px; }
.chart-controls,.filters { display:flex; gap:16px; align-items:end; flex-wrap:wrap; margin:20px 0; }
label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:650; }
select,input[type=search] { width:100%; min-height:42px; border:1px solid #b8b8b0; border-radius:2px; background:white; color:var(--ink); padding:8px 10px; font-size:13px; }
.search-label { flex:1; min-width:200px; }
.check { flex-direction:row; align-items:center; font-weight:400; padding-bottom:9px; }
input[type=checkbox] { width:16px; height:16px; accent-color:var(--accent); }
.chart-card,.heatmap-card { padding:24px; border:1px solid var(--line); background:white; }
.chart-title { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.chart-title span { font-size:10px; letter-spacing:1px; color:var(--muted); }
.caption { color:var(--muted); font-size:12px; line-height:1.65; margin:12px 0 0; }
.annual-chart { display:flex; align-items:stretch; height:240px; gap:14px; padding-top:18px; border-bottom:1px solid var(--line); margin-bottom:36px; }
.bar-column { flex:1; position:relative; display:flex; flex-direction:column; justify-content:end; }
.bar { background:var(--green); min-height:2px; }
.bar.current { background:#e6c9ae; border:1px solid #b68159; }
.bar-value { text-align:center; font-size:13px; font-weight:650; margin-bottom:6px; }
.bar-label { position:absolute; top:100%; width:100%; text-align:center; padding-top:8px; font-size:12px; }
.heatmap-card { margin-top:18px; overflow-x:auto; }
.heatmap { display:grid; grid-template-columns:45px repeat(12,1fr); gap:7px; min-width:540px; margin-top:20px; }
.heat-label { font-size:11px; color:var(--muted); text-align:center; align-self:center; }
.month { min-height:30px; border:1px solid transparent; background:#f0eee8; font-size:11px; color:var(--ink); cursor:pointer; }
.month:hover { border-color:var(--accent); }
.month[aria-pressed=true] { outline:2px solid var(--accent); outline-offset:1px; }
.month:disabled { cursor:default; background:transparent; border:1px dashed var(--line); }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.horizontal { display:grid; grid-template-columns:105px 1fr 28px; gap:12px; align-items:center; font-size:12px; margin-top:17px; }
.track { height:10px; background:#f0eee8; }
.fill { height:100%; background:var(--green); }
.horizontal strong { text-align:right; }
.reading-note { padding:16px 20px; border-left:3px solid var(--accent); background:#f0ede5; font-size:13px; line-height:1.65; margin:18px 0; }
.reading-note p { margin:8px 0 0; }
.table-wrap { max-height:600px; overflow:auto; background:white; border:1px solid var(--line); margin-top:14px; }
table { width:100%; border-collapse:collapse; font-size:12px; }
thead { position:sticky; top:0; background:#f0ede5; z-index:1; }
th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.4px; white-space:nowrap; }
th,td { padding:14px; border-bottom:1px solid var(--line); vertical-align:top; }
td:first-child { min-width:230px; max-width:360px; }
td:first-child>a { font-size:13px; font-weight:650; }
td small { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
td:not(:first-child) { min-width:125px; }
.edition { text-align:center; }
.edition.present { background:#e9efdf; }
#series-table td:not(:first-child) { min-width:72px; }
#series-table th[scope=row] { min-width:165px; white-space:normal; }
.schema-totals { display:flex; align-items:start; gap:26px; margin:22px 0; padding:22px; background:white; border:1px solid var(--line); }
.schema-totals>div { flex:1; min-width:0; }
.schema-totals strong { display:block; font-family:Georgia,serif; font-size:44px; font-weight:400; }
.schema-totals a,.schema-totals span { font-size:13px; }
.schema-totals small { display:block; margin-top:7px; }
.schema-totals>span { font-size:28px; margin-top:12px; }
.field-list { list-style:none; padding:0; margin:0; max-height:340px; overflow:auto; }
.field-list li { padding:10px 0; border-top:1px solid var(--line); font-size:13px; overflow-wrap:anywhere; }
.field-list small { display:block; color:var(--muted); }
.type-change { background:#fff2dd; }
.text-button { border:0; padding:0; color:var(--accent); background:none; text-decoration:underline; cursor:pointer; font-size:13px; }
details { padding:16px 0; border-bottom:1px solid var(--line); font-size:14px; color:var(--muted); }
summary { cursor:pointer; font-size:14px; color:var(--ink); font-weight:650; }
details p { margin:12px 0 0; max-width:850px; }
details details { padding-bottom:0; border-bottom:0; }
.excluded-list { max-height:280px; overflow:auto; }
.excluded-list p { font-size:12px; }
.downloads { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:18px; font-size:13px; }
code { overflow-wrap:anywhere; font-size:.9em; }
section[id] { scroll-margin-top:24px; }
section.dashboard-panel { scroll-margin-top:85px; }
footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding-block:24px; font-size:13px; }
@media(max-width:760px) {
  .masthead,main,footer { padding-inline:20px; }
  .masthead { min-height:68px; gap:16px; }
  .masthead nav { gap:14px; font-size:12px; }
  .hero,.story-hero { padding-top:30px; }
  .intro { font-size:18px; }
  .stats { grid-template-columns:1fr 1fr; }
  .stat { padding:18px 12px 18px 0; }
  .stat:not(:first-child) { padding-left:14px; }
  .stat:nth-child(3) { border-left:0; padding-left:0; }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .stat strong { font-size:36px; }
  .story-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .story-stats .stat { border-bottom:0; }
  .story-stats .stat:nth-child(3) { border-left:1px solid var(--line); padding-left:14px; }
  .story-stats .stat span { font-size:12px; line-height:1.4; display:block; }
  .story-stats .stat p { font-size:11px; }
  .chapter { display:block; padding:30px 0; }
  .chapter-heading { margin-bottom:20px; }
  .chapter-heading h2 { font-size:28px; }
  .chapter-heading .eyebrow { margin-bottom:8px; }
  .story-lead { font-size:17px; }
  .comparison-card strong { font-size:44px; }
  .section-heading { display:block; }
  .section-heading>a,.section-heading>button { display:inline-block; margin-bottom:12px; }
  .section-nav { gap:0 18px; font-size:13px; margin-bottom:20px; }
  section.dashboard-panel { scroll-margin-top:115px; }
  .two-col { grid-template-columns:1fr; }
  .chart-card,.heatmap-card { padding:16px; }
  .annual-chart { gap:7px; height:210px; }
  .bar-label { font-size:10px; }
  .chart-title span { display:none; }
  .chart-controls { gap:12px; }
  .chart-controls label { width:100%; }
  .filters label { flex:auto; width:100%; min-width:0; }
  .filters select { max-width:100%; }
  .schema-totals { gap:12px; padding:16px; flex-wrap:wrap; }
  .schema-totals>div { min-width:110px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
