:root { --text: #262730; --muted: #6b6f7b; --line: #e6e9ef; --accent: #0b5cad; --bg: #ffffff; --card: #f5f6f8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font: 16px/1.5 "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); }
body.loading main { visibility: hidden; }
header.top, main, footer, .bar { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
header.top { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; padding-top: 24px; }
h1 { font-size: 2.4rem; margin: 0 0 4px; line-height: 1.15; }
h2 { font-size: 1.5rem; margin: 0 0 16px; }
h4 { font-size: 1.15rem; margin: 24px 0 8px; }
.subtitle { font-size: 1.1rem; font-weight: 600; margin: 4px 0; }
.caption { color: var(--muted); font-size: 0.875rem; margin: 6px 0 12px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
.logo img { display: block; max-width: 100%; height: auto; }

.bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; max-width: none; }
.bar nav, .bar .settings { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.bar nav a { color: var(--text); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; font-weight: 600; font-size: 0.95rem; }
.bar nav a:hover { border-color: var(--accent); }
.settings .ctl { margin: 0; flex-direction: row; align-items: center; gap: 8px; }
.langs button { font: inherit; border: 1px solid #c8ccd4; background: #fff; padding: 3px 12px; cursor: pointer; }
.langs button:first-child { border-radius: 6px 0 0 6px; } .langs button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.langs button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

main { padding-top: 16px; padding-bottom: 32px; }
section { padding: 24px 0 32px; border-bottom: 1px solid var(--line); }
.howto { background: var(--card); border-radius: 8px; padding: 12px 16px 2px; margin-top: 8px; font-size: 0.95rem; }
.cols { display: grid; gap: 28px; }
.c31 { grid-template-columns: 3fr 1fr; } .c32 { grid-template-columns: 3fr 2fr; } .c23 { grid-template-columns: 2fr 3fr; }
.cols > * { min-width: 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr !important; } header.top { flex-direction: column; } h1 { font-size: 1.9rem; } }

.ctls { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 8px; }
.ctl { display: flex; flex-direction: column; margin-bottom: 8px; }
.ctl-label { font-size: 0.875rem; color: var(--muted); margin-bottom: 2px; }
.radios { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.opt input { accent-color: var(--accent); }
select { font: inherit; padding: 4px 8px; border: 1px solid #c8ccd4; border-radius: 6px; background: #fff; min-width: 160px; }
.help { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; border: 1px solid #aab; font-size: 11px; cursor: help; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0; }
@media (max-width: 900px) { .metrics { grid-template-columns: 1fr 1fr; } }
.metric { background: var(--card); border-radius: 8px; padding: 10px 14px; }
.m-label { font-size: 0.85rem; color: var(--muted); } .m-value { font-size: 1.9rem; font-weight: 600; line-height: 1.25; } .m-delta { font-size: 0.85rem; color: var(--muted); }
.chart { width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.mapbox { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map { width: 100%; height: 640px; background: #eef1f4; }
@media (max-width: 700px) { .map { height: 480px; } }
.zoomhint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; font-size: 0.9rem; pointer-events: none; z-index: 5; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.zoomhint.off { display: none; }
.mapslot { display: flex; align-items: center; justify-content: center; height: 420px; border: 2px dashed #c8ccd4; border-radius: 6px; color: var(--muted); padding: 24px; text-align: center; }
.maplibregl-popup.tip .maplibregl-popup-content { font-size: 13px; line-height: 1.4; padding: 8px 10px; pointer-events: none; }
.legend { margin: 6px 0 10px; } .lg { display: inline-flex; align-items: center; margin-right: 14px; font-size: 13px; }
.sw { width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; display: inline-block; } .sw.round { border-radius: 50%; border: 1px solid #222; }
.lg-title p { margin: 8px 0 4px; }

.side-h { margin-top: 4px; } .side-h p { margin-bottom: 6px; }
.finding { margin: 0 0 14px; } .f-label { font-size: 13px; line-height: 1.35; } .f-value { font-size: 26px; font-weight: 600; line-height: 1.3; } .f-note { font-size: 12px; color: #777; line-height: 1.35; }
.callout { background: #e8f1fb; border-radius: 8px; padding: 10px 14px 2px; margin: 12px 0; font-size: 0.95rem; }

.tablewrap { overflow-x: auto; margin: 8px 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--card); position: sticky; top: 0; } td.r { text-align: right; }
td .cov { display: inline-block; vertical-align: middle; width: 70px; height: 8px; background: #e3e5ea; border-radius: 4px; overflow: hidden; margin-right: 6px; }
td .cov > span { display: block; height: 100%; background: #1d9e75; }
footer { padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
.error { color: #b00020; }

.lookup-in { font: inherit; padding: 6px 10px; border: 1px solid #c8ccd4; border-radius: 6px; width: 160px; text-transform: uppercase; }
.warn { background: #fff4e0; border-radius: 8px; padding: 10px 14px; }
td.c { text-align: center; }
