/* County Heatmap — county & state pages (RELEASE_PLAN.md CV2). Same tokens,
   fonts and light/dark behaviour as the app; phone-first; no JavaScript
   except the same Google Analytics tag as the map. */
@import url("vendor/fonts.css?v=1");
:root { --bg:#f4f5f7; --card:#fff; --ink:#111827; --ink2:#4b5563; --ink3:#6b7280; --rule:#e2e5ea; --accent:#b45309; --fill:#f59e0b; --approx:#c2410c; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg:#15171b; --card:#1e2026; --ink:#f3f4f6; --ink2:#b9c0cb; --ink3:#8b93a0; --rule:#2a2f37; --accent:#fbbf24; --fill:#f59e0b; --approx:#fb923c; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
       padding: 10px 16px; background: #1e293b; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Outfit, Inter, sans-serif;
         font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.brand img { border-radius: 7px; }
.cta { color: #1e293b; background: var(--fill); padding: 7px 12px; border-radius: 9px; text-decoration: none; font-weight: 800; font-size: 13px; white-space: nowrap; }
main { max-width: 900px; margin: 0 auto; padding: 16px 16px 40px; }
.crumbs { font-size: 13px; color: var(--ink3); margin: 4px 0 10px; }
.crumbs a { color: var(--ink2); }
h1 { font-family: Outfit, Inter, sans-serif; font-size: 28px; line-height: 1.15; margin: 0 0 4px; text-wrap: balance; }
.sub { color: var(--ink2); margin: 0 0 12px; }
.hero { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
@media (min-width: 700px) { .hero { grid-template-columns: 1.4fr 1fr; } }
.facts { margin: 0 0 14px; padding-left: 18px; color: var(--ink); }
.facts li { margin: 3px 0; }
.btn { display: inline-block; background: var(--fill); color: #1e293b; font-weight: 800; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.minimap { width: 100%; max-width: 360px; height: auto; justify-self: center; }
.mm-state { fill: var(--rule); stroke: var(--ink3); stroke-width: 1; }
.mm-county { fill: var(--fill); stroke: #111827; stroke-width: 1; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin: 2px 0 6px; }
table { width: 100%; border-collapse: collapse; }
.card th, .card td { padding: 6px 0; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; font-size: 14px; }
.card tr:first-child th, .card tr:first-child td { border-top: 0; }
.card th { font-weight: 600; color: var(--ink); width: 42%; padding-right: 8px; }
.card td.v { font-weight: 700; white-space: nowrap; padding-right: 10px; }
.card td.na { color: var(--ink3); font-weight: 500; }
.card td.r { color: var(--ink2); font-size: 13px; }
@media (max-width: 520px) {
  .card tr { display: grid; grid-template-columns: 1fr auto; }
  .card th { width: auto; }
  .card td.r { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
}
.sims { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0; }
.sims a { display: inline-block; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--bg); }
.note { color: var(--ink3); font-size: 13px; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
table.state th, table.state td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; font-size: 14px; white-space: nowrap; }
table.state thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); }
.states { columns: 2; list-style: none; padding: 0; }
@media (min-width: 700px) { .states { columns: 3; } }
.states li { margin: 4px 0; }
.states span { color: var(--ink3); font-size: 13px; }
.foot { text-align: center; color: var(--ink3); font-size: 13px; padding: 20px 16px 32px; }
.foot a { color: var(--ink2); }
/* Category headers: same icon + colour as the app's category tabs
   (CATEGORY_ICONS / CATEGORY_COLORS in app.js). Tailwind 400 shades on dark,
   700 shades on light so the text stays legible on white. */
.card h2.cat { display: flex; align-items: center; gap: 8px; color: var(--cc); font-size: 14px; }
.card h2.cat i { font-size: 15px; width: 18px; text-align: center; }
.c-pink-400   { --cc: #be185d; } .c-cyan-400 { --cc: #0e7490; } .c-orange-400 { --cc: #c2410c; }
.c-teal-400   { --cc: #0f766e; } .c-sky-400  { --cc: #0369a1; } .c-blue-400   { --cc: #1d4ed8; }
.c-rose-400   { --cc: #be123c; }
@media (prefers-color-scheme: dark) {
  .c-pink-400 { --cc: #f472b6; } .c-cyan-400 { --cc: #22d3ee; } .c-orange-400 { --cc: #fb923c; }
  .c-teal-400 { --cc: #2dd4bf; } .c-sky-400  { --cc: #38bdf8; } .c-blue-400   { --cc: #60a5fa; }
  .c-rose-400 { --cc: #fb7185; }
}
/* Phase DK: values not measured in the county itself */
.card td .approx { color: var(--approx); font-weight: 900; margin-right: 2px; }
.card tr.src td { font-size: 12px; color: var(--ink2); padding-top: 0; border-top: 0; }
@media (max-width: 600px) { .card tr.src td { grid-column: 1 / -1; } }
