/* ===========================================================================
   06-COMPONENTS / TIMELINE  (c-timeline)
   A vertical, dated timeline — used on the project detail page for the project's
   milestones (each carries a target date and an optional completion). Done state
   is CLASS-driven (.is-done), never inline style. Every selector is scoped under
   .c-timeline* so the alphabetical ITCSS glob can't clobber it. Existing tokens
   only.
   =========================================================================== */

.c-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* The left rail: an engraved groove running the height of the list, behind the
   markers. */
.c-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 2px;
  background: linear-gradient(
    to right,
    var(--c-bezel-shadow) 0 1px,
    var(--c-bezel-light) 1px 2px
  );
}

.c-timeline__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-left: var(--space-5);
  padding-block: var(--space-2);
}

/* The node sits on the rail. Open = glowing accent ring; done = filled + muted. */
.c-timeline__marker {
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: var(--glow-cyan);
}

.c-timeline__date {
  font-family: var(--font-data);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 5ch;
}

.c-timeline__title {
  color: var(--color-text);
}

/* Done milestone: a quiet win, not a crossing-out (chunk 13 §C). The marker fills
   with the OK-green signal (mirrors c-checklist__check--done) and the title settles
   to a calm muted tone — NO strike-through (a strike reads as "dismissed/crossed
   off" rather than "gently complete", 02-reconciliation). */
.c-timeline__item.is-done .c-timeline__marker {
  background: var(--color-ok);
  border-color: var(--color-ok);
  box-shadow: none;
}
.c-timeline__item.is-done .c-timeline__title {
  color: var(--color-text-muted);
}
