/* ==========================================================================
   Base: reset, typography, focus, reduced motion. Requires tokens.css.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    font-size: var(--fs-md);
    line-height: 1.45;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--volt-2); }
img { max-width: 100%; display: block; }

.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-track { background: transparent; }

.map-root { position: fixed; inset: 0; background: var(--map-bg); z-index: var(--z-map); }
.leaflet-container { background: var(--map-bg); font-family: var(--font); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
