/* --- Display ---- */
.schowaj{
    display: none !important;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* --- display width ---- */
.w-24px{
    width: 24px;
}
.w-34px{
    width: 34px;
}
.w-40px{
    width: 40px;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* --- Fonty ---- */
.font-11{
    font-size: 11px !important;
}
.font-12{
    font-size: 12px !important;
}
.font-13{
    font-size: 13px !important;
}
.font-24{
    font-size: 24px !important;
}
.font-32{
    font-size: 32px !important;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* --- Obramowanie ---- */
.mt-border{
    padding-top: 20px !important;
    margin-top: 20px !important;
    border-top: 1px solid var(--theme-color);
}
.img-border{
    margin: 10px auto;
    border:2px solid #ddd !important;
    padding: 3px;
    border-radius: 3px;
}
.img-caption-kontener{
    display: block;
    position: relative;
    margin-top: 20px;
}
.img-caption {
    position: absolute;
    left:0;
    top:0;
    z-index: 10;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 85%;
    background: #000;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px !important;
    display: inline-block;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* --- tabele ---- */
.tabela-bipu{
    border:0;
    margin: 10px 0;
}
    .tabela-bipu td{
        border:0;
    }
.tabela-dodatkowych-zalacznikow{
    border:0;
    margin: 10px 0;
}
    .tabela-dodatkowych-zalacznikow td{
        border:0;
        border-bottom: 1px solid #e4e4e5;
    }
    .tabela-dodatkowych-zalacznikow a{
        font-weight: bold;
    }
    .tabela-dodatkowych-zalacznikow img{
        width: 32px;
    }
    .tabela-dodatkowych-zalacznikow .metryka-zalacznikow{
        list-style-type: none;
        margin: 6px 0 2px;
        padding: 0;
    }
        .tabela-dodatkowych-zalacznikow .metryka-zalacznikow li{
            display: inline-block;
            margin: 0 14px 0 0;
            padding: 0;
            font-size: 85%;
        }
        .tabela-dodatkowych-zalacznikow .metryka-zalacznikow li .icon{
            margin-right: 4px;
        }
/* ------------------------------------------------------------------------------------------------------------------ */

/* ---- dodatkowe i specjalne style dla artykułów ---- */
.art-bip{

}
    .art-bip-wstep{
        border-top: 1px solid #e4e4e5;
        border-bottom: 1px solid #e4e4e5;
        font-weight: bold;
        padding: 14px 0;
    }
/* ------------------------------------------------------------------------------------------------------------------ */

/* --- Pliki cookies ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f1f1f1;
    color: #333;
    padding: 15px 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    z-index: 1000;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    text-align: center;
    max-width: 800px;
}

.cookie-banner a {
    color: var(--theme-color);
    text-decoration: none;
    padding: 2px 4px;
    border-bottom: 1px solid var(--theme-color);
    font-weight: bold;
}
.cookie-banner a:hover {
    background: var(--theme-color);
    color: var(--smoke-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-button, .cookie-button-decline {
    background-color: var(--theme-color);
    color: var(--smoke-color);
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.cookie-button:hover, .cookie-button-decline:hover {
    background-color: var(--title-dark);
}

.cookie-button-decline {
    background-color: #777;
}
.cookie-button-decline:hover {
    background-color: #555;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* --- Własny Tooltip ---- */
.tooltip-box {
    position: absolute;
    background-color: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bolder;
    white-space: nowrap;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-box.visible {
    display: block;
    opacity: 1;
}

.tooltip-box::after {
    content: "";
    position: absolute;
    border: 6px solid transparent;
}

.tooltip-top::after {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #000;
}

.tooltip-bottom::after {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #000;
}

.tooltip-left::after {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    border-left-color: #000;
}

.tooltip-right::after {
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    border-right-color: #000;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* ---- dostępność, WCAG i inne ---- */

/* ---- otwórz okno dostępności ---- */
.btn-okno-dostepnosci, .btn-okno-dostepnosci-reset{
    position:fixed;
    top:50%;
    left:0;
    transform:translateY(-50%);
    background: var(--theme-color);
    color:#fff;
    padding:10px 14px;
    cursor:pointer;
    z-index:10000;
    border-top-right-radius:18px;
    border-bottom-right-radius:18px;
    transition: all 0.3s ease;
    width: 50px;
    text-align: center;
}
    .btn-okno-dostepnosci:hover, .btn-okno-dostepnosci-reset:hover{
        -webkit-box-shadow: 0px 5px 24px -7px rgba(66, 68, 90, 1);
        -moz-box-shadow: 0px 5px 24px -7px rgba(66, 68, 90, 1);
        box-shadow: 0px 5px 24px -7px rgba(66, 68, 90, 1);
        border:2px solid var(--theme-color);
    }
.btn-okno-dostepnosci-reset{
    top: calc(50% + 50px);
}

/* ---- okno dostępności */
.okno-dostepnosci {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: #f8f9fa;
    border: 2px solid var(--theme-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    transition: all 0.3s ease;
}
    /* ---- nagłówek okna ---- */
    .okno-header {
        width: 100%;
        text-align: right;
        margin-bottom: 10px;
        cursor: move;
    }
        .zamknij-okno {
            font-size: 20px;
            cursor: pointer;
            padding: 4px 8px;
            color: #888;
            transition: color 0.2s ease;
        }
            .zamknij-okno:hover {
                color: var(--theme-color);
            }
    /* ---- button akcji w oknie ---- */
    .element-okna {
        /*flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);*/
        flex: 1 1 calc(25% - 20px);
        max-width: calc(25% - 20px);
        min-height: 120px;
        background: white;
        border: 2px solid var(--smoke-color2);
        border-radius: 8px;
        padding: 12px 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
        .element-okna:hover {
            /*background: var(--theme-color);*/
            color: var(--theme-color);
            border-color: var(--theme-color);
            position: relative; /* ważne, by pozycjonować ::before */
            -webkit-box-shadow: 0px 5px 24px -7px rgba(66, 68, 90, 0.7);
            -moz-box-shadow: 0px 5px 24px -7px rgba(66, 68, 90, 0.7);
            box-shadow: 0px 5px 24px -7px rgba(66, 68, 90, 0.7);
        }
        .element-okna:active, .element-okna-jest-zaznaczony {
            /*transform: scale(0.96);*/
            border: 2px solid var(--theme-color);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
            background-color: var(--theme-color);
            color: var(--smoke-color);
            border-color: var(--error-color);
        }
            .element-okna-jest-zaznaczony:hover{
                color: var(--smoke-color);
            }
            .element-okna em {
                display: block;
                font-size: 24px;
                margin-bottom: 8px;
            }

    /* ---- przyciski pozycjonowania okna ---- */
    .pozycjonowanie-okna {
        width: 100%;
        margin-top: 20px;
        /*
        display: flex;
        flex-wrap: wrap;
        */
        gap: 10px;
        justify-content: center;
        display: block;
        text-align: center;
    }
        .pozycjonowanie-okna button {
            padding: 8px 12px;
            border: 1px solid #ccc;
            border-radius: 6px;
            background: #f0f0f0;
            cursor: pointer;
            transition: background 0.2s ease;
            font-size: 14px;
        }
        .pozycjonowanie-okna button:hover {
            background: #ddd;
        }
        .pozycjonowanie-okna button:active {
            transform: scale(0.97);
        }
    /* ---- dodatkowe kontrolki przycisku okna  ---- */
    /* ---- np. suwak maski  ---- */
    .kontrolka-okna {
        position: fixed;
        right: 10px;
        top: 10px;
        display: none;
        width: 100%;
        max-width: 220px;
        z-index: 10001;
        background: #f8f9fa;
        border: 2px solid var(--theme-color);
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
        .kontrolka-okna p{
            margin: 10px auto 16px;
            font-weight: bold;
        }
    .kontrolka-okna.glow {
        animation: rozblysk 1.5s ease-out;
    }
    @keyframes rozblysk {
        0% {
            box-shadow: 0 0 0px rgba(255, 0, 0, 0.6);
        }
        50% {
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
        }
        100% {
            box-shadow: 0 0 0px rgba(255, 0, 0, 0.6);
        }
    }
.kontrolka{
    background: white;
    border: 2px solid var(--smoke-color2);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}
.suwak {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s;
}

/* Styl dla wypełnionej części (dla WebKit - Chrome, Edge, Safari) */
.suwak::-webkit-slider-runnable-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
}

.suwak::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: red;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px; /* wyrównanie z trackiem */
}

/* Styl dla wypełnionej części (dla Firefox) */
.suwak::-moz-range-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
}

.suwak::-moz-range-progress {
    background: red;
    height: 8px;
    border-radius: 4px;
}

.suwak::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: red;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

/* Styl dla Internet Explorera (opcjonalnie) */
.suwak::-ms-track {
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.suwak::-ms-fill-lower {
    background: red;
    border-radius: 4px;
}

.suwak::-ms-fill-upper {
    background: #eee;
    border-radius: 4px;
}

.suwak::-ms-thumb {
    width: 20px;
    height: 20px;
    background: red;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.suwak-dymek {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-color);
    border-radius: 6px;
    color: white;
    padding: 3px 6px;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .element-okna {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 1100px) {
    .okno-dostepnosci{
        top:50% !important;
        left:50% !important;
        transform: translate(-50%, -50%) !important;
    }
    .pozycjonowanie-okna {
        display: none;
    }
}

/* ---- opcje maski ---- */
#reading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* ---- MASKA --------------------------------------------------------------------------------------------------------*/
.przejrzystosc-on p,
.przejrzystosc-on li,
.przejrzystosc-on a,
.przejrzystosc-on h1,
.przejrzystosc-on h2,
.przejrzystosc-on h3,
.przejrzystosc-on h4,
.przejrzystosc-on h5,
.przejrzystosc-on h6,
.przejrzystosc-on .box,
.przejrzystosc-on .element,
.przejrzystosc-on div {
    line-height: 1.8 !important;
    margin-bottom: 1.2em !important;
    letter-spacing: 0.5px;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

/* ---- maska ---- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 9999;
    mask-image: radial-gradient(circle 100px at center, transparent 0%, black 100%);
    -webkit-mask-image: radial-gradient(circle 100px at center, transparent 0%, black 100%);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

/* ---- PODŚWIETLENIE LINKÓW -----------------------------------------------------------------------------------------*/
.linki-podswietlone {
    background-color: yellow !important;
    color: black !important;
    border: 2px solid black !important;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

/* Efekt po najechaniu myszką */
.linki-podswietlone:hover {
    background-color: gold !important;
    color: black !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* Efekt aktywnego kliknięcia */
.linki-podswietlone:active {
    background-color: orange !important;
    transform: scale(0.97);
}

/* Efekt focus (np. tabulatorem z klawiatury) */
.linki-podswietlone:focus {
    outline: 2px dashed black;
    outline-offset: 3px;
}

/* ---- UKRYCIE OBRAZÓW -----------------------------------------------------------------------------------------------*/
/* Styl dla ukrycia obrazków <img> */
.ukryj-img img {
    display: none !important;
}

/* Zastępowanie background-image */
.ukryj-img [style*="background-image"],
.ukryj-img [class*="bg"],
.ukryj-img [class*="background"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" fill="none" stroke="black" stroke-width="5" viewBox="0 0 24 24"><rect width="100%" height="100%" fill="%23ccc"/><path d="M3 3l18 18M21 3L3 21"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 48px 48px !important;
    background-color: #ccc !important;
}

/* ---- ANIMACJE  ----------------------------------------------------------------------------------------------------*/
.wylacz-animacje * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    scroll-behavior: auto !important;
}


/* ---- MENU  --------------------------------------------------------------------------------------------------------*/
.icon-btn{
    min-width: 50px;
}


/* ---- STEROWANIE KLAWIATURA ----------------------------------------------------------------------------------------*/
#accessibilityMenu {
    position: fixed;
    top: 12px;
    left: 22px;
    background: #f8f9fa;
    border: 2px solid var(--theme-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9999;
    display: none;
    font-size: 14px;
    width: 100%;
    max-width: 450px;

    max-height: 60vh;
    overflow-y: auto;
}

/* ---- pasek okna ---- */
/* Styl paska przewijania (dla WebKit - Chrome, Edge, Safari) */
#accessibilityMenu::-webkit-scrollbar {
    width: 18px;
}

#accessibilityMenu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#accessibilityMenu::-webkit-scrollbar-thumb {
    background-color: var(--theme-color);
    border-radius: 12px;
}

/* Dla Firefox */
#accessibilityMenu {
    margin: 14px 0;
    scrollbar-color: var(--theme-color) #f1f1f1; /* kolor suwaka i tła */
    /*scrollbar-width: thin;*/
    scrollbar-width: 12px;
}

#accessibilityMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#accessibilityMenu li {
    margin-bottom: 5px;
}
#accessibilityMenu button {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
    outline: none;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    width: 100%;
}
#accessibilityMenu button:focus {
    background-color: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.shortcut-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /*
    background-color: #f0f4f8;
    border: 1px solid #ccc;
    border-radius: 8px;
    */
    padding: 8px 12px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: fit-content;
}

.shortcut-keys {
    background-color: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-family: monospace;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.2);
    min-width: 80px;
    text-align: center;
}

.shortcut-description {
    color: #333;
    font-size: 14px;
}

/* ---- ACTIVE ,FOCUS - elementów <A> ---- */
.shortcut-a-focused{
    color: var(--smoke-color) !important;
    background-color: var(--theme-color) !important;
    /*border: 2px solid color-mix(in srgb, var(--theme-color) 80%, black) !important;*/
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-color) 80%, black) !important;
}
.shortcut-a-focused::placeholder {
    color: #ffffff !important;
    opacity: 1; /* dla Firefoksa – bez tego placeholder może być przygaszony */
}

/* ---- Dostosuj wielkość czcionki ---- */
#fontControlBtn {
}

