/* One reserved route lane, with each content panel aligned to its own station. */
.route-story {
  position: relative;
  --rail-width: 184px;
  --rail-gap: 40px;
  width: min(1480px, calc(100% - 80px));
  margin: 0 auto;
  padding: 100px calc(var(--rail-width) + var(--rail-gap)) 100px 0;
  overflow: visible;
  background: none;
}
.route-story::before { display: none; }
.route-story > section {
  --station-color: #168bff;
  padding: 44px;
  margin: 0 0 88px;
  min-width: 0;
  background: #071b32;
  border: 1px solid #203950;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0, 5, 18, .16);
  overflow: visible;
  scroll-margin-top: 24px;
  transition: border-color 240ms ease;
}
.route-story > section:last-child { margin-bottom: 0; }
.route-story > section.is-current { border-color: var(--station-color); }
.route-story > .accessibility { --station-color: #12dcf3; }
.route-story > .calculator { --station-color: #12ce8c; }
.route-story > .pricing { --station-color: #ff4966; }
.route-story > .maps { --station-color: #168bff; }
.route-story > section > .shell { width: 100%; max-width: none; margin: 0; }
.route-story .station-kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 28px; color: var(--station-color); font-size: 15px; font-weight: 900;
}
.station-kicker > span {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--station-color); border-radius: 50%; font-size: 13px;
}
.route-story .section-heading, .route-story .section-heading.centered {
  max-width: none; margin: 0 0 36px; text-align: right;
}
.route-story h2 { font-size: clamp(25px, 2.2vw, 36px); line-height: 1.35; }
.route-story .eyebrow { font-size: 14px; }
.route-story .journey::after, .route-story .accessibility::before { display: none; }
.route-story .journey-steps { gap: 16px; border: 0; padding-top: 8px; }
.route-story .journey-step {
  padding: 24px 18px; min-height: 0; text-align: right;
  background: #0b2541; border: 1px solid #24415c; border-radius: 14px;
}
.route-story .journey-step::before { display: none; }
.route-story .journey-step .step-number {
  position: static; width: 28px; height: 28px; border-width: 1px;
  margin-bottom: 24px; box-shadow: none; color: currentColor;
}
.route-story .step-icon { margin: 0 0 16px; width: 44px; height: 44px; font-size: 20px; }
.route-story .journey-step h3 { font-size: 19px; }
.route-story .accessibility { min-height: 0; }
.route-story .accessibility-shell {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px;
  align-items: stretch; min-height: 0; padding: 0;
}
.route-story .accessibility-copy {
  width: auto; padding: 0; margin: 0; background: none; border: 0;
  border-radius: 0; box-shadow: none; backdrop-filter: none;
}
.route-story .feature-icon { width: 48px; height: 48px; margin-bottom: 18px; font-size: 22px; box-shadow: none; }
.route-story .feature-list { gap: 12px; }
.accessibility-visual { position: relative; min-height: 460px; border-radius: 14px; overflow: hidden; background: #09213a; }
.accessibility-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 22% center; }
.accessibility-visual > span {
  position: absolute; right: 16px; bottom: 16px; left: 16px; padding: 10px;
  background: #06172b; border: 1px solid #39546b; border-radius: 8px; text-align: center; font-weight: 700;
}
.route-story .calculator-card { box-shadow: none; grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); padding: 20px; }
.route-story .ticket-symbol { font-size: 36px; }
.route-story .ticket-result { padding: 16px; }
.route-story .split-heading { align-items: start; flex-direction: column; gap: 16px; }
.route-story .ticket-bands { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.route-story .price-band { box-shadow: none; padding: 16px 12px; min-height: 135px; }
.route-story .price-band > i { font-size: 32px; opacity: .7; }
.route-story .price-band > span { position: relative; }
.route-story .map-visual, .route-story .map-visual img { min-height: 0; }
.route-story .map-visual { box-shadow: none; }
.route-story .map-visual img { height: auto; object-fit: contain; }
.route-story .maps-layout { grid-template-columns: 1.15fr 1fr; align-items: stretch; gap: 18px; }
.route-story .map-features { padding: 18px; }

.journey-rail { position: absolute; top: 0; bottom: 0; right: 0; width: var(--rail-width); z-index: 3; }
.journey-rail::before {
  content: "";
  position: absolute;
  top: 90px;
  bottom: 60px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #168bff, #12dcf3 25%, #12ce8c 50%, #ff4966 75%, #168bff);
  border-radius: 4px;
  opacity: .5;
}
.rail-caption { position: absolute; top: 36px; right: 0; left: 0; text-align: center; }
.rail-caption > span { color: #f4f9fd; font-size: 14.5px; font-weight: 900; }
.rail-caption > small { display: block; color: #bfd0e0; font-size: 12px; }
.rail-drawing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail-drawing path { fill: none; stroke: url(#rail-colors); stroke-linecap: round; stroke-linejoin: round; }
.rail-glow { stroke-width: 16px; opacity: .36; filter: blur(6px); }
.rail-line { stroke-width: 6px; }
.rail-drawing .rail-highlight { stroke: #d5faff; stroke-width: 1.5px; opacity: .85; }
.rail-traveler-halo { fill: #e8ffff; opacity: .3; filter: blur(5px); }
.rail-traveler { fill: #fff; stroke: #12dcf3; stroke-width: 2px; }
.rail-stop {
  --stop-color: #168bff;
  position: absolute; left: 50%; width: 100%; transform: translate(-50%, -23px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #d7e4ef; font-size: 13.5px; font-weight: 800;
}
.rail-stop:nth-of-type(1) { top: 120px; }
.rail-stop:nth-of-type(2) { --stop-color: #12dcf3; top: 620px; }
.rail-stop:nth-of-type(3) { --stop-color: #12ce8c; top: 1300px; }
.rail-stop:nth-of-type(4) { --stop-color: #ff4966; top: 1980px; }
.rail-stop:nth-of-type(5) { top: 2600px; }
.rail-stop::before {
  content: ""; position: absolute; z-index: -1; top: 23px; left: calc(-1 * var(--rail-gap));
  width: calc(50% + var(--rail-gap)); height: 1px; background: var(--stop-color); opacity: .4;
}
.rail-stop-number {
  display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--stop-color);
  border-radius: 50%; background: #041329; color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--stop-color) 36%, transparent);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.rail-stop-name { padding: 3px 10px; border-radius: 6px; background: #041329; }
.rail-stop[aria-current="step"] { color: #fff; }
.rail-stop[aria-current="step"] .rail-stop-number { background: var(--stop-color); color: #041329; box-shadow: 0 0 24px color-mix(in srgb, var(--stop-color) 55%, transparent); }
.rail-stop:hover .rail-stop-name { color: #fff; text-decoration: underline; }

@media (max-width: 1280px) and (min-width: 901px) {
  .route-story { --rail-width: 128px; --rail-gap: 24px; width: calc(100% - 32px); }
  .route-story > section { padding: 24px 28px; margin-bottom: 36px; }
  .route-story .calculator-card { grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); padding: 18px; }
  .route-story .ticket-bands { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .route-story .price-band { padding: 14px 10px; min-height: 130px; }
  .route-story .accessibility-shell { grid-template-columns: 1fr 1fr; gap: 20px; }
  .route-story .journey-steps { gap: 10px; }
  .route-story .journey-step { padding: 18px 12px; }
  .route-story .maps-layout { grid-template-columns: 1.15fr 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .journey-rail { display: none; }
  .route-story { width: calc(100% - 40px); padding: 40px 0; }
  .route-story > section { padding: 30px; margin-bottom: 32px; }
  .route-story .calculator-card { grid-template-columns: 1fr; }
  .route-story .journey-steps { grid-template-columns: 1fr; }
  .route-story .journey-step { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; }
  .route-story .journey-step .step-number { display: none; }
  .route-story .step-icon { grid-row: 1 / 3; }
  .route-story .journey-step p { grid-column: 2; }
  .route-story .maps-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .route-story { width: calc(100% - 24px); padding: 24px 0; }
  .route-story > section { padding: 24px 18px; border-radius: 16px; margin-bottom: 24px; }
  .route-story h2 { font-size: 26px; }
  .route-story .station-kicker { margin-bottom: 22px; }
  .route-story .section-heading { margin-bottom: 26px; }
  .route-story .accessibility-shell { grid-template-columns: 1fr; gap: 28px; }
  .accessibility-visual { min-height: 340px; }
  .route-story .calculator-card { padding: 16px; }
  .route-story .ticket-result { gap: 12px; padding: 14px; }
  .route-story .ticket-bands { grid-template-columns: 1fr; }
  .route-story .map-features { padding: 16px; }
}
