.tfnz-statspanel_container {
    padding: 64px 0 80px 0;
    background-position: center;
    background-size: cover;
}

.tfnz-statspanel_heading {
    text-align: center;
    font-size: 2rem;
    line-height: 2rem;
    text-transform: none;
    position: relative;
    padding-bottom: 20px;
    margin: 0 20px 48px 20px !important;
    color: var(--heading-color) !important;
}

.tfnz-statspanel_heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 6px;
    background: var(--underline-color);
    transform: translateX(-50%);
}

.tfnz-statspanel_center {
    background: #fff;
    padding: 48px 40px 16px 40px;
    border-radius: 0.25rem;
    width: 1270px;
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.tfnz-statspanel_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: center;
    container-type: inline-size;
}

.tfnz-statspanel_section {
    display: flex;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
    gap: 32px;
    width: 100%;
    max-width: 700px;
}

.tfnz-statspanel_icon {
    width: 144px;
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    pointer-events: none;
}

.tfnz-statspanel_icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tfnz-statspanel_icon:not(:has(img)) {
    background: #008caa;
}

.tfnz-statspanel_content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tfnz-statspanel_stat {
    margin: 0;
    color: var(--statistic-color);
    font-size: 2.5rem;
    line-height: 2.5rem;
    font-weight: 700;
    font-family: FSMe-bold, Calibri;
}

.tfnz-statspanel_description {
    margin: 0;
    color: rgb(51, 51, 51);
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-family: FSMe-bold, Calibri;
}

@container (width >= 700px) {
    .tfnz-statspanel_single .tfnz-statspanel_grid {
        justify-content: center;
    }

    .tfnz-statspanel_single .tfnz-statspanel_icon {
        width: 230px;
    }

    .tfnz-statspanel_single .tfnz-statspanel_stat {
        font-size: 3.2rem;
        line-height: 3.2rem;
    }

    .tfnz-statspanel_single .tfnz-statspanel_description {
        font-size: 1.2rem;
        line-height: 1.4rem;
    }
}

@container (width >= 800px) {
    .tfnz-statspanel_triple .tfnz-statspanel_section {
        width: calc(100% / 3 - 32px);
        flex-direction: column;
    }

    .tfnz-statspanel_triple .tfnz-statspanel_stat {
        text-align: center;
    }

    .tfnz-statspanel_triple .tfnz-statspanel_description {
        text-align: center;
    }
}

@container (width >= 900px) {
    .tfnz-statspanel_odd .tfnz-statspanel_section,
    .tfnz-statspanel_even .tfnz-statspanel_section {
        width: calc(50% - 24px);
    }

    .tfnz-statspanel_odd .tfnz-statspanel_section:last-of-type {
        margin-left: calc(50% + 24px);
        position: relative;
    }

    .tfnz-statspanel_odd .tfnz-statspanel_section:last-of-type::before {
        content: "";
        position: absolute;
        right: calc(100% + 48px);
        width: calc(100% + 40px);
        top: 0;
        height: calc(100% + 56px);
        background: url('https://www.tearfund.org.nz/portals/0/NaviCards-darknavy.png');
        background-size: 100% auto;
        background-position: bottom left;
        transform: rotate(180deg);
    }
}

.tfnz-statspanel_is-carousel {
    padding: 40px 0 60px 0;
}

.tfnz-statspanel_is-carousel .tfnz-statspanel_heading {
    margin-bottom: 32px !important;
}

.tfnz-statspanel_is-carousel .tfnz-statspanel_center {
    max-width: none;
    width: 100%;
    padding: 0;
    background: transparent;
}

.tfnz-statspanel_is-carousel .tfnz-statspanel_grid {
    flex-wrap: nowrap;
    touch-action: pan-y;
    position: relative;
    min-height: 100px;
    width: 100%;
    overflow-x: hidden;
    gap: 0;
}

.tfnz-statspanel_carousel-item {
    position: relative;
    user-select: none;
    width: 0;
}

.tfnz-statspanel_carousel-contents {
    min-height: 100%;
    translate: -50%;
    overflow: hidden;
    width: calc(var(--container-width) * 0.7);
    background: #fff;
    padding: 24px 20px;
    border-radius: 0.25rem;
}

.tfnz-statspanel_carousel-contents .tfnz-statspanel_section {
    flex-direction: column;
}

.tfnz-statspanel_carousel-contents .tfnz-statspanel_stat {
    text-align: center;
}

.tfnz-statspanel_carousel-contents .tfnz-statspanel_description {
    text-align: center;
}

.tfnz-statspanel_indicators {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 40px;
}

.tfnz-statspanel_carousel-indicator {
    border: none;
    background: transparent;
    width: 20px;
    height: 20px;
    border-radius: 33%;
    cursor: pointer;
    position: relative;
}

.tfnz-statspanel_carousel-indicator:focus {
    outline: none;
}

.tfnz-statspanel_carousel-indicator::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid var(--heading-color);
    border-radius: 50%;
}

.tfnz-statspanel_carousel-indicator.tfnz-statspanel_active::after {
    background: var(--heading-color);
}