/* The desktop keeps its existing horizontal rail. On mobile the same native
   range becomes a relative, touch-friendly wheel with a fixed reading point. */
.timeline-wheel{display:none}
@media(max-width:900px){
  #timeline.has-timeline-wheel{left:20px;right:20px;bottom:max(8px,env(safe-area-inset-bottom));height:144px;touch-action:none;cursor:grab}
  body.inspecting #timeline.has-timeline-wheel{right:20px}
  #timeline.has-timeline-wheel .axis,#timeline.has-timeline-wheel .span,#timeline.has-timeline-wheel #decades,#timeline.has-timeline-wheel #ticks,#timeline.has-timeline-wheel .marker{display:none}
  #timeline.has-timeline-wheel #timelineSlider{inset:0;width:100%;height:100%;cursor:grab;touch-action:none;pointer-events:none}
  #timeline.has-timeline-wheel.timeline-wheel-dragging,#timeline.has-timeline-wheel.timeline-wheel-dragging #timelineSlider{cursor:grabbing}
  .timeline-wheel{display:block;position:absolute;inset:0;overflow:hidden;color:var(--ink);pointer-events:none}
  .timeline-wheel svg{display:block;width:100%;height:144px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;mask-image:linear-gradient(90deg,transparent 1%,#000 12%,#000 88%,transparent 99%)}
  .timeline-wheel-arc{stroke-width:2;opacity:.95}
  .timeline-wheel-arc-echo{stroke-width:.65;opacity:.5}
  .timeline-wheel-inner-arc{stroke-width:.65;opacity:.35}
  .timeline-wheel-tick{opacity:.5;fill:currentColor;stroke:none}
  .timeline-wheel-tick.is-major{opacity:.95}
  .timeline-wheel-tick.is-selected{opacity:1}
  .timeline-wheel-pointer{fill:currentColor;stroke:none}
  /* Keep the year centred horizontally and slightly lower inside the wheel. */
  .timeline-wheel-year{position:absolute;top:calc(50% + 42px);left:50%;transform:translate(-50%,-50%);font-family:var(--display);font-size:clamp(23px,6.6vw,30px);line-height:1;font-weight:400;letter-spacing:.025em;white-space:nowrap;font-variant-numeric:tabular-nums}
  #timeline.has-timeline-wheel:has(#timelineSlider:focus-visible) .timeline-wheel-year{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
}
