/* Page styles for /statistieken. Extracted from the inline block during R3. */

.stats-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; 
            justify-content: center;   /* ✅ Center the grid contents horizontally */
            align-items: stretch;      /* Cards fill the row height: no gaps under shorter ones */
            padding: 0 0 1em 0;
        } 
        .stats-grid-wide { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; 
            justify-content: center;   /* ✅ Center the grid contents horizontally */
            align-items: start;        /* Keeps top edges aligned nicely */
        } 
        .card { 
            background: var(--white); 
            border-radius: 12px; 
            box-shadow: var(--shadow-medium); 
            padding: 24px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            max-width: 560px; 
        } 
        
        /* This makes the card span 2 columns when possible */ 
        .card.wide { 
            overflow-x: auto;              /* enable horizontal scroll if needed */
        } 
        
        .card h2 { 
            font-size: 18px; 
            margin-bottom: 16px; 
            text-align: center; 
        } 
        canvas { 
            max-width: 100%; 
        }
        
        .chart-caption {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.5;
            text-align: center;
            margin: 0.75rem 0 0;
        }

.stats-more {
    margin: 2rem auto 0;
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
}

.stats-more a {
    color: var(--green-dark);
    font-weight: 600;
}