#fontControlPanel {
    position: fixed;
    top: 75px;
    right: 20px;
    background: #fff;
    border: 2px solid var(--theme-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 9999;
    -webkit-box-shadow: -1px 3px 24px -11px rgba(66, 68, 90, 1);
    -moz-box-shadow: -1px 3px 24px -11px rgba(66, 68, 90, 1);
    box-shadow: -1px 3px 24px -11px rgba(66, 68, 90, 1);
}

#fontControlPanel button {
    margin: 5px;
    padding: 6px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
}

#fontControlPanel button:hover {
    background-color: var(--theme-color);
    color: var(--smoke-color);
}
#fontSizeDisplay{
}

/* ---- OPERACJE NA TREŚCIACH STRON ----------------------------------------------------------------------------------*/

/* ---- dodawanie do ulubionych ---- */
.add-to-favorites.favorited i {
    color: var(--theme-color);
}

#favorite-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 9999;
    max-width: 80%;
    text-align: center;
}

#favorite-toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* ---- filtrowanie tekstu ---- */
.question-card.highlighted {
    border: 2px solid var(--theme-color);
    padding: 10px;
    background-color: rgba(217, 41, 28, 0.05);
    /*box-shadow: 0 0 6px 2px var(--theme-color);*/
}

.highlight-text {
    background-color: var(--theme-color) !important;
    color: var(--smoke-color) !important;
    font-weight: bold;
    padding: 3px 4px;
    border-radius: 3px;
    box-shadow: 0 0 4px 1px var(--theme-color);
}
#search-results-info {
    display: none; /* ukryty domyślnie */
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-left: 4px solid #ccc;
    margin-bottom: 10px;
    font-size: 14px;
    font-style: italic;
}



