/* Block, town, school and station pages. Same colours and type as the explorer (site/index.html). */
:root {
  --bg: #f5f7f6; --panel: #ffffff; --fg: #16211f; --muted: #5b6b67; --line: #dde4e1;
  --accent: #0d6b5f; --accent-soft: #e1f0ec;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1514; --panel: #161e1c; --fg: #e4ece9; --muted: #93a39f; --line: #26312e;
    --accent: #4fc2ae; --accent-soft: #173330; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1514; --panel: #161e1c; --fg: #e4ece9; --muted: #93a39f; --line: #26312e;
  --accent: #4fc2ae; --accent-soft: #173330; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 14px; line-height: 1.45;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 8px 40px;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; display: grid; gap: 12px; }
nav.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-block: 4px; }
nav.top .home { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--fg); text-decoration: none; }
nav.top .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
header h1 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.meta { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.meta a { color: var(--muted); }
.muted { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat { background: var(--panel); padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.stat .k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.card h2 { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.card h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: 12px; padding-top: 8px; }
th, td { padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
td.n, th.n { text-align: right; }
td.price { font-weight: 600; }
tbody tr:hover { background: var(--accent-soft); }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 420px)); gap: 12px 24px; }
ul.near { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
ul.near li { display: flex; gap: 8px; align-items: baseline; }
ul.near .d { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.more { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--panel); border-radius: 6px; padding: 6px 12px; text-decoration: none; font-weight: 500; }
.btn:hover { filter: brightness(1.1); }
footer { color: var(--muted); font-size: 12px; }
footer a { color: var(--muted); }
