@charset "utf-8";

/* --- Komunikat o incydencie --- */

/* style.css ustawia display: block, float i justowanie dla p, a, strong, ul, h1-h6 -
   w komunikacie wracamy do zwykłego tekstu, żeby treść czytała się jak dokument. */

.komunikat {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 720px;
    height: fit-content;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-top: 4px solid #f16524;
    background-color: #1a262b;
    color: #c3cdd1;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.komunikat:not([open]) {
    display: none;
}

.komunikat[open] {
    display: flex;
    flex-direction: column;
}

.komunikat::backdrop {
    background-color: rgba(10, 16, 19, 0.82);
}

html.komunikat-otwarty {
    overflow: hidden;
}

.komunikat *,
.komunikat *::before,
.komunikat *::after {
    box-sizing: border-box;
}

.komunikat-naglowek {
    position: relative;
    flex: none;
    padding: 32px 72px 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.komunikat .komunikat-data {
    float: none;
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    color: #91a5ad;
}

.komunikat .komunikat-data time {
    color: #fff;
}

.komunikat h2 {
    float: none;
    width: auto;
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 1px;
    color: #fff;
}

.komunikat-tresc {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px 40px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Po otwarciu fokus trafia na treść (autofocus), żeby strzałki przewijały tekst,
   a czytnik ekranu zaczął od początku komunikatu, nie od przycisku zamknięcia. */
.komunikat-tresc:focus {
    outline: none;
}

.komunikat h3 {
    float: none;
    width: auto;
    margin: 24px 0 8px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1px;
    color: #fff;
}

.komunikat p,
.komunikat ul,
.komunikat li {
    float: none;
    font-size: 15px;
    line-height: 25px;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-align: left;
    color: #c3cdd1;
}

.komunikat p {
    margin: 0 0 12px;
}

.komunikat ul {
    margin: 0 0 12px;
    padding-left: 20px;
    list-style: square;
}

.komunikat li {
    display: list-item;
    margin: 0 0 8px;
}

.komunikat li::marker {
    color: #f16524;
}

.komunikat a,
.komunikat strong,
.komunikat time {
    display: inline;
}

.komunikat strong {
    font-weight: 500;
    color: #fff;
}

.komunikat-tresc a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.komunikat-tresc a:hover {
    color: #f16524;
}

.komunikat-stopka {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.komunikat-przycisk {
    padding: 12px 20px;
    border: 0;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
    background-color: rgba(67, 88, 96, 0.6);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.komunikat-przycisk:hover {
    background-color: rgba(67, 88, 96, 0.9);
}

.komunikat-przycisk.komunikat-glowny {
    background-color: #1548ec;
}

.komunikat-przycisk.komunikat-glowny:hover {
    background-color: #0f37c0;
}

.komunikat .komunikat-uwaga {
    width: 100%;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #8a9ba2;
}

.komunikat-x {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #91a5ad;
    cursor: pointer;
}

.komunikat-x svg {
    float: none;
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
}

.komunikat-x:hover {
    color: #fff;
}

.komunikat button:focus-visible,
.komunikat a:focus-visible,
#footer .footer-link:focus-visible {
    outline: 2px solid #f16524;
    outline-offset: 2px;
}

/* Stopka: klauzula RODO i link do komunikatu w jednej linii, z separatorem.
   Odstęp liter jak w pozostałych napisach stopki (p ma 0.8px). */
#footer .footer-nav {
    display: flex;
    align-items: baseline;
    gap: 10px;
    letter-spacing: 0.8px;
}

/* Przycisk otwierający komunikat wygląda jak .footer-link */
#footer button.footer-link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

/* Na węższych ekranach dwa linki nie mieszczą się obok siebie - jeden pod drugim, bez separatora */
@media (max-width: 900px) {
    #footer .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    #footer .footer-separator {
        display: none;
    }
}

@media (max-width: 640px) {
    .komunikat-naglowek {
        padding: 24px 60px 16px 20px;
    }

    .komunikat h2 {
        font-size: 16px;
        line-height: 24px;
    }

    .komunikat-tresc {
        padding: 20px 20px 4px;
    }

    .komunikat-stopka {
        padding: 16px 20px 20px;
    }

    .komunikat-przycisk {
        width: 100%;
    }

    .komunikat-x {
        top: 14px;
        right: 10px;
    }
}

/* --- Koniec: Komunikat o incydencie --- */
