/* =========================================================================
   Cabinhub News — the story's own record (article timeline)

   One compact block under the article header: the story's real publication
   moments in order — first published, and last updated when it actually moved.
   It is the second timeline on the page, so it is drawn quieter than the
   storyline: a hairline spine, small square markers, no cards and no shadows.
   A reader should read it as a caption on the article, not as a second story.

   Mechanism, ported not imported (see js/article_timeline.js for the ten
   open-source timelines compared and why each is disqualified): the <ol> is the
   timeline and the spine + markers are ::before/decoration only, so the block
   is an accessible numbered list of dated entries with CSS removed.

   Geometry lives in one place because the spine and the markers must sit on the
   SAME x: spine at .28rem, marker centred on it (left .28rem, margin-left -3px).
   Colour is entirely tokens (tokens.css) so light and dark both follow.
   ========================================================================= */

.timeline {
  margin-top: clamp(1.1rem, 2.4vw, 1.7rem);
}

.timeline__title {
  margin: 0 0 clamp(0.5rem, 1.4vw, 0.75rem);
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: var(--measure);
}

/* The spine: drawn once on the list so it is continuous between rows. */
.timeline__list::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  bottom: 0.5rem;
  left: 0.28rem;
  width: 1px;
  background: var(--rule);
}

.timeline__event {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.7rem;
  row-gap: 0.05rem;
  padding: 0 0 clamp(0.45rem, 1.4vw, 0.6rem) 1.15rem;
}

.timeline__event:last-child {
  padding-bottom: 0;
}

/* The marker: a small square on the spine. Decoration, so it is aria-hidden in
   the markup and drawn here. */
.timeline__dot {
  position: absolute;
  left: 0.28rem;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
}

/* The newest moment (the last row) is the one a reader checking currency came
   for: a filled marker. */
.timeline__event:last-child .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline__label {
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

.timeline__time {
  font-family: var(--font-ui);
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- phone: the stamp drops under its label ---------------------------- */
@media (max-width: 560px) {
  .timeline__event {
    flex-direction: column;
    row-gap: 0.05rem;
  }
  .timeline__time {
    white-space: normal;
  }
}

/* ---- forced colours ---------------------------------------------------
   Windows high contrast drops backgrounds, so the spine and markers need a
   system colour or the sequence is lost. */
@media (forced-colors: active) {
  .timeline__list::before {
    background: CanvasText;
  }
  .timeline__dot,
  .timeline__event:last-child .timeline__dot {
    background: Canvas;
    border-color: CanvasText;
  }
}

/* ---- reduced motion ---------------------------------------------------
   This file declares no motion: a record does not animate in. The rule is here
   so a later addition cannot forget it. */
@media (prefers-reduced-motion: reduce) {
  .timeline *,
  .timeline *::before {
    transition: none !important;
    animation: none !important;
  }
}

.correction-record { margin-block:.7rem; padding:.5rem .65rem; border-inline-start:2px solid var(--success); background:var(--paper-2); overflow-wrap:anywhere; }
.correction-record__title { margin:0 0 .25rem; color:var(--ink); font:650 1rem/1.35 var(--font-ui); }
.correction-record ol { list-style:none; padding:0; margin:0; }
.correction-record li + li { border-top:1px solid var(--rule); margin-top:.45rem; padding-top:.45rem; }
.correction-record time { color:var(--ink-soft); font-size:.8rem; }
.correction-record dl { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:.25rem .65rem; margin:.35rem 0 0; }
.correction-record dt { color:var(--ink-soft); }
.correction-record dd { margin:0; white-space:pre-wrap; }
