:root {
  color-scheme: light;
  --ink: #101d16;
  --muted: #4d6155;
  --paper: #eef2e9;
  --card: #fcfdfa;
  --soft: #e2ece1;
  --border: #d7e3d8;
  --dark: #0c1a12;
  --dark-2: #162a1d;
  --mint: #86f59b;
  --mint-ink: #152d1d;
  --amber: #ffcf82;
  font: 16px/1.5 "Aptos", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 70rem 38rem at 16% 0, #cce2cd 0%, transparent 85%), var(--paper); color: var(--ink); }
h1,h2,h3,p,ul,ol,dl,dd { margin: 0; }
h1,h2,h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(2.45rem, 5.5vw, 4.5rem); font-weight: 760; }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.65rem); font-weight: 740; }
h3 { font-size: 1.15rem; }
a { color: #244e37; text-underline-offset: .19em; }
button,input,select { font: inherit; color: inherit; }
button,select { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid #3b8764; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(72rem, calc(100% - 4rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid rgb(41 68 49 / .13); }
.mast,.spread,.screen-head,.toolbar { display: flex; align-items: center; gap: .75rem; }
.spread,.mast,.screen-head { justify-content: space-between; }
.mast { min-height: 4.9rem; }
.brand { display: inline-flex; align-items: center; gap: .64rem; text-decoration: none; color: var(--ink); font-size: 1.05rem; font-weight: 670; line-height: 1; }
.brand strong { margin-left: .2em; }
.brand small { display: block; margin-top: .35rem; font-size: .57rem; letter-spacing: .13em; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .82rem; background: var(--dark); color: var(--mint); }
.brand-mark svg { width: 1.75rem; height: 1.75rem; }
.nav-links a { display: inline-flex; gap: .45rem; align-items: center; color: var(--muted); text-decoration: none; font-weight: 650; }
.desktop-nav { display: flex; gap: .2rem; padding: .25rem; border-radius: 1rem; background: rgb(255 255 255 / .4); }
.desktop-nav a { padding: .57rem .85rem; border-radius: .77rem; font-size: .88rem; }
.desktop-nav a[aria-current] { background: var(--dark); color: white; }
.mobile-nav { display: none; }
.feed-label,.date { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 650; color: var(--muted); }
.feed-label i,.date i,.last-seen i { width: .43rem; height: .43rem; border-radius: 50%; background: #389661; flex: none; }
main { min-height: 56vh; padding-block: 2.25rem; }
.stack,.explore-main,.explore-side,.card-list { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.explore-grid,.detail-grid { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); align-items: start; gap: clamp(1.2rem,4vw,3.8rem); }
.explore-side { padding-top: .25rem; }
.welcome { display: flex; align-items: center; justify-content: space-between; }
.page-title { display: grid; gap: .55rem; margin: .35rem 0 1.25rem; }
.explore-main .page-title { margin: -.1rem 0 .15rem; }
.page-title p,.pane p { color: var(--muted); }
.page-title p { font-size: 1.02rem; }
.icon-btn,.back { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 2.7rem; min-height: 2.7rem; border-radius: .8rem; border: 0; background: rgb(255 255 255 / .62); color: var(--ink); text-decoration: none; }
.back { padding: .45rem .7rem; font-size: .82rem; font-weight: 680; }
.icon-btn:hover,.back:hover { background: white; }
.segments { display: inline-grid; grid-auto-columns: 1fr; grid-auto-flow: column; min-width: 0; gap: .22rem; padding: .24rem; border-radius: .95rem; background: rgb(255 255 255 / .5); }
.segments button,.segments a { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 2.65rem; padding: .4rem .7rem; color: var(--muted); border: 0; border-radius: .76rem; background: transparent; text-decoration: none; font-weight: 650; font-size: .9rem; white-space: nowrap; }
.segments button[aria-pressed=true] { color: white; background: var(--dark); }
.segments :is(button,a):hover:not([aria-pressed=true]) { background: rgb(255 255 255 / .7); }
.journey-form { display: grid; gap: .72rem; }
.pair { display: grid; grid-template-columns: 1.25rem minmax(0,1fr) auto; gap: .65rem; align-items: center; border: 1px solid rgb(255 255 255 / .7); border-radius: 1.5rem; padding: .4rem 1.05rem; background: rgb(252 253 250 / .78); }
.pair-fields label { display: grid; gap: .06rem; padding: .67rem 0; }
.pair-fields label+label { border-top: 1px solid var(--border); }
.pair-fields label span { color: var(--muted); font-size: .83rem; }
.pair-fields select { border: 0; background: transparent; font-size: 1rem; font-weight: 720; width: 100%; min-height: 1.7rem; padding-inline-end: .25rem; }
.pair-rail { position: relative; display: grid; align-content: space-between; justify-items: center; height: 3.9rem; }
.pair-rail::before { content: ''; position: absolute; inset-block: .4rem; border-inline-start: 2px dashed #73ba84; left: calc(50% - 1px); }
.pair-rail i { position: relative; width: .72rem; height: .72rem; background: var(--card); border: 2px solid #509c64; border-radius: 50%; }
.pair-rail i:last-child { background: #509c64; }
.swap { background: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .46rem; min-height: 2.7rem; border: 1px solid transparent; border-radius: .78rem; padding: .51rem .82rem; font-size: .87rem; font-weight: 720; color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.mint { background: var(--mint); color: var(--mint-ink); }
.btn.mint:hover { background: #a5f9b4; }
.journey-form .btn { justify-content: flex-start; padding-inline: .95rem; min-height: 3.02rem; }
.journey-form .btn svg:last-child,.tracker-action svg:last-child { margin-inline-start: auto; }
.btn.quiet { background: var(--card); border-color: var(--border); }
.btn.quiet:hover,.btn.quiet[aria-pressed=true] { background: var(--soft); }
.result-head { margin-top: .65rem; }
.result-head .muted { margin-top: .23rem; }
.muted { color: var(--muted); font-size: .8rem; }
.service-card { display: grid; gap: .75rem; min-width: 0; padding: 1.06rem 1.15rem; border-radius: 1.3rem; background: var(--dark); color: #f7fcf7; text-decoration: none; }
.service-card:hover { background: #152a1c; }
.service-operator { display: flex; align-items: center; gap: .4rem; color: #c8d9cd; font-size: .81rem; font-weight: 650; }
.service-operator svg { width: 1rem; height: 1rem; color: var(--mint); }
[data-status="on-time"] { --status-ink:#144c30; --status-fill:#d4f2db; --status-accent:#65e393; }
[data-status="delayed"] { --status-ink:#64370a; --status-fill:#ffe3a7; --status-accent:#ffbe58; }
[data-status="cancelled"] { --status-ink:#821f2d; --status-fill:#ffdde2; --status-accent:#ff8795; }
[data-status="recorded"] { --status-ink:#244875; --status-fill:#dceaff; --status-accent:#99c5ff; }
[data-status="pending"] { --status-ink:#46534e; --status-fill:#e8ecea; }
.status { display:inline-block; max-width:100%; padding:.14rem .48rem; border-radius:.52rem; background:var(--status-fill); color:var(--status-ink); font-size:.73rem; font-weight:740; line-height:1.35; }
.service-card[data-status] { box-shadow:inset 4px 0 0 var(--status-accent,transparent); }
.list strong+.status { margin:.18rem .34rem .16rem; }
.ends,.ticket-ends { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .6rem; align-items: start; }
.ends div,.ticket-ends div { display: grid; }
.ends div:last-child,.ticket-ends div:last-child { text-align: right; }
.ends strong { font-size: 1.55rem; letter-spacing: -.05em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.ends span { color: #bbd0c1; font-size: .85rem; overflow-wrap: anywhere; }
.ticket-line { --track: #659475; position: relative; display: flex; justify-content: space-between; height: 9px; align-items: center; color: #74db8b; margin-inline: .05rem; }
.ticket-line::before { content: ''; position: absolute; border-top: 1px dashed var(--track); width: 100%; }
.ticket-line i { position: relative; display: block; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; background: var(--dark); }
.ticket-line i:last-child { background: currentColor; }
.ticket-line b { position: absolute; left: clamp(12px,var(--position),calc(100% - 12px)); transform: translateX(-50%); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: .52rem; color: var(--dark); background: var(--mint); }
.ticket-line b svg { width: 1rem; height: 1rem; stroke-width: 2; }
.service-foot { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .63rem .7rem; border-radius: .77rem; background: #1b3624; font-size: .9rem; }
.service-foot div { display: grid; }
.service-foot small,.via { font-size: .7rem; color: #bad2c1; }
.arrow-circle { width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--mint); color: var(--dark); border-radius: .58rem; }
.arrow-circle svg { width: 1.05rem; height: 1.05rem; }
.tracker { display: grid; gap: 1.5rem; min-width: 0; padding: clamp(1rem,3vw,1.55rem); color: #f5faf5; border-radius: 1.65rem; background: radial-gradient(ellipse at 75% 100%, #1e3e29, transparent 68%), var(--dark); }
.tracker-head { display: flex; align-items: center; gap: .75rem; }
.tracker-head p { color: #b4cab9; font-size: .81rem; margin-top: .24rem; }
.badge-icon { display: grid; width: 2.35rem; height: 2.35rem; flex: none; place-items: center; border-radius: .72rem; background: var(--soft); color: #33654a; }
.tracker-head .badge-icon { background: #274634; color: var(--mint); }
.ticket-stack { position: relative; isolation: isolate; margin-top: .35rem; }
.ticket-stack::before { content: ''; position: absolute; inset: -.6rem 7% 0; z-index: -1; background: #547362; border-radius: 1.28rem; }
.ticket { padding: 1rem 1.1rem; border-radius: 1.2rem; background: var(--card); color: var(--ink); }
.ticket-label { color: var(--muted); font-size: .78rem; font-weight: 650; }
.ticket h3 { margin: .58rem 0 1rem; font-size: clamp(1.2rem,2.8vw,1.65rem); }
.ticket h3 span { color: #629578; }
.ticket-ends { margin-bottom: .6rem; }
.ticket-ends strong { font-size: 1rem; line-height: 1.12; }
.ticket-ends small,.track-caption,.last-seen { color: var(--muted); font-size: .77rem; }
.ticket .ticket-line { --track: #739281; color: #27573c; }
.ticket .ticket-line i { background: var(--card); }
.ticket .ticket-line i:last-child { background: currentColor; }
.track-caption { margin-top: .6rem; }
.last-seen { display: flex; flex-wrap: wrap; align-items: center; gap: .28rem; margin-top: .48rem; }
.last-seen i { margin-right: .15rem; }
.ticket-tear { position: relative; border-top: 1px dashed #b7c9bc; margin: 1rem -.2rem .85rem; }
.ticket-tear::before,.ticket-tear::after { content: ''; position: absolute; top: -.49rem; width: .9rem; height: .9rem; background: var(--dark-2); border-radius: 50%; }
.ticket-tear::before { left: -1.34rem; }
.ticket-tear::after { right: -1.34rem; }
.ticket-facts { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr) minmax(0,.65fr); gap: .6rem; }
.ticket-facts dt,.time-facts dt { color: var(--muted); font-size: .77rem; }
.ticket-facts dd { font-size: 1.24rem; font-weight: 760; }
.tracker-action { margin-top: .92rem; width: 100%; }
.shortcut-list { display: grid; gap: .45rem; }
.shortcuts { border: 1px solid var(--border); padding: .35rem .7rem; border-radius: 1.15rem; background: rgb(252 253 250 / .61); }
.shortcut-list a,.list a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .63rem; color: var(--ink); text-decoration: none; padding: .45rem 0; }
.shortcut-list a+a { border-top: 1px solid var(--border); }
.shortcut-list a:hover strong,.list a:hover strong { text-decoration: underline; }
.shortcut-list small,.list small { display: block; color: var(--muted); font-size: .78rem; }
.pane { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.08rem 1.15rem; }
.pane h2 { margin-bottom: .8rem; }
.pane .toolbar,.route-grid { margin-top: .8rem; }
.list { list-style: none; padding: 0; }
.list li+li { border-top: 1px solid var(--border); }
.code { display: inline-block; padding: .26rem .52rem; border-radius: .55rem; background: var(--soft); font-size: .73rem; font-weight: 750; color: #3d5e49; letter-spacing: .06em; }
.field { display: grid; gap: .35rem; font-size: .86rem; font-weight: 650; }
.field input,.field select { min-height: 2.75rem; min-width: 0; max-width: 100%; background: var(--card); border: 1px solid #bacbbd; border-radius: .7rem; padding: .45rem .62rem; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.filters label:first-child { flex: 1 1 16rem; }
.filters label:nth-child(2) { flex: 0 1 15rem; }
.toolbar { flex-wrap: wrap; margin-bottom: .75rem; }
.empty { color: inherit; padding: .75rem 0; }
.empty a { color: inherit; }
.card-list>.empty { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; }
.advisory { display: flex; align-items: start; gap: .6rem; padding: .72rem .85rem; background: #ffefce; color: #553910; border-radius: .85rem; font-size: .88rem; }
.board { min-width: 0; overflow: hidden; border-radius: 1.2rem; color: var(--amber); background: #181c17; }
.board-head { padding: .9rem 1rem; background: #282f25; }
.board-head p { color: #e9d2a6; font-size: .79rem; margin-top: .16rem; }
.board-button { color: var(--amber); background: #343c2f; border-color: #617057; }
.board-row,.board-label { display: grid; grid-template-columns: 3rem minmax(0,1fr) 2.2rem 5.6rem; gap: .35rem; padding: .65rem .85rem; align-items: start; }
.board-row { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.34; }
.board-row:hover { background: #252f24; }
.board-row span:nth-child(2) { font-weight: 700; overflow-wrap: anywhere; }
.board-row small { display: block; color: #d9cba8; font-size: .74rem; font-weight: 450; }
.board-label { color: #e7d2ad; text-transform: uppercase; font: .7rem ui-monospace,monospace; }
.board-service { border-top: 1px solid #40483c; }
.board-service[data-status] { box-shadow:inset 3px 0 0 var(--status-accent,transparent); }
.board-status .status { padding:.13rem .31rem; font-size:.7rem; }
.board-status small { margin-top:.18rem; }
.board .empty,.board-note { padding: .8rem 1rem; }
.cancelled,.bad-text { color: #f7a596; }
.ticker { container-type: inline-size; overflow: hidden; padding-bottom: .5rem; margin: 0 .85rem; color: #dfcda7; font: .72rem/1.3 ui-monospace,monospace; }
.ticker span { display: block; width: max-content; white-space: nowrap; animation: ticker 21s ease-in-out infinite alternate; }
.paused .ticker span { animation: none; width: auto; white-space: normal; }
@keyframes ticker { 0%,15% { transform: translateX(0); } 85%,100% { transform: translateX(min(0px,calc(100cqi - 100%))); } }
#train-info { margin-bottom: .8rem; }
.train-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.timeline { display: grid; gap: .65rem; }
.timeline h3 { padding: .4rem 0; font-size: .84rem; letter-spacing: 0; color: var(--muted); }
.points { padding: 0; list-style: none; }
.points li { position: relative; display: grid; grid-template-columns: .68rem minmax(0,1fr) auto; gap: .6rem; padding: .42rem .35rem; }
.points li::before { content: ''; position: absolute; top: 0; bottom: 0; left: .64rem; border-left: 1px solid #a8c4ad; }
.points li i { width: .68rem; height: .68rem; border: 2px solid #588068; border-radius: 50%; background: var(--card); position: relative; margin-top: .28rem; }
.points li.point-past i { background: #588068; }
.points .point-focus { background: var(--soft); border-radius: .55rem; }
.points small { display: block; color: var(--muted); font-size: .72rem; }
.points .bad-text { color: #942e23; }
.points a { color: inherit; font-weight: 700; }
.point-time { text-align: right; font-variant-numeric: tabular-nums; }
.coach-pane .spread { align-items: start; }
.coach-pane h2 { margin-bottom: .25rem; }
.coach-picker { display: flex; gap: .38rem; overflow-x: auto; padding: .35rem .15rem; margin-block: .75rem; scrollbar-width: thin; }
.coach-number { min-width: 2.65rem; min-height: 2.65rem; border: 0; border-radius: .72rem; background: var(--soft); font-weight: 720; }
.coach-number[aria-pressed=true] { background: var(--dark); color: white; }
.coach-art { display: grid; gap: .3rem; padding: .85rem 1rem .65rem; background: radial-gradient(ellipse at 60% 0,#e7f8e6,transparent 80%), #e4ece4; border-radius: 1.1rem 1.1rem .6rem .6rem; margin-bottom: .4rem; }
.coach-art>span { justify-self: start; padding: .25rem .58rem; border-radius: .5rem; background: var(--dark); color: #e7f7ea; font-size: .75rem; font-weight: 700; }
.coach-art svg { width: 100%; height: auto; max-height: 10rem; stroke-width: 2; }
.art-track { stroke: #b6c7b7; }
.art-body { stroke: #39684c; fill: #d0f3d4; }
.art-roof,.art-wheels { stroke: #39684c; }
.art-trim { stroke: #5b9c6d; }
.art-window { fill: #496c58; stroke: none; }
.art-door { stroke: #639776; }
.formation { overflow-x: auto; padding: .65rem; background: #e8eee7; border-radius: 1rem; scrollbar-width: thin; }
.formation-cars { display: flex; gap: .28rem; width: max-content; }
.car { display: flex; align-items: center; gap: .27rem; background: var(--card); border: 2px solid #b5c9b9; border-radius: .55rem; padding: .68rem .52rem; }
.car:first-child { border-top-left-radius: 1.7rem; border-bottom-left-radius: 1.7rem; }
.car:last-child { border-top-right-radius: 1.7rem; border-bottom-right-radius: 1.7rem; }
.car i { display: block; height: .65rem; width: .6rem; background: #cadcd0; border-radius: .13rem; }
.car.selected { border-color: #417f58; background: #d4f9d9; }
.car b { font-size: .76rem; }
.coach-pane>.muted { margin-top: .5rem; }
.coach-facts { margin-top: .9rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.coach-facts h3 { margin-bottom: .5rem; }
.time-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .8rem; padding: .35rem 0; }
.time-facts div+div { border-top: 1px solid var(--border); }
.time-facts dd { font-size: .9rem; }
.follows li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.follows a { display: flex; }
.footer { display: flex; gap: .5rem 1rem; flex-wrap: wrap; padding-block: .7rem 2rem; color: var(--muted); font-size: .77rem; }
#more-results { margin-top: .35rem; }
#notice { color: #83251d; }
.rail-map-layout { display:grid; grid-template-columns:minmax(0,2.1fr) minmax(17rem,1fr); gap:1rem; align-items:start; }
.map-card { min-width:0; background:var(--card); border:1px solid var(--border); border-radius:1.25rem; overflow:hidden; }
.rail-map-bar { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:.55rem; padding:.7rem .85rem; }
#rail-map { min-width:0; width:100%; height:clamp(24rem,62vh,43rem); background:#e4ece4; }
.map-state,.map-credits { margin:.6rem .85rem; }
.map-credits { font-size:.72rem; color:var(--muted); }
.map-legend { display:flex; flex-wrap:wrap; gap:.45rem .85rem; list-style:none; padding:.62rem .85rem 0; font-size:.77rem; }
.map-legend li { display:inline-flex; align-items:center; gap:.32rem; }
.map-legend i { display:inline-block; width:.65rem; height:.65rem; border-radius:50%; background:#214a63; }
.map-legend .legend-station { background:#fff; border:2px solid #42564a; }
.map-legend .legend-estimate { background:#258552; }
.map-legend .legend-range { width:1rem; height:0; border-top:2px dotted #246c46; border-radius:0; }
.map-side .map-explainer { margin:.5rem 0; font-size:.85rem; }
.map-services { list-style:none; padding:0; margin:.65rem 0; max-height:29rem; overflow:auto; }
.map-services li { display:flex; align-items:center; gap:.45rem; justify-content:space-between; border-top:1px solid var(--border); padding:.55rem .2rem; }
.map-services a { color:var(--ink); text-decoration:none; }
.map-services a:hover { text-decoration:underline; }
.map-services small { display:block; font-size:.77rem; color:var(--muted); }
.map-call-status { margin-top:.25rem; }
.performance-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin:.75rem 0; }
.performance-stats div { padding:.65rem .7rem; border-radius:.7rem; background:#e6f4ea; color:#194d34; }
.performance-stats div+div { background:#fff0ed; color:#782f31; }
.performance-stats dt,.performance-stats small { font-size:.76rem; }
.performance-stats dd { font-size:1.52rem; font-weight:770; line-height:1.25; font-variant-numeric:tabular-nums; }
.performance-history { font-size:.84rem; margin:.65rem 0; }
.performance-history summary { cursor:pointer; font-weight:700; }
.performance-history table { border-collapse:collapse; width:100%; margin:.45rem 0; font-variant-numeric:tabular-nums; }
.performance-history :is(th,td) { padding:.3rem .18rem; border-bottom:1px solid var(--border); text-align:right; }
.performance-history th:first-child { text-align:left; }
.performance-source { margin-top:.65rem; }
.route-reliability { margin-top:1rem; }
.reliability-stats div+div { background:#e6f4ea; color:#194d34; }
.station-facilities div { padding:.65rem 0; border-bottom:1px solid var(--border); }
.station-facilities dt { font-weight:700; }
.station-facilities dd { margin:.15rem 0 0; }
.station-facilities small { display:block; margin-top:.25rem; }
.published-incidents:not(:empty) { margin-bottom:1rem; }
.incident { border-top:1px solid var(--border); padding:.75rem 0; }
.incident summary { cursor:pointer; }
.incident summary :is(strong,span) { display:block; margin-top:.15rem; }
.incident p { margin:.55rem 0; }
.map-services button,.rail-pin { display:grid; place-items:center; padding:0; flex:none; color:var(--ink); background:var(--soft); }
.map-services button { width:2.65rem; height:2.65rem; border:0; border-radius:.65rem; }
.rail-pin { width:28px; height:28px; border:2px solid #fff; border-radius:50%; box-shadow:0 1px 4px #0005; }
.rail-pin svg { width:16px; height:16px; }
.rail-pin.station-pin { width:26px; height:26px; border:0; background:transparent; box-shadow:none; }
.rail-pin.station-pin::before { content:''; width:12px; height:12px; border:2px solid #435b4a; background:#fff; border-radius:50%; box-shadow:0 1px 3px #0004; }
.rail-pin.report { background:#214a63; color:#fff; z-index:1; }
.rail-pin.estimate { background:#258552; color:#fff; z-index:2; }
.rail-popup { padding:.18rem; font-size:.85rem; }
.rail-popup p { margin:.3rem 0; }
@media (max-width: 860px) {
  .wrap { width: min(38rem,calc(100% - 2rem)); }
  .explore-grid,.detail-grid,.train-layout { grid-template-columns: minmax(0,1fr); gap: 1.4rem; }
  .explore-side { padding-top: 0; }
  .desktop-nav { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; z-index: 10; inset-inline: 0; bottom: 0; padding: .3rem max(.35rem,calc((100% - 34rem)/2)) calc(.3rem + env(safe-area-inset-bottom)); background: rgb(252 253 250 / .96); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .mobile-nav a { display: grid; justify-items: center; gap: .12rem; font-size: .71rem; padding: .38rem .14rem; border-radius: .65rem; text-align: center; }
  .mobile-nav a[aria-current] { color: var(--ink); background: #e8f3e7; }
  .mast { min-height: 3.75rem; }
  main { padding-block: 1rem; }
  .footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .explore-main { gap: .65rem; }
  .welcome .icon-btn { min-height: 2.2rem; min-width: 2.2rem; }
  .pair-fields label { padding-block: .5rem; }
  .pair-rail { height: 3.6rem; }
  .explore-main .result-head { margin-top: .35rem; }
  .explore-main .page-title h1 { font-size: clamp(2.4rem,9.7vw,3.75rem); }
  .rail-map-layout { grid-template-columns:minmax(0,1fr); }
  #rail-map { height:clamp(22rem,56vh,34rem); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 1.35rem); }
  .service-card,.pane { padding-inline: .8rem; }
  .board-row,.board-label { padding-inline: .54rem; grid-template-columns: 2.6rem minmax(0,1fr) 1.8rem 4.5rem; font-size: .77rem; }
  .feed-label { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; width: auto; white-space: normal; } }
