/*
 * css/coverage-map.css — the coverage map (js/coverage-map.js), one home for its look.
 *
 * Used by the landing page (index.html, #covmap) and by the admin health map (js/coverage-map-health.js, on
 * admin/dev-admin.html and admin/parcel-map-preview.html). Everything is scoped to .covmap and .cm-*; the admin
 * health rules at the end are scoped to .covmap.is-health, so nothing there can change the landing page.
 * Moved out of index.html on 2026-09-24 so the admin maps share it rather than a copy.
 */
.covmap{--cm-panel:#1a1a2e;--cm-card:#1e1e35;--cm-input:#16213e;--cm-accent:#00d4d4;--cm-hover:#20e8e8;--cm-text:#e8e8f0;--cm-text2:#a0a8b8;--cm-muted:#6a7080;--cm-border:#2a3050;display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"bar bar" "stage panel" "legend legend";gap:14px;max-width:1100px;margin:0 auto 22px;text-align:left}
.cm-bar{grid-area:bar;display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-width:0}
.cm-search{position:relative;flex:1 1 320px;min-width:0}
.cm-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--cm-muted);pointer-events:none}
.cm-q{width:100%;height:48px;padding:0 14px 0 42px;background:var(--cm-input);border:1px solid var(--cm-border);border-radius:10px;color:var(--cm-text);font-family:inherit;font-size:16px;font-weight:500;-webkit-appearance:none;appearance:none}
.cm-q::placeholder{color:var(--cm-muted)}
.cm-q:focus{outline:none;border-color:var(--cm-accent);box-shadow:0 0 0 3px rgba(0,212,212,.18)}
.cm-results{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;background:#141a2e;border:1px solid var(--cm-border);border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.45);max-height:328px;overflow:auto}
.cm-opt{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:7px;cursor:pointer;font-size:14.5px;color:var(--cm-text)}
.cm-opt.on,.cm-opt:hover{background:rgba(0,212,212,.12)}
.cm-o-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-o-s{flex:none;color:var(--cm-muted);font-size:12.5px;font-weight:600}
.cm-opt.is-on .cm-o-s{color:var(--cm-accent)}
.cm-none{padding:12px;color:var(--cm-text2);font-size:13.5px}
.cm-views{display:inline-flex;background:var(--cm-input);border:1px solid var(--cm-border);border-radius:10px;padding:3px;gap:2px}
.cm-view{height:40px;padding:0 16px;border:0;background:transparent;color:var(--cm-text2);font-family:inherit;font-size:13.5px;font-weight:600;border-radius:7px;cursor:pointer}
.cm-view:hover{color:var(--cm-text)}
.cm-view.on{background:rgba(0,212,212,.14);color:var(--cm-accent)}
.cm-stage{grid-area:stage;position:relative;height:540px;min-width:0;border-radius:10px;border:1px solid var(--cm-border);overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#121b33 0%,#0b1020 72%);touch-action:pan-y}
.cm-svg{display:block;width:100%;height:100%;cursor:grab;-webkit-tap-highlight-color:transparent}
.cm-svg:active{cursor:grabbing}
.cm-ocean{fill:transparent}
.cm-grat{fill:none;stroke:rgba(0,212,212,.055);stroke-width:1;vector-effect:non-scaling-stroke}
.cm-land{fill:#141a2d;stroke:#222a44;stroke-width:.8;vector-effect:non-scaling-stroke}
.cm-r{stroke-width:.9;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .2s,fill-opacity .25s,stroke .2s}
.cm-r.k-none{fill:#1a2136;stroke:#2c3553}
.cm-r.k-partial{fill:#10303a;stroke:rgba(0,212,212,.42)}
.cm-r.k-statewide{fill:rgba(0,212,212,.3);stroke:rgba(32,232,232,.72)}
.cm-r.k-expanding{fill:#212d42;stroke:#3a4565}
.cm-r:hover{stroke:var(--cm-hover);stroke-width:1.7}
.cm-r.k-statewide:hover{fill:rgba(0,212,212,.44)}
.cm-r.k-partial:hover{fill:#14404c}
.cm-r.is-dim{fill-opacity:.4;stroke-opacity:.6}
.cm-r.is-sel{stroke:var(--cm-hover);stroke-width:2.2;fill-opacity:1;stroke-opacity:1}
.cm-c{fill:rgba(26,33,54,.55);stroke:rgba(160,168,184,.28);stroke-width:.6;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .2s}
.cm-c.is-live{fill:rgba(0,212,212,.36);stroke:rgba(32,232,232,.62)}
.cm-c:hover{stroke:var(--cm-hover);stroke-width:1.5}
.cm-c.is-pick{stroke:#fff;stroke-width:2.2;fill:rgba(0,212,212,.58)}
.cm-c.is-pick:not(.is-live){fill:rgba(248,113,113,.22);stroke:#f87171}
.cm-dots{filter:url(#cm-glow)}
.cm-dot{fill:var(--cm-accent);stroke:#0b1020;stroke-width:1;vector-effect:non-scaling-stroke;cursor:pointer}
.cm-dot:hover{fill:#fff}
.cm-dot.is-hide{display:none}
.cm-lab{fill:var(--cm-text);stroke:#0b1020;paint-order:stroke;font-family:inherit;font-weight:600;pointer-events:none}
.cm-inset{cursor:pointer}
.cm-insets{transition:opacity .25s}
.cm-insets.is-away{opacity:0;pointer-events:none}
.cm-inset-box{fill:rgba(11,16,32,.9);stroke:var(--cm-border)}
.cm-inset:hover .cm-inset-box,.cm-inset.is-sel .cm-inset-box{stroke:var(--cm-hover)}
.cm-inset-label{fill:var(--cm-text2);font-size:10.5px;font-weight:600;text-anchor:middle;pointer-events:none}
.cm-zoombar{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:6px;z-index:5}
.cm-zoombar button{width:38px;height:38px;border-radius:8px;border:1px solid var(--cm-border);background:rgba(22,33,62,.92);color:var(--cm-text);font:600 18px/1 system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.cm-zoombar button:hover{border-color:var(--cm-accent);color:var(--cm-accent)}
.cm-zoombar svg{width:17px;height:17px}
@media (pointer:coarse){.cm-zoombar button{width:44px;height:44px}.cm-view{height:44px}.cm-list button{min-height:44px}}
.cm-tip{position:absolute;z-index:6;pointer-events:none;background:rgba(20,26,46,.97);border:1px solid var(--cm-border);border-radius:8px;padding:8px 11px;font-size:13px;color:var(--cm-text);box-shadow:0 8px 24px rgba(0,0,0,.4);display:flex;flex-direction:column;gap:2px;max-width:240px;line-height:1.35}
.cm-tip[hidden]{display:none}
.cm-tip span{color:var(--cm-accent);font-size:12px;font-weight:600}
.cm-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);max-width:90%;background:rgba(20,26,46,.96);border:1px solid var(--cm-border);color:var(--cm-text2);font-size:12.5px;padding:7px 12px;border-radius:8px;opacity:0;transition:opacity .25s;pointer-events:none;z-index:6;white-space:nowrap}
.cm-hint.on{opacity:1}
.cm-status{position:absolute;inset:0;display:none;align-items:center;justify-content:center;color:var(--cm-text2);font-size:14px;z-index:4;text-align:center;padding:24px}
.covmap.is-loading .cm-status,.covmap.is-failed .cm-status{display:flex}
.covmap.is-loading .cm-status::before{content:'';width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid rgba(0,212,212,.25);border-top-color:var(--cm-accent);animation:cmSpin .8s linear infinite}
@keyframes cmSpin{to{transform:rotate(360deg)}}
.covmap:not(.is-ready) .cm-zoombar{display:none}
.covmap,.covmap *,.covmap *::before,.covmap *::after{box-sizing:border-box}
.cm-panel{grid-area:panel;background:var(--cm-panel);border:1px solid var(--cm-border);border-radius:10px;padding:20px;height:540px;overflow:auto;min-width:0;display:flex;flex-direction:column}
.cm-panel > *{flex:none}
.cm-panel .cm-list{flex:1 1 auto;min-height:88px;max-height:none}
.cm-panel .cm-cta{align-self:flex-start}
.cm-p-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--cm-accent);margin-bottom:6px}
.cm-p-title{font-size:22px;font-weight:700;color:var(--cm-text);margin:0 0 10px;line-height:1.2;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cm-p-text{font-size:14px;line-height:1.6;color:var(--cm-text2);margin:0 0 12px}
.cm-p-meta{font-size:12.5px;color:var(--cm-muted);margin:0 0 14px}
.cm-p-note{font-size:12.5px;color:#f87171;margin:0 0 12px}
.cm-p-pick{font-size:14px;line-height:1.5;margin:0 0 12px;padding:10px 12px;border-radius:8px;border:1px solid var(--cm-border)}
.cm-p-pick.is-on{color:var(--cm-text);background:rgba(0,212,212,.08);border-color:rgba(0,212,212,.35)}
.cm-p-pick.is-off{color:var(--cm-text);background:rgba(248,113,113,.07);border-color:rgba(248,113,113,.3)}
.cm-badge{font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:5px;letter-spacing:.02em}
.cm-badge.b-statewide{background:rgba(0,212,212,.16);color:var(--cm-accent)}
.cm-badge.b-partial{background:rgba(0,212,212,.08);color:#7fe7e7}
.cm-badge.b-expanding,.cm-badge.b-none{background:rgba(160,168,184,.12);color:var(--cm-text2)}
.cm-facts{list-style:none;margin:4px 0 16px;padding:0;display:flex;flex-direction:column;gap:8px}
.cm-facts li{font-size:14px;color:var(--cm-text2);padding-left:16px;position:relative;line-height:1.45}
.cm-facts li::before{content:'';position:absolute;left:0;top:.55em;width:7px;height:7px;border-radius:50%;background:var(--cm-accent);box-shadow:0 0 8px rgba(0,212,212,.6)}
.cm-facts b{color:var(--cm-text);font-weight:700}
.cm-list{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:1fr;gap:4px;max-height:260px;overflow:auto}
.cm-list button{width:100%;text-align:left;min-height:36px;padding:6px 10px;border-radius:7px;border:1px solid transparent;background:var(--cm-card);color:var(--cm-text);font-family:inherit;font-size:13.5px;cursor:pointer;display:flex;justify-content:space-between;gap:8px;align-items:center}
.cm-list button small{color:var(--cm-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-list button:hover,.cm-list button.on{border-color:rgba(0,212,212,.45);color:var(--cm-accent)}
.cm-back{align-self:flex-start;text-align:left;background:none;border:0;padding:0;margin:0 0 12px;color:var(--cm-text2);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:32px}
@media (pointer:coarse){.cm-back{min-height:44px}}
.cm-back:hover{color:var(--cm-accent)}
.cm-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:8px;background:var(--cm-accent);color:#0f0f1a;font-weight:700;font-size:14px;text-decoration:none;margin-top:4px}
.cm-cta:hover{background:var(--cm-hover)}
.cm-legend{grid-area:legend;display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:center;font-size:12.5px;font-weight:600;color:var(--cm-text2)}
.cm-legend span{display:inline-flex;align-items:center;gap:7px}
.cm-legend i{display:inline-block;width:14px;height:14px;border-radius:3px}
.cm-legend .l-state{background:rgba(0,212,212,.3);border:1px solid rgba(32,232,232,.72)}
.cm-legend .l-part{background:#10303a;border:1px solid rgba(0,212,212,.42)}
.cm-legend .l-dot{width:9px;height:9px;border-radius:50%;background:var(--cm-accent);box-shadow:0 0 6px rgba(0,212,212,.7)}
.cm-legend .l-none{background:#1a2136;border:1px solid #2c3553}
@media (max-width:1023px){.covmap{grid-template-columns:minmax(0,1fr);grid-template-areas:"bar" "stage" "panel" "legend"}.cm-stage{height:min(60vh,520px)}.cm-panel{height:auto}.cm-panel .cm-list{flex:none;max-height:264px}}
@media (max-width:600px){.cm-stage{height:400px}.cm-views{width:100%}.cm-view{flex:1;padding:0 8px}.cm-panel{padding:16px}.cm-p-title{font-size:19px}.cm-hint{white-space:normal;text-align:center}}
.cm-view:focus-visible,.cm-zoombar button:focus-visible,.cm-list button:focus-visible,.cm-back:focus-visible,.cm-cta:focus-visible{outline:2px solid var(--cm-accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cm-r,.cm-c,.cm-hint,.cm-insets{transition:none}}

/* ── The admin health map (js/coverage-map-health.js): only inside .covmap.is-health ─────────────────────────── */
/* A state is coloured by how real lookups went there (green 90% and up, amber 80-90%, red under 80%); a state with
   no recent lookups is tinted by its worst source; a dot is a county or city source, coloured by its status. */
.is-health .cm-r.h-good{fill:rgba(52,211,153,.26);stroke:rgba(52,211,153,.8)}
.is-health .cm-r.h-shaky{fill:rgba(245,158,11,.26);stroke:rgba(245,158,11,.82)}
.is-health .cm-r.h-bad{fill:rgba(248,113,113,.3);stroke:rgba(248,113,113,.85)}
.is-health .cm-r.h-quiet{fill:#10303a;stroke:rgba(0,212,212,.42)}
.is-health .cm-r.h-quiet-degraded{fill:#2a2617;stroke:rgba(245,158,11,.55)}
.is-health .cm-r.h-quiet-down{fill:#2d1a25;stroke:rgba(248,113,113,.62)}
.is-health .cm-r.h-none{fill:#1a2136;stroke:#2c3553}
.is-health .cm-r.h-good:hover{fill:rgba(52,211,153,.4)}
.is-health .cm-r.h-shaky:hover{fill:rgba(245,158,11,.4)}
.is-health .cm-r.h-bad:hover{fill:rgba(248,113,113,.44)}
.is-health .cm-r.h-quiet:hover{fill:#14404c}
.is-health .cm-dot.s-healthy{fill:#34d399}
.is-health .cm-dot.s-degraded{fill:#f59e0b}
.is-health .cm-dot.s-down{fill:#f87171}
.is-health .cm-dot.s-unknown{fill:#a0a8b8}
.is-health .cm-dot:hover{fill:#fff}
.is-health .cm-dot.is-fail{fill:rgba(248,113,113,.16);stroke:#f87171;stroke-width:1.6}
.is-health .cm-dot.is-fail:hover{fill:rgba(248,113,113,.55)}
.is-health .cm-c.s-healthy{fill:rgba(52,211,153,.3);stroke:rgba(52,211,153,.62)}
.is-health .cm-c.s-degraded{fill:rgba(245,158,11,.28);stroke:rgba(245,158,11,.62)}
.is-health .cm-c.s-down{fill:rgba(248,113,113,.3);stroke:rgba(248,113,113,.68)}
.is-health .cm-c.s-unknown{fill:rgba(160,168,184,.2);stroke:rgba(160,168,184,.5)}
.is-health .cm-c.is-pick{stroke:#fff;stroke-width:2.2;fill-opacity:1}
.is-health .cm-tip .t-good{color:#34d399}
.is-health .cm-tip .t-shaky{color:#f59e0b}
.is-health .cm-tip .t-bad{color:#f87171}
.is-health .cm-tip .t-2{color:var(--cm-text2);font-weight:500}
.is-health .cm-badge.b-good{background:rgba(52,211,153,.16);color:#34d399}
.is-health .cm-badge.b-shaky{background:rgba(245,158,11,.16);color:#f59e0b}
.is-health .cm-badge.b-bad{background:rgba(248,113,113,.16);color:#f87171}
.is-health .cm-badge.b-quiet{background:rgba(160,168,184,.12);color:var(--cm-text2)}
.cm-chip{flex:none;display:inline-flex;align-items:center;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:5px;text-transform:uppercase;letter-spacing:.04em}
.cm-chip.s-healthy{background:rgba(52,211,153,.14);color:#34d399}
.cm-chip.s-degraded{background:rgba(245,158,11,.14);color:#f59e0b}
.cm-chip.s-down{background:rgba(248,113,113,.14);color:#f87171}
.cm-chip.s-unknown{background:rgba(160,168,184,.14);color:var(--cm-text2)}
.is-health .cm-list button{align-items:flex-start}
.is-health .cm-list button .cm-l-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.is-health .cm-list button .cm-l-main small{white-space:normal}
.cm-kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;font-size:13px;margin:0 0 14px;padding:12px;border:1px solid var(--cm-border);border-radius:8px;background:var(--cm-card)}
.cm-kv dt{color:var(--cm-muted)}
.cm-kv dd{margin:0;color:var(--cm-text);overflow-wrap:anywhere}
.cm-kv .cm-err{color:#f87171}
.cm-kv code{font-family:'IBM Plex Mono',monospace;font-size:11.5px;color:var(--cm-text2)}
.is-health .cm-legend .l-good{background:rgba(52,211,153,.26);border:1px solid rgba(52,211,153,.8)}
.is-health .cm-legend .l-shaky{background:rgba(245,158,11,.26);border:1px solid rgba(245,158,11,.82)}
.is-health .cm-legend .l-bad{background:rgba(248,113,113,.3);border:1px solid rgba(248,113,113,.85)}
.is-health .cm-legend .l-quiet{background:#10303a;border:1px solid rgba(0,212,212,.42)}
.is-health .cm-legend .l-quiet-down{background:#2d1a25;border:1px solid rgba(248,113,113,.62)}
.is-health .cm-legend .l-quiet-degraded{background:#2a2617;border:1px solid rgba(245,158,11,.55)}
.is-health .cm-legend .l-sdot{width:9px;height:9px;border-radius:50%}
.is-health .cm-legend .l-s-healthy{background:#34d399}
.is-health .cm-legend .l-s-degraded{background:#f59e0b}
.is-health .cm-legend .l-s-down{background:#f87171}
.is-health .cm-legend .l-s-unknown{background:#a0a8b8}
.is-health .cm-legend .l-fail{width:10px;height:10px;border-radius:50%;background:rgba(248,113,113,.16);border:1.6px solid #f87171}
