/* The pages search engines read (scripts/pages.mjs): the app's own look,
   plainer, made for reading. */
@import url("/fonts/fonts.css");

:root {
  --bg: #edf1f3; --surface: #ffffff; --ink: #0f2231; --muted: #566975; --line: #d5dde2;
  --signal: #ffc61a; --signal-ink: #0f2231; --link: #1d4ed8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b161e; --surface: #14222c; --ink: #e9f0f4; --muted: #8da0ac; --line: #26363f; --link: #8ab4ff; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 8px 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 12px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h3 small { font: 500 0.95rem "Barlow", sans-serif; color: var(--muted); }

.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #0f2231; color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 700 1.5rem/1 "Barlow Condensed", sans-serif; }
.brand svg { width: 24px; height: 24px; color: var(--signal); }
.open { color: #0f2231; background: var(--signal); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; }

.crumbs, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.crumbs { padding-top: 14px; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.12rem; max-width: 65ch; }
.muted { color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 10px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
.button.primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }

.badge { display: inline-grid; place-items: center; min-width: 2.2em; height: 1.7em; padding: 0 6px; border-radius: 6px; background: var(--c); color: #fff; font: 700 1.05rem/1 "Barlow Condensed", sans-serif; }

.line, .route { background: var(--surface); border-radius: 12px; padding: 16px; margin: 12px 0; }
.line ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line li p { margin: 0; }
.links { margin: 12px 0 0; font-size: 0.95rem; }

.stops { margin: 8px 0 0; padding-left: 1.6em; columns: 2 16em; column-gap: 24px; }
.stops li { break-inside: avoid; padding: 2px 0; }

.places, .lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.places a, .lines a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; background: var(--surface); border-radius: 10px; color: var(--ink); text-decoration: none; }
.lines a { flex-direction: row; align-items: center; gap: 10px; }
.places span, .lines span { color: var(--muted); font-size: 0.95rem; }
.others { line-height: 2; }

footer { margin-top: 40px; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
footer a { color: var(--muted); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
