/*
Theme Name: Czyste Powietrze (child)
Description: Customowy child theme dla portalu czystepowietrze.gov.pl. Zawiera customizacje motywu Uncode: sidebar resolver per content type, TOC renderer, custom template parts, hooki migracyjne.
Author: NFOŚiGW / migracja Grav→WP
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* ── Wspólna ramka sidebarów ── */
html {
    font-size: 20px;
}

ol.breadcrumb li {
    font-size: 0.7rem;
}

.breadcrumb li.paged {
    display: none;
}

.style-light .breadcrumb>li a {
    color: #be336e !important;
}

.fs-sm,
.fs-sm li,
.fs-sm p {
    font-size: .7rem !important
}

.post-content a[href^="https://"]:not(.btn):not(.no-icon):not(.czp-share-btn):note(.czp-logo-card__link)::after,
.post-content a[href^="http://"]:not(.btn):not(.no-icon)::after,
.footer-nfosigw-section a[href^="https://"]:not(.btn):not(.no-icon):not(.social-href)::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    vertical-align: baseline;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
    background-color: currentColor;
    opacity: 0.5;
}

.czp-text-content .row-parent {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

ol.breadcrumb a::after {
    display: none !important;
}

body:not(.has-post-thumbnail) .czp-media-row {
    display: none;
}

.post-content a {
    color: #2969bc;
}

.post-content a:not(.btn) {
    text-decoration: underline;
}

.post-content h2 {
    font-size: 1.3rem;
}

.czp-header-logos .czp-header-logos__inner {
    display: flex;
    background-color: #fff;
}

.czp-header-logos__group {
    width: 100%;
}

abbr[title] {
    border-bottom: 0 !important;
    cursor: help
}


.czp-header-logos .czp-header-logos__inner img {
    width: 100%;
}

.czp-header-submenu {

    background: #be336e;
}

.czp-header-submenu__inner {
    padding: 15px 36px;
}

.czp-header-submenu ul {
    display: flex;
    gap: 1.5em;
    margin-top: 0;
}

.czp-header-submenu ul li {
    line-height: 0.7rem;
}

.czp-header-submenu ul li a i {
    font-size: 10px;
    margin-right: 7px !important;
}

.czp-header-submenu ul a {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
}

.czp-header-submenu ul a:hover {
    opacity: .8;
}

.subheading p {
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 600;
    padding-left: 28px;
}

.lead p {
    line-height: 1.65;
    font-size: .9rem;

}

.subheading p:before {
    content: "";
    position: absolute;
    display: inline-block;
    top: 50%;
    transform: translateY(-60%);
    left: 0;
    width: .75rem;
    height: .05rem;
    background: #2969BC
}

.subheading.center-pos p:before {
    display: none;
}

.subheading.center-pos p {
    padding-left: 0;
}

.czp-toc,
.czp-widget {
    background: #fff;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    padding: 20px 20px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ── TOC sidebar ── */

.czp-toc__label {
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}

.czp-toc__page-title {
    display: block;
    font-weight: 700;
    font-size: 1em;
    color: #c0395a;
    text-decoration: none;
    margin-bottom: 14px;
    line-height: 1.4;
}

.czp-toc__page-title:hover {
    color: #a02d48;
    text-decoration: none;
}

.czp-toc__list,
.czp-toc__list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* h2 — brak wcięcia */
.czp-toc__list li>a {
    display: block !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 0.875em;
    color: #1a6bb5;
    text-decoration: none !important;
    line-height: 1.4;
    transition: color 0.15s;
}

.czp-toc__list li>a:hover,
.czp-toc__list li>a.is-active {
    color: #154f8a !important;
    text-decoration: none !important;
}

/* h3 — pierwszy poziom: 12px wcięcia + linia */
.czp-toc__list li.czp-toc__item--sub {
    margin-left: 12px !important;
    padding-left: 10px !important;
    border-left: 2px solid #d0d8e4 !important;
}

.czp-toc__list li.czp-toc__item--sub>a {
    font-size: 0.84em !important;
    color: #3a7dc0 !important;
}

/* h4 — drugi poziom: 24px wcięcia + linia (kumuluje z h3) */
.czp-toc__list li.czp-toc__item--subsub {
    margin-left: 24px !important;
    padding-left: 10px !important;
    border-left: 2px solid #d0d8e4 !important;
}

.czp-toc__list li.czp-toc__item--subsub>a {
    font-size: 0.80em !important;
    color: #3a7dc0 !important;
}

/* Aktywna sekcja — zmień kolor linii na liście zagnieżdżonej */
.czp-toc__list li.czp-toc__item--sub:has(> a.is-active),
.czp-toc__list li.czp-toc__item--subsub:has(> a.is-active) {
    border-left-color: #c0395a !important;
}

.btn.btn-menu {
    font-size: 0.7rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 0.8rem !important;
    border: none;
}

.listing-czp-cards h3 a:hover {
    color: #c0395a !important
}

.t-entry-meta .t-entry-date::before {
    font-family: 'uncodeicon';
    font-weight: 400;
    content: '\f073';
    margin-right: 6px;
    font-size: 0.85em;
    color: #888;
}

.listing-czp-cards span.t-entry-date {
    font-size: .7rem !important;
    font-weight: 400 !important;
}

figcaption {
    font-size: .7rem !important;
}

/* ── Grav buttons — a.btn rendered inline in post content ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, #c0395a 0%, #e8638a 100%);
    cursor: pointer;
    transition: filter 0.2s;
    white-space: normal;

}

.style-light .btn-default.btn {
    border: solid 2px #da5378 !important;
    border-color: #da5378 !important
}

.btn.btn-gradient-green {
    background-image: linear-gradient(225deg, #2db34a 0, #09c 100%);
}

.btn.btn-dark {
    background: #212121 !important;
}

body .style-light .btn-default.btn.btn-outline {
    background-image: none !important;
    color: #da5378 !important
}

.btn.btn-outline:hover {
    background-color: #da5378;
}

.btn.btn-dark:not(.btn-hover-nobg):not(.icon-animated):hover {
    background: #cdcdcd !important;
}

.btn:hover {
    filter: brightness(1.1);
    color: #fff !important;
    text-decoration: none;
}

.btn i {
    flex-shrink: 0;
    font-size: 1.1em;
}

/* ── czp-children — child page listing cards ── */
.czp-children {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.czp-child {
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.czp-child__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.czp-child__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.czp-child__link::before {
    content: "→";
    color: #c0392b;
    font-weight: 700;
    flex-shrink: 0;
}

.czp-child__link:hover .czp-child__title {
    text-decoration: underline;
}

.czp-child__title {
    font-weight: 700;
    font-size: 1.05em;
}

.czp-child__count {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 14px;
    font-size: 0.85em;
    color: #555;
    flex-shrink: 0;
}

.czp-child__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.czp-child__chip {
    font-size: 0.8em;
    padding: 4px 12px;
    border: 1px solid #d0d5de;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    background: #f7f8fa;
    transition: background 0.15s, border-color 0.15s;
}

.czp-child__chip:hover {
    background: #eaecf0;
    border-color: #b0b8c8;
}

/* ── Bootstrap table compat — tabele z Grav używają klas Bootstrap ── */

/* Responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Base table reset */
.post-content table,
.post-content .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9em;
    line-height: 1.5;
}

.post-content table th,
.post-content table td,
.post-content .table th,
.post-content .table td {
    padding: 0.6rem 0.75rem;
    vertical-align: top;
    border: none;
}

/* table-bordered */
.post-content .table-bordered,
.post-content .table-bordered th,
.post-content .table-bordered td {
    border: 1px solid #c8cfd8 !important;
}

/* table-striped */
.post-content .table-striped tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

/* table-sm */
.post-content .table-sm th,
.post-content .table-sm td {
    padding: 0.3rem 0.5rem;
}

/* thead default */
.post-content table thead tr,
.post-content .table thead tr {
    background-color: #e9ecef;
}

.post-content table thead th,
.post-content .table thead th {
    font-weight: 700;
    vertical-align: bottom;
    border-bottom: 2px solid #c8cfd8 !important;
}

/* table-primary (niebieski nagłówek) */
.post-content .table-primary,
.post-content thead.table-primary tr,
.post-content tr.table-primary {
    background-color: #cfe2ff !important;
    color: #084298;
}

/* Bootstrap spacing helpers używane na wrapper divach */
.post-content .mt-4 {
    margin-top: 1.5rem !important;
}

.post-content .mt-6 {
    margin-top: 2.5rem !important;
}

.post-content .my-6 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
}

.post-content .mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Bootstrap text utilities */
.post-content .text-center {
    text-align: center !important;
}

.post-content .text-end {
    text-align: right !important;
}

.post-content .text-start {
    text-align: left !important;
}

.post-content .fw-bold {
    font-weight: 700 !important;
}

.post-content .align-middle td,
.post-content .align-middle th,
.post-content td.align-middle,
.post-content th.align-middle {
    vertical-align: middle !important;
}

/* Niestandardowe kolory tła (na-co-i-ile) */
.post-content .bg-soft-green,
.post-content td.bg-soft-green,
.post-content th.bg-soft-green {
    background-color: #e6f4ea !important;
}

.post-content .bg-soft-blue,
.post-content td.bg-soft-blue,
.post-content th.bg-soft-blue {
    background-color: #e3f0fb !important;
}

.post-content .bg-soft-orange,
.post-content td.bg-soft-orange,
.post-content th.bg-soft-orange {
    background-color: #fff3e0 !important;
}

.post-content .bg-white,
.post-content td.bg-white,
.post-content th.bg-white {
    background-color: #fff !important;
}

/* ── Ważne komunikaty sidebar widget ── */
.czp-wk-icon {
    opacity: 0.65;
    font-size: 0.9em;
    vertical-align: middle;
}

.czp-wk-list__items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
}

.czp-wk-list__item {
    margin-bottom: 6px;
}

/* Karta — jasnoniebieski box z zaokrąglonymi rogami */
.czp-wk-list__link {
    display: block;
    padding: 11px 14px;
    background: #edf1f8;
    border-radius: 8px;
    font-size: 0.87em;
    font-weight: 600;
    color: #1a3153;
    text-decoration: none;
    line-height: 1.45;
    transition: background 0.15s;
}

.czp-wk-list__link::before {
    content: "\2192\00a0";
    /* → + non-breaking space */
    font-weight: 700;
}

.czp-wk-list__link:hover {
    background: #dde5f3;
    color: #1a3153;
    text-decoration: none;
}

/* Data pod kartą */
.czp-wk-list__date {
    display: block;
    font-size: 0.76em;
    color: #8a95a3;
    margin: 5px 2px 10px;
}

/* Przycisk "→ Zobacz wszystkie" — wygląd z globalnej klasy .btn */
.czp-wk-list__see-all {
    font-size: 0.87em;
    margin-top: 4px;
}

/* ── FAQ accordion — automatic question numbering ── */
.faq-section {
    counter-reset: faq-counter;
}

.faq-section .panel-title a span::before {
    counter-increment: faq-counter;
    content: counter(faq-counter) ". ";
}

@media (max-width:959px) {
    .czp-header-logos .czp-header-logos__inner {
        flex-direction: column;
        gap: 0;
    }

    .czp-header-logos .czp-header-logos__inner img {
        width: auto;
    }

    .czp-header-submenu ul {
        flex-direction: column;
        gap: 0.7em;
    }

    .czp-share-nav {
        justify-content: flex-start !important;
        padding-top: 1rem !important;
    }
}

@media (min-width: 960px) {
    .czp-header-logos .czp-header-logos__inner .czp-header-logos__group:nth-child(1) {
        max-width: 23.9% !important
    }

    .czp-header-logos .czp-header-logos__inner .czp-header-logos__group:nth-child(3) {
        max-width: 35% !important
    }

    .czp-header-logos .czp-header-logos__inner .czp-header-logos__group:nth-child(2) {
        flex: 604 1 0%;
        max-width: none !important;
    }

    .czp-header-logos .czp-header-logos__inner .czp-header-logos__group:nth-child(3) {
        flex: 514 1 0%;
        max-width: none !important;
    }
}

@media (max-width:1510px) {

    .btn.btn-cta-instrukcja,
    .btn.btn-cta-zum {
        display: none !important;
    }
}

.partners-aside .czp-logo-grid {
    margin-bottom: 0;
}

.czp-logo-grid {
    display: grid;
    grid-template-columns: repeat(var(--czp-logo-cols, 4), 1fr);
    gap: 16px;
    margin: 24px 0;
}

.czp-logo-card,
.menu-box {
    background: #fff;
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.czp-logo-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.11);
}

