:root {
  color-scheme: light;
  --page: #f8f7f1;
  --ink: #21362f;
  --muted: #63766d;
  --border: #d7ddd3;
  --sage: #e8ece2;
  --sage-soft: #f0f3ec;
  --forest: #17604b;
  --white: #fff;
  --danger: #9b3e30;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--forest); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select, input { accent-color: var(--forest); }
button, select { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .62; }
:focus-visible { outline: 3px solid #198367; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 5; top: -80px; left: 16px; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 4px; }
.skip-link:focus { top: 16px; }
.page-shell { max-width: 1280px; padding: 0 42px; margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.wordmark { color: var(--ink); text-decoration: none; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
nav a:hover { color: var(--forest); }
.intro { padding: 45px 0 26px; }
.eyebrow { color: var(--muted); letter-spacing: .14em; font-size: 10px; font-weight: 700; margin: 0 0 14px; }
h1 { margin: 0; font-size: clamp(36px, 5.3vw, 63px); letter-spacing: -.055em; font-weight: 600; line-height: 1.06; }
h1 span { color: var(--muted); }
.intro-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 24px; }
.lede { max-width: 720px; color: var(--muted); font-size: 17px; margin: 0; }
.button { padding: 10px 15px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--white); color: var(--ink); white-space: nowrap; }
.button:hover { border-color: var(--forest); background: var(--sage-soft); }
.button span { margin-left: 12px; }
.load-status { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.error-panel { padding: 18px; border: 1px solid #ddb3a8; border-radius: 6px; background: #fff0ea; color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fbfbf6; }
.stats > * { padding: 18px 22px; border-right: 1px solid var(--border); }
.stats > :last-child { border-right: 0; }
.stats strong, .stat-value { display: block; font-size: 25px; line-height: 1.25; font-weight: 600; letter-spacing: -.04em; }
.stats span, .stats small, .stat-label { color: var(--muted); font-size: 12px; }
.summary-panel { margin-bottom: 40px; color: var(--muted); font-size: 14px; }
.summary-panel:empty { display: none; }
.summary-panel p { margin: 7px 0; }
.summary-panel strong { color: var(--ink); }
.chart-section { margin-bottom: 46px; }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 13px; }
.section-number { font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1; color: var(--muted); border-right: 1px solid var(--border); padding: 6px 17px 6px 0; }
h2 { margin: 0; font-size: clamp(24px, 3vw, 33px); letter-spacing: -.035em; line-height: 1.2; font-weight: 650; }
.direction-pill { margin-left: auto; color: var(--forest); background: var(--sage); padding: 6px 12px; border-radius: 30px; font-size: 11px; letter-spacing: .01em; white-space: nowrap; }
.neutral-pill { color: var(--muted); }
.section-caption { max-width: 1010px; margin: 0 0 20px; }
.section-caption strong { font-weight: 650; }
.rate-panel { border: 1px solid var(--border); border-radius: 6px; background: var(--sage); padding: 16px 18px; margin-bottom: 18px; }
.rate-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 9px; }
h3 { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.rate-heading h3 { margin: 0; font-size: 13px; }
.quiet-badge { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.rate-controls { display: grid; grid-template-columns: minmax(240px, 1.7fr) minmax(160px, .8fr) minmax(200px, 1fr); gap: 14px; }
.control { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
select, input[type="number"] { height: 39px; border: 1px solid var(--border); background: var(--white); border-radius: 5px; color: var(--ink); padding: 8px 10px; max-width: 100%; font-size: 12px; }
select { padding-right: 25px; }
input[type="number"] { width: 100%; }
.rate-note, .rate-sources, .rate-explainer { color: var(--muted); font-size: 12px; }
.rate-note { margin-top: 11px; }
.rate-sources { margin-top: 3px; }
.rate-explainer { margin: 10px 0 0; line-height: 1.6; }
.chart-controls { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin: 19px 0 12px; }
.chart-controls .control { flex: 1 1 155px; min-width: 145px; }
.checkbox-control { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding-bottom: 9px; margin-left: auto; white-space: nowrap; }
input[type="checkbox"] { width: 14px; height: 14px; margin: 0; }
.shape-key { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 12px 0; }
.muted { color: var(--muted); }
.chart-card { border: 1px solid var(--border); border-radius: 7px; background: var(--white); overflow: hidden; }
.chart-container { padding: 8px 4px 0; min-height: 290px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.grid-line { stroke: #dde3d9; stroke-width: 1; }
.axis-text { fill: var(--muted); font-size: 11px; }
.axis-title { fill: var(--ink); font-size: 13px; font-weight: 600; }
.plot-point { cursor: pointer; stroke: #fff; stroke-width: 1.8; transition: stroke-width .12s; }
.plot-point:hover, .plot-point:focus { stroke: var(--ink); stroke-width: 3; outline: none; }
.point-label { fill: var(--ink); font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: white; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.connector { fill: none; stroke-width: 1.6; opacity: .75; }
.reference-line { fill: none; stroke: #647a6d; stroke-width: 1.3; stroke-dasharray: 6 5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; border-top: 1px solid var(--border); padding: 15px 20px; font-size: 11px; }
.chart-legend:empty { padding: 0; border: 0; }
.legend-item { display: inline-flex; gap: 7px; align-items: center; color: var(--ink); }
.legend-dot, .legend-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.chart-legend button { border: 0; background: none; color: var(--ink); font-size: inherit; padding: 3px 0; }
.detail-panel { margin-top: 10px; padding: 13px 16px; min-height: 46px; border-radius: 5px; background: var(--sage-soft); font-size: 12px; }
.detail-panel strong { font-weight: 650; }
.detail-panel p { margin: 2px 0; }
.chart-note { color: var(--muted); font-size: 12px; margin: 9px 0 0; }
.results-section { padding-top: 10px; margin-bottom: 45px; }
.compact-heading { margin-bottom: 20px; }
.table-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.table-toolbar .control { min-width: 200px; }
.table-wrap { overflow: auto; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
th { background: var(--sage-soft); font-size: 11px; color: var(--muted); font-weight: 600; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e6e9e2; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9faf6; }
td:first-child { white-space: normal; min-width: 175px; max-width: 300px; font-weight: 600; }
td small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; }
.status, .status-badge { display: inline-block; border-radius: 4px; padding: 2px 7px; background: var(--sage-soft); color: var(--forest); font-size: 10px; }
.excluded, .status-excluded { color: #985b2c; background: #f8ebdd; }
.coverage-panel { margin-top: 15px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 12px; }
summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.coverage-panel p { margin-bottom: 8px; }
.coverage-panel ul { padding-left: 20px; }
.coverage-panel li { margin: 7px 0; }
.method-section { padding: 30px 0 37px; border-top: 1px solid var(--border); }
.method-section h2 { font-size: 26px; margin-bottom: 24px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; }
code { font-size: .92em; background: var(--sage); padding: 1px 4px; border-radius: 3px; }
.sources-title { margin-top: 27px; }
.sources-list { padding-left: 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.sources-list li { margin: 7px 0; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
footer a { text-decoration: none; }
@media (max-width: 950px) {
  .page-shell { padding: 0 25px; }
  .chart-controls .control { flex-basis: 185px; }
  .rate-controls { grid-template-columns: minmax(230px, 1.5fr) 1fr; }
  .rate-select { grid-column: 1 / -1; }
  .direction-pill { display: none; }
  .chart-container { min-height: 240px; }
  .stats > * { padding: 16px; }
}
@media (max-width: 640px) {
  .page-shell { padding: 0 17px; }
  .site-header { padding: 19px 0; }
  .wordmark { font-size: 9px; letter-spacing: .09em; }
  nav { gap: 13px; }
  nav a { font-size: 11px; }
  .intro { padding-top: 31px; }
  .intro-bottom { align-items: flex-start; flex-direction: column; gap: 17px; }
  .lede { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > * { border-bottom: 1px solid var(--border); }
  .stats > :nth-child(2) { border-right: 0; }
  .stats > :nth-last-child(-n+2) { border-bottom: 0; }
  .section-heading { gap: 12px; }
  .section-number { font-size: 23px; padding-right: 12px; }
  h2 { font-size: 23px; }
  .section-caption { font-size: 13px; }
  .rate-panel { padding: 13px; }
  .rate-controls { grid-template-columns: 1fr; }
  .rate-select { grid-column: auto; }
  .quiet-badge { font-size: 9px; }
  .chart-controls { gap: 11px; }
  .chart-controls .control { flex-basis: calc(50% - 10px); min-width: 125px; }
  .checkbox-control { margin-left: 0; padding: 3px 0; }
  .chart-container { overflow-x: auto; min-height: 0; padding-top: 5px; }
  .chart-svg { min-width: 760px; }
  .chart-legend { padding: 12px; gap: 9px 14px; }
  .detail-panel { padding: 11px 12px; }
  .shape-key { gap: 10px; font-size: 11px; }
  .chart-section { margin-bottom: 35px; }
  .table-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .table-toolbar .button { align-self: flex-start; }
  .method-grid { grid-template-columns: 1fr; gap: 19px; }
  .method-section h2 { font-size: 23px; }
  footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plot-point { transition: none; }
}
.selection-panel { border: 1px solid var(--border); border-radius: 6px; background: var(--sage-soft); padding: 18px 20px; margin: 0 0 32px; }
.selection-heading, .selection-controls, .table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.selection-heading { justify-content: space-between; margin-bottom: 12px; }
.selection-controls > .control { min-width: 190px; }
.family-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.family-checks legend { color: var(--muted); font-size: 12px; padding: 0 0 9px; }
.family-checks label { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.table-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.table-toolbar .control { min-width: 0; }
input[type="search"] { height: 39px; min-width: 0; border: 1px solid var(--border); border-radius: 5px; background: white; padding: 8px 10px; font-size: 12px; }
.table-actions { margin: 12px 0; justify-content: flex-end; }
.table-actions .chart-note { margin: 0 auto 0 0; }
th button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; }
th[aria-sort] button { color: var(--forest); }
.sort-indicator { margin-left: 5px; }
.group-row td { background: var(--sage); padding: 9px 15px; font-weight: 600; }
.group-row button { border: 0; background: none; padding: 2px 0; text-align: left; color: var(--ink); font: inherit; }
.group-row small { display: inline; margin-left: 10px; }
td.provider-cell { white-space: normal; min-width: 150px; max-width: 230px; }
@media (max-width: 640px) {
  .selection-panel { padding: 13px; }
  .selection-controls { align-items: stretch; flex-direction: column; }
  .table-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-actions .chart-note { flex-basis: 100%; }
  .table-actions { justify-content: flex-start; }
}
.table-wrap { max-height: 70vh; }
thead th { position: sticky; top: 0; z-index: 1; }
