.step-progress-mount,
.step-progress,
.step-progress * { box-sizing: border-box; }

.step-progress-mount {
  --step-current: #f53291;
  --step-complete: #d4ff00;
  --step-focus: #32c5f4;
  --step-track: #414141;
  --step-muted: #b5b5b5;
  width: min(100%, 1200px);
  margin: 0 auto 16px;
  padding-inline: 14px;
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: #101010;
}

:root { scroll-padding-block-start: 120px; }

.event-page .step-progress-mount {
  margin-block-start: 4px;
  inset-block-start: 4px;
}

.step-progress {
  padding: 10px 0 6px;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  color: #fff;
}

.step-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 24px;
  color: #f4f4f4;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.step-progress-brand { letter-spacing: 0.02em; }

.step-progress-count {
  color: var(--step-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.step-progress-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.step-progress-item {
  position: relative;
  min-inline-size: 0;
  text-align: center;
}

.step-progress-item:not(:first-child)::before {
  position: absolute;
  z-index: 0;
  inset-block-start: 15px;
  inset-inline: -50% 50%;
  block-size: 2px;
  background: var(--step-track);
  content: "";
}

.step-progress-item[data-state="complete"]::before,
.step-progress-item[data-state="current"]::before {
  background: var(--step-complete);
}

.step-progress-link {
  position: relative;
  z-index: 1;
  display: flex;
  min-block-size: 44px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 3px 3px;
  border-radius: 4px;
  color: var(--step-muted);
  text-decoration: none;
}

.step-progress-link:focus-visible {
  outline: 3px solid var(--step-focus);
  outline-offset: 2px;
}

.step-progress-marker {
  display: grid;
  inline-size: 30px;
  block-size: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #777;
  border-radius: 50%;
  background: #181818;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.step-progress-item[data-state="current"] .step-progress-marker {
  border-color: var(--step-current);
  background: var(--step-current);
  color: #101010;
}

.step-progress-item[data-state="complete"] .step-progress-marker {
  border-color: var(--step-complete);
  background: var(--step-complete);
  color: #101010;
}

.step-progress-marker svg {
  inline-size: 16px;
  block-size: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.step-progress-label {
  display: flex;
  min-block-size: 2.4em;
  max-inline-size: 140px;
  align-items: flex-start;
  justify-content: center;
  color: inherit;
  font-size: clamp(9px, 2vw, 11px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.step-progress-item[data-state="current"] .step-progress-label { color: #fff; }
.step-progress-item[data-state="complete"] .step-progress-label { color: var(--step-complete); }

@media (max-width: 420px) {
  .step-progress-mount { margin-block-end: 14px; padding-inline: 9px; }
  .step-progress { padding-block-start: 8px; }
  .step-progress-label { font-size: 9px; }
}

@media (forced-colors: active) {
  .step-progress { border-color: CanvasText; }
  .step-progress-item:not(:first-child)::before { background: CanvasText; }
  .step-progress-item[data-state="complete"]::before,
  .step-progress-item[data-state="current"]::before { background: Highlight; }
  .step-progress-marker,
  .step-progress-item[data-state="current"] .step-progress-marker,
  .step-progress-item[data-state="complete"] .step-progress-marker {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
  .step-progress-item[data-state="current"] .step-progress-marker { outline: 2px solid Highlight; }
  .step-progress-item[data-state="current"] .step-progress-label,
  .step-progress-item[data-state="complete"] .step-progress-label { color: CanvasText; }
}
