/* Extracted from ui/templates/components/stat_item/stat_item.html. Linked via sekizai so a page loads it once,
   however many instances it renders. */

.courant-stat-item {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    transition: background-color 300ms ease-out;
}

.courant-stat-item__number {
    display: block;
    width: 100%;
    color: #FFFFFF;
    font-size: clamp(24px, 2.1vw, 36px);
    line-height: clamp(30px, 2.7vw, 44px);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.courant-stat-item__label {
    display: block;
    width: 100%;
    margin-top: -2px;
    color: #FFFFFF;
    font-size: clamp(10px, 0.95vw, 16px);
    line-height: clamp(14px, 1.25vw, 20px);
    font-weight: 400;
    letter-spacing: -0.04em;
    text-align: center;
    white-space: nowrap;
}

@container (max-width: 680px) {
    .courant-stat-item {
        min-height: 78px;
        padding: 10px 14px;
    }

    .courant-stat-item__number {
        font-size: clamp(26px, 7cqw, 38px);
        line-height: 1;
    }

    .courant-stat-item__label {
        margin-top: 4px;
        font-size: clamp(13px, 3.2cqw, 17px);
        line-height: 1.2;
        white-space: normal;
    }
}

.js-dynamic-cover .courant-stat-item__number {
    font-size: clamp(34px, 2.9vw, 50px);
    line-height: clamp(42px, 3.7vw, 64px);
}

.js-dynamic-cover .courant-stat-item__label {
    font-size: clamp(18px, 1.62vw, 28px);
    line-height: clamp(24px, 2.08vw, 36px);
}

@media (max-width: 768px) {
    .courant-stat-item {
        padding: 2px 4px;
    }

    .courant-stat-item__number {
        font-size: 17px;
        line-height: 19px;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    .courant-stat-item__label {
        margin-top: 1px;
        font-size: 7px;
        line-height: 8.5px;
        letter-spacing: -0.02em;
        white-space: normal;
    }

    .js-dynamic-cover .courant-stat-item {
        padding: 2px;
    }

    .js-dynamic-cover .courant-stat-item__number {
        font-size: clamp(16px, 5.2vw, 28px);
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .js-dynamic-cover .courant-stat-item__label {
        margin-top: 2px;
        font-size: clamp(10px, 2.8vw, 14px);
        line-height: 1.15;
        letter-spacing: -0.02em;
        white-space: normal;
    }
}

@media (max-width: 430px) {
    .courant-stat-item {
        padding: 2px 3px;
    }

    .courant-stat-item__number {
        font-size: 16px;
        line-height: 18px;
    }

    .courant-stat-item__label {
        font-size: 6.5px;
        line-height: 8px;
    }
}
