* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #24343b; --navy: #17364d; --teal: #086b6b; --line: #d3dcda; --muted: #596c72; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fbfaf7; color: var(--ink); font: 17px/1.65 Georgia, serif; }
main { max-width: 1440px; margin: 0 auto; padding: 1.25rem 2.5rem 4rem; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible, .table-wrap:focus-visible { outline: 3px solid #b66a28; outline-offset: 3px; }
h1, h2, h3, h4, nav, summary, table, .meta, .release, .totals, .downloads, .filters, button, input, select, .section-heading > a, .table-help { font-family: system-ui, sans-serif; }
h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.035em; margin: .5rem 0 1rem; }
h2 { color: var(--navy); font-size: 1.6rem; line-height: 1.3; margin: 0; }
h3 { font-size: 1.1rem; line-height: 1.4; margin: 1.5rem 0 .5rem; }
h4 { font-size: .95rem; }
p { margin: .8rem 0; }
.page-header { margin-bottom: 1.5rem; }
.intro { max-width: 850px; font-size: 1.15rem; line-height: 1.55; }
.meta, .release { font-size: .82rem; color: var(--muted); }
.totals { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1.2rem 0; }
.totals p { margin: 0; display: flex; gap: .45rem; align-items: baseline; }
.totals strong { font-size: 1.3rem; color: var(--navy); line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; }
.totals span { font-size: .85rem; color: var(--muted); }
nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; font-size: .9rem; margin: 1rem 0; }
.reading-note { border-left: 3px solid #98b9b5; padding-left: 1rem; max-width: 1050px; font-size: .95rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; }
.section-heading > a { font-size: .85rem; }
.table-help { font-size: .85rem; color: var(--muted); max-width: 1000px; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: 1.4rem 0 .5rem; padding: 1rem; background: #edf2ef; border: 1px solid var(--line); border-radius: 4px; }
.filters label { display: grid; font-size: .8rem; gap: .25rem; }
.filters .search-label { flex: 1 1 300px; }
input, select, button { color: var(--ink); }
input, select, #clear { min-height: 42px; padding: .5rem .65rem; border: 1px solid #879a9d; border-radius: 3px; font-size: .9rem; background: #fff; }
input { width: 100%; }
button { cursor: pointer; }
#clear:hover { background: #f7faf8; }
.result-count { min-height: 1.4rem; margin: .65rem 0; }
.table-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; line-height: 1.45; }
#comparison-table { min-width: 870px; table-layout: fixed; }
th { text-align: left; background: var(--navy); color: white; font-weight: 600; }
#comparison-table thead th { position: sticky; top: 0; z-index: 1; }
thead th:first-child { width: 34%; }
thead th:nth-child(2) { width: 14%; }
thead th:nth-child(3), thead th:nth-child(4) { width: 13%; }
thead th:nth-child(5) { width: 6%; }
thead th:nth-child(6) { width: 20%; }
th button { background: none; color: inherit; border: 0; padding: .8rem .75rem; text-align: left; font: inherit; width: 100%; min-height: 56px; }
th button:hover { background: #234b65; }
.column-note { display: block; font-weight: 400; font-size: .72rem; }
td { padding: .75rem; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
tbody.record:nth-of-type(even) > .comparison-row { background: #f0f4f1; }
tbody.record:target > .comparison-row { background: #fff0cf; }
.record-toggle { display: flex; gap: .4rem; width: 100%; border: 0; padding: 0; background: none; font: inherit; font-weight: 600; line-height: inherit; text-align: left; }
.record-toggle:hover { color: var(--teal); text-decoration: underline; text-underline-offset: .15em; }
.toggle-icon { color: var(--teal); flex: 0 0 .6rem; }
.record-id { display: block; width: fit-content; font-size: .7rem; font-weight: 400; color: var(--muted); margin: .4rem 0 0 1rem; }
.record-kind { display: block; margin-left: 1rem; font-size: .75rem; font-weight: 400; }
.date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta { text-align: center; font-variant-numeric: tabular-nums; }
.delta-value { display: inline-block; min-width: 2em; border-radius: 3px; padding: .1rem .25rem; }
.agreement { color: #21675c; }
.disagreement { color: #854319; background: #fae9da; font-weight: 650; }
.evidence-row > td { padding: 0; background: #f7f7f1; border-top-style: dashed; }
.record-evidence { padding: 1rem 1.5rem 1.5rem; max-width: 1050px; font: .95rem/1.65 Georgia, serif; }
.evidence-heading { font: 600 1rem/1.5 system-ui, sans-serif; margin-top: 0; }
dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: .55rem 1rem; margin: 1.25rem 0; }
dt { font: 600 .8rem/1.6 system-ui, sans-serif; }
dd { margin: 0; overflow-wrap: anywhere; }
blockquote { border-left: 3px solid #b7c8bf; margin: .75rem 0; padding-left: 1rem; }
.empty-state { padding: 1.5rem; border: 1px dashed #9caaa5; text-align: center; font-family: system-ui, sans-serif; }
.supporting { max-width: 950px; margin-top: 3rem; }
.supporting h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.report-panel { border-bottom: 1px solid var(--line); }
.report-panel > summary { padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: .95rem; }
.report-panel[open] > summary { color: var(--teal); }
.report-copy { padding: 0 0 1.2rem 1.2rem; }
.report-copy > :first-child { margin-top: 0; }
.report-copy details { padding: .75rem 0; }
.report-copy details summary { cursor: pointer; font-size: .9rem; }
.summary-list { padding-left: 1.3rem; }
.summary-list li { margin: .5rem 0; }
.summary-table { max-width: 460px; }
.summary-table td, .summary-table th { padding: .45rem .75rem; }
.summary-table tbody th { background: #edf2ef; color: var(--ink); }
.century-delta-wrap { max-height: none; margin: 1rem 0; }
.century-delta-table { min-width: 900px; max-width: none; font-variant-numeric: tabular-nums; }
.century-delta-table caption { padding: .5rem .75rem; text-align: left; font-weight: 600; }
.century-delta-table td, .century-delta-table th { padding: .45rem .5rem; white-space: nowrap; text-align: right; }
.century-delta-table thead th { width: auto; }
.century-delta-table th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; }
.century-delta-table .share { color: var(--muted); }
.century-delta-table td.delta-zero { background: #edf5f1; }
.century-delta-table thead .delta-zero { background: var(--teal); }
.century-delta-table tfoot { font-weight: 600; border-top: 2px solid var(--navy); }
.century-delta-table tfoot th { background: #edf2ef; color: var(--ink); }
.chart { display: block; width: 100%; height: auto; }
figure { margin: 1rem 0; }
.downloads { padding-left: 1.2rem; font-size: .95rem; }
.downloads li { margin: 1rem 0; }
.downloads .meta { display: block; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #edf1ef; padding: 1rem; font-size: .8rem; line-height: 1.5; }
code { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 3rem; font-size: .8rem; color: var(--muted); }
footer a { display: block; margin-top: .5rem; }
section, [id] { scroll-margin-top: 1rem; }
[hidden] { display: none !important; }
.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; }
@media (max-width: 700px) {
  main { padding: 1.25rem 1rem 3rem; }
  .totals { gap: 1.5rem; }
  .totals strong { font-size: 1.55rem; }
  .totals span { font-size: .73rem; }
  .filters { padding: .75rem; }
  .filters label { flex: 1 1 135px; min-width: 0; }
  .filters .search-label { flex-basis: 100%; }
  .filters select { max-width: 100%; }
  dl { grid-template-columns: 1fr; gap: .2rem; }
  dd { margin-bottom: .65rem; }
  .record-evidence { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; font-size: 10pt; }
  main { max-width: none; padding: 0; }
  nav, .filters, .record-toggle .toggle-icon, #clear { display: none; }
  .table-wrap { overflow: visible; max-height: none; border: none; }
  #comparison-table thead th { position: static; }
  #comparison-table { min-width: 0; font-size: 7pt; }
  .century-delta-table { min-width: 0; font-size: 7pt; }
  .century-delta-table td, .century-delta-table th { padding: .3rem; }
  th button { padding: .4rem; }
  td { padding: .4rem; }
  tbody.record { break-inside: avoid; }
  a { color: inherit; }
}
