:root { color-scheme: light dark; --text: #1c1c1e; --muted: #6c6c70; --line: #c7c7cc; --bg: #fff; --link: #0a5bc4; }
@media (prefers-color-scheme: dark) { :root { --text: #f2f2f7; --muted: #a0a0a6; --line: #48484a; --bg: #1c1c1e; --link: #6cb0ff; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main, footer { max-width: 560px; margin: 0 auto; padding: 0 16px; }
main { padding-top: 40px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
main > h1 + p { margin: 0 0 24px; }
label { display: block; margin-bottom: 6px; }
.row { display: flex; gap: 8px; }
input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; }
button { font: inherit; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 3em; margin: 20px 0; }
.answer:has(#copy:not([hidden])) { min-height: 0; margin-bottom: 8px; }
#result { margin: 0; font-weight: 600; }
#copy { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: inherit; font-size: 14px; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; }
#copy[hidden] { display: none; }
#copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#map { aspect-ratio: 4 / 3; background: #f6f5f5; border-radius: 8px; margin-bottom: 16px; }
#map[hidden] { display: none; }
#map .leaflet-veil-pane, #map .leaflet-boost-pane { mix-blend-mode: saturation; }
/* One line of credits, like Esri's own Leaflet plugin; a tap shows them all. */
#map .leaflet-bottom.leaflet-right { left: 0; }
#map .leaflet-control-attribution { max-width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#map .leaflet-control-attribution:hover { white-space: normal; }
a { color: var(--link); }
footer { color: var(--muted); font-size: 15px; padding-top: 16px; padding-bottom: 32px; }
