:root{
  --bg:#f6f4ef; --surface:#fff; --ink:#14212b; --muted:#5b6770; --line:#e4e0d6;
  --brand:#0b2a3a; --accent:#1f7a8c; --r:14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0d151b; --surface:#152029; --ink:#e7edf1; --muted:#9aa8b2; --line:#24323d; --brand:#e7edf1; --accent:#5fb3c4; }
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--accent)}
.wrap{max-width:760px;margin:0 auto;padding:0 16px 40px}
.top{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;max-width:760px;margin:0 auto;padding:20px 16px 12px}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:.08em;font-size:22px;color:var(--brand);text-decoration:none}
.mark{width:14px;height:14px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--accent)}
.tag{color:var(--muted);font-size:14px}
.view-toggle{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--surface);margin:4px 0 12px}
.view-toggle button{border:0;background:none;color:var(--muted);font:inherit;font-size:14px;padding:6px 16px;border-radius:999px;cursor:pointer}
.view-toggle button[aria-selected=true]{background:var(--brand);color:var(--bg)}
.filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:8px;scrollbar-width:none}
.filters button{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;padding:6px 12px;border-radius:999px;cursor:pointer}
.filters button[data-f]:not([data-f=all])::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c);margin-right:6px}
.filters button.on{border-color:var(--ink);font-weight:600}
.list{display:grid;gap:12px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.card h2{font-size:18px;line-height:1.3;margin:6px 0}
.card h2 a{color:inherit;text-decoration:none}
.card h2 a:hover{text-decoration:underline}
.card p{margin:0 0 6px;color:var(--ink)}
.meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.pill{color:var(--c);font-weight:600}
.pill::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c);margin-right:5px}
.meta>*+*::before{content:"· ";color:var(--muted)}
.src{font-size:13px;color:var(--muted)}
.empty{color:var(--muted);padding:24px 0}
.map{height:min(70vh,560px);border-radius:var(--r);border:1px solid var(--line);overflow:hidden}
.article h1{font-size:28px;line-height:1.2;margin:10px 0 14px}
.article p{font-size:17px}
.back{font-size:14px;margin:4px 0 12px}
.source{background:var(--surface);border-left:3px solid var(--accent);padding:12px 14px;border-radius:0 var(--r) var(--r) 0;margin:20px 0;font-size:15px}
.onmap{font-size:15px}
.foot{max-width:760px;margin:0 auto;padding:24px 16px 40px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}
.pin{width:16px;height:16px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--c);border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.leaflet-popup-content a{font-weight:600}
