/* oper.run home page. Every colour is a named token with a Light and a Dark value; rules use only var(). */
:root {
  color-scheme: light dark;
  --ground: light-dark(#fcfcfb, #0e1217);
  --panel: light-dark(#ffffff, #161b22);
  --panel-2: light-dark(#e8ebee, #1b2129);
  --ink: light-dark(#121519, #edf1f5);
  --ink-soft: light-dark(#4a515a, #b3bcc7);
  --muted: light-dark(#5d6670, #9aa4b0);
  --rule: light-dark(#d3d8de, #2b323b);
  --rule-strong: light-dark(#b6bec7, #3d4652);
  --wa: light-dark(#1d8a4f, #45c27d);
  --tg: light-dark(#1f6fb2, #5aa9ea);
  --em: light-dark(#b25e22, #e6955a);
  --op: light-dark(#1d4a37, #6fc496);
  --op-hover: light-dark(#2a5e47, #8fd6ad);
  --on-op: light-dark(#f4f7f2, #0b1510);
  --person: light-dark(#e3a200, #f2bf3c);
  --on-person: light-dark(#1a1405, #1a1405);
  --person-tint: light-dark(#fff3d3, #2c2412);
  --sign: light-dark(#151b21, #0a0d11);
  --sign-line: light-dark(#2c353f, #252d36);
  --on-sign: light-dark(#f3f6f9, #eef2f6);
  --on-sign-soft: light-dark(#b9c3cd, #a7b2be);
  --sign-mark: light-dark(#4cb57e, #6fc496);
  --station: light-dark(#ffffff, #0e1217);
  --shade: light-dark(#121519, #000000);
  --selection: light-dark(#cfe8d9, #23483a);
  --sans: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--rule-strong) var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; caret-color: var(--op); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--selection); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--op); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--op); color: var(--on-op); padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
svg { display: block; }

h1 { font: 800 clamp(40px, 4.6vw, 70px)/1.0 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
h2 { font: 800 clamp(30px, 3.4vw, 50px)/1.05 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
h3 { font: 700 20px/1.25 var(--sans); letter-spacing: -.01em; }
.lead { font-size: clamp(17.5px, 1.35vw, 19.5px); color: var(--ink-soft); max-width: 38em; }
.intro { color: var(--ink-soft); max-width: 36em; }
.code { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 3px 7px; border-radius: 5px; background: var(--op); color: var(--on-op); font: 600 12.5px/1.3 var(--mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.code.is-person { background: var(--person); color: var(--on-person); }

/* Buttons: signage panels */
.sign-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 12px 0 22px; border-radius: 10px; background: var(--op); color: var(--on-op); font: 700 17px/1 var(--sans); text-decoration: none; transition: background .18s ease; }
.sign-btn:hover { background: var(--op-hover); }
.sign-btn .arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--on-op); color: var(--op); transition: transform .2s ease; }
.sign-btn:hover .arrow { transform: translateX(3px); }
.sign-btn .arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sign-btn.small { min-height: 42px; font-size: 15.5px; padding: 0 16px; }
.textlink { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--op); }
.textlink:hover { text-decoration-color: var(--ink); }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 30; background: var(--panel); border-bottom: 1px solid var(--rule); }
.masthead::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--wa) 0 25%, var(--tg) 25% 50%, var(--em) 50% 75%, var(--op) 75%); }
.masthead-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; background: var(--ink); -webkit-mask: url(operator-mark-128.png) center / contain no-repeat; mask: url(operator-mark-128.png) center / contain no-repeat; }
.brand-name { font: 800 22px/1 var(--sans); letter-spacing: -.02em; }
.masthead .brand { margin-right: 0; }
.by { margin: 3px auto 0 -18px; padding: 6px 0; font: 500 13px/1 var(--sans); color: var(--muted); text-decoration: none; white-space: nowrap; }
.by:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 16px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--op); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 700 15px/1 var(--sans); padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 230px; padding: 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--rule); box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--shade) 45%, transparent); }
.menu nav a { padding: 12px 10px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--rule); }
.menu nav a:last-child { border-bottom: 0; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.hero-side { display: grid; gap: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.proof { font-size: 15.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.proof::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--op); }
.map-wrap { margin-top: clamp(24px, 3vw, 40px); }
.route-map { width: 100%; height: auto; }
.route-map.v { display: none; }
.l { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.l-wa { stroke: var(--wa); stroke-width: 12; }
.l-tg { stroke: var(--tg); stroke-width: 12; }
.l-em { stroke: var(--em); stroke-width: 12; }
.l-op { stroke: var(--op); stroke-width: 16; }
.l-person { stroke: var(--person); stroke-width: 8; stroke-dasharray: 2 14; }
.st { fill: var(--station); stroke: var(--ink); stroke-width: 4; }
.st-x { fill: var(--station); stroke: var(--ink); stroke-width: 5; }
.st-person { fill: var(--person); stroke: var(--ink); stroke-width: 4; }
.st-end { fill: var(--ink); }
.m-name { font: 700 17px var(--sans); fill: var(--ink); }
.m-sub { font: 500 13.5px var(--sans); fill: var(--muted); }
.m-chan { font: 700 16px var(--sans); fill: var(--ink); }
.m-code-bg { fill: var(--op); }
.m-code-bg.p { fill: var(--person); }
.m-code { font: 600 13.5px var(--mono); fill: var(--on-op); letter-spacing: .5px; }
.m-code.p { fill: var(--on-person); }
.m-op-label { font: 800 16px var(--sans); fill: var(--ink); }
.train { display: none; }
html.motion .train { display: inline; }
.t-wa { fill: var(--wa); } .t-tg { fill: var(--tg); } .t-em { fill: var(--em); } .t-q { fill: var(--person); }
.train rect, .train circle { stroke: var(--station); stroke-width: 2.5; }
.status { display: grid; grid-template-columns: auto minmax(0, 1fr); margin-top: clamp(20px, 3vw, 36px); border-block: 1px solid var(--rule); background: var(--panel); }
.status-label { display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.status-list li { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-size: 15.5px; border-left: 1px solid var(--rule); }
.status time { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); margin-left: auto; }
.lamp { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--wa); }
.lamp.wait { background: var(--person); box-shadow: 0 0 0 2px var(--ink) inset; }
html.motion .lamp.wait { animation: wait 1.6s ease-in-out infinite; }
@keyframes wait { 50% { opacity: .45; } }

/* Sections */
.band { padding: clamp(80px, 9vw, 132px) 0; }
.band-panel { background: var(--panel); border-block: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-soft); }

/* How: strip map + steps */
.how-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.strip { position: sticky; top: 110px; padding: 10px 0; }
.strip ol { position: relative; display: grid; gap: 36px; }
.strip ol::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 8px; border-radius: 4px; background: var(--op); }
.strip li { position: relative; display: grid; grid-template-columns: 34px auto; align-items: center; gap: 16px; color: var(--muted); font-weight: 700; transition: color .25s ease; }
.strip li::before { content: ''; width: 34px; height: 34px; border-radius: 50%; box-sizing: border-box; background: var(--station); border: 5px solid var(--ink); transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .25s ease; }
.strip li.is-person::before { background: var(--person); }
.strip li span { display: flex; align-items: center; gap: 10px; }
.strip li.is-current { color: var(--ink); }
.strip li.is-current::before { transform: scale(1.18); background: var(--op); border-color: var(--ink); }
.strip li.is-person.is-current::before { background: var(--person); }
.strip li.is-past::before { background: var(--op); }
.steps { display: grid; gap: clamp(48px, 6vw, 80px); padding-top: 4px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 44px; align-items: start; min-height: 30vh; }
.step-copy { display: grid; gap: 10px; align-content: start; }
.step-copy h3 .code { display: none; margin-right: 10px; vertical-align: 3px; }
.step-copy p { color: var(--ink-soft); }
.step-visual { display: grid; gap: 10px; align-content: start; }
.step-visual .opx-msg { justify-self: start; max-width: 92%; font-size: 14.5px; }
.step-visual .opx-msg.from-person { justify-self: end; }
.map-mark { fill: var(--ink); }
.opx-tag { font: 700 12.5px/1 var(--sans); letter-spacing: 0; }
mask { mask-type: alpha; }
.fields { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule); }
.fields div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.fields dt { font: 700 14px/1.5 var(--sans); color: var(--muted); }
.fields dd { margin: 0; font-weight: 500; }
.fields .note { font: 500 14px var(--sans); color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--rule-strong); }
.records { border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); background: var(--panel); font-size: 14.5px; }
.records li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.records li:last-child { border-bottom: 0; color: var(--muted); }
.records .t { font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.check-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--wa); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step-visual .opx-tag { justify-self: end; }

/* Route index */
.routes { border-top: 2px solid var(--ink); }
.route { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px 56px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.route h3 { font-size: 22px; }
.route p { color: var(--ink-soft); margin-top: 6px; }
.stops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.stops li { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.3; padding: 0 2px; }
.stops li::before { content: ''; position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box; background: var(--station); border: 4px solid var(--ink); }
.stops li:first-child::before, .stops li:last-child::before { background: var(--ink); }
.stops li.is-person::before { background: var(--person); transform: scale(1.18); }
.stops li:not(:last-child)::after { content: ''; position: absolute; top: 7px; left: 50%; width: 100%; height: 8px; background: var(--seg, var(--op)); }
.stops li small { display: block; margin-top: 2px; font: 500 13px var(--sans); color: var(--muted); }
.stops .chan-wa::after { --seg: var(--wa); }
.stops .chan-tg::after { --seg: var(--tg); }
.stops .chan-em::after { --seg: var(--em); }
html.motion .routes.is-on .stops li:not(:last-child)::after { animation: grow .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--n, 0) * .12s); transform-origin: left center; }
html.motion .routes .stops li:not(:last-child)::after { transform: scaleX(0); }
html.motion .routes.is-on .stops li:not(:last-child)::after { transform: none; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Control */
.control-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.control-copy { position: sticky; top: 110px; display: grid; gap: 24px; }
.legend-map { width: 100%; max-width: 460px; height: auto; }
.rules li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rules li:first-child { border-top: 2px solid var(--ink); }
.rules .icon { width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: var(--panel); box-shadow: inset 0 0 0 2px var(--ink); }
.rules .icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rules .icon .fill-person { fill: var(--person); }
.rules .icon.is-person { background: var(--person); }
.rules p { color: var(--ink-soft); margin-top: 4px; }
html.motion .signal-lamp { animation: signal 6s steps(1) infinite; }
@keyframes signal { 0%, 55% { fill: var(--person); } 56%, 100% { fill: var(--wa); } }

/* Runs */
.runs-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.signs { display: grid; gap: 18px; position: sticky; top: 110px; }
.station-sign { border-radius: 16px; background: var(--sign); color: var(--on-sign); overflow: hidden; box-shadow: inset 0 0 0 1px var(--sign-line); }
.station-sign .top { display: flex; align-items: center; gap: 14px; padding: 26px 28px 22px; }
.station-sign .mark { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--on-sign); display: grid; place-items: center; }
.station-sign .mark::before { content: ''; width: 26px; height: 26px; background: var(--sign); -webkit-mask: url(operator-mark-128.png) center / contain no-repeat; mask: url(operator-mark-128.png) center / contain no-repeat; }
.station-sign .name { font: 800 clamp(24px, 3vw, 38px)/1.05 var(--sans); letter-spacing: -.02em; }
.station-sign .lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sign-line); }
.station-sign .lines div { padding: 16px 18px; border-left: 1px solid var(--sign-line); font-size: 15px; display: grid; gap: 8px; }
.station-sign .lines div:first-child { border-left: 0; }
.station-sign .lines i { display: block; width: 28px; height: 6px; border-radius: 3px; background: var(--sign-mark); }
.station-sign.alt { background: var(--panel); color: var(--ink); border: 1px solid var(--rule); box-shadow: none; }
.station-sign.alt .top { padding: 20px 24px; }
.station-sign.alt .mark { background: var(--panel-2); }
.station-sign.alt .mark::before { background: var(--ink); }
.station-sign.alt .name { font-size: 22px; }
.opx-week.compact { min-width: 420px; }
.runs-list li { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.runs-list li:first-child { border-top: 2px solid var(--ink); }
.runs-list p { color: var(--ink-soft); }
.runs-list .opx-signin { margin-top: 14px; }

/* Start */
.opening { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.opening li { position: relative; display: grid; align-content: start; gap: 10px; padding-right: 28px; }
.opening li::before { content: ''; position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; box-sizing: border-box; background: var(--station); border: 5px solid var(--ink); margin-bottom: 10px; }
.opening li:not(:last-child)::after { content: ''; position: absolute; top: 11px; left: 15px; right: -15px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--op) 0 18px, transparent 18px 28px); transition: background .6s ease; }
.opening.is-on li:not(:last-child)::after { background: var(--op); }
html.motion .opening.is-on li:not(:last-child)::after { transition-delay: calc(var(--n) * .35s); }
.opening p { color: var(--ink-soft); }
.opening .code { justify-self: start; }
.pilot { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(36px, 5vw, 56px); padding: 14px 20px; border-radius: 10px; background: var(--panel-2); font-weight: 700; }
.pilot::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--station); box-shadow: 0 0 0 4px var(--op) inset; }

/* Close and footer */
.close { padding: clamp(32px, 6vw, 72px) 0 clamp(80px, 9vw, 120px); }
.close-sign { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 56px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 22px; background: var(--op); color: var(--on-op); }
.close-sign h2 { font-size: clamp(32px, 4vw, 60px); }
.close-sign p { margin-top: 14px; font-size: 19px; opacity: .92; max-width: 32em; }
.close-sign .sign-btn { background: var(--on-op); color: var(--op); }
.close-sign .sign-btn .arrow { background: var(--op); color: var(--on-op); }
.close-sign .textlink { color: var(--on-op); text-decoration-color: color-mix(in srgb, var(--on-op) 55%, transparent); }
.close-sign .textlink:hover { text-decoration-color: var(--on-op); }
.close-sign .actions { flex-direction: column; align-items: flex-start; }
.foot { background: var(--panel); border-top: 1px solid var(--rule); padding: 48px 0 36px; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px 56px; }
.foot p { color: var(--ink-soft); margin-top: 12px; max-width: 26em; }
.foot a { text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.foot a:hover { text-decoration-color: var(--op); }
.foot-links { display: grid; gap: 10px; align-content: start; }
.address label { display: block; font-weight: 700; margin-bottom: 10px; }
.address-row { display: flex; max-width: 430px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.address-row:focus-within { box-shadow: inset 0 0 0 2px var(--op); }
.address input { flex: 1; min-width: 0; min-height: 50px; padding: 0 0 0 16px; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--sans); outline: none; }
.address input::placeholder { color: var(--muted); }
.address .suffix { display: flex; align-items: center; padding-right: 10px; color: var(--muted); font-family: var(--mono); font-size: 15px; }
.address button { border: 0; margin: 4px; border-radius: 8px; padding: 0 18px; background: var(--op); color: var(--on-op); font: 700 16px var(--sans); cursor: pointer; }
.address button:hover { background: var(--op-hover); }
.address [data-address-note] { min-height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--muted); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
fieldset.theme { display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 0; border-radius: 9px; background: var(--panel-2); min-width: 0; }
.theme legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.theme label { position: relative; padding: 7px 13px; border-radius: 7px; cursor: pointer; color: var(--ink-soft); font-weight: 700; }
.theme input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.theme label:has(input:checked) { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--shade) 18%, transparent); }
.theme label:has(input:focus-visible) { outline: 3px solid var(--op); outline-offset: 1px; }

/* Not found page */
.lost { min-height: calc(100svh - 72px - 96px); display: grid; align-items: center; }
.lost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px 72px; align-items: center; }
.lost-copy { display: grid; gap: 26px; justify-items: start; }
.lost-copy .address { width: 100%; max-width: 430px; }
.lost-map { width: 100%; height: auto; }
.foot-base.lost-foot { margin-top: 0; padding-top: 0; border-top: 0; }
.l-gap { stroke: var(--ink-soft); stroke-width: 6; stroke-dasharray: 10 12; }

