/* Pages of the places for search engines and readers (scripts/build_pages.mjs). Same colours as the app. */
:root { --bg: #f6f4ef; --panel: #ffffff; --ink: #1b2630; --muted: #5d6b77; --accent: #f5c542; --accent-ink: #7a5a00; --line: #dfe3e6; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111f2a; --panel: #172a38; --ink: #eef1f3; --muted: #a9b8c4; --accent: #f5c542; --accent-ink: #f5c542; --line: #2a3f4f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 22px; color: var(--accent-ink); text-decoration: none; }
.langs { font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.langs b { font-weight: 600; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 4px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
.crumbs, .aka, .kind, .muted, figcaption { color: var(--muted); font-size: 14px; }
.aka { margin: 0 0 2px; }
.kind { margin: 0 0 14px; }
figure { margin: 0 0 14px; }
figure img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 12px; background: var(--line); }
figcaption { margin-top: 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #111f2a; font-weight: 600; text-decoration: none; }
.btn.alt { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.closed { padding: 8px 12px; border-radius: 8px; background: #b3261e22; color: var(--ink); }
.near, .list { padding-left: 20px; }
.list { columns: 2 240px; column-gap: 24px; }
.list li { break-inside: avoid; }
footer { max-width: 760px; margin: 24px auto 0; padding: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.stops { padding-left: 22px; }
.stops li { margin-bottom: 10px; }
h3 { font-size: 17px; margin: 18px 0 6px; }
/* the index of all places: section links that stay at the top, the towns' letters, a search box, towns folded */
.jump { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump a { flex: none; white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: 15px; }
h2[id], details.town { scroll-margin-top: 60px; }
.finder input { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.big { font-size: 15px; }
.abc { display: flex; flex-wrap: wrap; gap: 4px; }
.abc a { min-width: 36px; padding: 6px 0; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; font-weight: 600; }
.towns { display: flex; flex-direction: column; }
details.town { border-bottom: 1px solid var(--line); }
details.town summary { padding: 10px 0; cursor: pointer; font-weight: 600; }
details.town .list { margin-top: 0; }
[hidden] { display: none !important; }
/* town pages (2026-10-26): the highlights with a small photo and their first sentence */
.cards { list-style: none; padding: 0; margin: 0 0 8px; }
.cards li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cards img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.cards li > div { min-width: 0; }
/* «Коротко о главном» on town and area pages (2026-11-19): questions and short answers */
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 12px; }
.faq dd { margin: 2px 0 0; }
/* the search's count, said to screen readers only (2026-11-25) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* what Gido is, under «Open in Gido» (2026-11-30) */
.gido-note { margin: -8px 0 18px; font-size: .9em; }
