/* Шкала этапов (lib/blocks/timeline.js). */

.prose .timeline-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .timeline-step {
  position: relative;
  margin: 0;
  padding-bottom: 6px;
}

/* Линия между кружками: от центра своего кружка до следующего. */
.prose .timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 34px;
  bottom: -6px;
  left: 15px;
  width: 2px;
  background: var(--line);
}

.prose .timeline-step.is-past::before {
  background: var(--amber);
}

.prose .timeline-step summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 44px;
  padding: 4px 0;
  list-style: none;
  cursor: pointer;
}

.prose .timeline-step summary::-webkit-details-marker {
  display: none;
}

.prose .timeline-dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.prose .timeline-step.is-past .timeline-dot,
.prose .timeline-step.is-current .timeline-dot {
  border-color: var(--amber);
  color: var(--amber-ink);
  background: var(--amber);
}

.prose .timeline-step.is-current .timeline-dot {
  box-shadow: 0 0 0 6px var(--amber-wash);
}

.prose .timeline-head {
  display: flex;
  flex-direction: column;
  padding-top: 3px;
}

.prose .timeline-when {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.prose .timeline-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.prose .timeline-step summary:hover .timeline-title {
  color: var(--amber);
}

.prose .timeline-step summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 8px;
}

.prose .timeline-text {
  margin: 6px 0 8px 48px;
  color: var(--ink-body);
}

.prose .timeline-here {
  min-height: 44px;
  margin: 0 0 8px 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.prose .timeline-here:hover {
  border-color: var(--ink-2);
}

.prose .timeline-step.is-current .timeline-here {
  border-color: var(--amber);
  color: var(--amber);
}

.prose .timeline-status {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--amber);
}

.prose .timeline-status:empty {
  display: none;
}
