/* ==========================================================================
   DutchRadar.nl - Grafieken (/Graphs/)
   Bouwt voort op style.css; geen JavaScript, geen animatie-effecten.
   ========================================================================== */

.graphs h1 { font-size: 1.9rem; margin-bottom: 0.3em; }
.graphs h2 { font-size: 1.3rem; margin-top: 0; }
.graphs__intro { font-size: 1.05rem; max-width: 75ch; }
.graphs__section { margin-top: 20px; }
.graphs__hint { color: var(--color-text-muted); font-size: 0.92rem; margin: 12px 0 0; }

/* Periodekeuze: gewone links, de gekozen periode is gemarkeerd */
.graphs-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.graphs-periods a {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.92rem;
    white-space: nowrap;
}
.graphs-periods a:hover { text-decoration: none; border-color: var(--color-primary); }
.graphs-periods a.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Grafieken */
.graphs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}
.graph {
    margin: 0;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    overflow: hidden;
}
.graph figcaption {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}
.graph h3 { font-size: 1.05rem; margin: 0 0 2px; }
.graph figcaption p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }
.graph a { display: block; padding: 8px; }
.graph img { width: 100%; height: auto; margin: 0 auto; }

.graphs-details { margin-top: 12px; }
.graphs-details summary {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    color: var(--color-primary);
    cursor: pointer;
}
.graphs-details summary:hover { background: var(--color-bg); }
.graphs-details[open] summary { margin-bottom: 4px; }

@media (min-width: 960px) {
    .graphs-grid { grid-template-columns: 1fr 1fr; }
    .graph--wide { grid-column: 1 / -1; }
}