.czp-logo-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 20px 16px 16px;
}

.czp-logo-card:not(:has(.czp-logo-card__link)) {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
}

.czp-logo-card__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    margin-bottom: 14px;
}

.czp-logo-card__img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.czp-logo-card__img--placeholder {
    width: 80px;
    height: 80px;
    background: #f0f2f5;
    border-radius: 50%;
}

.czp-logo-card__name {
    font-size: 0.82em;
    color: #444;
    text-align: center;
    line-height: 1.4;
}

.menu-box {
    padding: 0.75rem;
}

.menu-box h3.widget-title {
    margin: 0 0 0.5rem 0 !important;
    padding-top: 0.5rem !important;
    text-transform: none;
    font-size: 15px;
}

.menu-box li a,
.footer-czp-policy li a {
    color: #2969bc !important;
    text-decoration: none;
    text-transform: none;
    font-size: 14px !important;
    padding-bottom: 0 !important;
}

.czp-sidebar h3.widget-title {
    margin-bottom: 1rem;
    font-size: 1em !important;
    font-weight: 500 !important;
}

.czp-sidebar h3.widget-title i {
    margin-right: 0.5rem !important;
}

.post-navigation .btn.btn-link {
    padding: 1em !important;
}

.post-navigation .btn.btn-link.btn-disable-hover {
    opacity: 0.5;
}

