/* Shared styles for the guide, route and policy pages built by tools/build-pages.mjs. */
:root {
  color-scheme: dark;
  --bg: #05070b;
  --card-bg: #14171d;
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.13);
  --accent: #64d2ff;
  --purple-line: #bf5af2;
  --green-line: #30d158;
  --yellow-line: #ffd60a;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --text-muted: #5f5f66;
    --border: rgba(0, 0, 0, 0.1);
    --accent: #0369a1;
    --purple-line: #9333ea;
    --green-line: #15803d;
    --yellow-line: #a16207;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header, main, .site-footer { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 900; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.92rem; }
.site-header nav a[aria-current="page"] { color: var(--text); }
article { padding: 24px 0 8px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 32px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.lede { font-size: 1.1rem; color: var(--text); }
.updated { color: var(--text-muted); font-size: 0.85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.stats div { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.stats strong { display: block; font-size: 1.2rem; }
.stats span { color: var(--text-muted); font-size: 0.85rem; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.85em; font-weight: 700; color: #fff; }
.badge.purple { background: var(--purple-line); }
.badge.green { background: var(--green-line); }
.badge.yellow { background: var(--yellow-line); color: #111; }
.tag { font-size: 0.75rem; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); }
.stops, .steps { padding-left: 24px; }
.stops li, .steps li { margin: 4px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card-bg); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
details { margin: 10px 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
summary { cursor: pointer; font-weight: 600; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cards li { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.cards span { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.site-footer { margin-top: 32px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
