/*
 * Minty'Lab: steps. The hidden state is keyed on data-ml-reveal, which only
 * ml-reveal.js writes: without the bundle the steps are simply there.
 */
.mpb-pd-steps__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--mpb-steps), minmax(0, 1fr));
    gap: var(--spacing-3xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpb-pd-steps__list::before,
.mpb-pd-steps__list::after {
    content: "";
    position: absolute;
    top: 1.1875rem;
    left: 0;
    height: 2px;
}

.mpb-pd-steps__list::before {
    right: 0;
    background-color: var(--color-line);
}

.mpb-pd-steps__list::after {
    width: 100%;
    background-color: var(--color-deep);
    transition: width 1.4s var(--ease-out-soft);
}

/* The list itself does not rise: only its line draws, once shown. */
.mpb-pd-steps__list[data-ml-reveal] {
    opacity: 1;
    animation: none;
}

.mpb-pd-steps__list[data-ml-reveal="pending"]::after {
    width: 0;
}

.mpb-pd-steps__list li {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mpb-pd-steps__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--spacing-sm);
    border-radius: 50%;
    background-color: var(--color-deep);
    box-shadow: 0 0 0 6px var(--color-paper);
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-display);
    color: var(--color-white);
}

.mpb-pd-steps__list small {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-emerald);
}

.mpb-pd-steps__list b {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-card-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.mpb-pd-steps__list p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

@media (max-width: 991.98px) {
    .mpb-pd-steps__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mpb-pd-steps__list::before,
    .mpb-pd-steps__list::after {
        display: none;
    }
}
