/* ─── TIMELINE VIEW (linear horizontal axis) ─────────────────────
   White background, matching .timeline-view. A ruler (years/months)
   runs along the bottom; project items sit above it, positioned by
   date; zoom via wheel/pinch/slider, pan by dragging horizontally. */

.tl-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

#tl-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#tl-canvas.is-dragging { cursor: grabbing; }

#tl-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Axis / ruler ─────────────────────────────────────────────── */
.tl-axis path.domain {
  stroke: rgba(0, 0, 0, 0.55);
}

.tl-axis .tick line {
  stroke: rgba(0, 0, 0, 0.25);
}

.tl-axis .tick text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: rgba(0, 0, 0, 0.55);
}

.tl-axis .tick--year text {
  font-weight: 500;
  fill: rgba(0, 0, 0, 0.85);
}

/* ── Items ────────────────────────────────────────────────────── */
.tl-item { cursor: pointer; }

.tl-item__stem {
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 1px;
}

.tl-item__ring {
  fill: none;
  stroke: rgba(0, 0, 0, 0.75);
  stroke-width: 1px;
}

.tl-item__img { pointer-events: none; }

.tl-item__label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  fill: rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.tl-item:hover .tl-item__ring { stroke: rgba(0, 0, 0, 1); }
.tl-item:hover .tl-item__label { fill: rgba(0, 0, 0, 1); }

/* ── Zoom slider ─────────────────────────────────────────────── */
.tl-zoom {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  z-index: 10;
}

.tl-zoom__label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1;
  user-select: none;
}

.tl-zoom input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 130px;
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.tl-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.tl-zoom input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

@media (max-width: 767px) {
  .tl-zoom { bottom: 0.9rem; padding: 0.35rem 0.7rem; gap: 0.4rem; }
  .tl-zoom input[type="range"] { width: 90px; }
}
