/* Content pages (ski bus, stops, about): plain, fast, readable. No scripts, system fonts, and the
   palette of DESIGN.md §6.2. The theme follows the device: hanki (day) or kaamos (dark). */
:root {
  --bg: #F4F7FB; --surface: #FFFFFF; --text: #14213D; --muted: #4A5878; --line: rgba(20, 33, 61, 0.14);
  --link: #1F5FBF; --accent-text: #167A55; --button: #14213D; --button-ink: #F4F7FB;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14213D; --surface: #18284A; --text: #F4F7FB; --muted: #AEB9D2; --line: rgba(244, 247, 251, 0.16);
    --link: #8CC4FF; --accent-text: #5CE1A7; --button: #5CE1A7; --button-ink: #0B2A1E;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 18px; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-height: 56px; border-bottom: 1px solid var(--line); }
header.site nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
header.site nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
header.site .brand { color: var(--text); font-weight: 800; margin-right: auto; }
header.site .langs a { font-weight: 400; }

h1 { font-size: 30px; line-height: 1.2; margin: 26px 0 10px; }
h2 { font-size: 22px; line-height: 1.3; margin: 34px 0 8px; }
h3 { font-size: 18px; margin: 22px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 19px; }
.meta, .note, .count, .crumbs { color: var(--muted); font-size: 15px; }
.count { font-weight: 400; }

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 14px;
  background: var(--button); color: var(--button-ink); font-weight: 700; text-decoration: none;
}

/* Line badges: the line colours of the map with dark text (6.8:1 or more). */
.line { display: inline-block; min-width: 34px; padding: 2px 7px; border-radius: 6px; color: #0B1A2E; font-weight: 800; font-size: 14px; text-align: center; }
.line-R1 { background: #2BB0D6; }
.line-R2 { background: #F07EA0; }

.departures { list-style: none; margin: 8px 0 12px; padding: 0; }
.departures li {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 12px;
  min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.departures .time { font-size: 19px; }
.departures .what { color: var(--muted); font-size: 15px; }
.departures .in { font-weight: 700; color: var(--accent-text); }
.none { font-weight: 600; }

.stops { margin: 4px 0 12px; padding-left: 26px; columns: 2 220px; }
.stops li { break-inside: avoid; min-height: 32px; }
.stops a { display: inline-block; padding: 4px 0; }
.tp { color: var(--muted); font-size: 12px; }

details { margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
summary { min-height: 48px; padding: 12px 14px; cursor: pointer; }
.scroll { overflow-x: auto; padding: 0 14px 12px; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 14px 6px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
.times { font-variant-numeric: tabular-nums; }

footer.site { margin-top: 40px; padding-top: 14px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
