/* Progressive enhancement only: no reveal gate on headings, copy or controls. */
.body-scene-stage { display:grid; min-width:0; isolation:isolate; }
.body-scene-stage > [data-crm-scene-panel] { grid-area:1 / 1; align-self:start; min-width:0; }
/* Hidden panels reserve intrinsic height, but remain invisible, unfocusable and
   excluded from accessibility by both their native hidden state and visibility.
   Ancestor [hidden] pages retain the site's ordinary display:none rule. */
.body-scene-stage > [data-crm-scene-panel][hidden] { display:block !important; visibility:hidden !important; pointer-events:none; }
.body-scene-stage > [data-crm-scene-panel][hidden] * { visibility:hidden !important; }

[data-body-motion] .route-guide-illustration { pointer-events:none; }
[data-body-motion] .route-guide-illustration img { transform-origin:50% 82%; }
[data-body-motion] .route-guide-illustration span { transform-origin:center; }
[data-body-motion] .travel-route-stops details[data-body-current-stop]::before {
  content:""; position:absolute; left:0; top:54px; bottom:12px;
  width:2px; background:var(--orange); pointer-events:none;
}
[data-body-motion] .travel-route-stops details[data-body-current-stop] .stop-marker {
  background:var(--orange); border-color:var(--orange); color:var(--navy);
  box-shadow:0 0 0 5px #ff6a001c;
}
[data-body-motion] .travel-route-stops details[open]:not([data-body-current-stop]) .stop-marker {
  background:var(--navy); border-color:var(--cyan); color:var(--cyan);
}
/* State colors are immediate. The optional marker movement is a cancellable
   Web Animation, so pause/offscreen has no independent CSS timeline to stop. */

[data-body-motion] .scenario-panel { position:relative; }
.body-scenario-cue {
  display:block; left:0; top:24px; width:64px; height:3px;
  background:var(--cyan); transform-origin:left center;
}
[data-body-motion] .scenario-tabs [aria-selected="true"] {
  box-shadow:inset 0 -3px 0 var(--cyan);
}
[data-body-motion] .crm-scene-tabs [aria-selected="true"] {
  box-shadow:inset 0 -3px 0 var(--cyan);
}

@media (max-width:600px) {
  .body-scenario-cue { top:14px; width:48px; }
  [data-body-motion] .travel-route-stops details[data-body-current-stop]::before { top:51px; }
}
@media (prefers-reduced-motion:reduce) {
  [data-body-motion] .route-guide-illustration img,
  [data-body-motion] .route-guide-illustration span,
  [data-body-motion] .body-scenario-cue { transform:none !important; }
}
