/*
 * Statistics module — placeholder stylesheet (Phase 08). Served through the
 * `module.asset` route, never published to public/. Every selector is
 * namespaced `.cms-module-statistics-*` — no generic `.container` / `.title` /
 * `.button`, no leaking into Core, a theme or another module.
 */

.cms-module-statistics-root {
    display: block;
    padding-block: 3rem;
}

.cms-module-statistics-inner {
    margin-inline: auto;
    max-width: 72rem;
    padding-inline: 1.5rem;
}

.cms-module-statistics-title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
}

/* `minmax(0, 1fr)`, not a bare `1fr` — this file's rule loads AFTER the
   shared frontend.css (module assets load after the Vite bundle), so it
   silently won the cascade and reintroduced the exact overflow bug fixed
   there: a plain `1fr` track won't shrink below its content's min-content
   width, and an unbreakable value string (e.g. "12.000m²") forced the grid
   wider than the viewport at narrow phone widths. */
.cms-module-statistics-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block: 1.5rem;
}

@media (min-width: 768px) {
    .cms-module-statistics-grid {
        grid-template-columns: repeat(var(--cms-module-statistics-columns, 4), minmax(0, 1fr));
    }
}

.cms-module-statistics-item {
    padding-block: 0.5rem;
}

.cms-module-statistics-empty {
    opacity: 0.6;
    font-style: italic;
}
