[hidden] { display: none !important; }
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a65;
  --border: #e3e1da;
  --accent: #1f5f8b;
  --warn: #b5470b;
  --ok: #2f7a3e;
  --warm: #d9822b;
  --cold: #3d7fc1;
  --rain: #5b8fb9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #222220;
    --text: #ecebe6;
    --muted: #a3a29b;
    --border: #3a3936;
    --accent: #7fb6dc;
    --warn: #f0965e;
    --ok: #7cc58a;
    --warm: #e39a4f;
    --cold: #6fa8de;
    --rain: #7aa9cf;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 22px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.brand { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--muted); font-size: 14px; margin: 4px 0; }
button {
  font: inherit; font-size: 14px; color: var(--accent);
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}

form { position: relative; }
#q {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
}
#suggestions, #suggestions2 {
  position: absolute; z-index: 10; left: 0; right: 0; margin: 4px 0 0; padding: 0;
  list-style: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
#suggestions:empty, #suggestions2:empty { display: none; }
#suggestions li, #suggestions2 li { padding: 10px 14px; cursor: pointer; border-top: 1px solid var(--border); }
#suggestions li:first-child, #suggestions2 li:first-child { border-top: 0; }
#suggestions li[aria-selected="true"], #suggestions li:hover, #suggestions2 li:hover { background: var(--bg); }
button.link { border: 0; padding: 6px 0; }
button[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }

.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.compare-row { position: relative; margin-top: 6px; }
#q2 {
  width: 100%; font: inherit; padding: 10px 12px; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text);
}
#map { height: 240px; border-radius: 12px; margin: 12px 0 6px; border: 1px solid var(--border); }
.aerial { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#aerial-modes { display: flex; gap: 6px; }
#blend-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
#blend { width: 140px; }
#map-hint { margin-bottom: 12px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin-bottom: 12px;
}
.card h3 { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.warn { background: var(--warn); }
.dot.ok { background: var(--ok); }
.card p { margin: 4px 0; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; }
.card li { padding: 6px 0; border-top: 1px solid var(--border); }
.card li:first-child { border-top: 0; }
.kind { font-size: 13px; color: var(--muted); margin-top: 8px; }
.routes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.route { font-size: 12px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); }

footer ul { padding-left: 18px; margin: 0; font-size: 14px; color: var(--muted); }

details { margin-top: 8px; font-size: 14px; }
summary { color: var(--accent); cursor: pointer; }
details p { color: var(--muted); }

.climate-chart { width: 100%; height: auto; margin: 8px 0 4px; display: block; }
.climate-chart text { fill: var(--text); font-size: 10px; }
.climate-chart text.h { font-size: 12px; fill: var(--muted); }
.climate-chart text.m { fill: var(--muted); }
.climate-chart .warm { fill: var(--warm); }
.climate-chart .cold { fill: var(--cold); }
.climate-chart .rain { fill: var(--rain); }
.climate-chart .zero { stroke: var(--border); }

.pcts li.pct { display: grid; gap: 4px; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.card a { color: var(--accent); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 6px 4px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
table.compare thead th { border-top: 0; }
table.compare tbody th { color: var(--muted); font-weight: normal; width: 30%; }

.mode { display: inline-flex; margin-top: 10px; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface); }
.mode button { border: 0; padding: 6px 14px; }

a.place { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
a.place:hover { border-bottom-color: var(--accent); }
