/* =========================================================
   STATISTIK PENDUDUK
========================================================= */

.statistik {
    padding: 110px 0;

    background: var(--putih);
}


/* =========================================================
   HEADER
========================================================= */

.statistik-update {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;

    padding-top: 8px;

    text-align: right;
}


.statistik-update span {
    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;

    color:
        rgba(35, 41, 31, 0.42);
}


.statistik-update strong {
    font-size: 11px;

    font-weight: 600;

    color: var(--hijau-tua);
}


/* =========================================================
   HERO STATISTICS
========================================================= */

.statistik-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 1fr);

    margin-top: 32px;

    border:
        1px solid var(--garis);

    background: var(--hijau-tua);

    color: var(--krem);
}


.statistik-total {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 285px;

    padding: 42px;
}


.statistik-overline {
    display: block;

    margin-bottom: 12px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .1em;

    color: var(--emas);
}


.statistik-total strong {
    display: block;

    font-family:
        "Fraunces",
        serif;

    font-size: clamp(58px, 7vw, 92px);

    font-weight: 600;

    line-height: .95;

    letter-spacing: -0.04em;
}


.statistik-total p {
    margin: 15px 0 0;

    max-width: 320px;

    font-size: 12px;

    line-height: 1.6;

    color:
        rgba(247, 244, 236, 0.65);
}


/* =========================================================
   MINI CARDS
========================================================= */

.statistik-mini-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    border-left:
        1px solid rgba(247, 244, 236, 0.14);
}


.statistik-mini-card {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 142px;

    padding: 24px;

    border-bottom:
        1px solid rgba(247, 244, 236, 0.14);
}


.statistik-mini-card:nth-child(2),
.statistik-mini-card:nth-child(4) {
    border-left:
        1px solid rgba(247, 244, 236, 0.14);
}


.statistik-mini-card:nth-child(3),
.statistik-mini-card:nth-child(4) {
    border-bottom: 0;
}


.statistik-mini-card span {
    margin-bottom: 8px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;

    color:
        rgba(247, 244, 236, 0.5);
}


.statistik-mini-card strong {
    font-family:
        "Fraunces",
        serif;

    font-size: 29px;

    font-weight: 600;

    line-height: 1.1;

    color: var(--krem);
}


/* =========================================================
   ANALYSIS GRID
========================================================= */

.statistik-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-top: 20px;
}


.statistik-panel {
    padding: 26px;

    border:
        1px solid var(--garis);

    background: var(--krem);
}


.statistik-panel-head {
    margin-bottom: 28px;
}


.statistik-label {
    display: block;

    margin-bottom: 6px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .09em;

    color: var(--emas);
}


.statistik-panel-head h3,
.statistik-demografi-head h3 {
    margin: 0;

    font-family:
        "Fraunces",
        serif;

    font-size: 24px;

    font-weight: 600;

    line-height: 1.2;

    color: var(--tinta);
}


/* =========================================================
   GENDER
========================================================= */

.gender-stat {
    display: flex;

    flex-direction: column;

    gap: 27px;
}


.gender-row {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.gender-row-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.gender-row-head span {
    font-size: 12px;

    color:
        rgba(35, 41, 31, 0.62);
}


.gender-row-head strong {
    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 11px;

    font-weight: 500;

    color: var(--hijau-tua);
}


.gender-bar {
    width: 100%;

    height: 10px;

    background:
        rgba(35, 41, 31, 0.09);

    overflow: hidden;
}


.gender-progress {
    height: 100%;

    background: var(--hijau-tua);

    transition:
        width .4s ease;
}


/* =========================================================
   RANKING
========================================================= */

.statistik-ranking {
    display: flex;

    flex-direction: column;

    gap: 1px;

    background: var(--garis);
}


.ranking-item {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 13px;

    padding: 13px 12px;

    background: var(--krem);
}


.ranking-number {
    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 9px;

    color: var(--emas);
}


.ranking-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.ranking-content strong {
    overflow: hidden;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: var(--hijau-tua);
}


.ranking-content small {
    font-size: 9px;

    color:
        rgba(35, 41, 31, 0.46);
}


.ranking-value {
    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 10px;

    font-weight: 500;

    color: var(--tinta);
}


/* =========================================================
   DEMOGRAPHY
========================================================= */

.statistik-demografi {
    margin-top: 20px;

    padding: 27px 26px;

    border:
        1px solid var(--garis);

    background: var(--putih);
}


.statistik-demografi-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.statistik-note {
    font-size: 10px;

    color:
        rgba(35, 41, 31, 0.42);
}


.demografi-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border:
        1px solid var(--garis);
}


.demografi-item {
    display: flex;

    flex-direction: column;

    padding: 20px;

    border-right:
        1px solid var(--garis);
}


.demografi-item:last-child {
    border-right: 0;
}


.demografi-item span {
    margin-bottom: 10px;

    font-size: 11px;

    color:
        rgba(35, 41, 31, 0.55);
}


.demografi-item strong {
    font-family:
        "Fraunces",
        serif;

    font-size: 31px;

    font-weight: 600;

    line-height: 1;

    color: var(--hijau-tua);
}


.demografi-item small {
    margin-top: 7px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 8px;

    color:
        rgba(35, 41, 31, 0.4);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .statistik-hero {
        grid-template-columns: 1fr;
    }


    .statistik-mini-grid {
        border-top:
            1px solid rgba(247, 244, 236, 0.14);

        border-left: 0;
    }

}


@media (max-width: 800px) {

    .statistik-grid {
        grid-template-columns: 1fr;
    }


    .demografi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .demografi-item:nth-child(2) {
        border-right: 0;
    }


    .demografi-item:nth-child(-n + 2) {
        border-bottom:
            1px solid var(--garis);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .statistik {
        padding: 75px 0;
    }


    .statistik-update {
        align-items: flex-start;

        padding-top: 0;

        text-align: left;
    }


    .statistik-total {
        min-height: 230px;

        padding: 28px 22px;
    }


    .statistik-total strong {
        font-size: 58px;
    }


    .statistik-mini-grid {
        grid-template-columns: 1fr 1fr;
    }


    .statistik-mini-card {
        min-height: 115px;

        padding: 18px;
    }


    .statistik-mini-card strong {
        font-size: 24px;
    }


    .statistik-panel,
    .statistik-demografi {
        padding: 20px;
    }


    .statistik-panel-head h3,
    .statistik-demografi-head h3 {
        font-size: 21px;
    }


    .statistik-demografi-head {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .demografi-grid {
        grid-template-columns: 1fr;
    }


    .demografi-item {
        border-right: 0;

        border-bottom:
            1px solid var(--garis);
    }


    .demografi-item:last-child {
        border-bottom: 0;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 400px) {

    .statistik-mini-grid {
        grid-template-columns: 1fr;
    }


    .statistik-mini-card,
    .statistik-mini-card:nth-child(2) {
        border-left: 0;

        border-bottom:
            1px solid rgba(247, 244, 236, 0.14);
    }


    .statistik-mini-card:last-child {
        border-bottom: 0;
    }

}

/* =========================================================
   FOOTNOTE
========================================================= */

.statistik-footnote {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;

    font-family:
        "IBM Plex Mono",
        monospace;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .06em;

    color:
        rgba(35, 41, 31, 0.42);
}