:root {
  --ink: #1d2733;
  --muted: #5b6673;
  --line: #d9dee4;
  --accent: #1f5f8b;
  --accent-soft: #e8f1f8;
  --bg: #fff;
  --panel: #f5f7f9;
  --max: 56rem;
}
* { box-sizing: border-box; }
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, Helvetica, Arial, sans-serif;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.6rem 0 0.4rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
p { margin: 0.5rem 0; }
@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

.site-header { background: var(--accent); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.site-header .brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; overflow-wrap: anywhere; }
.site-header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-header nav a { color: #e9f1f8; text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { text-decoration: underline; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0.8rem 0 0; overflow-wrap: anywhere; }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 0.85rem; padding: 1rem 0 2rem; }

.answer { background: var(--accent-soft); border-radius: 0.5rem; padding: 0.9rem 1rem; margin: 0.8rem 0 1rem; }
.answer table { margin: 0; }
.answer td, .answer th { border-bottom-color: #c9dceb; }
.answer p { margin: 0.5rem 0 0; overflow-wrap: anywhere; }
.also { color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0.5rem 0 1rem; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }

.finder form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 0.6rem; }
.finder input[type=text] { flex: 1 1 14rem; min-width: 0; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 0.3rem; font-size: 1rem; }
.btn { padding: 0.6rem 1rem; border: 0; border-radius: 0.3rem; background: var(--accent); color: #fff; font-size: 1rem; cursor: pointer; }
.btn.secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.hint { display: block; width: 100%; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
#map_canvas { position: relative; width: 100%; height: 60vh; min-height: 20rem; border-radius: 0.4rem; border: 1px solid var(--line); overflow: hidden; }

.readout { display: grid; gap: 0.6rem; margin: 0.8rem 0 1rem; }
@media (min-width: 40rem) { .readout { grid-template-columns: repeat(3, 1fr); } }
.readout section { background: var(--panel); border-radius: 0.5rem; padding: 0.7rem 0.9rem; }
.readout h2 { margin: 0 0 0.3rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.readout dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.readout .pair { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin: 0; }

.towns { columns: 2; column-gap: 1.5rem; padding: 0; list-style: none; font-size: 0.95rem; }
@media (min-width: 40rem) { .towns { columns: 3; } }
@media (min-width: 56rem) { .towns { columns: 4; } }
.towns li { break-inside: avoid; padding: 0.1rem 0; overflow-wrap: anywhere; }
.links { padding-left: 1.2rem; }

.ad { margin: 1rem 0; min-height: 100px; }
.ad ins { min-height: 100px; }

.muted { color: var(--muted); }
h2.also { font-size: 0.95rem; font-weight: 400; margin: 0.2rem 0 0.6rem; }
