/* =========================================================
   oipip-refresh.css — delikatne odświeżenie + responsywność
   Nakładka na szablon Artisteer oipip (port Joomla 6).
   Nie zmienia charakteru — poprawia czytelność, płynność i mobile.
   ========================================================= */

/* --- Delikatne odświeżenie (wszystkie ekrany) --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.art-postcontent,
.art-blockcontent,
.art-post p,
.art-article p {
    line-height: 1.62;
}

/* płynne przejścia na interakcjach */
a,
.art-vmenu a,
.art-hmenu a,
.art-button {
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

/* delikatny cień pod blokami treści (subtelny, bez zmiany układu) */
.art-post,
.art-block {
    box-shadow: 0 1px 3px rgba(21, 60, 81, .06);
}

/* czytelniejsze nagłówki artykułów */
.art-postheader,
.art-postheader a {
    letter-spacing: .1px;
}

/* obrazy i tabele nigdy nie wychodzą poza kontener */
img,
table,
iframe {
    max-width: 100%;
    height: auto;
}

/* --- Szersza strona — unowocześnienie układu (Artisteer bazowo 871px) ---
   Płynna szerokość do 1180px: na wąskich ekranach kurczy się (bez poziomego
   scrolla), na szerokich daje nowoczesny, przestronny layout. */
.art-sheet,
.art-header,
.desktop .art-nav-inner,
.art-footer-inner {
    width: auto !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Header Artisteer: rozciągnij tło (gradient) na całą szerokość, flagę zostaw
   po lewej, pielęgniarkę dosuń do prawej krawędzi (bazowo była @658px). */
.desktop .art-header {
    background-size: auto, auto, 100% 100% !important;
    background-position: 28px 27px, right top, left top !important;
}

/* --- Odstęp (gutter) między lewym sidebarem a treścią — Artisteer stawia
   komórki tabeli bez przerwy, przez co treść klei się do menu. Symetrycznie
   po obu stronach. Tylko desktop (na mobile treść jest jednokolumnowa). --- */
.desktop .art-content-layout .art-content { padding-left: 34px; padding-right: 34px; }

/* --- Paginacja (Artisteer chce pionowej listy ze strzałkami — robimy poziomy pasek) --- */
.pagination__wrapper { margin: 12px 0 4px; }
.pagination__counter { color: #6b7780; font-size: 13px; margin-bottom: 6px; }

ul.pagination {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
}
ul.pagination > li {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
/* usuń strzałki/pseudo-elementy dziedziczone z menu Artisteer */
ul.pagination > li::before,
ul.pagination > li::after,
ul.pagination > li > a::before,
ul.pagination > li > span::before { content: none !important; display: none !important; }

.pagination .page-link {
    display: block;
    padding: 7px 12px;
    min-width: 38px;
    text-align: center;
    border: 1px solid #c3ccd1;
    border-radius: 4px;
    color: #205a79 !important;
    background: #fff;
    text-decoration: none;
    line-height: 1.1;
    font-weight: 600;
}
.pagination .page-link:hover { background: #eef2f5; border-color: #205a79; }
.pagination .active .page-link {
    background: #205a79;
    border-color: #205a79;
    color: #fff !important;
}
.pagination .disabled .page-link {
    color: #aab4ba !important;
    background: #f5f7f8;
    cursor: default;
}
.pagination .page-link .icon-angle-left::before { content: "‹"; }
.pagination .page-link .icon-angle-right::before { content: "›"; }
.pagination .page-link .icon-angle-double-left::before { content: "«"; }
.pagination .page-link .icon-angle-double-right::before { content: "»"; }

/* --- Breadcrumbs (J6 <ol class="breadcrumb"> — Bootstrap; Artisteer nie stylizuje,
   stąd numery listy). Robimy poziomą ścieżkę z separatorami ▸. --- */
.breadcrumb {
    list-style: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px 0;
    margin: 0;
    font-size: 13px;
}
.breadcrumb li,
.breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    list-style: none !important;
    background: none !important;
}
.breadcrumb li::marker { content: ""; }
.breadcrumb li + li::before {
    content: "▸";
    color: #9aa7b0;
    margin: 0 7px;
}
.breadcrumb a { color: #205a79; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .active,
.breadcrumb [aria-current] { color: #5a6870; }

/* --- Logowanie (mod_login J6 = klasy Bootstrap, których Artisteer nie ma) --- */
.mod-login .form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid #c3ccd1;
    border-radius: 4px;
    margin-top: 3px;
    font-size: 14px;
}
.mod-login .mod-login__username,
.mod-login .mod-login__password,
.mod-login .mod-login__remember,
.mod-login .mod-login__submit { margin-bottom: 10px; }
.mod-login label { font-size: 13px; font-weight: 600; color: #2a3b45; display: block; }
.mod-login .input-group { display: flex; }
.mod-login .input-group .form-control { flex: 1 1 auto; }
/* toggle „Show Password" — brak fontu ikon w Artisteer → pokazywałby brzydki tekst */
.mod-login .input-password-toggle,
.mod-login .input-group-text { display: none !important; }
/* util Bootstrap do ukrycia tekstów a11y — GLOBALNIE. Artisteer nie ma tej klasy,
   więc ukryte teksty (duplikaty „Poprzedni artykuł", „Użytkownik"/„Hasło") są
   widoczne. Ukrywamy je wizualnie, zostają dla czytników ekranu. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important; border: 0 !important;
}
.mod-login .btn-primary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #205a79; color: #fff; border: none;
    padding: 9px 0; border-radius: 4px; font-weight: 600; cursor: pointer;
}
/* wszystkie pola/przyciski logowania nie wychodzą poza sidebar */
.mod-login,
.mod-login * { box-sizing: border-box; max-width: 100%; }
.mod-login .btn-primary:hover { background: #17455d; }
.mod-login .form-check { display: flex; align-items: center; gap: 6px; }
.mod-login .form-check-label { font-weight: 400; margin: 0; }
.mod-login .mod-login__options { list-style: none; padding-left: 0; margin: 8px 0 0; }
.mod-login .mod-login__options a { color: #205a79; font-size: 13px; }

/* --- Artykuł: blok „Szczegóły" (Odsłony) — Artisteer nie stylizuje dl/dt/dd,
   stąd wcięcia i rozjazd. Robimy subtelną linię meta pod tytułem. --- */
.article-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 4px 0 12px;
    border-bottom: 1px solid #eef2f5;
    font-size: 13px;
    color: #7a8791;
}
.article-info-term { display: none; }             /* ukryj etykietę „Szczegóły" */
.article-info dd { margin: 0; display: inline-flex; align-items: center; gap: 5px; }
.article-info dd + dd::before { content: "•"; margin-right: 14px; color: #c3ccd1; font-weight: 700; }
.article-info .icon-eye,
.article-info .icon-calendar { display: none; }    /* brak fontu ikon w Artisteer */

/* --- Nawigacja „Poprzedni / Następny artykuł" — pasek z dwoma przyciskami --- */
.pagenavigation { margin-top: 26px; }
.pagenavigation .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #eef2f5;
    list-style: none;
}
.pagenavigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid #c3ccd1;
    border-radius: 6px;
    background: #fff;
    color: #205a79 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13.5px;
}
.pagenavigation .btn:hover { background: #eef2f5; border-color: #205a79; }
.pagenavigation .btn.next { margin-left: auto; }
.pagenavigation .icon-chevron-left::before { content: "‹"; margin-right: 2px; }
.pagenavigation .icon-chevron-right::before { content: "›"; margin-left: 2px; }

/* mobilny nagłówek — ukryty na desktopie (Artisteer pokazuje grafikę tła) */
.oipip-mobile-header {
    display: none;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

/* Tablet i mniejsze — header Artisteer (grafika tła) nie skaluje,
   więc na mobile pokazujemy czytelny nagłówek tekstowy z nazwą Izby. */
@media all and (max-width: 870px) {
    .art-header {
        background: #eef2f5 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
    }
    .art-header .art-shapes { display: none; }

    .oipip-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: linear-gradient(180deg, #f4f6f8 0%, #dbe3e8 100%);
        border-bottom: 3px solid #205a79;
    }
    .oipip-mobile-header .oipip-flag {
        flex: 0 0 auto;
        width: 58px;
        height: auto;
        border: 1px solid #c3ccd1;
    }
    .oipip-mobile-header .oipip-name {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.28;
        color: #153c51;
        text-transform: uppercase;
    }

    /* treść i sidebary w jednej kolumnie */
    .art-content-layout-row { display: block !important; }
    .art-layout-cell,
    .art-sidebar1,
    .art-content {
        width: 100% !important;
        display: block !important;
        float: none !important;
    }

    /* bloki na całą szerokość, wygodne odstępy */
    .art-block,
    .art-post { margin-left: 0; margin-right: 0; }
    .art-sheet { padding-left: 8px; padding-right: 8px; }

    /* Górne menu (Strona główna/Kontakt/Dyżury) — Artisteer chowa je pod
       niedziałający hamburger; pokazujemy jako czytelny pasek. */
    .art-nav {
        display: block !important;
        background: #205a79;
        min-height: 0;
    }
    .art-nav-inner { display: block; padding: 0; }
    .art-hmenu-extra1,
    .art-hmenu-extra2 { display: none; }
    .art-hmenu {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        background: #205a79 !important;
        padding: 4px 6px;
        margin: 0;
        list-style: none;
    }
    .art-hmenu > li { display: block; float: none; }
    .art-hmenu > li > a {
        display: block;
        color: #fff !important;
        background: rgba(255, 255, 255, .08);
        padding: 9px 14px;
        border-radius: 4px;
        font-weight: 600;
    }
    .art-hmenu > li > a:hover,
    .art-hmenu > li.current > a { background: rgba(255, 255, 255, .22); }
    /* submenu górnego menu — chowamy na mobile (rozwijane hoverem, brak na dotyku) */
    .art-hmenu ul { display: none !important; }
}

/* Telefon */
@media all and (max-width: 480px) {
    .oipip-mobile-header { padding: 12px 12px; gap: 10px; }
    .oipip-mobile-header .oipip-flag { width: 48px; }
    .oipip-mobile-header .oipip-name { font-size: 13px; }

    .art-postcontent,
    .art-blockcontent { font-size: 14.5px; }

    /* menu górne (hamburger) i boczne — pełna szerokość, większe pola dotyku */
    .art-hmenu a,
    .art-vmenu a { padding-top: 10px; padding-bottom: 10px; }
}
