/*
 * Motyw "default" — NEUTRALNY motyw przykładowy Visualnetu (globalne style frontu).
 *
 * PALETA (2026-09-24, usterka #24): do tego dnia plik niósł brand pierwszego
 * wdrożenia — ten klient ma teraz własny motyw trc
 * (public/css/themes/trc/theme.css = dokładna kopia dawnej wersji tego pliku).
 * Akcent #003849 = dominujący kolor znaku Visualnet spróbkowany PHP GD
 * z public/favicon_vt.png (ciemny petrol; kontrast z bielą ~12:1, więc nadaje się
 * także na tekst i tła przycisków). Tła kart: chłodne szarości (#f4f6f7 / #e9eef1).
 * Kolory brandowe wyłącznie przez zmienne z :root — inne motywy nadpisują wartości.
 *
 * Wydzielone z bloku <style> w @theme/base.html.twig (2026-07-16, docs/analiza-seo.md
 * sekcja 6.1): te reguły szły inline w KAŻDEJ odsłonie (~648 linii), więc nic się nie
 * cache'owało między podstronami. Teraz jeden plik + cache busting po filemtime
 * (funkcja theme_asset() — src/Twig/Extension/ThemeAssetExtension.php).
 *
 * UWAGA: style PER-STRONA (buy/summary, repertoire/default, bilety_tabs itd.) celowo
 * ZOSTAJĄ inline w swoich szablonach — lecą tylko na swojej podstronie, więc
 * przeniesienie ich tutaj obciążyłoby wszystkie pozostałe.
 *
 * Plik jest STATYCZNY (zero Twiga) — nie wstawiać tu {{ }} ani {% %}.
 * Nowy motyw = własny base.html.twig + własny public/css/themes/{motyw}/theme.css.
 */
            /* Reset & Basic Variables — paleta neutralna Visualnet:
               czerń/biel, akcent petrol #003849, czarna stopka, ostre krawędzie */
            /* bootstrap-grid NIE zawiera resetu box-sizing — bez niego elementy
               width:100% + padding (np. .site-main) wystają poza viewport */
            *, *::before, *::after { box-sizing: border-box; }
            /* pasma pełnej szerokości (100vw) nie mogą tworzyć poziomego scrolla
               o szerokość paska przewijania; clip nie psuje position:sticky */
            html, body { overflow-x: clip; }
            :root {
                --color-primary: #111111;
                --color-accent: #003849;
                --color-maroon: #003849;
                /* tła kart/pasm — wspólne szablony (widgety, listy) używają
                   var(--color-card-*) z tym samym fallbackiem; inne motywy
                   nadpisują te zmienne własną paletą (patrz themes/dmt) */
                --color-card-bg: #f4f6f7;
                --color-card-hover: #e9eef1;
                --color-bg: #ffffff;
                --color-text: #1a1a1a;
                --container-width: 1617px;
                --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
                --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
                --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
                --radius-md: 0;
                --radius-lg: 0;
                --transition-fast: 0.15s ease;
                --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
            /* SB-4081/1: przy oknie węższym niż ~1745px kontener ZWĘŻA SIĘ, żeby treść
               miała zawsze wyraźny boczny margines (~64px + padding 1.5rem); powyżej
               naturalne marginesy centrowania 1617px robią to same. Pasma full-bleed
               dziedziczą szerokość przez var(--container-width), więc jadą razem
               z kontenerem. Poniżej 992px (mobile) zostaje pełna szerokość jak dotąd. */
            @media (min-width: 992px) {
                :root { --container-width: min(1617px, calc(100vw - 8rem)); }
            }
            body {
                font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
                margin: 0;
                padding: 0;
                background-color: var(--color-bg);
                color: var(--color-text);
                display: flex;
                flex-direction: column;
                min-height: 100vh;
                line-height: 1.6;
            }
            h1, h2, h3, h4, h5, h6 { color: #111; font-weight: 800; letter-spacing: -0.01em; }
            /* h2.tresc-h1 = <h1> treści zakładki obniżony filtrem demote_h1 (jeden <h1>
               na stronę, W1-08) — wygląda dokładnie jak h1 */
            h1, h2.tresc-h1 { font-size: 2rem; }

            /* ─── Dostępność (WCAG) ─── */
            .sr-only {
                position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
                overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
            }
            .skip-link {
                position: absolute; left: -9999px; top: 0; z-index: 100000;
                background: #111; color: #fff; padding: 0.8rem 1.4rem;
                font-weight: 700; text-decoration: none;
            }
            .skip-link:focus { left: 0; }
            a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
            .nav-link-separator[tabindex]:focus-visible, [role="button"][tabindex]:focus-visible {
                outline: 3px solid var(--color-accent);
                outline-offset: 2px;
            }
            .site-footer a:focus-visible, #info-bar :focus-visible {
                outline-color: #fff;
            }

            /* Utilities (ładujemy tylko bootstrap-grid, więc dokładamy używane klasy) */
            .text-center { text-align: center; }
            .text-right { text-align: right; }
            .text-muted { color: #6c757d; }
            .text-dark { color: #111; }
            .text-danger { color: #b3261e; }
            .text-success { color: #198754; }
            .font-weight-bold, .font-weight-bolder { font-weight: 700; }
            .small { font-size: 0.875em; }
            .img-fluid { max-width: 100%; height: auto; }
            .w-100 { width: 100% !important; }
            .rounded, .rounded-sm { border-radius: 0; } /* ostre krawędzie wg projektu */
            .rounded-circle { border-radius: 50%; }
            .shadow-sm { box-shadow: var(--shadow-sm); }
            .img-thumbnail { border: 1px solid #ddd; padding: 0.25rem; max-width: 100%; height: auto; }
            .list-group { display: flex; flex-direction: column; }
            .list-group-item { padding: 0.85rem 1rem; background: var(--color-card-bg); margin-bottom: 0.5rem; }
            .border-bottom { border-bottom: 2px solid #111 !important; }
            .border-light.border-bottom { border-bottom: 1px solid #eee !important; }
            .border-0 { border: 0; }
            .btn { display: inline-block; text-decoration: none; cursor: pointer; }
            .btn-outline-primary {
                background: #111; color: #fff; border: none;
                text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em;
            }
            .btn-outline-primary:hover { background: var(--color-accent); color: #fff; }
            .btn-outline-secondary { border: 1px solid #111; color: #111; background: #fff; }
            .btn-outline-secondary:hover { background: #111; color: #fff; }
            .bg-primary { background: var(--color-accent) !important; }
            .btn-primary {
                background: #111; color: #fff; border: none; padding: 0.55rem 1.3rem;
                text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; font-size: 0.8rem;
            }
            .btn-primary:hover { background: var(--color-accent); color: #fff; }
            .btn-powrot {
                display: inline-flex; align-items: center; gap: 0.5rem;
                border: 1.5px solid #111; background: #fff; color: #111;
                text-transform: uppercase; font-size: 14px; font-weight: 700;
                letter-spacing: 0.05em; padding: 0.7rem 1.4rem; text-decoration: none; cursor: pointer;
            }
            .btn-powrot:hover { background: #111; color: #fff; }

            /* ─── Pływająca ikona koszyka + modal (docs/zmiany.md pkt 5) ───
               FAB pod szufladą menu mobilnego (10000/10001), modal NAD wszystkim. */
            .cart-fab {
                position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 9500;
                width: 56px; height: 56px; border-radius: 50%;
                background: #111; color: #fff; border: none; cursor: pointer;
                font-size: 21px; display: flex; align-items: center; justify-content: center;
                box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
            }
            .cart-fab:hover { background: var(--color-accent); }
            .cart-fab:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
            .cart-fab-count {
                position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px;
                border-radius: 11px; background: var(--color-accent); color: #fff;
                font-size: 12px; font-weight: 700; line-height: 22px; padding: 0 5px; text-align: center;
            }
            .cart-modal-overlay {
                position: fixed; inset: 0; z-index: 10500; background: rgba(0, 0, 0, 0.55);
                display: flex; align-items: center; justify-content: center; padding: 1rem;
            }
            .cart-modal {
                background: #fff; border: 1.5px solid #111; width: 100%; max-width: 560px;
                max-height: 85vh; display: flex; flex-direction: column;
            }
            .cart-modal-head {
                display: flex; align-items: center; justify-content: space-between;
                padding: 1.2rem 1.4rem 0.9rem; border-bottom: 2px solid #111;
            }
            .cart-modal-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
            .cart-modal-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #111; padding: 0 0.2rem; }
            .cart-modal-close:hover { color: var(--color-accent); }
            .cart-modal-body { padding: 1rem 1.4rem; overflow-y: auto; font-size: 14.5px; }
            .cm-item { display: flex; gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid #e3e6e8; }
            .cm-info { flex: 1; }
            .cm-title { font-weight: 700; }
            .cm-meta { font-size: 13px; color: #444; }
            .cm-price { font-weight: 700; white-space: nowrap; }
            .cm-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; padding-top: 0.9rem; }
            .cm-total span:last-child { color: var(--color-accent); }
            .cart-modal-actions { display: flex; gap: 0.8rem; padding: 0 1.4rem 1.4rem; flex-wrap: wrap; }
            .cm-btn {
                flex: 1; text-align: center; font-size: 13.5px; font-weight: 700;
                text-transform: uppercase; letter-spacing: 0.05em; padding: 0.85rem 1rem;
                cursor: pointer; text-decoration: none; white-space: nowrap;
            }
            .cm-btn.outline { background: #fff; color: #111; border: 1.5px solid #111; }
            .cm-btn.outline:hover { background: #111; color: #fff; }
            .cm-btn.solid { background: #111; color: #fff; border: 1.5px solid #111; }
            .cm-btn.solid:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
            @media (max-width: 575.98px) {
                .cart-fab { width: 50px; height: 50px; right: 0.8rem; bottom: 0.8rem; font-size: 19px; }
            }

            /* ─── Header & Nav — biały pasek; logo 135x135 WYSTAJE poza pasek (wg Figmy) ─── */
            .site-header {
                background-color: #fff;
                color: #111;
                padding: 0;
                position: sticky;
                top: 0;
                z-index: 9999;
                box-shadow: var(--shadow-sm);
            }
            .site-header > .container {
                position: relative;
                min-height: 88px; /* biała belka menu: 88px wg projektu */
            }
            .container {
                max-width: var(--container-width);
                margin: 0 auto;
                padding: 0 1.5rem;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            .header-logo { width: 135px; flex: 0 0 auto; }
            .header-logo a {
                position: absolute;
                top: 0;
                left: 1.5rem;
                z-index: 2;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background: #111;
                color: #fff;
                text-decoration: none;
                font-size: 1.25rem;
                font-weight: 800;
                letter-spacing: 1px;
                text-transform: uppercase;
                width: 135px;
                height: 135px;
                text-align: center;
                line-height: 1.15;
                padding: 0.5rem;
                transition: background var(--transition-fast);
            }
            .header-logo a:hover { background: var(--color-accent); }
            .header-logo span { color: var(--color-accent); }
            .header-logo a:hover span { color: #fff; }
            .header-logo a.header-logo-img { background: #111; padding: 0; }
            .header-logo a.header-logo-img:hover { background: #111; opacity: 0.9; }
            .header-logo a.header-logo-img img { width: 135px; height: 135px; object-fit: contain; display: block; }
            @media (max-width: 991.98px) {
                /* mobile: mniejsze logo w pasku, bez nawisu */
                .site-header > .container { min-height: 64px; }
                .header-logo { width: 56px; }
                .header-logo a {
                    position: static;
                    width: 56px;
                    height: 56px;
                    font-size: 0.65rem;
                }
                .header-logo a.header-logo-img img { width: 56px; height: 56px; }
            }
            .header-socials { margin-left: 2.2rem; }
            .header-socials a {
                display: inline-flex; align-items: center; justify-content: center;
                width: 44px; height: 44px; border-radius: 50%;
                background: #111; color: #fff; font-size: 1.15rem;
                margin-left: 0.85rem; text-decoration: none;
            }
            .header-socials a:first-child { margin-left: 0; }
            .header-socials a:hover { background: var(--color-accent); }
            .header-search-link { font-size: 1.45rem !important; }
            .header-lang-link {
                font-family: 'Manrope', sans-serif;
                font-weight: 600;
                font-size: 20px !important;
                letter-spacing: 0.03em;
                margin-left: 1.8rem !important;
            }
            
            /* ─── Hamburger Button ─── */
            .nav-toggle {
                display: none;
                background: transparent;
                border: none;
                cursor: pointer;
                padding: 0.5rem;
                color: #111;
                font-size: 1.5rem;
                line-height: 1;
                z-index: 10001;
            }
            /* S-2: fokus musi być widoczny przy nawigacji klawiaturą (WCAG 2.4.7).
               :focus-visible nie zapala się po kliknięciu myszą — dla myszy bez zmian. */
            .nav-toggle:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
            
            /* ─── Main Nav (desktop — poziome, przy logo, odstępy wg Figmy) ─── */
            .main-nav {
                margin-left: 3.5rem;
                margin-right: auto; /* menu przy logo, ikony dobite do prawej */
            }
            .main-nav > ul {
                list-style: none;
                margin: 0;
                padding: 0;
                display: flex;
                align-items: center;
                gap: 3.5rem;
            }
            .nav-item { position: relative; }
            /* Typografia menu wg Figmy: Manrope SemiBold 22px, line-height 100%, letter-spacing 3% */
            .nav-item > a,
            .nav-link-separator {
                color: #111;
                text-decoration: none;
                transition: color var(--transition-fast);
                font-family: 'Manrope', sans-serif;
                font-weight: 600;
                font-size: 22px;
                line-height: 1;
                letter-spacing: 0.03em;
                text-align: center;
                /* podkreślenie hover 5px (SB-4048/1); padding-bottom skompensowany,
                   żeby wysokość pozycji menu nie drgnęła */
                padding: 1.25rem 0 calc(0.4rem - 3px);
                border-bottom: 5px solid transparent;
                display: inline-flex;
                align-items: center;
                gap: 0.25rem;
                cursor: pointer;
            }
            .nav-link-separator {
                cursor: default;
            }
            .nav-item > a:hover,
            .nav-item.active > a,
            .nav-item:hover > .nav-link-separator {
                color: #111;
                border-bottom-color: var(--color-accent);
            }
            
            /* Dropdown with Animation */
            .nav-dropdown {
                visibility: hidden;
                opacity: 0;
                transform: translateY(10px);
                position: absolute;
                top: 100%;
                left: -1rem;
                background: #fff;
                box-shadow: var(--shadow-lg);
                min-width: 240px;
                z-index: 1000;
                padding: 0.5rem 0;
                margin: 0;
                list-style: none;
                border-radius: var(--radius-lg);
                border: 1px solid rgba(0,0,0,0.05);
                transition: all var(--transition-smooth);
            }
            .nav-item.has-dropdown:hover > .nav-dropdown,
            .nav-item.has-dropdown:focus-within > .nav-dropdown {
                visibility: visible;
                opacity: 1;
                transform: translateY(0);
            }
            .nav-dropdown li { position: relative; }
            .nav-dropdown li a,
            .nav-dropdown li .nav-link-separator {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0.75rem 1.5rem;
                color: #334155;
                text-decoration: none;
                font-size: 0.925rem;
                font-weight: 500;
                transition: all var(--transition-fast);
            }
            .nav-dropdown li .nav-link-separator {
                cursor: default;
            }
            .nav-dropdown li a:hover,
            .nav-dropdown li.active > a {
                background: var(--color-card-bg);
                color: var(--color-accent);
                padding-left: 1.75rem;
                border-left-color: var(--color-accent);
            }
            /* 3 level dropdown */
            .nav-dropdown .has-dropdown > .nav-dropdown {
                top: -0.5rem;
                left: 100%;
                margin-left: 0;
                transform: translateX(10px);
            }
            .nav-dropdown .has-dropdown:hover > .nav-dropdown,
            .nav-dropdown .has-dropdown:focus-within > .nav-dropdown { transform: translateX(0); }
            .nav-dropdown .has-dropdown::after {
                content: '';
                position: absolute;
                top: 0; right: -10px;
                width: 10px; height: 100%;
            }

            /* ─── Mobile Menu Overlay ─── */
            .mobile-nav-overlay {
                display: none;
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.5);
                /* ponad sticky .site-header (9999) — inaczej nagłówek zasłania szufladę */
                z-index: 10000;
            }
            .mobile-nav-overlay.active { display: block; }

            /* ─── Mobile Nav Drawer ─── */
            .mobile-nav {
                display: none;
                position: fixed;
                top: 0; right: 0;
                width: min(320px, 85vw);
                height: 100vh;
                height: 100dvh; /* mobilny pasek adresu nie zasłania dołu szuflady */
                background: #fff;
                z-index: 10001;
                padding: 4.5rem 1.5rem 2rem;
                overflow-y: auto;
                transform: translateX(100%);
                transition: transform var(--transition-smooth);
                box-shadow: var(--shadow-lg);
            }
            .mobile-nav.open { transform: translateX(0); }
            .mobile-nav ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }
            .mobile-nav li { border-bottom: 1px solid #eee; }
            .mobile-nav li:last-child { border-bottom: none; }
            .mobile-nav li > a {
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: #111;
                text-decoration: none;
                padding: 0.85rem 0;
                font-family: 'Manrope', sans-serif;
                font-weight: 600;
                font-size: 20px;
                line-height: 1;
                letter-spacing: 0.03em;
                transition: color var(--transition-fast);
            }
            .mobile-nav li > a:hover,
            .mobile-nav li.active > a { color: var(--color-accent); }
            /* separator (pozycja bez strony) w szufladzie wygląda i działa jak link —
               tap rozwija submenu */
            .mobile-nav .nav-link-separator {
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0.85rem 0;
                font-size: 20px;
                border-bottom: none;
            }
            /* Sub-items w mobile */
            .mobile-nav ul ul {
                padding-left: 1rem;
                border-left: 2px solid var(--color-accent);
                margin: 0 0 0.5rem 0;
            }
            .mobile-nav ul ul li { border-bottom: none; }
            .mobile-nav ul ul li > a {
                font-size: 0.9rem;
                color: #555;
                padding: 0.5rem 0;
            }
            .mobile-nav ul ul li > a:hover { color: var(--color-accent); }
            /* Toggle sub-menu arrow — strefa dotyku >=40px (WCAG), negatywne
               marginesy nie rozpychają wiersza */
            .mobile-nav .submenu-toggle {
                cursor: pointer;
                padding: 0.8rem 1rem;
                margin: -0.6rem -0.5rem -0.6rem 0;
                color: #888;
                font-size: 1rem;
            }
            .mobile-nav .has-dropdown > ul { display: none; }
            .mobile-nav .has-dropdown.sub-open > ul { display: block; }
            .mobile-nav .has-dropdown.sub-open .submenu-toggle { transform: rotate(90deg); }

            /* Close button in mobile menu */
            .mobile-nav-close {
                position: absolute;
                top: 1rem; right: 1rem;
                background: transparent;
                border: none;
                /* W1-12: #94a3b8 miał 2,56:1 do białej szuflady (WCAG 1.4.11 wymaga 3:1);
                   czerń jak hamburger — hover bez zmian (akcent) */
                color: #111;
                font-size: 1.5rem;
                cursor: pointer;
                padding: 0.25rem;
                line-height: 1;
            }
            /* szuflada jest biała — hover NIE może być biały (znikający X) */
            .mobile-nav-close:hover { color: var(--color-accent); }

            /* ─── Sidebar Nav (vertical, used in desktop sidebar widget) ─── */
            .sidebar-nav {
                list-style: none;
                padding: 0; margin: 0;
            }
            .sidebar-nav li { border-bottom: 1px solid #f1f5f9; }
            .sidebar-nav li:last-child { border-bottom: none; }
            .sidebar-nav a {
                display: block;
                padding: 0.85rem 0;
                color: var(--color-text);
                text-decoration: none;
                font-weight: 500;
                transition: all var(--transition-fast);
            }
            .sidebar-nav a:hover,
            .sidebar-nav .active > a {
                color: var(--color-accent);
                transform: translateX(4px);
            }
            .sidebar-nav ul {
                list-style: none;
                padding-left: 1.25rem;
                margin: 0 0 0.5rem;
                border-left: 2px solid #e2e8f0;
            }
            .sidebar-nav .has-dropdown,
            .sidebar-nav .has-sub-dropdown { position: static; padding: 0; }
            .sidebar-nav .nav-dropdown {
                visibility: visible; opacity: 1; transform: none;
                position: static; box-shadow: none; padding: 0;
                background: transparent; min-width: 100%; z-index: 1;
                border: none; transition: none;
            }
            .sidebar-nav .has-dropdown::after { display: none; }
            .sidebar-nav .nav-dropdown .has-dropdown > .nav-dropdown { margin: 0; }
            .sidebar-nav .nav-dropdown li a {
                padding: 0.6rem 0;
                color: #64748b;
                font-size: 0.95rem;
                font-weight: 400;
                border-left: 2px solid transparent;
                transition: all var(--transition-fast);
            }
            .sidebar-nav .nav-dropdown li a:hover,
            .sidebar-nav .nav-dropdown li.active > a {
                background: transparent;
                color: var(--color-accent);
                padding-left: 0.25rem;
                border-left-color: var(--color-accent);
            }
            .sidebar-nav .nav-dropdown li { border-bottom: none; }

            /* ─── Layout: Site Main (Bootstrap row handles columns) ─── */
            .site-main {
                flex: 1;
                width: 100%;
                max-width: var(--container-width);
                margin: 2rem auto;
                padding: 0 1.5rem;
            }
            .site-main .row { gap: 0; }

            .sidebar {
                background: transparent;
                padding: 0 0 0 1rem;
                height: max-content;
                margin-bottom: 1.5rem;
            }
            /* SB-4081/9: prawy pasek (terminy) jedzie ze stroną — sticky pod nagłówkiem
               (belka 88px + odstęp). Zatrzymuje się sam na końcu wiersza treści (rodzic
               .sidebar-col ma wysokość kolumny treści), czyli "przy stopce". */
            @media (min-width: 992px) {
                .sidebar-col .sidebar-right { position: sticky; top: 104px; }
            }
            @media (max-width: 991.98px) {
                .sidebar { padding: 0; }
            }
            /* SB-4081/8: POWRÓT nad prawą kolumną, dobity do prawej krawędzi kontenera
               (blok page_top w base — nad wierszem treść+sidebar). Wygląd jak
               .btn-powrot ze strony spektaklu. */
            .page-back-row { display: flex; justify-content: flex-end; margin: 0 0 1.2rem; }
            .page-back-row .btn-powrot {
                display: inline-flex; align-items: center; gap: 0.5rem;
                border: 1.5px solid #111; background: #fff; color: #111;
                text-transform: uppercase; font-size: 14px; font-weight: 700;
                letter-spacing: 0.05em; padding: 0.7rem 1.4rem; text-decoration: none; cursor: pointer;
            }
            .page-back-row .btn-powrot:hover { background: #111; color: #fff; }

            /* ─── Footer — czarny pas z kolumnami menu (wg Figmy);
                   pas kontaktowy (jeśli jest) renderuje blok w strefie footer_top ─── */
            .site-footer {
                background-color: #000;
                color: #ddd;
                padding: 3rem 0 1.5rem;
                margin-top: auto;
            }
            .site-footer .container {
                flex-direction: column;
                align-items: stretch;
            }
            /* SB-4081/4a: slot tytułu kolumny ma STAŁĄ wysokość (margin z !important,
               bo widget menu niesie inline margin-bottom 0.8rem) — dzięki temu
               nagłówki i pierwsze linki wszystkich kolumn stoją w jednej linii */
            .site-footer .widget-menu-title {
                color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3;
                min-height: calc(24px * 1.3);
                margin: 0 0 1.1rem !important;
            }
            .site-footer .widget-custom-menu .submenu-item > a {
                color: #e8e8e8 !important;
                border: none !important;
                padding: 0.35rem 0 !important;
                background: transparent !important;
                font-size: 0.9rem;
            }
            .site-footer .widget-custom-menu .submenu-item > a:hover {
                color: #fff !important;
                text-decoration: underline;
            }
            /* SB-4081/4a: kolumna 2 (bez nagłówka) dostaje PUSTY slot tytułu o dokładnie
               tej samej wysokości co .widget-menu-title — linki w linii z "Aktualności" */
            .site-footer .row > div:nth-child(2) .widget-custom-menu::before {
                content: ""; display: block; height: calc(24px * 1.3 + 1.1rem);
            }
            /* SB-4081/3+4b: linia oddziela sekcje stopki, a dolny pas siedzi w TEJ SAMEJ
               siatce 4 kolumn co menu wyżej (gap 1.5rem = gutter bootstrapowego .row.g-4,
               więc kolumny zaczynają się w tych samych x) */
            .footer-bottom {
                margin-top: 3.2rem;
                border-top: 1px solid rgba(255, 255, 255, 0.28);
                padding-top: 2rem;
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 1.5rem;
                align-items: start;
                color: #bbb;
                font-size: 0.85rem;
            }
            /* logo Visualnet "całkiem na dole" — prawy dolny róg pasa */
            .footer-credit { align-self: end; justify-self: end; }
            .footer-socials a {
                display: inline-flex; align-items: center; justify-content: center;
                width: 34px; height: 34px; border-radius: 50%;
                background: #fff; color: #000; font-size: 1rem;
                margin-right: 0.6rem; text-decoration: none;
            }
            .footer-socials a:hover { background: var(--color-accent); color: #fff; }

            /* ─── Responsive breakpoints ─── */

            /* Treść nie może rozpychać viewportu na wąskich ekranach */
            .content-col img, .article-content img { max-width: 100%; height: auto; }
            .content-col iframe { max-width: 100%; }
            .article-content table { display: block; max-width: 100%; overflow-x: auto; }

            /* Szerokości pośrednie (laptop < kontener 1617px): ciaśniejszy nagłówek,
               żeby menu i ikony mieściły się w jednej linii */
            @media (min-width: 992px) and (max-width: 1619.98px) {
                .main-nav { margin-left: 2rem; }
                .main-nav > ul { gap: 1.6rem; }
                .nav-item > a, .nav-link-separator { font-size: 17px; }
                .header-socials { margin-left: 1rem; }
                .header-socials a { width: 34px; height: 34px; font-size: 0.9rem; margin-left: 0.45rem; }
                .header-lang-link { margin-left: 1rem !important; font-size: 16px !important; }
            }

            @media (max-width: 991.98px) {
                /* Show hamburger, hide desktop nav */
                .nav-toggle { display: block; }
                .main-nav { display: none; }
                .mobile-nav { display: block; }

                /* Sidebar order on mobile */
                .sidebar-left-col { order: 0; }  /* left sidebar: above content */
                .content-col      { order: 1; }
                .sidebar-col      { order: 2; }  /* right sidebar: below content */

                .site-main {
                    margin: 1.5rem auto;
                    padding: 0 1rem;
                }
                .container { padding: 0 1rem; }

                /* Mniejsze ikony społecznościowe w pasku (44px zjada za dużo miejsca) */
                .header-socials { margin-left: 0.6rem; }
                .header-socials a { width: 34px; height: 34px; font-size: 0.9rem; margin-left: 0.4rem; }
                .header-lang-link { margin-left: 0.8rem !important; font-size: 16px !important; }

                h1, h2.tresc-h1 { font-size: 1.6rem; }
            }
            @media (max-width: 575.98px) {
                /* Na telefonie ikony społecznościowe tylko w stopce */
                .header-socials { display: none; }
            }

            /* Stopka: kolumny łamią się poniżej 1200px (col-xl-3) — pusty slot tytułu
               w 2. kolumnie traci wtedy sens, a dolny pas przechodzi na 2 kolumny */
            @media (max-width: 1199.98px) {
                .site-footer .row > div:nth-child(2) .widget-custom-menu::before { display: none; }
                .footer-bottom { grid-template-columns: repeat(2, 1fr); }
            }
            @media (max-width: 767.98px) {
                .footer-bottom { grid-template-columns: 1fr; gap: 1.2rem; }
                .footer-credit { justify-self: start; }
                /* W1-16: kolumna stopki BEZ nagłówka (dalszy ciąg listy z kolumny obok)
                   na telefonie dosuwa się do poprzedniej listy — bez „dziury" z gutteru
                   wiersza (1.5rem) i marginesu widgetu menu (2rem) */
                .site-footer .row > div:not(:first-child):has(> .widget-custom-menu):not(:has(.widget-menu-title)) {
                    margin-top: -2rem;
                }
            }

            /* ─── W1-06 (2026-09-24): laptopy 992–1199 px — menu w JEDNEJ linii.
                   Ikony społecznościowe tylko w stopce (jak na telefonie), ciaśniejsze
                   menu; pozycje najwyższego poziomu nigdy nie łamią się na dwie linie. ─── */
            @media (min-width: 992px) {
                .main-nav > ul > li > a, .main-nav > ul > li > .nav-link-separator { white-space: nowrap; }
                .header-socials { white-space: nowrap; }
            }
            @media (min-width: 992px) and (max-width: 1199.98px) {
                .header-socials { display: none; }
                .main-nav { margin-left: 1.5rem; }
                .main-nav > ul { gap: 1rem; }
                .nav-item > a, .nav-link-separator { font-size: 16px; }
            }
            /* W1-06: kafle „Najbliższe wydarzenia" (widget repertoire_grid, 6 kolumn od 992 px)
               przy 992–1365 px były za wąskie na tytuł i datę — tu 3 kolumny, jak na
               tablecie (col-md-4); długie słowo zawija się w obrębie kafla */
            @media (min-width: 992px) and (max-width: 1365.98px) {
                .widget-repertoire-grid .row > .col-lg-2 { flex: 0 0 auto; width: 33.33333333%; }
            }
            .rg-card .rg-title, .rg-card .rg-date { overflow-wrap: break-word; }

            /* W1-16: linki w TREŚCI artykułów bez własnej klasy — kolor akcentu motywu
               zamiast niebieskiego przeglądarki. Zerowa szczegółowość (:where) — style
               scoped treści i szablonów (np. .bilety-body a, .sek-file-main a) wygrywają. */
            :where(.article-content, .article-body) a:where(:not([class])) { color: var(--color-accent); }

            /* ─── KONTO WIDZA w nagłówku (W2-02, 2026-09-24 — ODSTĘPSTWO od makiety TR,
                   decyzja do potwierdzenia). Wycofanie: usunąć tę sekcję + trzy miejsca
                   „KONTO WIDZA" w base.html.twig motywu. Rozmiar i kolor jak lupa
                   (.header-search-link 1.45rem, #111), najechanie = akcent. ─── */
            .header-account-link {
                display: inline-flex; align-items: center; color: #111; font-size: 1.45rem;
                line-height: 1; margin-left: 1rem; text-decoration: none;
                transition: color var(--transition-fast);
            }
            .header-account-link svg { display: block; }
            .header-account-link:hover { color: var(--color-accent); }
            .mobile-nav .mobile-nav-account-label { display: inline-flex; align-items: center; gap: 0.6rem; }

            @media (min-width: 992px) {
                /* Desktop: show nav, hide mobile drawer */
                .main-nav { display: block; }
                .nav-toggle { display: none; }
                .mobile-nav { display: none !important; }
                .mobile-nav-overlay { display: none !important; }

                /* Desktop: reset all sidebar orders */
                .sidebar-left-col { order: unset; }
                .sidebar-col      { order: unset; }
                .content-col      { order: unset; }

                .site-main { margin: 3rem auto; }
            }

            /* ─────────────────────────────────────────────────────────────────
               KOMUNIKATY (moduł /admin/komunikat, docs/zmiany.md pkt 5)
               Trzy formy: pasek nad nagłówkiem, box nad treścią, okno modalne.
               Wygląd paska przeniesiony 1:1 z dawnego bloku 22 — z tą różnicą,
               że style należą teraz do motywu, a nie do treści w bazie.
               Warianty barwne: .ann-info (akcent) / .ann-warning (czerń)
               / .ann-neutral (tło kart) — redaktor wybiera wagę, nie kolor.
               ───────────────────────────────────────────────────────────────── */
            .ann-info    { background: var(--color-accent); color: #fff; }
            .ann-warning { background: #111; color: #fff; }
            .ann-neutral { background: var(--color-card-bg); color: #111; }

            .ann-bar-inner {
                display: flex; align-items: center; gap: 2.2rem;
                padding: 1.8rem 1.5rem; max-width: var(--container-width); margin: 0 auto;
            }
            .ann-icon { position: relative; flex: 0 0 auto; width: 46px; height: 46px; }
            .ann-icon-mark {
                display: flex; align-items: center; justify-content: center;
                width: 46px; height: 46px; border-radius: 50%;
                font-family: Georgia, serif; font-weight: 800; font-size: 1.5rem; font-style: italic;
            }
            /* Koło w kolorze kontrastowym do pasma, litera w kolorze pasma */
            .ann-info .ann-icon-mark    { background: #fff;  color: var(--color-accent); }
            .ann-warning .ann-icon-mark { background: #fff;  color: #111; }
            .ann-neutral .ann-icon-mark { background: #111;  color: var(--color-card-bg); }

            .ann-bar-text { flex: 1; min-width: 0; }
            .ann-bar-title { margin: 0 0 0.45rem; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
            .ann-bar-body  { margin: 0; font-size: 0.95rem; }
            .ann-bar-body p { margin: 0; }
            .ann-bar-body a, .ann-box-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
            .ann-bar-cta {
                flex: 0 0 auto; border: 2px solid currentColor; color: inherit;
                padding: 0.6rem 1.4rem; text-transform: uppercase; font-weight: 700;
                font-size: 0.8rem; letter-spacing: 0.05em; text-decoration: none;
            }
            .ann-bar-cta:hover { background: currentColor; }
            .ann-close {
                flex: 0 0 auto; background: none; border: none; color: inherit;
                cursor: pointer; padding: 0.4rem; line-height: 0;
            }
            .ann-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

            .ann-box {
                position: relative; padding: 1.6rem 3rem 1.6rem 1.6rem; margin-bottom: 2rem;
            }
            .ann-box-title { margin: 0 0 0.6rem; font-size: 1.3rem; font-weight: 700; color: inherit; }
            .ann-box-body p:last-child { margin-bottom: 0; }
            .ann-box-close { position: absolute; top: 0.8rem; right: 0.8rem; }

            .ann-btn {
                display: inline-block; margin-top: 1rem; border: 2px solid currentColor;
                color: inherit; padding: 0.7rem 1.6rem; text-transform: uppercase;
                font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-decoration: none;
            }

            .ann-modal-overlay {
                position: fixed; inset: 0; z-index: 10050;
                background: rgba(0, 0, 0, 0.65);
                display: flex; align-items: center; justify-content: center; padding: 1.5rem;
            }
            .ann-modal {
                position: relative; width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
            }
            .ann-modal-close { position: absolute; top: 0.9rem; right: 0.9rem; }
            .ann-modal-image { display: block; width: 100%; height: auto; }
            .ann-modal-body { padding: 2.4rem 2.6rem; }
            .ann-modal-title { margin: 0 0 1rem; font-size: 1.8rem; font-weight: 800; color: inherit; }
            .ann-modal-text p:last-child { margin-bottom: 0; }
            .ann-modal-text a { color: inherit; text-decoration: underline; }

            @media (max-width: 767.98px) {
                .ann-bar-inner { padding: 1rem; gap: 1rem; }
                .ann-icon, .ann-icon-mark { width: 36px; height: 36px; }
                .ann-icon-mark { font-size: 1.1rem; }
                .ann-bar-title { font-size: 1.1rem; }
                .ann-bar-body { font-size: 0.85rem; }
                .ann-bar-cta { display: none; }   /* na telefonie liczy się treść, nie przycisk */
                .ann-modal-body { padding: 1.5rem; }
                .ann-modal-title { font-size: 1.4rem; }
            }

/* ==========================================================================
   Stronicowanie list (Aktualności, listy edycji) — wg projektu:
   ‹ POPRZEDNI  [1] 2 3 … 8 │ NASTĘPNY ›
   Aktywna strona = czarne pole, najechanie = tło kart (--color-card-hover).
   Współdzielone przez szablony frontu — markup: @theme/_pager.html.twig.
   ========================================================================== */
.pgr {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap; margin: 40px 0 10px;
}
.pgr-step {
    display: inline-flex; align-items: center; gap: 10px; color: #111;
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; text-decoration: none; padding: 0 14px;
}
a.pgr-step:hover { color: var(--color-accent, #003849); }
.pgr-step--off { opacity: 0.35; }
/* kafel strony: 58×36 px — wymiar spróbkowany z renderu projektu */
.pgr-page {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 58px; height: 36px; padding: 0 6px;
    color: #111; font-size: 15px; font-weight: 700; text-decoration: none;
}
a.pgr-page:hover { background: var(--color-card-hover); }
.pgr-page--active { background: #111; color: #fff; }
.pgr-dots { width: 34px; text-align: center; font-weight: 700; }
.pgr-sep { width: 1px; height: 36px; background: #111; margin: 0 8px; }

@media (max-width: 575.98px) {
    .pgr-step { padding: 0 6px; font-size: 13px; }
    .pgr-page { min-width: 40px; height: 34px; }
    .pgr-sep { height: 34px; margin: 0 4px; }
}

/* ============================================================
   Edytor blokowy (Editor.js) — klasy renderowane przez
   App\Service\BlockRenderer (prefiks ejb-, paleta z motywu).
   ============================================================ */
.ejb-b { margin: 0 0 1.1rem; }
.ejb-b > :first-child { margin-top: 0; }
.ejb-b > :last-child { margin-bottom: 0; }

/* tuny: tło (paleta motywu), padding, zaokrąglenie, wyrównanie */
.ejb-bg-bez       { background: var(--color-card-hover, #e9eef1); }
.ejb-bg-karmazyn  { background: var(--color-accent, #003849); color: #fff; }
.ejb-bg-ciemny    { background: #161616; color: #fff; }
.ejb-bg-karmazyn a, .ejb-bg-ciemny a { color: #fff; }
.ejb-pad-s { padding: 12px 16px; }
.ejb-pad-m { padding: 26px 24px; }
.ejb-pad-l { padding: 52px 32px; }
.ejb-round { border-radius: 10px; }
.ejb-align-center { text-align: center; }
.ejb-align-right  { text-align: right; }
.ejb-align-left   { text-align: left; }

/* listy / lista zadań */
.ejb-list { margin: 0 0 1.1rem; padding-left: 1.4em; }
.ejb-list .ejb-list { margin: .2em 0 0; }
.ejb-checklist { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.ejb-check { display: flex; align-items: flex-start; gap: .6em; margin: .35em 0; }
.ejb-check__box { flex: 0 0 auto; width: 1.15em; height: 1.15em; margin-top: .1em; border: 2px solid var(--color-accent, #003849); border-radius: 4px; position: relative; }
.ejb-check--on .ejb-check__box { background: var(--color-accent, #003849); }
.ejb-check--on .ejb-check__box::after { content: ""; position: absolute; left: 3px; top: 0; width: .35em; height: .65em; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* cytat */
.ejb-quote { margin: 0 0 1.1rem; padding: 14px 20px; border-left: 4px solid var(--color-accent, #003849); background: var(--color-card-bg, #f4f6f7); }
.ejb-quote p { margin: 0; font-size: 1.05em; }
.ejb-quote__cite { display: block; margin-top: .5em; font-style: normal; font-size: .9em; color: #666; }

/* tabela */
.ejb-table-wrap { overflow-x: auto; margin: 0 0 1.1rem; }
.ejb-table { border-collapse: collapse; width: 100%; }
.ejb-table th, .ejb-table td { border: 1px solid #dfe3e6; padding: 8px 12px; text-align: left; }
.ejb-table th { background: var(--color-card-hover, #e9eef1); font-weight: 700; }

/* kod / separator */
.ejb-code { margin: 0 0 1.1rem; padding: 14px 16px; background: #1e2128; color: #e6e6e6; border-radius: 6px; overflow-x: auto; }
.ejb-code code { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: .85em; }
.ejb-delimiter { border: 0; text-align: center; margin: 1.6rem 0; }
.ejb-delimiter::before { content: "* * *"; letter-spacing: .5em; color: #999; }

/* obraz */
.ejb-figure { margin: 0 0 1.1rem; }
.ejb-figure img { max-width: 100%; height: auto; display: block; }
.ejb-figure--border img { border: 1px solid #ddd; }
.ejb-figure--bg { background: var(--color-card-hover, #e9eef1); padding: 14px; }
.ejb-figure figcaption { margin-top: .5em; font-size: .88em; color: #666; text-align: center; }

/* komunikaty (callout) */
.ejb-alert { margin: 0 0 1.1rem; padding: 12px 16px; border-radius: 6px; border: 1px solid #e0d6c8; background: #f7f2ea; }
.ejb-alert--primary { background: #f3eefb; border-color: #d8c8f0; }
.ejb-alert--info    { background: #eaf1fb; border-color: #b9d3f2; }
.ejb-alert--success { background: #eaf7ee; border-color: #b7e0c4; }
.ejb-alert--warning { background: #fff7e6; border-color: #ffe0a3; }
.ejb-alert--danger  { background: #fdecec; border-color: #f3b4b4; }
.ejb-alert--secondary, .ejb-alert--light { background: #f5f5f5; border-color: #e0e0e0; }
.ejb-alert--dark { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }

/* kolumny */
.ejb-cols { display: flex; gap: 24px; margin: 0 0 1.1rem; align-items: flex-start; }
.ejb-col { flex: 1; min-width: 0; }
@media (max-width: 767.98px) {
    .ejb-cols { flex-direction: column; gap: 16px; }
}

/* ==========================================================================
   Wyróżniona osoba (pole „Wyróżniony" w panelu → Osoby, usterka #4, 2026-09-24)
   Siatki osób: strona zespołu, zakładki Artyści, blok team_list. Wyróżnieni
   idą pierwsi (CastExtension/ActorRepository::featuredFirst), tu tylko znacznik:
   gwiazdka w rogu zdjęcia w kolorze akcentu.
   ========================================================================== */
.is-wyrozniony .artist-media { position: relative; }
.artist-media-round { position: relative; display: inline-block; }
.artist-featured-badge {
    position: absolute; top: 0; left: 0; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.9rem; height: 1.9rem; border-radius: 0;
    background: var(--color-accent, #003849); color: #fff;
    font-size: 1rem; line-height: 1; pointer-events: none;
}
.artist-media-round .artist-featured-badge { top: 2px; left: 2px; border-radius: 50%; }
