.story-header,.story-modes{display:flex;gap:1.5rem;justify-content:space-between;flex-wrap:wrap;padding:1rem 0}.story-modes{justify-content:flex-start;border-block:1px solid #656565}.story-modes [aria-current]{font-weight:800;text-decoration:underline}.story-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:75ch}.story-photo{display:block;width:100%;max-height:80vh;object-fit:contain}.story-map{width:100%;height:auto}.story-chapter{padding-block:2rem;border-bottom:1px solid #656565;scroll-margin-top:1rem}.story-chapter h2{overflow-wrap:anywhere}.story-chapter figure{margin-inline:0}.story-chapter figcaption{margin-block:.7rem;overflow-wrap:anywhere}article footer{padding-top:2rem}@media(min-width:60rem){article{max-width:60rem;margin-inline:auto}}@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
.story-chapter video,.story-chapter audio{display:block;width:100%;max-height:70vh;margin-block:1rem}.story-chapter video{background:#111}.story-chapter details{margin-block:1rem}.story-chapter :focus-visible{outline:3px solid #ffbe00;outline-offset:4px}

.story-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.story-card{padding:24px;min-width:0;overflow-wrap:anywhere}.story-card h2{font-size:clamp(1.5rem,2.5vw,2rem);margin:22px 0 12px}.story-card p{margin-bottom:20px}.story-card-link{display:block}.story-card-cover{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;border-radius:10px}.story-card-placeholder{aspect-ratio:8/5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#101418;border:1px solid #30373b;border-radius:10px;color:#fbb702;font-weight:800;letter-spacing:.08em}.story-card-placeholder span{color:#acb1b3;font-size:.8rem;font-weight:400;letter-spacing:0}.story-pagination{margin-top:36px;text-align:center}@media(max-width:950px){.story-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.story-list-grid{grid-template-columns:1fr}}

.story-road-map{display:block;overflow:hidden;background:#e5e4de;border-radius:12px}.story-road-map img{display:block;max-width:none}.story-route-outline,.story-route-line{fill:none;stroke-linecap:round;stroke-linejoin:round}.story-route-outline{stroke:#fff;stroke-width:8}.story-route-line{stroke:#c25400;stroke-width:4}.story-road-figure{margin-inline:0}.story-road-figure figcaption{font-size:.9rem;line-height:1.5;margin-top:.6rem}

.story-cover{margin:1.5rem 0}.story-cover-image{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;border-radius:12px;background:#1a2026}

.story-mode-description{max-width:65ch;color:#c5c9cb;margin-block:1.25rem}.story-mode-explore .story-text{line-height:1.8}.story-explore-summary{padding:1.25rem;border:1px solid #444;border-radius:12px;margin-block:1.5rem}.story-mode-explore .story-ride{background:#1a2026;border:1px solid #444;border-radius:12px;padding:1rem;margin-block:1rem}.story-mode-explore .story-photo{max-height:35vh}.story-watch-item{padding:clamp(1rem,3vw,2.5rem);margin-block:1rem;background:#1a2026;border-radius:16px}.story-watch-item .story-text{font-size:clamp(1.25rem,2.5vw,1.9rem);line-height:1.6}.story-watch-item .story-photo{max-height:60vh}.story-watch-controls{padding:1rem;border:1px solid #666;border-radius:12px;margin-block:1.5rem}.story-watch-buttons{display:flex;flex-wrap:wrap;gap:.75rem;margin-block:1rem}.story-watch-buttons button,.story-watch-controls select{min-height:48px;padding:.65rem 1rem;font:inherit}.story-watch-buttons button:disabled{opacity:.5}.story-watch-enhanced .story-chapter>a{display:none}.story-watch-item:focus-visible{outline:3px solid #ffbe00;outline-offset:4px}[hidden]{display:none!important}

.story-watch-buttons button{border:1px solid #666;border-radius:8px;background:#242c32;color:#ece1d4;cursor:pointer}.story-watch-buttons #story-watch-play{background:#ffbe00;border-color:#ffbe00;color:#101418}.story-watch-controls :focus-visible{outline:3px solid #ffbe00;outline-offset:4px}

.story-route-guide{fill:none;stroke:#818b92;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.story-route-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin-top:1rem}.story-route-controls button{min-height:48px;padding:.65rem 1rem;border:1px solid #666;border-radius:8px;font:inherit;background:#242c32;color:#ece1d4;cursor:pointer}.story-route-controls button:focus-visible{outline:3px solid #ffbe00;outline-offset:4px}.story-route-controls [data-route-play]{background:#ffbe00;color:#101418;border-color:#ffbe00}

/* One presentation surface; ordinary chapter HTML remains the no-script fallback. */
.story-watch-enhanced>header,.story-watch-enhanced>.story-mode-description,.story-watch-enhanced .story-watch-stage>nav,.story-watch-enhanced .story-chapter>h2{display:none}
.story-watch-enhanced .story-player{display:flex;flex-direction:column;border:1px solid #424a50;border-radius:16px;background:#0a0d10;overflow:hidden;max-width:100%}
.story-watch-enhanced .story-watch-stage{order:0;height:clamp(320px,58svh,760px);min-height:0;position:relative;overflow:hidden;background:radial-gradient(ellipse at top,#253039,#0a0d10);isolation:isolate}
.story-watch-enhanced .story-watch-stage>.story-chapter{height:100%;padding:0;margin:0;border:0}
.story-watch-enhanced .story-watch-item{box-sizing:border-box;height:100%;max-height:100%;margin:0;border-radius:0;background:transparent;overflow:auto;scrollbar-gutter:stable;padding:clamp(1rem,3vw,2.5rem);overflow-wrap:anywhere}
.story-watch-enhanced .story-watch-item>figure{margin:0;height:100%;display:flex;flex-direction:column;min-height:0}
.story-watch-enhanced .story-watch-item .story-photo,.story-watch-enhanced .story-watch-item video{flex:1;min-height:0;width:100%;height:100%;max-height:100%;object-fit:contain;margin:0}
.story-watch-enhanced .story-watch-item figcaption{flex-shrink:0;font-size:1rem;line-height:1.4;margin:.4rem 0}
.story-watch-enhanced .story-watch-item details{flex-shrink:0}
.story-watch-enhanced .story-watch-card{text-align:center;align-content:center}
.story-watch-enhanced .story-watch-card:has(.story-photo){display:flex;flex-direction:column}
.story-watch-enhanced .story-watch-card .story-photo{max-height:55%;margin:auto}
.story-watch-enhanced .story-watch-card h1,.story-watch-enhanced .story-watch-card h2{font-size:clamp(1.6rem,4vw,3rem);margin-bottom:1rem}
.story-watch-enhanced .story-watch-item .story-text{margin-inline:auto;font-size:clamp(1.1rem,2.2vw,1.65rem);line-height:1.6;text-align:start}
.story-watch-enhanced .story-watch-controls{order:1;border:0;border-top:1px solid #424a50;border-radius:0;margin:0;background:#151b20;padding:1rem}
.story-watch-controls input[type=range]{width:100%;min-height:48px;accent-color:#fbb702}
.story-watch-controls button,.story-watch-controls select{min-width:48px;min-height:48px}
.story-watch-options{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem}.story-watch-options select{max-width:100%;background:#242c32;color:#ece1d4;border:1px solid #666;border-radius:8px}
#story-watch-position{margin-bottom:.5rem}#story-watch-notice:empty{display:none}#story-watch-notice{color:#ffcf50;margin-top:.7rem}
.story-watch-card button{min-height:48px;padding:.8rem 1.5rem;background:#fbb702;color:#101418;border:0;border-radius:8px;font:inherit;font-weight:700;cursor:pointer}
.story-player:fullscreen,.story-player.is-theater{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;max-width:none!important;border:0;border-radius:0;z-index:1000;overflow:auto}
.story-player:fullscreen .story-watch-stage,.story-player.is-theater .story-watch-stage{flex:1 0 40svh;height:auto}
.story-player:fullscreen .story-watch-controls,.story-player.is-theater .story-watch-controls{flex-shrink:0}
@media(prefers-reduced-motion:no-preference){.story-watch-enhanced .story-watch-item:not([hidden]){animation:story-scene-in .2s ease-out}@keyframes story-scene-in{from{opacity:.5}to{opacity:1}}}
@media(max-width:600px){.story-mode-watch.container{width:100%}.story-watch-enhanced .story-watch-stage{height:52svh}.story-watch-buttons{gap:.45rem}.story-watch-buttons button{padding:.55rem .7rem}.story-watch-controls .fine{font-size:.8rem}.story-watch-enhanced .story-watch-item{padding:1rem}}
@media(max-height:500px) and (orientation:landscape){.story-player:fullscreen,.story-player.is-theater{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,32%)}.story-player:fullscreen .story-watch-stage,.story-player.is-theater .story-watch-stage{height:100svh;min-height:0}.story-player:fullscreen .story-watch-controls,.story-player.is-theater .story-watch-controls{overflow:auto;max-height:100svh;border:0;border-left:1px solid #424a50}}

/* Ride scenes allocate the remaining stage height to the complete SVG viewBox. */
.story-watch-enhanced [data-watch-kind="ride"]{display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto}
.story-watch-enhanced [data-watch-kind="ride"]>.story-ride{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;margin:0}
.story-watch-enhanced [data-watch-kind="ride"] .story-ride>h3{flex:none;font-size:1rem;line-height:1.25;margin:0 0 .35rem}
.story-watch-enhanced [data-watch-kind="ride"] .story-ride>p{flex:none;font-size:.9rem;line-height:1.35;margin:0 0 .5rem}
.story-watch-enhanced [data-watch-kind="ride"] .story-road-figure,.story-watch-enhanced [data-watch-kind="ride"] .story-ride>figure{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.story-watch-enhanced [data-watch-kind="ride"] .story-map{display:block;flex:1 1 0%;width:100%;height:0;min-height:0;max-height:100%;object-fit:contain}
.story-watch-enhanced [data-watch-kind="ride"] figcaption{flex:none;font-size:.75rem;line-height:1.3;margin:.35rem 0 0}

/* YouTube stays unloaded until selected; its controls and aspect ratio remain intact. */
.story-youtube{margin-block:1rem}.story-youtube button{min-height:48px;padding:.7rem 1rem;border:1px solid #fbb702;border-radius:8px;background:#fbb702;color:#101418;font:inherit;cursor:pointer}.story-youtube button:disabled{opacity:.6}.story-youtube button:focus-visible{outline:3px solid #fff;outline-offset:3px}.story-youtube-player:has(iframe){aspect-ratio:16/9;width:100%;max-width:100%;background:#000}.story-youtube iframe{display:block;width:100%;height:100%;border:0}.story-youtube [data-youtube-status]{font-size:.9rem;line-height:1.4}.story-watch-enhanced [data-watch-kind="video"]{display:flex;flex-direction:column;min-height:0}.story-watch-enhanced [data-watch-kind="video"]>.story-youtube{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}.story-watch-enhanced .story-youtube-player:has(iframe){flex:1;min-height:0;aspect-ratio:auto}.story-watch-enhanced .story-youtube iframe{object-fit:contain}.story-watch-enhanced .story-youtube>p{flex:none;margin:.3rem 0}

/* Approved terrain profiles use the same palette as phone/vehicle guidance. */
.story-route-line.terrain-paved{stroke:#20252b}.story-route-line.terrain-gravel{stroke:#888d96}.story-route-line.terrain-dirt{stroke:#a86632}.story-route-line.terrain-two_track{stroke:#d99524}.story-route-line.terrain-single_track{stroke:#25a7a1}.story-route-line.terrain-sand{stroke:#e3bf67}.story-route-line.terrain-mud{stroke:#6b4c3b}.story-route-line.terrain-rocky{stroke:#8271b3}.story-route-line.terrain-other{stroke:#cf78b6}.story-route-line.terrain-unknown{stroke:#94a8b9;stroke-dasharray:6 6}
.story-route-line.terrain-mask{stroke:white}.story-terrain-line{fill:none;stroke:#94a8b9;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.story-terrain-line.terrain-unknown{stroke-dasharray:6 6}

.story-terrain-legend{display:block;font-size:.85em;line-height:1.7}.story-terrain-legend span{white-space:nowrap}.story-terrain-legend span::before{content:"";display:inline-block;width:1em;height:.3em;margin-right:.25em;border:1px solid #fff;vertical-align:middle}
.story-terrain-legend .terrain-paved::before{background:#20252B}
.story-terrain-legend .terrain-gravel::before{background:#888D96}
.story-terrain-legend .terrain-dirt::before{background:#A86632}
.story-terrain-legend .terrain-two_track::before{background:#D99524}
.story-terrain-legend .terrain-single_track::before{background:#25A7A1}
.story-terrain-legend .terrain-sand::before{background:#E3BF67}
.story-terrain-legend .terrain-mud::before{background:#6B4C3B}
.story-terrain-legend .terrain-rocky::before{background:#8271B3}
.story-terrain-legend .terrain-other::before{background:#CF78B6}
