/*
 * fs-weights.css – grubość pisma: Lekki (300), Normalny (400), Pogrubiony (700).
 * Ładowany PO fs-design.css (robi to inc/fs-design.php), więc ma ostatnie słowo.
 *
 * JAK TO DZIAŁA
 *  - Nagłówek ma jedną grubość całego tekstu, wybieraną w panelu bocznym: Style -> Lekki / Normalny / Pogrubiony.
 *  - Fragment nagłówka lub akapitu zaznaczony i pogrubiony (Cmd+B, czyli <strong>) jest ZAWSZE Pogrubiony (700).
 *    Dzięki temu "Lekki + pogrubione słowo" albo "Normalny + pogrubione słowo" dają widoczny kontrast.
 *  - Bez wybranego stylu: H1 jest pogrubiony (jak w oryginale), H2, H3 i H4 są normalne.
 *  - Dowolny blok (akapit, lista, nagłówek): Zaawansowane -> Dodatkowe klasy CSS -> fs-w-light | fs-w-normal | fs-w-strong.
 * Zmiana grubości na całej stronie = zmiana trzech liczb poniżej.
 * Deklaracje mają !important, żeby nie przebiła ich żadna reguła motywu (np. z identyfikatorem #page-wrapper).
 */
:root { --fs-w-light: 300; --fs-w-normal: 400; --fs-w-strong: 700; }

/* ---- domyślne grubości nagłówków (wcześniej wszystkie były 700, dlatego pogrubienie nic nie zmieniało) ---- */
:is(.fs-section, .fs-hero) :is(h1, h2, h3, h4).wp-block-heading { font-weight: var(--fs-w-normal) !important; }
:is(.fs-section, .fs-hero) h1.wp-block-heading { font-weight: var(--fs-w-strong) !important; }
/* hero: tytuł normalny, a słowo w <strong> (np. „UW”) pogrubione – tak powstaje kontrast */
.fs-hero h1.wp-block-heading { font-weight: var(--fs-w-normal) !important; }

/* ---- wybór grubości całego nagłówka (Style w panelu bocznym) ---- */
:is(.fs-section, .fs-hero) .wp-block-heading.is-style-fs-light  { font-weight: var(--fs-w-light) !important; }
:is(.fs-section, .fs-hero) .wp-block-heading.is-style-fs-normal { font-weight: var(--fs-w-normal) !important; }
:is(.fs-section, .fs-hero) .wp-block-heading.is-style-fs-strong { font-weight: var(--fs-w-strong) !important; }

/* ---- klasy do akapitów, list i nagłówków (Dodatkowe klasy CSS) ---- */
:is(.fs-section, .fs-hero) :is(.wp-block-heading, p, li, ul, ol).fs-w-light  { font-weight: var(--fs-w-light) !important; }
:is(.fs-section, .fs-hero) :is(.wp-block-heading, p, li, ul, ol).fs-w-normal { font-weight: var(--fs-w-normal) !important; }
:is(.fs-section, .fs-hero) :is(.wp-block-heading, p, li, ul, ol).fs-w-strong { font-weight: var(--fs-w-strong) !important; }
:is(.fs-section, .fs-hero) :is(ul, ol).fs-w-light li  { font-weight: var(--fs-w-light) !important; }
:is(.fs-section, .fs-hero) :is(ul, ol).fs-w-normal li { font-weight: var(--fs-w-normal) !important; }
:is(.fs-section, .fs-hero) :is(ul, ol).fs-w-strong li { font-weight: var(--fs-w-strong) !important; }

/* ---- pogrubienie w środku tekstu: zawsze pełne 700, w każdym nagłówku i akapicie ---- */
:is(.fs-section, .fs-hero) :is(h1, h2, h3, h4, p, li) :is(strong, b) { font-weight: var(--fs-w-strong) !important; }
.fs-hero h1 strong { font-weight: var(--fs-w-strong) !important; }
