/* Хронология рынка ЦФА. */

#timeline-root { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.tl-wrap { position: relative; }
.tl-line {
  position: absolute;
  left: 14px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-line-fill {
  width: 1px; height: 0%;
  background: var(--fg);
  transition: height 0.2s linear;
}
.tl-year {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  padding: 26px 0 10px 44px;
  letter-spacing: 0.08em;
}
.tl-event {
  position: relative;
  padding: 0 0 30px 44px;
  /* A11y 1.4.3: прозрачность 0.4 раньше сидела на контейнере — неактивный текст
     (дата, заголовок, текст) читался как 2.2–2.6:1. Теперь текст всегда читаем,
     «оживание» события остаётся на точке-маркере. */
  transition: opacity 0.3s;
}
.tl-event.is-active { opacity: 1; }
.tl-event.is-past { opacity: 0.62; }
.tl-dot {
  position: absolute;
  left: 9px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--muted);
  opacity: 0.4;
  transition: background 0.25s, transform 0.25s, border-color 0.25s, opacity 0.25s;
}
.tl-event.is-active .tl-dot {
  background: var(--tc, var(--fg));
  border-color: var(--tc, var(--fg));
  transform: scale(1.35);
  opacity: 1;
}
.tl-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.tl-date { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--fg); }
.tl-tone {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tc, var(--muted));
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.tl-body h3 { font-size: 15.5px; margin-bottom: 6px; }
.tl-text { color: var(--muted); font-size: 13.5px; max-width: 600px; }
.tl-node {
  display: inline-block; margin-top: 8px;
  background: none; border: none; border-bottom: 1px dashed var(--muted);
  color: var(--fg); font-family: var(--mono); font-size: 11px;
  cursor: pointer; padding: 0 0 2px;
}
.tl-node:hover { color: var(--fg); border-bottom-color: var(--fg); }

@media (max-width: 860px) {
  #timeline-root { padding: 0 20px; }
  .tl-year { font-size: 18px; padding-left: 40px; }
  .tl-event { padding-left: 40px; }
  .tl-line { left: 12px; }
  .tl-dot { left: 7px; }
  /* тач-цель ≥40px; flex-end держит пунктирное подчёркивание у текста, не у низа бокса (QA wave-3) */
  .tl-node { min-height: 40px; display: inline-flex; align-items: flex-end; }
}

/* a11y волна 5: в светлой теме фирменные цвета тона темнеют до контраста 4.5:1 */
html[data-theme="light"] .tl-tone {
  color: color-mix(in srgb, var(--tc, var(--muted)) 45%, #1a1a1a);
  border-color: color-mix(in srgb, var(--tc, var(--muted)) 55%, #8c8c8c);
}
/* пройденные события: без затемнения текста (контраст), иерархию держит точка */
.tl-event.is-past { opacity: 1; }
.tl-event.is-past .tl-dot { transform: scale(0.9); opacity: 0.55; }