/* ------------------------------------------------------------------------------------------------------------------ */

/* Style dołączania plików i zdjęć do tekstów ----------------------------------------------------------------------- */
.dolacz-obraz{
    display: block;
    width: 100%;
    margin: 14px auto;
    text-align: center;
    /*border:1px solid #bbb;
    padding: 2px;*/
}
    .dolacz-obraz-oplywanie{
        float:left;
        clear: left;
        width:50%;
        max-width: 550px;
        margin: 4px 20px 14px 0;
    }
    .dolacz-obraz img{
        max-width: 100%;
        border-radius: 4px;
    }
    .dolacz-opis {
        background-color: rgba(0, 0, 0, 0.05); /* subtelne tło */
        padding: 8px 12px;
        margin-top: 6px;
        font-size: 0.95em;
        font-style: italic;
        color: #333;
        border-left: 3px solid #999;
        border-radius: 4px;
        line-height: 1.4;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
    }


.dolacz-plik{
    display: inline;
    margin: 0;
}
    .dolacz-plik a{
        font-weight: bolder;
    }
.dolacz-block {
    display: block;
    background-color: rgba(0, 0, 0, 0.05); /* subtelne tło */
    padding: 8px 12px;
    margin: 6px 0 10px;
    font-size: 0.95em;
    font-style: italic;
    color: #333;
    border: 1px solid #eee;
    border-left: 3px solid #999;
    border-radius: 4px;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* Jeśli ma być pełna responsywność */
@media screen and (max-width: 768px) {
    .dolacz-block {
        float: none !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
.dolacz-plik-ikona{
    float:left;
    width: 34px;
    margin: 7px 10px 4px 0;
    clear: left;
}
.dolacz-plik-meta{
    display: block;
    margin: 0;
    font-size: 12px;
}
/* ------------------------------------------------------------------------------------------------------------------ */





/* Wysoki kontrast */
body.wysoki-kontrast {
    background-color: #000;
    color: #fff;
}

body.wysoki-kontrast a {
    color: #ffcc00; /* wyróżniony kolor linków */
    background-color: #333; /* tło dla linków */
    text-decoration: underline;
}

body.wysoki-kontrast .btn-kontrast {
    background-color: #ffcc00;
    color: #000;
}


/* Tryb ciemny dla całej strony */
.darkmode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

.darkmode a {
    color: #80cbc4 !important;
}

body.darkmode #mask-size {
    background: #444;
}

body.darkmode #mask-size:hover {
    background: var(--theme-color);
}

body.darkmode #mask-size::-webkit-slider-thumb,
body.darkmode #mask-size::-moz-range-thumb,
body.darkmode #mask-size::-ms-thumb {
    background: #90caf9;
}
/* ---- bezwzględny wysoki kontrast --------------------------------------------------------------------------------- */
/* =========================================================
   WYSOKI KONTRAST – wymuszenie czytelności treści artykułu
   Dotyczy tylko kontenera artykułu: .strona-w-bip
   ========================================================= */

