/* il-steps: 진행 단계 표시(1 → 2 → 3 → 4)
   - 문서: docs/components/il-steps.md, 예시: /ComponentGuide
   - 카드 없이 원형 번호 + 이름이 가로로 늘어서고, 번호 사이를 가는 선이 잇는다.
   - 지금 단계는 브랜드색 채움 + 굵은 브랜드색 이름, 끝낸 단계는 연한 브랜드 바탕 + 브랜드색 번호(체크)와 브랜드색 선, 아직인 단계는 회색.
   - 상태는 li에 .is-current(+ aria-current="step") / .is-complete를 붙여 정한다. 색만으로 구분하지 않도록 끝낸 단계는 체크 아이콘을 넣을 수 있다.
   - 값은 디자인 시스템 토큰(--il-*)과 그에 연결된 --ds-*만 쓴다. */

.label-v5 .ilsteps {
  --ilsteps-marker: var(--il-8);
  display: flex;
  margin: 0 0 var(--il-4);
  padding: 0;
  list-style: none;
}

.label-v5 .ilsteps-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: var(--il-2);
  text-align: center;
}

/* 번호 사이를 잇는 선: 이 단계의 번호 오른쪽에서 다음 단계의 번호 왼쪽까지 */
.label-v5 .ilsteps-item:not(:last-child)::after {
  position: absolute;
  top: calc(var(--ilsteps-marker) / 2);
  right: calc(var(--ilsteps-marker) / 2 + var(--il-3) - 50%);
  left: calc(50% + var(--ilsteps-marker) / 2 + var(--il-3));
  height: 1px;
  background: var(--ds-color-border-default);
  content: "";
}

.label-v5 .ilsteps-marker {
  display: grid;
  width: var(--ilsteps-marker);
  height: var(--ilsteps-marker);
  place-items: center;
  border-radius: 50%;
  color: var(--ds-color-text-muted);
  background: var(--il-gray-100);
  font-size: var(--ds-font-size-body);
  font-weight: var(--ds-font-weight-bold);
  line-height: 1;
}

.label-v5 .ilsteps-label {
  color: var(--ds-color-text-muted);
  font-size: var(--ds-font-size-meta);
  font-weight: var(--ds-font-weight-bold);
}

/* 끝낸 단계 */
.label-v5 .ilsteps-item.is-complete::after { background: var(--ds-color-brand-primary); }
.label-v5 .ilsteps-item.is-complete .ilsteps-marker { color: var(--ds-color-brand-primary); background: var(--ds-color-brand-subtle); }
.label-v5 .ilsteps-item.is-complete .ilsteps-label { color: var(--ds-color-text-default); }

/* 지금 단계 */
.label-v5 .ilsteps-item.is-current .ilsteps-marker { color: var(--ds-color-on-brand); background: var(--ds-color-brand-primary); }
.label-v5 .ilsteps-item.is-current .ilsteps-label { color: var(--ds-color-brand-primary); }

@media (max-width: 575.98px) {
  .label-v5 .ilsteps { --ilsteps-marker: var(--il-7); padding: 0; }
  .label-v5 .ilsteps-item { gap: var(--il-1); }
  .label-v5 .ilsteps-marker { font-size: var(--ds-font-size-meta); }
  .label-v5 .ilsteps-label { font-size: var(--ds-font-size-caption); }
}
