/* Styles of the static pages generated by tools/build_pages.py
   (stops, lines and their indexes). Same palette as the map. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f172a; color: #e2e8f0; line-height: 1.5;
}
a { color: #38bdf8; }
a:hover { color: #7dd3fc; }

.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 16px; padding: 10px 16px; background: #1e293b; border-bottom: 1px solid #334155;
}
.top .brand {
  display: flex; align-items: center; gap: 8px;
  color: #f8fafc; font-weight: 700; font-size: 18px; text-decoration: none;
}
.top .brand img { border-radius: 6px; }
.top nav a { color: #cbd5e1; text-decoration: none; margin-left: 14px; font-weight: 600; }
.top nav a:first-child { margin-left: 0; }
.top nav a:hover { color: #f8fafc; }

main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; line-height: 1.25; margin: 8px 0 12px; color: #f8fafc; }
h1 small { display: block; font-size: 15px; font-weight: 500; color: #94a3b8; margin-top: 4px; }
h2 { font-size: 20px; margin: 28px 0 10px; color: #f8fafc; border-bottom: 1px solid #334155; padding-bottom: 4px; }
h3 { font-size: 16px; margin: 18px 0 6px; color: #f8fafc; }
small { color: #94a3b8; }
.note { color: #94a3b8; font-size: 14px; }

.crumbs { font-size: 13px; color: #94a3b8; }
.crumbs a { color: #94a3b8; }

.badge {
  display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 4px;
  background: #334155; color: #fff; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 700; line-height: 20px; white-space: nowrap; vertical-align: 1px;
}
a.badge:hover { filter: brightness(1.15); color: inherit; }
h1 .badge { font-size: 22px; line-height: 32px; padding: 0 10px; vertical-align: 2px; }
.lines .badge { margin: 0 2px 4px 0; }

.button {
  display: inline-block; padding: 10px 16px; border-radius: 8px;
  background: #0ea5e9; color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { background: #0284c7; color: #fff; }

.dep h3 span { font-weight: 600; }
.dep table { border-collapse: collapse; width: 100%; font-size: 14px; }
.dep th, .dep td { text-align: left; vertical-align: top; padding: 6px 8px; border-top: 1px solid #1e293b; }
.dep th { width: 11em; font-weight: 600; color: #cbd5e1; }
.dep td { font-variant-numeric: tabular-nums; word-spacing: 4px; color: #e2e8f0; }
@media (max-width: 560px) {
  .dep th, .dep td { display: block; width: auto; padding: 4px 0; }
  .dep td { border-top: none; padding-bottom: 8px; }
}

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 6px 0; border-bottom: 1px solid #1e293b; }
.list li .badge { font-size: 11px; line-height: 16px; min-width: 22px; padding: 0 4px; }
.lines-list li .badge { font-size: 13px; line-height: 20px; min-width: 40px; margin-right: 6px; }
.route { padding-left: 1.6em; margin: 0; }
.route li { padding: 4px 0; }
.toc a { display: inline-block; padding: 2px 6px; font-weight: 700; }

footer { max-width: 860px; margin: 24px auto 0; padding: 16px; font-size: 13px; color: #94a3b8; border-top: 1px solid #334155; }
footer a { color: #94a3b8; }
