/*
 Theme Name:   CLL Theme
 Theme URI:    https://cll.cz
 Description:  Child theme for Hello Elementor — Česká skupina pro chronickou lymfocytární leukémii
 Author:       Tomáš "Thebys" Biheler
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  cll-theme
*/

/* Typography — Montserrat, ported from cll.cz */
body {
    font-family: "Montserrat", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}


/* Odkazy v běžném textu (P2) — WCAG 1.4.1: barva nesmí být jediné rozlišení.
   Záměrně bez `color`, aby platila barva odkazů z Elementor kitu.
   Scoped na obsahové widgety: nadpisy karet, tlačítka ani menu se nemění. */
.elementor-widget-text-editor a,
.elementor-widget-html a,
.elementor-widget-theme-post-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.elementor-widget-text-editor a:hover,
.elementor-widget-html a:hover,
.elementor-widget-theme-post-content a:hover {
    text-decoration-thickness: 2px;
}

/* Stránka Odkazy — klasický obsah, ne Elementor, potřebuje vlastní rytmus */
.cll-odkazy h1 {
    margin: 0 0 1.5rem;
}

.cll-odkazy h2 {
    margin: 2rem 0 0.75rem;
}

.cll-odkazy h2:first-child {
    margin-top: 0;
}

.cll-odkazy ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cll-odkazy li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cll-odkazy li:last-child {
    border-bottom: 0;
}

.cll-odkazy__pozn {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875em;
}

/* Aktuality na titulní stránce (P11) — vlevo zarovnaný seznam s datem,
   místo vycentrovaných odstavců bez struktury */
.cll-aktuality__list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.cll-aktuality__list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cll-aktuality__list li:last-child {
    border-bottom: 0;
}

.cll-aktuality__date {
    display: inline-block;
    min-width: 7.5em;
    font-weight: 600;
    color: var(--e-global-color-primary, #cb0000);
}

.cll-aktuality__archiv {
    margin: 2rem 0 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.55);
}

.cll-aktuality__list--archiv {
    opacity: 0.85;
}

@media (max-width: 600px) {
    .cll-aktuality__date {
        display: block;
        min-width: 0;
    }
}

/* --- Plenární zasedání: fotogalerie --- */

/* Blok se ukáže, teprve až u zasedání nějaké fotky jsou. Bez toho by na všech
   starších zasedáních zůstal viset nadpis nad prázdnou mřížkou. */
.pz-galerie:not(:has(img)) {
    display: none;
}

/* Tlačítka Program / Záznam visí na ACF polích, která bývají prázdná.
   Elementor pak vykreslí <a> bez href — schovej celý widget, ne jen odkaz,
   ať po něm nezůstane mezera. */
.pz-akce .elementor-widget-button:not(:has(a[href])) {
    display: none;
}
