:root { color-scheme:light; --ink:#233344; --muted:#667788; --blue:#217298; --line:#dce5eb; }
* { box-sizing:border-box; }
body { margin:0; padding:30px 24px; background:#f0f3f5; color:var(--ink); font:14px/1.65 "ChillRoundF",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
main { max-width:1200px; margin:auto; }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:4px; }
button,input { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.5; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.page-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.language-toggle { border:0; padding:5px 0; color:var(--blue); background:none; }
h1 { font-size:30px; line-height:1.3; letter-spacing:-.8px; margin:0 0 8px; font-weight:600; }
p { margin:0; }
header>p { color:var(--muted); }
.context { font-size:12px; margin-top:8px; max-width:800px; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:24px 0 12px; }
.view-controls { display:flex; align-items:center; gap:20px; }
.view-controls button { min-height:44px; padding:8px 0; border:0; border-radius:0; background:none; color:var(--blue); text-underline-offset:5px; }
.view-controls button:hover:not(:disabled) { text-decoration:underline; }
.view-controls button[aria-pressed="true"] { color:var(--ink); text-decoration:underline; text-decoration-thickness:2px; }
.toolbar label { display:flex; align-items:center; gap:5px; font-size:12px; }
input { accent-color:var(--blue); }
.map-frame { position:relative; border:1px solid #cfdbe3; background:#e9eef0; }
#map { width:100%; height:65vh; min-height:420px; max-height:780px; }
.map-status,.no-script { position:absolute; top:14px; left:14px; max-width:calc(100% - 75px); background:white; border:1px solid var(--line); padding:10px 14px; font-size:12px; box-shadow:0 2px 8px #2333440d; z-index:2; }
.map-status:empty { display:none; }
.map-summary { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:14px; font-size:11px; color:var(--muted); }
.legend { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.legend strong { font-weight:500; color:var(--ink); }
.legend>span { display:inline-flex; gap:5px; align-items:center; }
.legend i { display:inline-block; width:11px; height:11px; border-radius:2px; }
.selection { margin-top:16px; font-size:13px; min-height:22px; }
.help { font-size:11px; color:var(--muted); margin-top:4px; }
.data-notes { border-top:1px solid var(--line); margin-top:20px; padding-top:15px; font-size:11px; color:var(--muted); }
.data-notes p+p { margin-top:6px; }
.maplibregl-ctrl-attrib { font-size:10px; }
[data-zh] { white-space:pre-line; }
@media(max-width:600px) {
  body { padding:20px 16px; }
  .page-nav { margin-bottom:22px; }
  h1 { font-size:26px; }
  .toolbar { gap:8px; }
  .view-controls { gap:16px; }
  .view-controls button { font-size:12px; }
  #map { min-height:380px; height:62vh; }
  .legend { gap:8px; }
}

.maplibregl-map { font:inherit; }
