:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f5;
  --text: #1b2421;
  --muted: #56625e;
  --accent: #0f7a5c;
  --accent-text: #ffffff;
  --border: #dfe6e3;
  --badge-bg: #e3f3ed;
  --badge-text: #0b5e47;
  --road: #2f8fe0;
  --road-edge: #1c6bb0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101614;
    --bg-alt: #17201d;
    --text: #e7eeeb;
    --muted: #a2b0ab;
    --accent: #4cc79f;
    --accent-text: #0c1311;
    --border: #26322e;
    --badge-bg: #1d3a30;
    --badge-text: #8fe0c3;
    --road: #3d9be9;
    --road-edge: #8cc6f5;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); }
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid var(--border); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px; padding: 14px 16px;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.sister { font-size: 0.95rem; color: var(--muted); }
.sister a { font-weight: 600; text-decoration: none; }
.sister a:hover { text-decoration: underline; }
.hero { padding: 80px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { margin: 0 0 24px; font-size: 1.6rem; }
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; background: var(--bg);
}
.card h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 999px;
  background: var(--badge-bg); color: var(--badge-text);
}
.crosslink p { margin: 0 0 20px; color: var(--muted); max-width: 620px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 600; text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.site-footer {
  border-top: 1px solid var(--border); padding: 24px 0;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer p { margin: 4px 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.article { max-width: 720px; padding: 48px 16px 64px; }
.article .crumbs { font-size: 0.95rem; color: var(--muted); margin: 0 0 16px; }
.article h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; margin: 12px 0 12px; }
.article .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 32px; }
.article h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.article ul { padding-left: 1.2em; }
.article li { margin: 6px 0; }
.facts {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin: 0 0 8px;
}
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.note { font-size: 0.95rem; color: var(--muted); }
.sources { font-size: 0.95rem; }
.card p + p { margin-top: 12px; }
.table-wrap { overflow-x: auto; margin: 0 0 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg-alt); font-weight: 600; }
@media (max-width: 600px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; }
  .table td { border: 0; padding: 4px 0; }
  .table td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
  .table td:first-child { font-weight: 600; }
}
.badge-strong { background: var(--accent); color: var(--accent-text); }
.road-map-wrap { overflow-x: auto; margin: 8px 0 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); }
.road-map { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .road-map { min-width: 760px; } }
.road-map .road, .road-map .road-edge { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.road-map .road-edge { stroke: var(--road-edge); stroke-width: 26; }
.road-map .road { stroke: var(--road); stroke-width: 18; }
.road-map .road-stop { fill: var(--bg); stroke: var(--text); stroke-width: 4; }
.road-map .road-num { fill: var(--text); font-weight: 700; font-size: 20px; text-anchor: middle; }
.road-map .road-end { fill: var(--accent); stroke: var(--bg); stroke-width: 4; }
.road-map .road-mark { fill: var(--muted); stroke: var(--bg); stroke-width: 3; }
.road-map .road-label { fill: var(--text); font-size: 18px; font-weight: 600; text-anchor: middle; }
.road-map .road-label-end { font-size: 19px; font-weight: 700; }
.road-map .road-label-mark { fill: var(--muted); font-weight: 500; font-size: 16px; }
@media (min-width: 721px) { .road-map-hint { display: none; } }
.route { list-style: none; margin: 16px 0 8px; padding: 0 0 0 36px; position: relative; counter-reset: stop; }
.route::before {
  content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px;
  width: 4px; border-radius: 2px; background: var(--accent); opacity: 0.35;
}
.route li { position: relative; margin: 0 0 20px; }
.route li:last-child { margin-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: -32px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  border: 4px solid var(--accent); background: var(--bg);
}
.route h3 { margin: 0; font-size: 1.1rem; }
.route p { margin: 4px 0 0; }
.route .route-where { font-size: 0.9rem; color: var(--muted); margin: 2px 0 0; }
.route .route-stop { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.route .route-stop { counter-increment: stop; }
.route .route-stop::before {
  content: counter(stop); left: -36px; top: 14px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--text); background: var(--bg); color: var(--text);
  font-size: 0.8rem; font-weight: 700;
}
.route .route-stop h3 { margin-top: 8px; }
.route .route-end::before { background: var(--accent); }
.route .route-end h3 { font-size: 1.15rem; }
.route .route-mark::before {
  left: -29px; top: 6px; width: 12px; height: 12px;
  border-width: 3px; border-color: var(--muted);
}
.route .route-mark h3 { font-size: 1rem; color: var(--muted); }
.planner {
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt);
  padding: 16px; margin: 8px 0 16px;
}
.planner-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.planner label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.planner input, .planner select, .planner button {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-height: 44px;
}
.planner button { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; cursor: pointer; }
.planner .planner-summary { font-size: 1.05rem; font-weight: 700; margin: 14px 0 4px; }
.planner .note { margin: 0; }
.route .route-time { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin: 2px 0 0; }
.route-skip { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.route-skip input { width: 18px; height: 18px; accent-color: var(--accent); }
.route .is-skipped { opacity: 0.55; }
