:root {
  /* Civic, information-first: one teal accent for actions, a blue-to-red diverging scale for tiers only. */
  --bg: #f6f7f6; --surface: #fcfcfb; --ink: #111614; --ink-2: #4d5551; --muted: #6b736e; --line: #e0e3e0;
  --accent: #0f5c55; --accent-soft: #e3efed;
  --t1: #1c5cab; --t2: #6da7ec; --t3: #a3a29b; --t4: #e8796f; --t5: #b42828;
  --ti1: #fff; --ti2: #0b0b0b; --ti3: #0b0b0b; --ti4: #0b0b0b; --ti5: #fff;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1211; --surface: #181c1b; --ink: #eef1ef; --ink-2: #c0c7c3; --muted: #959d98; --line: #2b302e;
    --accent: #5cc2b6; --accent-soft: #1b2e2b;
    --t1: #86b6ef; --t2: #3987e5; --t3: #6b6a64; --t4: #c45252; --t5: #f08a8a;
    --ti1: #0b0b0b; --ti2: #fff; --ti3: #fff; --ti4: #fff; --ti5: #0b0b0b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1211; --surface: #181c1b; --ink: #eef1ef; --ink-2: #c0c7c3; --muted: #959d98; --line: #2b302e;
  --accent: #5cc2b6; --accent-soft: #1b2e2b;
  --t1: #86b6ef; --t2: #3987e5; --t3: #6b6a64; --t4: #c45252; --t5: #f08a8a;
  --ti1: #0b0b0b; --ti2: #fff; --ti3: #fff; --ti4: #fff; --ti5: #0b0b0b; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px; z-index: 10; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 17px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--accent); text-decoration: underline; }

main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 24px; }
.lead { color: var(--ink-2); max-width: 68ch; font-size: 17px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.small { font-size: 13px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.pill { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.t0 { background: var(--t1); color: var(--ti1); } .t1 { background: var(--t2); color: var(--ti2); } .t2 { background: var(--t3); color: var(--ti3); } .t3 { background: var(--t4); color: var(--ti4); } .t4 { background: var(--t5); color: var(--ti5); }
.tn { background: var(--line); color: var(--ink-2); }
.flag { font-size: 12px; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; color: var(--t5); white-space: nowrap; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kv div { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.kv b { display: block; font-size: 22px; }
.kv span { font-size: 13px; color: var(--muted); }
.headline { font-size: 18px; font-weight: 650; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr 52px; gap: 3px 8px; font-size: 14px; }
.bar .track { grid-column: 1 / -1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--ink-2); }
.bar .fill.hi { background: var(--t5); } .bar .fill.lo { background: var(--t1); }
.bar .w { color: var(--muted); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td .sub { display: block; font-size: 13px; color: var(--muted); }

.survey { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.survey h3 { font-size: 15px; }
.cites { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cites li { border-left: 4px solid var(--line); padding: 2px 0 2px 12px; font-size: 15px; }
.cites li.harm { border-left-color: var(--t4); } .cites li.ij { border-left-color: var(--t5); } .cites li.pot { border-left-color: var(--t3); }
.cites .meta { font-size: 13px; font-weight: 600; color: var(--ink-2); }
details summary { cursor: pointer; font-weight: 600; color: var(--accent); }

.finder { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.finder label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, select, button { font: inherit; color: inherit; }
input, select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface); min-height: 44px; }
.btn { border: 1px solid var(--accent); background: var(--accent); color: var(--surface); padding: 9px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; min-height: 44px; }
.btn.ghost { background: var(--surface); color: var(--accent); }
.tierbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.tierbar button { border: 0; padding: 10px 8px; text-align: left; cursor: pointer; border-radius: 6px; font-size: 13px; line-height: 1.25; min-height: 44px; }
.tierbar button[aria-pressed="false"] { opacity: 0.35; }
.tierbar b { display: block; font-size: 20px; }
@media (max-width: 560px) { .tierbar { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tierbar button { font-size: 11px; padding: 8px 4px; } }
#map { height: 440px; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 560px) { #map { height: 320px; } }
.notice { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); }
footer.site .in { max-width: 1120px; margin: 0 auto; padding: 20px 16px 32px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.pagefind-ui { --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--accent); --pagefind-ui-text: var(--ink); --pagefind-ui-background: var(--surface); --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--accent-soft); --pagefind-ui-font: var(--font); }
@media print { .topbar, footer.site, #map, .finder, .noprint { display: none !important; } body { background: #fff; } .panel { border: 0; padding: 0; } }

/* maps */
.mapwrap { display: flex; flex-direction: column; gap: 10px; }
.maptools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
.layers { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.layers legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.layers label { display: flex; gap: 6px; align-items: center; font-size: 14px; min-height: 32px; }
.layers input { accent-color: var(--accent); width: 18px; height: 18px; min-height: 0; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; flex: 1 1 320px; }
.legend > div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.legend b { width: 100%; font-size: 13px; }
.legend .lg { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.legend .lg i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.legend .lg i.sq { border-radius: 2px; }
.linkbtn { background: none; border: 0; padding: 4px 0 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 13px; display: block; }
.small-btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
tr.sel td { background: var(--accent-soft); }
.basemap-ctrl { display: flex; }
.basemap-ctrl button { width: auto !important; padding: 0 10px !important; font: 600 12px var(--font) !important; color: #111614; }
.basemap-ctrl button[aria-pressed="true"] { background: #0f5c55 !important; color: #fff; }
.maplibregl-popup-content { font-family: var(--font); color: #111614; padding: 12px 14px; border-radius: 8px; }
.pop { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pop-name { font-weight: 700; font-size: 15px; color: #0f5c55; }
.pop-sub { color: #4d5551; }
.pop-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pop-btns { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 4px; border-top: 1px solid #e0e3e0; }
.pop-btns a { color: #0f5c55; font-weight: 600; }
.locgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.locgrid:has(.sv) { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .locgrid:has(.sv) { grid-template-columns: 1fr; } }
#fmap, .locgrid .sv { height: 340px; border-radius: 8px; border: 1px solid var(--line); width: 100%; }

.legend .lg i.er{width:14px;height:14px;border-radius:3px;background:#fff;border:2px solid #26302d;position:relative;box-sizing:border-box}
.legend .lg i.er::before,.legend .lg i.er::after{content:"";position:absolute;background:#26302d}
.legend .lg i.er::before{left:4px;top:1px;width:2px;height:8px}
.legend .lg i.er::after{left:1px;top:4px;width:8px;height:2px}

/* home page */
.hero { display: flex; flex-direction: column; gap: 14px; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 42px); max-width: 22ch; }
.hero .lead { font-size: 18px; max-width: 64ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hero-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.hero-search label { font-weight: 700; }
.hero-search input { font: inherit; font-size: 18px; padding: 10px 12px; width: 9.5em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 26px; font-weight: 800; color: var(--ink); }
.stats span { font-size: 14px; color: var(--ink-2); }
.cols3, .steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cols3 > div, .steps3 > li { display: flex; flex-direction: column; gap: 6px; }
.cols3 p, .steps3 p { color: var(--ink-2); }
.steps3 { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps3 > li { counter-increment: s; }
.steps3 > li h3::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.promises { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--accent-soft); border-radius: 10px; padding: 20px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
