@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url(fonts/Fraunces.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url(fonts/IBMPlexSans.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexMono.woff2) format("woff2"); }
:root { --paper: #f5f1e8; --ink: #161616; --muted: #5d574d; --rule: #cfc6b4; --accent: #b4400c; --card: #fbf9f4;
        --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem;
        --b0: #ece4d1; --b1: #cfe0d8; --b2: #9cc4b6; --b3: #5f9c8a; --b4: #2f7364; --b5: #154a3e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "IBM Plex Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: var(--s2); top: var(--s2); background: #fff; padding: var(--s1); z-index: 9; }
.mast { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s1) var(--s2);
        padding: var(--s2) var(--s3); border-bottom: 3px double var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 5; }
.brand { font: 700 1.35rem "Fraunces", Georgia, serif; text-decoration: none; letter-spacing: -.01em; }
.brand em { color: var(--accent); font-style: normal; }
nav { justify-self: end; display: flex; gap: var(--s2); align-items: center; font-size: .92rem; }
nav a { text-decoration: none; } nav a:hover { text-decoration: underline; }
.share { font: 600 .9rem "IBM Plex Sans", sans-serif; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: .45rem 1rem; min-height: 40px; cursor: pointer; }
.stamp { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--muted); }
.stamp time { color: var(--ink); font-weight: 600; }
main { max-width: 1180px; margin: 0 auto; padding: var(--s3); }
h1 { font: 700 clamp(1.9rem, 5vw, 3.2rem)/1.08 "Fraunces", Georgia, serif; margin: var(--s1) 0 var(--s2); letter-spacing: -.02em; }
h1 .big { display: block; font-size: 1.45em; font-variant-numeric: tabular-nums; }
h2 { font: 600 1.35rem/1.3 "Fraunces", Georgia, serif; border-top: 1px solid var(--ink); padding-top: var(--s2); margin-top: var(--s4); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0; }
.meta { color: var(--muted); font-size: .92rem; max-width: 75ch; }
.meta b { color: var(--ink); }
.caveat { font-size: .9rem; max-width: 80ch; border-left: 3px solid var(--accent); padding-left: var(--s2); }
.prose { max-width: 75ch; } .prose li { margin-bottom: var(--s1); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: var(--s3) 0; border-top: 1px solid var(--rule); }
.kpis div { padding: var(--s2) var(--s2) var(--s2) 0; border-bottom: 1px solid var(--rule); }
.kpis dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpis dd { margin: 0; font: 500 1.7rem "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.changes { background: var(--card); border: 1px solid var(--rule); padding: var(--s2); margin-top: var(--s3); }
.changes h2 { border: 0; margin: 0 0 var(--s1); padding: 0; font-size: 1.1rem; }
.changes p { margin: 0 0 var(--s1); }
.chips { list-style: none; display: flex; gap: var(--s1); overflow-x: auto; padding: 0 0 4px; margin: 0; scrollbar-width: thin; }
.chips li { flex: none; border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; background: var(--paper); }
.chips b { font-family: "IBM Plex Mono", monospace; color: var(--b4); }
.maphead h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.toggle button { font: 600 .95rem "IBM Plex Sans", sans-serif; border: 0; background: transparent; padding: .35rem .9rem; min-height: 40px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: var(--s2) 0; max-width: 860px; }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none;
        border-radius: 3px; background: var(--b0); font-size: .78rem; line-height: 1.1; transition: transform .12s; }
.tile:hover { transform: scale(1.06); outline: 2px solid var(--ink); }
.tile b { font-size: 1rem; }
.tile span { font-family: "IBM Plex Mono", monospace; font-size: .7rem; }
[data-bin="0"] { background: var(--b0); } [data-bin="1"] { background: var(--b1); } [data-bin="2"] { background: var(--b2); }
[data-bin="3"] { background: var(--b3); color: #fff; } [data-bin="4"] { background: var(--b4); color: #fff; } [data-bin="5"] { background: var(--b5); color: #fff; }
[data-bin="nd"] { background: repeating-linear-gradient(135deg, #e4ddcd 0 4px, #f1ece1 4px 8px); color: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); padding: 0; font-size: .82rem; }
.legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border-radius: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--s4) var(--s3); margin-top: var(--s3); }
.chart, .split { margin: 0; min-width: 0; }
figcaption { font-weight: 600; margin-bottom: var(--s1); }
.canvas { position: relative; height: 300px; }
.note { color: var(--muted); font-size: .82rem; margin: var(--s1) 0 0; }
.bar { display: flex; height: 28px; border-radius: 3px; overflow: hidden; gap: 2px; }
.split ul { list-style: none; padding: 0; margin: var(--s1) 0 0; display: flex; flex-wrap: wrap; gap: .3rem var(--s2); font-size: .9rem; }
.split li b { font-family: "IBM Plex Mono", monospace; margin-left: .2rem; }
.split li span { color: var(--muted); font-size: .8rem; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.m0 { background: #2f6f62; } .m1 { background: #d49a2a; }
.p0 { background: #2f5d8a; } .p1 { background: #b0362b; } .p2 { background: #a39d93; }
.a0 { background: #e2c58f; } .a1 { background: #c79a4b; } .a2 { background: #8f6a2e; } .a3 { background: #4f3a17; }
.g0 { background: #3f5e6b; } .g1 { background: #9b8662; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
th:first-child, td:last-child, .prose td { text-align: left; }
.prose td { white-space: normal; }
tbody th { font-weight: 600; position: sticky; left: 0; background: var(--paper); }
thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
thead button { font: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: .2rem 0; cursor: pointer; color: inherit; }
th[aria-sort="descending"] button::after { content: " ↓"; } th[aria-sort="ascending"] button::after { content: " ↑"; }
td { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
tbody tr:hover td, tbody tr:hover th { background: #ece6d8; }
.nodata { columns: 3 11rem; padding-left: 1.2rem; }
.nodata-big { font: 700 2rem "Fraunces", Georgia, serif; color: var(--muted); margin: 0; }
footer { max-width: 1180px; margin: var(--s4) auto 0; padding: var(--s3); border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; }
@media (max-width: 600px) {
  main { padding: var(--s2); }
  .mast { padding: .6rem var(--s2); position: static; }
  .stamp { font-size: .78rem; }
  nav { gap: .7rem; font-size: .85rem; }
  nav a[href$="#states"] { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis dd { font-size: 1.3rem; }
  .canvas { height: 240px; }
  .tiles { gap: 2px; }
  .tile { font-size: .6rem; border-radius: 2px; }
  .tile b { font-size: .68rem; }
  .tile span { display: none; }
  h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
.kpis small { font: 400 .85rem "IBM Plex Sans", sans-serif; color: var(--muted); }
