/* ============================================================
   Step rail
   Sticky left column: numbered circles joined by connectors,
   each a button back to a step you've already completed.
   ============================================================ */

.rail {
  width: 238px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}

.rail__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 18px;
}

/* ---------- Step ---------- */

.rail__step {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0 0 4px;
  font: inherit;
  cursor: pointer;
}

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

/* Steps you haven't reached yet aren't clickable */
.rail__step.is-locked {
  opacity: .55;
  cursor: default;
}

.rail__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.rail__step > span:last-child {
  text-align: left;
  padding-top: 1px;
}

/* ---------- Circle ---------- */

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  font-feature-settings: 'tnum';
  flex-shrink: 0;
  transition: all .2s;
  background: transparent;
  border: 1.5px solid var(--border-3);
  color: #5b6b7b;
}

.step-circle.is-current {
  background: var(--accent-deep);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .16);
}

.step-circle.is-done {
  background: rgba(20, 184, 166, .14);
  border-color: var(--accent);
  color: var(--accent-lt);
}

/* ---------- Connector ---------- */

.rail__connector {
  width: 1.5px;
  height: 20px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--border-2);
}

.rail__connector.is-done {
  background: var(--accent);
}

/* ---------- Labels ---------- */

.rail__label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-4);
  line-height: 1.25;
}

.rail__label.is-active {
  color: var(--text);
}

.rail__sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-5);
  margin-top: 1px;
}
