/* Draggable / slidable year-dot on the vertical timeline rail.
   Replaces the small .year-marker::before decoration with a bigger handle. */

.timeline.has-tl-scrub{
  padding-left:36px;
}
.timeline.has-tl-scrub::before{
  left:14px;
  width:4px;
}

/* Hide the old decorative dots — the handle is the visible marker now. */
.timeline.has-tl-scrub .year-marker::before{
  display:none !important;
}

/* Year number and the left accent stripe follow the same rail gradient as the knob. */
.timeline.has-tl-scrub .year-marker{
  border-left-color:var(--tl-year-color,var(--bsj-yellow,#F2E052));
}
.timeline.has-tl-scrub .year-num{
  color:var(--tl-year-color,var(--bsj-yellow,#F2E052));
}
.timeline.has-tl-scrub .year-marker,
.timeline.has-tl-scrub .year-num{
  transition:border-left-color .15s linear,color .15s linear;
}

.tl-scrub-handle{
  position:absolute;
  left:16px; /* rail center: 14px + 2px */
  top:0;
  width:44px;
  height:44px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  transform:translate(-50%,-50%);
  touch-action:none;
  pointer-events:auto;
  cursor:grab;
  z-index:30;
  -webkit-user-select:none;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.tl-scrub-handle:active,
.tl-scrub-handle.is-dragging{
  cursor:grabbing;
}
.tl-scrub-handle:focus{
  outline:none;
}
.tl-scrub-handle:focus-visible .tl-scrub-dot{
  box-shadow:0 0 0 4px var(--tl-knob-glow,rgba(242,224,82,.45)),0 0 0 7px rgba(92,151,255,.85);
}

.tl-scrub-dot{
  position:absolute;
  left:50%;
  top:50%;
  width:22px;
  height:22px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:var(--tl-knob,var(--bsj-yellow,#F2E052));
  border:3px solid #111;
  box-shadow:0 0 0 4px var(--tl-knob-glow,rgba(242,224,82,.4));
  pointer-events:none;
}
.tl-scrub-handle.is-dragging .tl-scrub-dot{
  width:26px;
  height:26px;
  box-shadow:0 0 0 6px var(--tl-knob-glow-strong,rgba(242,224,82,.5));
}

.tl-scrub-bubble{
  position:absolute;
  left:calc(100% + 8px);
  top:50%;
  bottom:auto;
  transform:translateY(-50%);
  background:#111;
  color:var(--tl-knob,var(--bsj-yellow,#F2E052));
  font-family:'Oswald',sans-serif;
  font-weight:700;
  font-size:20px;
  letter-spacing:.04em;
  line-height:1;
  padding:6px 10px;
  border:2px solid #000;
  border-radius:6px;
  box-shadow:0 8px 20px rgba(0,0,0,.45);
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transition:opacity .12s ease;
}
.tl-scrub-handle.is-dragging .tl-scrub-bubble,
.tl-scrub-handle:focus-visible .tl-scrub-bubble{
  opacity:1;
  visibility:visible;
}

html.is-tl-dragging{
  cursor:grabbing;
  user-select:none;
  -webkit-user-select:none;
}
html.is-tl-dragging body{
  cursor:grabbing;
}

@media (max-width:600px){
  .timeline.has-tl-scrub{
    padding-left:34px;
  }
  .timeline.has-tl-scrub::before{
    left:14px;
    width:4px;
  }
  .tl-scrub-handle{
    left:16px;
    width:44px;
    height:44px;
  }
  .tl-scrub-dot{
    width:24px;
    height:24px;
    box-shadow:0 0 0 5px var(--tl-knob-glow,rgba(242,224,82,.45));
  }
  .tl-scrub-handle.is-dragging .tl-scrub-dot{
    width:28px;
    height:28px;
  }
  .tl-scrub-bubble{font-size:18px}
}

@media (prefers-reduced-motion:reduce){
  .tl-scrub-bubble{transition:none}
  .timeline.has-tl-scrub .year-marker,
  .timeline.has-tl-scrub .year-num{transition:none}
}