@media (max-width: 1199px) {
    .czp-logo-grid[data-cols="6"] {
        --czp-logo-cols: 4;
    }

    .czp-logo-grid[data-cols="4"] {
        --czp-logo-cols: 3;
    }
}

@media (max-width: 767px) {
    .czp-logo-grid {
        --czp-logo-cols: 2 !important;
    }
}

@media (max-width: 479px) {
    .czp-logo-grid {
        --czp-logo-cols: 1 !important;
    }
}

/* ── Gminne punkty informacyjne — tabela z wyszukiwarką ── */
.czp-gminy-wrapper {
    margin: 24px 0;
}

.czp-gminy-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 1em;
    border: 1px solid #c8cfd8;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.czp-gminy-search:focus {
    border-color: #2969BC;
    box-shadow: 0 0 0 3px rgba(41, 105, 188, 0.15);
}

.czp-gminy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.czp-gminy-table thead th {
    font-weight: 700;
    text-align: left;
    padding: 10px 16px;
    border-bottom: 2px solid #c8cfd8;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.czp-gminy-table thead th.sort::after {
    content: ' \2195';
    opacity: 0.3;
    font-size: 0.8em;
}

.czp-gminy-table thead th.asc::after {
    content: ' \2191';
    opacity: 1;
}

.czp-gminy-table thead th.desc::after {
    content: ' \2193';
    opacity: 1;
}

