:root {
  color-scheme: light;
  --ink: #192821;
  --muted: #506259;
  --paper: #f4f5ef;
  --rule: #d9e1d8;
  --green: #125840;
  --u1: #005d9c;
  --u2: #e1001a;
  --u3: #38b5b7;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, select { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--green); text-underline-offset: .23em; }
:focus-visible { outline: 3px solid #166da2; outline-offset: 3px; }
.wrap { width: min(calc(100% - 32px), 1080px); margin-inline: auto; }
header { background: #fafbf7; border-bottom: 1px solid var(--rule); }
.mast {
  display: flex; align-items: center; gap: 10px; min-height: 62px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
}
.brand {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--ink); color: white; font-size: 1.2rem;
}
.mast a { margin-left: auto; padding: 12px 0; letter-spacing: 0; font-size: .85rem; }
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--muted); font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
h2, h3, p { margin-top: 0; }
.layout { display: grid; margin-top: 16px; align-items: start; gap: 14px; --route: var(--u3); --route-text: var(--ink); }
.layout[data-line="U1"] { --route: var(--u1); --route-text: #fff; }
.layout[data-line="U2"] { --route: var(--u2); --route-text: #fff; }
.finder, .detail, .service {
  min-width: 0; padding: 18px; border: 1px solid var(--rule); border-radius: 20px;
  background: #fff; box-shadow: 0 5px 20px #162d1a07;
}
.panel-kicker { color: var(--ink); }
.panel-kicker span { color: var(--muted); }
label { display: block; margin-bottom: 5px; font-size: .86rem; font-weight: 750; }
.filters { display: flex; gap: 8px; margin: 8px 0 16px; }
.filters button {
  flex: 1; min-height: 46px; border: 1px solid var(--rule); border-radius: 12px;
  background: #f6f8f5; color: var(--ink); font-weight: 850;
}
.filters button:nth-child(1), .U1 { --line-color: var(--u1); }
.filters button:nth-child(2), .U2 { --line-color: var(--u2); }
.filters button:nth-child(3), .U3 { --line-color: var(--u3); }
.filters button[aria-pressed="true"] { background: var(--line-color); border-color: var(--line-color); color: #fff; }
.filters button:hover, select:hover { border-color: var(--route); }
select { width: 100%; min-width: 0; min-height: 46px; color: var(--ink); background: #fafbf8; }
select { padding: 6px 9px; border: 1px solid #becdc2; border-radius: 11px; }
.finder select { margin-bottom: 12px; }
.finder select:last-child { margin-bottom: 0; }
.empty { padding: 16px 4px; text-align: center; }
.empty-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px;
  border: 1px solid var(--rule); border-radius: 15px; background: #eef4ed; color: var(--route);
  font-size: 1.65rem; font-weight: 700;
}
.empty h2 { margin-bottom: 4px; letter-spacing: -.035em; }
.empty p { max-width: 34ch; margin: 0 auto; color: var(--muted); }
.badge { padding: 3px 8px; border-radius: 7px; color: #fff; background: var(--line-color); font-size: .8rem; font-weight: 800; }
.station-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.station-title h2 { margin: 0; font-size: clamp(1.45rem, 5vw, 2.4rem); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.trip, .caption { color: var(--muted); font-size: .88rem; font-weight: 650; }
.diagram { margin: 14px 0; padding: 12px; border: 1px solid var(--rule); border-radius: 14px; background: #f7f9f5; }
.caption { margin-bottom: 8px; }
.train { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.car {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 66px; border: 1px solid var(--rule); border-radius: 7px;
  background: #eaf0e9; color: var(--muted); text-align: center; font-size: .79rem; font-weight: 750;
}
.car:first-child { border-radius: 22px 7px 7px 7px; }
.car:last-child { border-radius: 7px 22px 7px 7px; }
.car.nearest { background: var(--route); border-color: var(--route); color: var(--route-text); }
.car small { font-size: .69rem; }
.evidence { padding: 13px; border-radius: 13px; background: #fff4df; }
.evidence.supported { background: #eef5ed; }
.pill { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; color: #744710; font-size: .72rem; font-weight: 750; }
.supported .pill { color: var(--green); }
.evidence h3 { margin: 7px 0 4px; font-size: 1.12rem; }
.evidence p, .service p { margin-bottom: 6px; color: var(--muted); }
.evidence .page { font-size: .8rem; }
.service { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.service a { padding-block: 8px; font-weight: 750; }
footer { padding: 24px 0; color: var(--muted); font-size: .9rem; }
footer h2 { margin-bottom: 8px; color: var(--ink); }
@media (min-width: 760px) {
  .layout { grid-template-columns: minmax(260px, 2fr) minmax(0, 3fr); }
  .finder, .detail, .service { padding: 23px; }
  .empty { display: grid; align-content: center; min-height: 275px; }
}

.filters button:nth-child(3)[aria-pressed="true"], .badge.U3 { color: var(--ink); }
