/*
 * Sekcje strukturalne artykułu (docs/zmiany.md pkt 5): „Do pobrania", FAQ,
 * kalendarium, osoby kontaktowe.
 *
 * SENS TEGO PLIKU: te same układy redaktorzy sklejali dotąd ręcznie w treści
 * artykułu, każdy z własnym blokiem <style> i własnym prefiksem klas (.pwp-file,
 * .rek-file, .kolo-file, .cen-file, .e11-file…). Skopiowanie sekcji do innego
 * artykułu nie działało, bo klasy zostawały w poprzednim. Teraz styl jest JEDEN,
 * w motywie, a w treści nie ma ani jednej reguły CSS.
 *
 * Plik STATYCZNY (zero Twiga) — ładowany z base.html.twig przez theme_asset(),
 * które dokleja ?v=filemtime. Nowy motyw = własna kopia tego pliku.
 * Wartości brandowe zgodne z theme.css (#aa133b, #111, #f8f5f3, radius 0).
 */

.sek { margin: 2.5rem 0; }
.sek-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ── Do pobrania ─────────────────────────────────────────────────────────── */
.sek-files-list { list-style: none; margin: 0; padding: 0; }
.sek-file {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e6e2df;
}
.sek-file:last-child { border-bottom: none; }
.sek-file-ico {
    flex: 0 0 auto;
    min-width: 44px;
    text-align: center;
    background: #aa133b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.5rem;
}
.sek-file-main { display: flex; flex-direction: column; min-width: 0; }
.sek-file-main a { color: #111; font-weight: 700; text-decoration: none; }
.sek-file-main a:hover { color: #aa133b; text-decoration: underline; }
.sek-file-meta { font-size: 13px; color: #666; }
.sek-file-note { font-size: 13px; color: #666; font-style: italic; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.sek-faq-item { border-bottom: 1.5px solid #ddd; }
.sek-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0.2rem;
    font-size: 17px;
    font-weight: 600;
}
.sek-faq-item summary::-webkit-details-marker { display: none; }
.sek-faq-item summary::after {
    content: "+";
    font-size: 26px;
    font-weight: 400;
    color: #aa133b;
    flex-shrink: 0;
}
.sek-faq-item[open] summary::after { content: "\2212"; }
.sek-faq-item[open] summary { color: #aa133b; }
.sek-faq-item summary:focus-visible { outline: 2px solid #aa133b; outline-offset: 2px; }
.sek-faq-answer { padding: 0 0.2rem 1.2rem; font-size: 15px; line-height: 1.6; max-width: 1000px; }

/* ── Kalendarium / oś czasu ──────────────────────────────────────────────── */
.sek-timeline-list { list-style: none; margin: 0; padding: 0; }
.sek-timeline-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 0 2rem;
    background: #f8f5f3;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
}
.sek-timeline-date { font-weight: 700; font-size: 17px; }
.sek-timeline-title { font-weight: 700; font-size: 17px; margin-bottom: 0.3rem; }
.sek-timeline-text { font-size: 15px; line-height: 1.6; }

/* ── Osoby kontaktowe ────────────────────────────────────────────────────── */
.sek-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.sek-person { background: #f8f5f3; padding: 1.2rem 1.4rem; }
.sek-person-name { font-weight: 700; font-size: 16px; }
.sek-person-role { font-size: 14px; color: #444; margin-bottom: 0.6rem; }
.sek-person-line { font-size: 14px; }
.sek-person-label { color: #666; margin-right: 0.3rem; }
.sek-person-line a { color: #aa133b; font-weight: 600; text-decoration: none; }
.sek-person-line a:hover { text-decoration: underline; }

@media (max-width: 767.98px) {
    .sek-title { font-size: 20px; }
    .sek-timeline-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1rem 1.1rem; }
    .sek-people-grid { grid-template-columns: 1fr; }
}
