/* Route scene (home section 4). Ported from homepage-mockup-v4.html. Two layouts: the STATIC one (what reduced-motion
   visitors, the Breakdance builder and no-JS visitors see: the four slides stacked, every one readable) and the LIVE
   one, only after motion/scenes/route.js adds .tx-route--live: a pinned stage with a horizontal track. Header is 73px. */
body .tx-route {
	--mist: #F4F6F8; --sunken: #E7ECF0; --hair: #D2DAE1; --navy: #1B3659; --g6: #4A565F; --teal: #4A90A4; --tier: #266F7E; --tierbg: #E4F0F3;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace; --sans: 'Archivo', system-ui, -apple-system, sans-serif;
	--gut: max(20px, 6vw); --u: calc((100svh - 73px) / 100); --rt: 0px;
	position: relative; background: var(--mist); color: var(--g6); font-family: var(--sans);
}
body .tx-route.bde-section { background-color: var(--mist); }
body .tx-route.bde-section > .section-container { max-width: none; width: 100%; padding: 0; align-items: stretch; }
body .tx-route .bde-div { display: block; width: auto; max-width: none; flex-direction: row; align-items: stretch; }
body .tx-route p { margin: 0; }
body .tx-route .tx-route-top h2 { font: 800 clamp(28px, 3.2vw, 48px)/1.02 var(--sans); letter-spacing: -.04em; color: var(--navy); margin: 12px 0 0; text-wrap: balance; }
body .tx-route .tx-route-slide h3 { font: 800 clamp(28px, 3.6vw, 54px)/1 var(--sans); letter-spacing: -.04em; color: var(--navy); max-width: 14ch; margin: 0; text-wrap: balance; }
body .tx-route .tx-route-copy > .bde-text:not(.n):not(.rd) p { margin-top: 16px; color: var(--g6); max-width: 40ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }
body .tx-route .n { font: 500 12px/1 var(--mono); color: var(--tier); letter-spacing: .04em; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
body .tx-route .n i { width: 34px; height: 3px; background: var(--teal); display: block; }
body .tx-route .rd { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
body .tx-route [class^="chip"] { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); padding: 9px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
body .tx-route .chipl { background: var(--tierbg); color: var(--tier); }
body .tx-route .chipg { background: #fff; border: 1px solid var(--hair); color: var(--navy); }
body .tx-route .chipp { background: #ECEFF2; color: var(--g6); }
body .tx-route .cap-il { font: 500 11px/1 var(--mono); letter-spacing: .03em; color: var(--g6); }
body .tx-route .art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* static layout */
body .tx-route:not(.tx-route--live) .tx-route-stage { padding: clamp(56px, 8vw, 112px) var(--gut); max-width: 1440px; margin-inline: auto; background: var(--mist); }
body .tx-route:not(.tx-route--live) .tx-route-top { margin-bottom: clamp(32px, 5vw, 64px); }
body .tx-route:not(.tx-route--live) .tx-route-top h2 { max-width: 20ch; }
/* The four stop labels stay visible (and editable) as a row under the slides; the progress line is for the live scene only. */
body .tx-route:not(.tx-route--live) .tx-route-rail { margin-top: clamp(32px, 5vw, 64px); }
body .tx-route:not(.tx-route--live) .tx-route-rail .ln { display: none; }
body .tx-route:not(.tx-route--live) .tx-route-rail .nd { flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
body .tx-route:not(.tx-route--live) .tx-route-track.bde-div { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
body .tx-route:not(.tx-route--live) .tx-route-slide.bde-div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; }
body .tx-route:not(.tx-route--live) .tx-route-slide .art { max-width: 560px; justify-self: center; width: 100%; }
@media (max-width: 767px) {
	body .tx-route:not(.tx-route--live) .tx-route-slide.bde-div { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	body .tx-route:not(.tx-route--live) .tx-route-slide .art { order: -1; }
}

/* live layout */
body .tx-route.tx-route--live.bde-section > .section-container { min-height: 400vh; }
body .tx-route.tx-route--live .tx-route-stage.bde-div { position: sticky; top: 73px; height: calc(100svh - 73px); overflow: hidden; background: var(--mist); }
body .tx-route.tx-route--live .tx-route-top.bde-div { position: absolute; left: var(--gut); right: var(--gut); top: calc(6 * var(--u) + 4px); max-width: 46ch; z-index: 6; }
body .tx-route.tx-route--live .tx-route-track.bde-div { position: absolute; left: 0; top: 0; height: 100%; width: 400vw; display: flex; flex-direction: row; }
body .tx-route.tx-route--live .tx-route-slide.bde-div { width: 100vw; height: 100%; flex: none; position: relative; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; padding: max(calc(21 * var(--u) + 20px), var(--rt)) var(--gut) calc(19 * var(--u) + 10px); }
body .tx-route.tx-route--live .tx-route-slide .art { position: relative; min-width: 0; height: 100%; display: grid; place-items: center; }
body .tx-route.tx-route--live .tx-route-slide .art svg { width: 100%; height: 100%; max-height: calc(56 * var(--u)); }
body .tx-route.tx-route--live .tx-route-rail.bde-div { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(8 * var(--u) + 6px); z-index: 6; }
body .tx-route .tx-route-rail .ln { height: 3px; background: var(--hair); border-radius: 3px; overflow: hidden; }
body .tx-route .tx-route-fill { height: 100%; }
body .tx-route .tx-route-fill i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--tier)); transform-origin: 0 50%; }
body .tx-route .tx-route-rail .nd { display: flex; justify-content: space-between; margin-top: 12px; font: 500 11.5px var(--mono); color: var(--g6); }
body .tx-route .tx-route-nd { display: flex; align-items: center; gap: 8px; }
body .tx-route .tx-route-nd i { width: 10px; height: 10px; border-radius: 50%; background: var(--sunken); border: 2px solid var(--teal); display: block; transition: background-color .3s; }
body .tx-route .tx-route-nd.on i { background: var(--teal); }
body .tx-route .tx-route-nd:last-child.on i { background: var(--tier); border-color: var(--tier); }

@media (max-width: 767px) {
	body .tx-route.tx-route--live.bde-section > .section-container { min-height: 250vh; }
	body .tx-route.tx-route--live .tx-route-top.bde-div { top: 44px; max-width: none; }
	body .tx-route.tx-route--live .tx-route-top h2 { font-size: 26px; margin-top: 10px; }
	body .tx-route.tx-route--live .tx-route-slide.bde-div { display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; padding: max(136px, var(--rt)) var(--gut) 100px; }
	body .tx-route.tx-route--live .tx-route-slide .art { order: -1; flex: none; display: block; height: auto; }
	body .tx-route.tx-route--live .tx-route-slide .art svg { width: 100%; height: min(33svh, calc(100svh - 73px - var(--rt) - 360px)); max-height: none; }
	body .tx-route.tx-route--live .tx-route-slide h3 { font-size: 27px; max-width: 17ch; }
	body .tx-route.tx-route--live .tx-route-copy > .bde-text:not(.n):not(.rd) p { font-size: 15px; margin-top: 12px; }
	body .tx-route.tx-route--live .n { margin-bottom: 12px; }
	body .tx-route.tx-route--live .rd { margin-top: 16px; }
	body .tx-route.tx-route--live .tx-route-rail.bde-div { bottom: calc(8 * var(--u) + 2px); }
	body .tx-route .tx-route-rail .nd { font-size: 11px; }
}
