/* JimGO Taxis: train station transfers page. Surfaces square, buttons pill. */

/* ---------- opener device: the East Coast main line diagram ---------- */
.so-device.is-top { top: clamp(14px, 2.6vh, 30px); bottom: auto; }
.tl { padding: 16px 20px 14px; }
.tl-head { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(251, 229, 193, .1); }
.tl-title { display: inline-flex; align-items: center; gap: 8px; font: 760 1.15rem/1 var(--display); font-stretch: 92%; color: var(--amber); }
.tl-title .ic { width: 22px; height: 22px; }
.tl-dir { margin-left: auto; color: var(--fog); font-size: .9rem; }
.tl-dir i { font-style: normal; color: var(--amber); }
.tl-track { position: relative; height: 128px; margin: 4px 0 0; }
.tl-rail { position: absolute; top: 46px; height: 4px; background: rgba(251, 229, 193, .18); }
.tl-rail::before, .tl-rail::after { content: ''; position: absolute; top: 0; width: 40px; height: 4px; background: repeating-linear-gradient(90deg, rgba(251, 229, 193, .18) 0 6px, transparent 6px 11px); }
.tl-rail::before { right: 100%; }
.tl-rail::after { left: 100%; }
.tl-rail i { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(1); }
.tl-run { position: absolute; left: 6%; width: 86%; top: 26px; height: 14px; pointer-events: none; }
.tl-train { position: absolute; left: 100%; top: 0; width: 70px; height: 12px; margin-left: -70px; border-radius: 0 7px 2px 0; background: linear-gradient(90deg, var(--cream) 0 22px, transparent 22px 24px, var(--cream) 24px 46px, transparent 46px 48px, var(--amber) 48px); box-shadow: 0 0 12px rgba(251, 229, 193, .45); will-change: transform; }
.tl-stop { position: absolute; top: 0; height: 100%; width: 20%; margin-left: -10%; padding: 0; background: none; border: 0; color: var(--fog); cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tl-stop:first-of-type { margin-left: -22px; align-items: flex-start; text-align: left; }
.tl-stop:last-of-type { margin-left: calc(-20% + 22px); align-items: flex-end; text-align: right; }
.tl-tick { display: block; width: 12px; height: 20px; margin-top: 38px; background: var(--tarmac); border: 3px solid rgba(251, 229, 193, .55); transition: background-color .35s, border-color .35s, transform .35s var(--ease); }
.tl-stop:first-of-type .tl-tick { margin-left: 16px; }
.tl-stop:last-of-type .tl-tick { margin-right: 16px; }
.tl-name { display: block; margin-top: 8px; font: 600 .98rem/1.15 var(--body); color: var(--text); transition: color .3s; }
.tl-cab { display: block; width: 34px; height: 20px; margin-top: 6px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.tl-stop:first-of-type .tl-cab { margin-left: 5px; }
.tl-stop:last-of-type .tl-cab { margin-right: 5px; }
.tl-cab { position: relative; width: 34px; height: 18px; }
.tl-cab .tc-body { position: absolute; left: 0; right: 0; bottom: 0; height: 11px; background: var(--amber); clip-path: polygon(0 100%, 0 45%, 22% 0, 78% 0, 100% 45%, 100% 100%); }
.tl-cab .tc-sign { position: absolute; left: 12px; top: 0; width: 10px; height: 5px; background: var(--cream); }
.tl-stop:hover .tl-name { color: var(--cream); }
.tl-stop.is-on .tl-tick { background: var(--amber); border-color: var(--amber); transform: scaleY(1.15); }
.tl-stop.is-on .tl-name { color: var(--amber); }
.tl-stop.is-on .tl-cab { opacity: 1; transform: none; }
.tl-detail { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid rgba(251, 229, 193, .1); color: var(--text); font-size: .95rem; line-height: 1.45; min-height: 4.4em; overflow: clip; }
.tl-detail b { display: block; color: var(--cream); font: 700 1.05rem/1.2 var(--display); font-stretch: 92%; margin-bottom: 2px; }
.tl-detail span { display: block; }

/* ---------- set piece: stacking station cards. Static list by default; .is-live pins and stacks them ---------- */
.st { position: relative; overflow: clip; padding-block: clamp(80px, 11vh, 140px); background: radial-gradient(110% 80% at 20% 0%, #2A2824 0%, #1F1E1B 45%, var(--tarmac) 85%); }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vh, 44px); }
.st-head .h2 { flex: 1 1 auto; }
.st-count { display: none; align-items: baseline; gap: 6px; color: var(--fog); font: 700 1.2rem/1 var(--display); font-stretch: 86%; }
.st-count b { font-size: 2.6rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.st-deck { display: grid; gap: 22px; }
.st-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--asphalt); border-top: 3px solid var(--amber); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); overflow: hidden; transform-origin: 50% 0; }
.st-art { position: relative; min-height: 300px; background: linear-gradient(180deg, #24231F, #1A1917); overflow: hidden; }
.st-art { background: radial-gradient(70% 60% at 70% 20%, rgba(232, 169, 65, .1), transparent 70%), linear-gradient(180deg, #24231F, #1A1917); }
.st-word { position: absolute; left: 6%; top: 8%; font: 860 clamp(3.4rem, 7vw, 6.6rem)/.9 var(--display); font-stretch: 72%; color: transparent; -webkit-text-stroke: 1.5px rgba(251, 229, 193, .16); white-space: nowrap; pointer-events: none; }
.st-train { position: absolute; left: 0; bottom: calc(10% + 4px); display: flex; gap: 6px; height: 13%; transform: translateX(-110%); will-change: transform; }
.st-train i { display: block; width: 150px; height: 100%; background: repeating-linear-gradient(90deg, #3a3833 0 10px, rgba(251, 229, 193, .7) 10px 34px, #3a3833 34px 40px) 0 30% / 100% 34% no-repeat, #2f2d29; border-top: 3px solid var(--amber); box-shadow: 0 0 30px rgba(251, 229, 193, .12); }
.st-train i:first-child { border-radius: 0 0 0 0; }
.st-train i:last-child { border-radius: 0 40px 0 0; }
.st-lamp { position: absolute; top: 34%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 229, 193, .22), transparent 65%); pointer-events: none; }
.st-lamp.l1 { left: 30%; }
.st-lamp.l2 { left: 74%; }
.st-art svg { z-index: 1; position: absolute; left: 6%; right: 6%; bottom: 10%; width: 88%; height: 78%; }
.sa { fill: none; stroke: rgba(251, 229, 193, .62); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sa-amber { stroke: var(--amber); }
.st-edge { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6%; height: 6px; background: repeating-linear-gradient(90deg, #E8C341 0 30px, transparent 30px 44px); background-size: 44px 6px; opacity: .9; animation: st-edge 1.4s linear infinite; }
@keyframes st-edge { to { background-position: 44px 0; } }
.st-body { padding: clamp(24px, 3.2vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.st-body .h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); margin: 18px 0 .4em; }
.st-body p { color: var(--text); margin-bottom: 18px; }
.st-board, .st-board-in, .st-board-row { display: block; }
.st-flap { container-type: inline-size; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: min(100%, 420px); }
.st-flap .c { position: relative; display: grid; place-items: center; aspect-ratio: .72; overflow: hidden; background: linear-gradient(180deg, #363330 0 49.4%, #2B2926 50.6%); font: 600 7cqi/1 var(--body); color: var(--amber); perspective: 120px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 0 rgba(0, 0, 0, .6); }
.st-flap .c::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgba(0, 0, 0, .75); }
.st-flap .c b { display: block; width: 100%; height: 1em; line-height: 1; text-align: center; font-weight: 600; backface-visibility: hidden; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.st-chips li { padding: 7px 13px; border: 1px solid rgba(232, 169, 65, .5); color: var(--cream); font-size: .92rem; font-weight: 500; }
.st-other { background: #2E2C28; }

/* live (pinned) layout */
.st.is-live { height: 100svh; min-height: 640px; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.st.is-live .st-head { margin-top: calc(var(--head-h) * .6); }
.st.is-live .st-count { display: flex; }
.st.is-live .st-deck { position: relative; display: block; height: min(64svh, 560px); }
.st.is-live .st-card { position: absolute; inset: 0; }
.st.is-live .st-art { min-height: 0; }

/* ---------- Alnmouth to Alnwick (paper band) ---------- */
.aln { overflow: clip; }
.aln-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.aln .lede { color: var(--ink); margin-top: 18px; }
.aln-route { position: relative; height: 120px; margin: 10px 0 30px; }
.aln-route svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ar-base { fill: none; stroke: rgba(29, 28, 26, .16); stroke-width: 10; stroke-linecap: round; }
.ar-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 16 12; stroke-linecap: round; animation: ar-crawl 1.4s linear infinite; }
@keyframes ar-crawl { to { stroke-dashoffset: -28; } }
.ar-end { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--amber); border: 3px solid var(--ink); border-radius: 50%; }
.ar-end b { position: absolute; top: 24px; white-space: nowrap; font: 700 1rem/1.1 var(--display); font-stretch: 92%; color: var(--ink); }
.ar-a { left: 3.333%; top: 76.667%; }
.ar-a b { left: -8px; }
.ar-b { left: 96.667%; top: 23.333%; }
.ar-b b { right: -8px; top: auto; bottom: 24px; }
.ar-mid { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); padding: 4px 12px; background: var(--ink); color: var(--cream); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.aln .text-link.aln-link { color: #8A5A0E; }
.aln .btn-row { align-items: center; }
.aln .photo-pair .pp-b { box-shadow: -18px -18px 0 var(--paper); }

@media (prefers-reduced-motion: reduce) { .ar-line, .st-edge { animation: none; } .st-train { display: none; } }

@media (max-width: 960px) {
  .so-device.is-top { top: 16px; }
  .aln-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tl { padding: 12px 14px 10px; }
  .tl-dir { display: none; }
  .tl-name { font-size: .88rem; }
  .tl-detail { font-size: .88rem; }
  .st-card { grid-template-columns: 1fr; }
  .st-art { min-height: 150px; }
  .st.is-live .st-deck { height: min(72svh, 600px); }
  .st.is-live .st-card { grid-template-rows: 26% 1fr; }
  .st-body { padding: 18px 18px 20px; justify-content: flex-start; }
  .st-body .h3 { margin-top: 12px; font-size: 1.5rem; }
  .st-body p { font-size: .98rem; margin-bottom: 12px; }
  .st-chips { margin-bottom: 8px; }
  .st-chips li { font-size: .9rem; padding: 5px 10px; }
  .st.is-live .st-head .h2 { font-size: 1.9rem; }
  .ar-mid { font-size: .82rem; }
}
