.webStatsPage {
    max-width: 1500px;
}

.webStatsHeading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.webStatsHeading h1 {
    margin-bottom: 0.2rem;
}

.webStatsHeading p {
    margin-top: 0;
}

.webStatsPeriods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.webStatsPeriod {
    border: 1px solid #214700;
    background: white;
    color: #214700;
    border-radius: 0.35rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font: inherit;
}

.webStatsPeriod:hover,
.webStatsPeriod:focus,
.webStatsPeriod.active {
    background: #214700;
    color: white;
}

.webStatsCards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.webStatsCard {
    border: 1px solid rgba(33, 71, 0, 0.25);
    border-radius: 0.45rem;
    padding: 0.8rem 0.9rem;
    background: rgba(220, 255, 219, 0.32);
    min-width: 0;
}

.webStatsCardLabel {
    display: block;
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.webStatsCard strong {
    font-family: "Raleway", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
}

.webStatsSplit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.webStatsPanel {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.45rem;
    padding: 0.85rem;
    min-width: 0;
    background: white;
}

.webStatsPanel h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.webStatsAudience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.webStatsAudience > div {
    background: rgba(0, 0, 0, 0.035);
    border-radius: 0.35rem;
    padding: 0.7rem;
}

.webStatsAudience span {
    display: block;
    font-size: 0.85rem;
}

.webStatsAudience strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.4rem;
}

.webStatsTableScroll {
    width: 100%;
    overflow-x: auto;
}

.webStatsTable {
    width: 100%;
    border-collapse: collapse;
}

.webStatsTable th,
.webStatsTable td {
    text-align: left;
    vertical-align: top;
    padding: 0.42rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.webStatsTable th {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.webStatsTable tr:last-child td {
    border-bottom: 0;
}

.webStatsNumber {
    text-align: right !important;
    white-space: nowrap;
}

.webStatsWhen {
    white-space: nowrap;
}

.webStatsPath {
    min-width: 18rem;
    overflow-wrap: anywhere;
}

.webStatsEmpty {
    font-style: italic;
    opacity: 0.65;
}

.webStatsNote,
.webStatsFootnote {
    font-size: 0.82rem;
    opacity: 0.72;
}

.webStatsNote {
    margin-bottom: 0;
}

.webStatsFootnote {
    margin-top: 0.8rem;
}

.webStatsRecent {
    margin-bottom: 0.8rem;
}

@media (max-width: 1000px) {

    .webStatsCards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .webStatsHeading {
        display: block;
    }

    .webStatsPeriods {
        justify-content: flex-start;
        margin-top: 0.6rem;
    }

    .webStatsCards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .webStatsSplit {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 430px) {

    .webStatsCards {
        grid-template-columns: 1fr;
    }

    .webStatsAudience {
        grid-template-columns: 1fr;
    }

}