.czp-gminy-table tbody tr {
    border-bottom: 1px solid #e8edf3;
}

.czp-gminy-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.czp-gminy-table tbody tr:hover {
    background: #edf2f9;
}

.czp-gminy-table td {
    padding: 10px 16px;
    vertical-align: middle;
}

.czp-gminy-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
}

.czp-gminy-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.9em;
    border: 1px solid #c8cfd8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}

.czp-gminy-pagination li a:hover {
    background: #edf2f9;
    border-color: #2969BC;
    color: #2969BC;
}

.czp-gminy-pagination li.active a {
    background: #2969BC;
    border-color: #2969BC;
    color: #fff !important;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.alert p {
    margin-top: 0 !important;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-danger {
    color: #521b32;
    background-color: #fff4f3;

}

.alert-danger br {
    display: none;
}

.archive-page-alert {
    background-color: #f9ecf1;
    display: flex;
    gap: 1em
}

.alert-icon {
    padding-left: 2.5rem;
    position: relative
}

.alert-icon i {
    position: absolute;
    left: 1rem;
}

.footer-czp-menu-section a,
.footer-nfosigw-section a {
    color: #2969bc;
    text-decoration: underline;
}

.footer-czp-menu-section small {
    display: block;
    line-height: 1.4;
    margin-top: 0;
}

.footer-czp-menu-section .uncode-vc-social {
    margin-top: 0.5rem !important;
}

.footer-czp-menu-section .social-icon a,
.footer-nfosigw-section .social-icon a {
    text-decoration: none;
    background-image: linear-gradient(225deg, #2db34a 0, #09c 100%);
    border-radius: 100%;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.footer-czp-menu-section .social-icon a:hover,
.footer-nfosigw-section .social-icon a:hover {
    opacity: 0.9;
}

.footer-czp-menu-section .social-icon a i,
.footer-nfosigw-section .social-icon a i {
    color: #fff;
}


@media (max-width: 767px) {
    .czp-gminy-table {
        font-size: 0.8em;
    }

    .czp-gminy-table thead th,
    .czp-gminy-table td {
        padding: 8px 10px;
    }
}

/* ── czp_post_meta shortcode ── */
.czp-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.2em;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
}

.czp-metadata li {
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    color: #555;
}

.czp-metadata li i {
    color: #888;
    flex-shrink: 0;
    margin-right: 0 !important;
}

/* ── czp_share shortcode ── */
.czp-share-nav {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    justify-content: end;
}

.czp-share-nav__label {
    color: #555;
    margin-right: 0.15em;
}

.czp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-image: linear-gradient(225deg, #2db34a 0, #09c 100%);
    color: #fff !important;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.czp-share-btn:hover {
    opacity: 0.85;
    filter: none !important;
    color: #fff !important;
}

ul.pagination li.page-prev span,
ul.pagination li.page-prev a,
ul.pagination li.page-next span,
.pagination .page-next>a {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 100% !important;
    height: 54px !important;
}

ul.pagination li span i,
ul.pagination li a i {
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
}

ul.pagination li .btn-disable-hover {
    opacity: .8 !important;
}

.main-container .row-navigation .row-parent {
    padding-top: 18px !important;
    padding-bottom: 18px !important
}

span.badge.bg-primary.rounded-pill {
    border-radius: 50rem;
    background-color: #2969bc;
    color: #fff;
    font-weight: 500;
    font-size: 0.75em;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    min-width: 23px;
    height: 23px;
    padding: 0 0.5em;
}

.uncode-accordion.faq-section {
    margin-top: 0 !important;
}

.faq-section .panel-group .panel .panel-heading a span {
    text-transform: none;
    font-size: 0.85rem;
    letter-spacing: normal;
    color: #2969BC;
}

.faq-section .panel-group .panel .panel-body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.faq-section .panel.panel-default.wpb_accordion_section.group {
    background-color: #fff;
    padding: 1em;
    box-shadow: 0 0 0 .05rem rgba(8, 60, 130, .06), 0 0 1.25rem rgba(30, 34, 40, .04) !important;
    border-radius: 0.4rem !important;
}

/* ── Layout: no sidebar ─- */
.post-content.un-no-sidebar-layout .row-container>.row.row-parent.limit-width:not(.full-width) {
    padding-left: 36px !important;
    padding-right: 36px !important;
}

.czp-sidebar--czp-sidebar-cieple-mieszkanie a {
    color: #2969bc;
}

.post-content table td {
    font-weight: 400;
}

.post-content ol:not(.breadcrumb),
.post-content ul {
    margin-left: 2rem;
    margin-top: 0
}

.post-content h3,
.post-content h2 {
    margin-bottom: .5rem;
}

/* ── BEGIN Bootstrap grid shim — Grav-migrated content ────────────────────────
   Scoped to .post-content. Remove this entire block if Bootstrap is ever
   loaded globally. Classes extracted from Grav .md files that use Bootstrap 5.
   Uncode używa .row z display:table; jego rows zawsze mają .row-parent lub
   .row-child — :not() wyklucza je, zostawiając tylko Bootstrap rows.
   ──────────────────────────────────────────────────────────────────────────── */

/* Grid — Bootstrap rows (Uncode rows zawsze mają .row-parent lub .row-child) */
.post-content .row:not(.row-parent):not(.row-child) {
    --czp-gx: 1.5rem;
    --czp-gy: 0rem;
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--czp-gy);
    margin-right: calc(-0.5 * var(--czp-gx));
    margin-left: calc(-0.5 * var(--czp-gx));
}

.post-content .row:not(.row-parent):not(.row-child)>* {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* override Uncode's .chrome .col-lg-* { height: 0 } */
    padding-right: calc(var(--czp-gx) * 0.5);
    padding-left: calc(var(--czp-gx) * 0.5);
}

/* Gutters — kaskadują przez CSS var() do margin-top dzieci */
.post-content .gy-6 {
    --czp-gy: 1.5rem;
}

.post-content .gy-12 {
    --czp-gy: 3rem;
}

.post-content .gx-lg-12 {
    --czp-gx: 3rem;
}

@media (min-width: 992px) {
    .post-content .gy-lg-12 {
        --czp-gy: 3rem;
    }
}

/* Display utilities — d-none musi być PRZED responsywnymi override'ami (d-md-block itp.),
   bo przy tej samej specyficzności i !important wygrywa reguła późniejsza w pliku. */
.post-content .d-none {
    display: none !important;
}

/* Kolumny — chain przez Bootstrap row, nie dotykamy Uncode's col-lg-* */
.post-content .row:not(.row-parent):not(.row-child)>.col-1 {
    flex: 0 0 auto;
    width: 8.333333%;
}

@media (min-width: 576px) {
    .post-content .d-sm-block {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .post-content .row:not(.row-parent):not(.row-child)>.col-md-1 {
        flex: 0 0 auto;
        width: 8.333333%;
    }

    .post-content .row:not(.row-parent):not(.row-child)>.col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .post-content .row:not(.row-parent):not(.row-child)>.col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .post-content .d-md-block {
        display: block !important;
    }

    .post-content .d-md-none {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .post-content .row:not(.row-parent):not(.row-child)>.col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .post-content .row:not(.row-parent):not(.row-child)>.col-lg-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .post-content .row:not(.row-parent):not(.row-child)>.col-lg-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .post-content .row:not(.row-parent):not(.row-child)>.col-lg-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }
}

/* Flexbox utilities */
.post-content .align-items-center {
    align-items: center !important;
}

.post-content .align-items-start {
    align-items: flex-start !important;
}

.post-content .justify-content-center {
    justify-content: center !important;
}

/* Width utilities */
.post-content .w-50 {
    width: 50% !important;
}

.post-content .w-75 {
    width: 75% !important;
}

/* Spacing — uzupełnienie brakujących (mb-4, mt-6, my-6 są już wyżej w pliku) */
.post-content .m-0 {
    margin: 0 !important;
}

.post-content .mb-3 {
    margin-bottom: 0.75rem !important;
}

.post-content .mb-6 {
    margin-bottom: 1.5rem !important;
}

.post-content .mb-9 {
    margin-bottom: 2.25rem !important;
}

.post-content .mb-12 {
    margin-bottom: 3rem !important;
}

.post-content .mb-16 {
    margin-bottom: 4rem !important;
}

.post-content .mt-0 {
    margin-top: 0 !important;
}

.post-content .mt-3 {
    margin-top: 0.75rem !important;
}

.post-content .mt-12 {
    margin-top: 3rem !important;
}

.post-content .my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.post-content .my-3 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.post-content .my-12 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.post-content .my-16 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

.post-content .px-4 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.post-content .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

@media (min-width: 992px) {
    .post-content .mb-lg-12 {
        margin-bottom: 3rem !important;
    }
}

/* Card component */
.post-content .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.375rem;
}

.post-content .card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

/* Background — bg-pale-green (nie ma jeszcze w pliku, pozostałe są wyżej) */
.post-content .bg-pale-green {
    background-color: #e6f4ea !important;
}

/* Image */
.post-content .img-fluid {
    max-width: 100%;
    height: auto;
}

/* ── END Bootstrap grid shim ─────────────────────────────────────────────── */

/* ── Footnotes (CommonMark FootnoteExtension) ────────────────────────────── */
.czp-footnotes {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e5ec;
    font-size: 0.75rem;
    color: #555;
}

.czp-footnotes ol {
    padding-left: 1.5rem;
}

.czp-footnotes li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.czp-fn-ref {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
    text-decoration: none !important;
    margin-left: 1px;
}

.czp-fn-backref {
    margin-left: 6px;
    text-decoration: none !important;
    font-size: 0.9em;
}

.czp-footnotes li p {
    font-size: 0.75rem;
}

/* ── END Footnotes ───────────────────────────────────────────────────────── */