:root {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --text: #fff; --ink2: #c3c2b7; --muted: #8f8e86; --border: #2e2e2b;
  --accent: #8ab4f8; --accent-soft: #1c2a3d; --on-accent: #0b1020;
  --good: #7fd49a; --good-bg: #173222; --warn: #f0c46a; --warn-bg: #3a2e12; --bad: #ff9c94; --bad-bg: #3d1d1a;
  --font-title: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 880px; margin: 0 auto; padding: 40px 16px 80px; }
h1 { font-family: var(--font-title); font-weight: 600; font-size: clamp(30px, 5vw, 42px); line-height: 1.12; margin: 4px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 15px; margin: 18px 0 4px; }
a { color: var(--accent); }
.eyebrow { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--text); }
.lede { color: var(--ink2); font-size: 18px; max-width: 640px; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
details.card > summary { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label, label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 16px; flex: 1; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.row { display: flex; gap: 12px; }
select, input[type=time] { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
select:focus, input[type=time]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button, .chips button, .quick button, .ghost, .btn { white-space: nowrap; font: inherit; font-size: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.seg button:hover, .chips button:hover, .quick button:hover, .ghost:hover, .btn:hover { border-color: var(--muted); }
.seg button[aria-checked=true] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips button { background: var(--accent-soft); border-color: transparent; }
.chips .x { margin-left: 6px; color: var(--muted); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: -4px 0 16px; font-size: 13px; color: var(--muted); }
.quick button { font-size: 13px; padding: 4px 10px; }
.notice { border: 1px solid var(--warn); background: var(--warn-bg); color: var(--text); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 10px; }
.deps { list-style: none; padding: 0; margin: 0 0 12px; }
.dep { display: grid; grid-template-columns: 96px 1fr; gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.dep.past { opacity: 0.55; }
.dep .time { white-space: nowrap; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; grid-row: span 2; }
.dep .time small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.none { background: var(--accent-soft); color: var(--muted); }
.dep .detail { font-size: 13px; color: var(--muted); }
.dep .early { color: var(--bad); font-weight: 600; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
tr.hl td { font-weight: 600; }
ul { padding-left: 20px; color: var(--ink2); }
ul b { color: var(--text); }
footer { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 8px; }
footer b { color: var(--ink2); font-weight: 600; }
@media (max-width: 420px) { .row { flex-direction: column; gap: 0; } .row .field { margin-bottom: 16px; } }

/* Field Documents theme: bus stop signage. Dark page, Metro Transit blue sign blade header, square pills. */
:root {
  color-scheme: dark;
  --bg: #111316; --surface: #1a1d22; --text: #f2f2ee; --ink2: #d6d6d0; --muted: #a5a8ad; --border: #3a3f47;
  --accent: #5aa7f0; --accent-soft: #142538; --on-accent: #fff; --sign: #0053a0; --route: #ffd200;
  --good: #7fd49a; --good-bg: #173222; --warn: #f0c46a; --warn-bg: #3a2e12; --bad: #ff9c94; --bad-bg: #3d1d1a;
  --sign-font: "Overpass", "Highway Gothic", system-ui, sans-serif;
}
body { font-family: "IBM Plex Sans", system-ui, sans-serif; }
header { background: var(--sign); color: #fff; padding: 22px 22px 18px; margin: 0 0 20px; border-radius: 4px; border-bottom: 8px solid var(--route); }
header .eyebrow { color: #c9d6f0; font-family: var(--sign-font); letter-spacing: .14em; }
header .lede { color: #e6ecf8; margin: 0; }
h1 { font-family: var(--sign-font); font-weight: 800; letter-spacing: -0.01em; color: #fff; }
h2, h3, .label, label { font-family: var(--sign-font); }
.card, .dep, .notice, select, input[type=time], .tip { border-radius: 3px; }
.card { border-width: 1px; }
select, input[type=time] { background: var(--surface); border: 2px solid var(--text); }
.seg button, .chips button, .quick button, .ghost, .btn { border-radius: 3px; border: 2px solid var(--text); background: var(--surface); font-family: var(--sign-font); font-weight: 700; }
.seg button[aria-checked=true] { background: var(--route); border-color: var(--route); color: #111; }
.chips button { background: var(--accent-soft); border-color: var(--accent); }
.dep { border: 0; border-top: 3px solid var(--text); border-radius: 0; background: var(--surface); }
.dep .time { font-family: var(--sign-font); font-weight: 800; font-size: 22px; }
.pill { border-radius: 2px; font-family: var(--sign-font); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.pill.bad { background: #c8102e; color: #fff; }
footer .byline { font-family: var(--sign-font); font-weight: 800; color: var(--text); }
