/* preset: step-rail — rail, beads and copy. The fill is a typed custom property so it interpolates as a number
   and paints with one transform (no layout per frame). Tokens only, no borders (shade + elevation).
   © Dudoxx UG / Acceleate Consulting - Walid Boudabbous <walid@acceleate.com> */
@property --mk-fill { syntax: '<number>'; inherits: true; initial-value: 0; }
.preset-step-rail { align-items: center; gap: 3cqw; }
.preset-step-rail .col-text { flex: 0 0 33cqw; }
.preset-step-rail.sr-solo .col-text { flex-basis: 70cqw; }
.preset-step-rail.sr-solo .sr-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3cqw; }
.sr-counter { margin: 1.2cqw 0 0; font-size: var(--fs-label); color: var(--muted); }
.sr-counter b { color: var(--accent); font-family: var(--face-head); }
.sr-rail { position: relative; display: grid; gap: 0.6cqw; margin: 1cqw 0 0; padding: 0; list-style: none; --mk-fill: 0; }
.sr-rail::before, .sr-rail::after { content: ''; position: absolute; inset-inline-start: 1.15cqw; top: 1.4cqw; bottom: 1.4cqw; width: 0.22cqw; border-radius: 1cqw; }
.sr-rail::before { background: var(--recess); }
.sr-rail::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--mk-fill)); }
.sr-solo .sr-rail::before, .sr-solo .sr-rail::after { display: none; }
.sr-step { position: relative; z-index: 1; display: grid; grid-template-columns: 2.5cqw 1fr; gap: 1.1cqw; align-items: start; padding: 0.5cqw 0.8cqw 0.5cqw 0; border-radius: 0.8cqw; }
.sr-bead { display: grid; place-items: center; width: 2.5cqw; aspect-ratio: 1; border-radius: 50%; background: var(--card); box-shadow: var(--lift);
  color: var(--muted); font-style: normal; font-family: var(--face-head); font-weight: 700; font-size: var(--fs-label); }
.sr-copy { display: grid; gap: 0.2cqw; padding-top: 0.2cqw; }
.sr-copy b { font-family: var(--face-head); font-weight: 650; font-size: var(--fs-label); color: var(--muted); line-height: 1.2; }
.sr-copy span { font-size: var(--fs-label); color: var(--muted); line-height: 1.3; display: none; }
.sr-step.is-on .sr-copy span { display: block; }
.sr-step.is-on { background: color-mix(in oklch, var(--accent) 9%, transparent); }
.sr-step.is-on .sr-copy b, .sr-step.is-done .sr-copy b { color: var(--ink); }
.sr-step.is-on .sr-bead, .sr-step.is-done .sr-bead { background: var(--accent); color: var(--brand-color-primary-foreground); }
@media (prefers-reduced-motion: reduce) { .sr-rail { --mk-fill: 1; } }