body.wysoki-kontrast .strona-w-bip {
    background: #000 !important;
    color: #fff !important;
}

/* Nadpisz WSZYSTKIE kolory/tła wewnątrz artykułu
   (wygrywa z inline style, klasami itp.) */
body.wysoki-kontrast .strona-w-bip,
body.wysoki-kontrast .strona-w-bip * {
    color: #fff !important;
    background: transparent !important;
    border-color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Linki – mocno widoczne */
body.wysoki-kontrast .strona-w-bip a,
body.wysoki-kontrast .strona-w-bip a:visited {
    color: #ff0 !important;
    background: transparent !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

body.wysoki-kontrast .strona-w-bip a:hover,
body.wysoki-kontrast .strona-w-bip a:focus {
    outline: 3px solid #ff0 !important;
    outline-offset: 3px !important;
}

/* Nagłówki – jeszcze czytelniejsze */
body.wysoki-kontrast .strona-w-bip h1,
body.wysoki-kontrast .strona-w-bip h2,
body.wysoki-kontrast .strona-w-bip h3,
body.wysoki-kontrast .strona-w-bip h4,
body.wysoki-kontrast .strona-w-bip h5,
body.wysoki-kontrast .strona-w-bip h6 {
    color: #fff !important;
    background: transparent !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
}

/* Listy i akapity – komfort czytania */
body.wysoki-kontrast .strona-w-bip p,
body.wysoki-kontrast .strona-w-bip li {
    color: #fff !important;
    background: transparent !important;
    line-height: 1.9 !important;
    font-size: 1.05em !important;
}

/* Tabele – czytelne obramowania */
body.wysoki-kontrast .strona-w-bip table,
body.wysoki-kontrast .strona-w-bip th,
body.wysoki-kontrast .strona-w-bip td {
    color: #fff !important;
    background: transparent !important;
    border: 2px solid #fff !important;
}

/* Cytaty / bloki / boxy – widoczne na czerni */
body.wysoki-kontrast .strona-w-bip blockquote,
body.wysoki-kontrast .strona-w-bip .dolacz-block,
body.wysoki-kontrast .strona-w-bip .dolacz-opis {
    background: #111 !important;
    border-left: 4px solid #ff0 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}

/* Obrazki – białe obramowanie */
body.wysoki-kontrast .strona-w-bip img {
    background: transparent !important;
    border: 2px solid #fff !important;
}

/* Jeśli artykuł ma elementy z inline background-color — wyczyść to bezlitośnie */
body.wysoki-kontrast .strona-w-bip [style*="background"],
body.wysoki-kontrast .strona-w-bip [style*="color"] {
    background: transparent !important;
    color: #fff !important;
}