/* stats-anaplast-1 — key-figure strip (DESIGN_MANUAL §4a public variant) */
.stats-anaplast-1 {
    width: 100%;
    padding: var(--apl-space-7) 0;
    background-color: var(--apl-surface);
    container-type: inline-size;
}
.stats-anaplast-1 .content-wrapper {
    max-width: var(--apl-container);
    margin: 0 auto;
    padding-inline: var(--apl-gutter);
    display: flex;
    flex-direction: column;
    gap: var(--apl-space-5);
}

/* --- Section opener --- */
.stats-anaplast-1__head {
    display: flex;
    flex-direction: column;
    gap: var(--apl-space-2);
    max-width: var(--apl-measure);
}
.stats-anaplast-1__eyebrow {
    font-size: var(--apl-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--apl-tracking-caps);
    color: var(--apl-amber-hover);
}
.stats-anaplast-1__heading {
    margin: 0;
    font-size: var(--apl-text-2xl);
    font-weight: 800;
    line-height: var(--apl-leading-tight);
    color: var(--heading-color);
}

/* --- Figures --- */
.stats-anaplast-1__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--apl-space-4);
}
.stats-anaplast-1__item {
    display: flex;
    flex-direction: column;
    gap: var(--apl-space-1);
    min-width: 0;
}
.stats-anaplast-1__icon {
    font-size: var(--apl-text-2xl);
    line-height: 1;
    color: var(--apl-amber-hover);
}
.stats-anaplast-1__value {
    font-size: var(--apl-text-3xl);
    font-weight: 800;
    line-height: var(--apl-leading-tight);
    color: var(--apl-amber-hover);
    overflow-wrap: anywhere;
}
.stats-anaplast-1__label {
    font-size: var(--apl-text-base);
    line-height: var(--apl-leading-normal);
    color: var(--text-color);
}
.stats-anaplast-1__item--text-only .stats-anaplast-1__label {
    font-weight: 700;
    color: var(--heading-color);
}

/* --- Alignment --- */
.stats-anaplast-1--align-center .stats-anaplast-1__head {
    align-self: center;
    align-items: center;
    text-align: center;
}
.stats-anaplast-1--align-center .stats-anaplast-1__item {
    align-items: center;
    text-align: center;
}

/* --- Backgrounds --- */
.stats-anaplast-1--bg-surface-alt {
    background-color: var(--apl-surface-alt);
}
.stats-anaplast-1--bg-amber-tint {
    background-color: var(--apl-amber-tint);
}
.stats-anaplast-1--bg-sky-tint {
    background-color: var(--apl-sky-tint);
}
.stats-anaplast-1--bg-invert {
    background-color: var(--apl-surface-invert);
}
.stats-anaplast-1--bg-invert .stats-anaplast-1__heading,
.stats-anaplast-1--bg-invert .stats-anaplast-1__label,
.stats-anaplast-1--bg-invert
    .stats-anaplast-1__item--text-only
    .stats-anaplast-1__label {
    color: var(--apl-on-invert);
}
.stats-anaplast-1--bg-invert .stats-anaplast-1__eyebrow,
.stats-anaplast-1--bg-invert .stats-anaplast-1__icon,
.stats-anaplast-1--bg-invert .stats-anaplast-1__value {
    color: var(--apl-amber);
}

/* --- Responsive: 1 col < 30rem, 2 cols < 48rem, then up to N columns.
   5 and 6 items step through 3 columns first so the 3rem numerals keep room. --- */
@container (width < 40rem) {
    .stats-anaplast-1 {
        padding: var(--apl-space-5) 0;
    }
}
@container (width >= 30rem) {
    .stats-anaplast-1__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-anaplast-1--n-1 .stats-anaplast-1__list {
        grid-template-columns: minmax(0, 1fr);
    }
}
@container (width >= 48rem) {
    .stats-anaplast-1--n-3 .stats-anaplast-1__list,
    .stats-anaplast-1--n-5 .stats-anaplast-1__list,
    .stats-anaplast-1--n-6 .stats-anaplast-1__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .stats-anaplast-1--n-4 .stats-anaplast-1__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@container (width >= 72rem) {
    .stats-anaplast-1--n-5 .stats-anaplast-1__list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .stats-anaplast-1--n-6 .stats-anaplast-1__list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