/* Responsive */
@media (max-width: 1100px) {
  .route-map.h { display: none; }
  .route-map.v { display: block; width: 100%; max-width: 420px; margin-inline: auto; }
  .status { grid-template-columns: minmax(0, 1fr); margin-top: 24px; border-radius: 12px; border: 1px solid var(--rule); }
  .status-list { grid-template-columns: minmax(0, 1fr); }
  .status-list li { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 1080px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .route { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .masthead .sign-btn { display: none; }
  .section-head, .control-grid, .runs-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .control-copy, .signs { position: static; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .strip { display: none; }
  .step-copy h3 .code { display: inline-flex; }
  .opening { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .opening li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; padding: 0; }
  .opening li::before { grid-row: 1 / span 3; margin: 0; }
  .opening li:not(:last-child)::after { top: 15px; bottom: -43px; left: 11px; right: auto; width: 8px; height: auto; background: repeating-linear-gradient(180deg, var(--op) 0 18px, transparent 18px 28px); }
  .opening.is-on li:not(:last-child)::after { background: var(--op); }
  .close-sign { grid-template-columns: minmax(0, 1fr); }
  .lost-grid { grid-template-columns: minmax(0, 1fr); }
  .lost-map { max-width: 420px; }
}
@media (max-width: 760px) {
  .stops { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .stops li { display: flex; align-items: center; flex-wrap: wrap; text-align: left; gap: 4px 14px; padding: 0 0 18px; }
  .stops li::before { flex: none; }
  .stops li small { display: inline; }
  .stops li:not(:last-child)::after { top: 11px; left: 7px; width: 8px; height: 100%; }
  html.motion .routes .stops li:not(:last-child)::after { transform-origin: center top; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (max-width: 640px) {
  .by { font-size: 12px; margin-left: -20px; }
  body { font-size: 17px; }
  .masthead-row { min-height: 60px; }
  .actions .sign-btn { width: 100%; justify-content: space-between; }
  .station-sign .lines { grid-template-columns: minmax(0, 1fr); }
  .station-sign .lines div { border-left: 0; border-top: 1px solid var(--sign-line); }
  .station-sign .lines div:first-child { border-top: 0; }
  .rules li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .records li { grid-template-columns: minmax(0, 1fr) auto; }
  .records li > :nth-child(2) { display: none; }
  .rules .icon { width: 44px; height: 44px; }
}
