/* Steps V1: a row of centred steps, each an icon badge above a title and a
   short line of text. */

/* Centre the badge with the text below it. The icon is an inline-flex span,
   so in a flex column it sits at the card's centre without extra wrappers. */
.forge-steps-v1__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.forge-steps-v1__card > * {
    width: 100%;
}

.forge-steps-v1__card > .forge-icon {
    width: auto;
}

/* Phones: the grid's small breakpoint sets no row gap, so stacked steps
   would touch. */
@media (max-width: 767px) {
    .forge-steps-v1 .forge-grid {
        row-gap: var(--wp--preset--spacing--lg);
    }
}

/* Narrow phones: a single column. The grid block stops at two columns at its
   small breakpoint, so this overrides its column template below 400px. */
@media (max-width: 400px) {
    .forge-steps-v1 .forge-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
