/*
Theme Name: MZK Theme
Description: Motyw stworzony dla MZK (zgodny z WordPress 7.1, PHP 8.3+ oraz WCAG 2.2 AA)
Author: Marcin Bryniarski
Version: 9.1.0
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.3
Text Domain: mzk-theme
*/
:root {
    --primary-color: #004e92;
    --primary-hover: #003366;
    --accent-color: #9e1926;
    --text-color: #222222;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --container-width: 1200px;
    --zone-g-color: #004494;
    --zone-mg-color: #003366;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}
html {
    scroll-padding-top: 100px;
    scroll-padding-bottom: 100px;
}
.dashicons {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}
.latest-news-section,
.mzk-partners-section,
.stop-group,
.mzk-row-group {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}
body {
    margin: 0;
    font-family: "Inter", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.mzk-svg-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
@keyframes mzkSpin {
    100% { transform: rotate(360deg); }
}
.mzk-spin {
    animation: mzkSpin 1s linear infinite;
}
.mzk-tabular-nums,
.mzk-line-pill,
.line-number-box,
.mzk-res-line,
.mzk-res-times {
    font-variant-numeric: tabular-nums;
}
a { color: var(--primary-color); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-color); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 30px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: all 0.3s ease; }
.header-grid { display: flex; justify-content: space-between; align-items: center; }
.site-branding a { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); text-transform: uppercase; }
.main-navigation > ul,
.main-navigation .menu-horizontal > ul,
.main-navigation > div > ul { 
    list-style: none; 
    display: flex; 
    align-items: center;
    gap: 20px; 
    margin: 0; 
    padding: 0; 
}
.main-navigation li {
    position: relative; 
}
.main-navigation a { 
    display: block;
    color: #333; 
    font-weight: 600; 
    padding: 10px; 
    transition: 0.3s; 
}
.main-navigation a:hover { 
    color: var(--accent-color); 
}
.main-navigation ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    z-index: 1000;
    
    display: flex;
    flex-direction: column; 
    gap: 0; 
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}
.main-navigation ul .sub-menu li {
    width: 100%;
}
.main-navigation ul .sub-menu a {
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f9f9f9;
}
.main-navigation ul .sub-menu a:hover {
    background: #f4f8fc;
    color: var(--primary-color);
    padding-left: 25px; 
}
.main-navigation ul .sub-menu li:last-child a {
    border-bottom: none;
}
.menu-toggle { display: none; background: var(--primary-color); color: #fff; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.mzk-submenu-toggle { display: none; }
.hero-section { background: var(--primary-color); padding: 72px 0 64px 0; color: #fff; position: relative; min-height: 480px; display: flex; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 78, 146, 0.72); z-index: 1; }
.hero-grid { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 960px; margin: 0 auto; text-align: center; overflow: visible !important; }
.hero-search-box { 
    background: #fff; padding: 28px; border-radius: 20px; color: #333; text-align: left; 
    max-width: 780px; width: 100%; margin: 0 auto 2rem auto; box-shadow: 0 18px 45px rgba(0, 20, 50, 0.24); 
    position: relative !important; z-index: 100 !important; overflow: visible !important; 
    pointer-events: auto !important;
}
.mzk-search-wrapper { position: relative; z-index: 9999; }
.mzk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.mzk-form label { display: block; font-weight: bold; font-size: 0.85rem; margin-bottom: 5px; text-transform: uppercase; }
.mzk-input-time { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box !important; padding: 11px 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; color: var(--text-color); }
.ts-control { border: 2px solid #ddd !important; border-radius: 8px !important; padding: 12px !important; display: flex !important; align-items: center !important; }
.ts-control input { display: inline-block !important; opacity: 1 !important; visibility: visible !important; width: 100% !important; background: transparent !important; }
.ts-dropdown { z-index: 99999 !important; border-radius: 0 0 12px 12px !important; box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; margin-top: 5px; border: 1px solid var(--border-color) !important; }
.mzk-btn-search { width: 100%; min-height: 44px; background: var(--accent-color); color: #fff; border: none; padding: 14px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.mzk-btn-search:hover { background: #7d121d; }
@keyframes mzkSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mzkSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
#mzk-results {
    position: absolute; 
    top: calc(100% + 15px); 
    left: 0; 
    right: 0; 
    z-index: 1100; 
    background: #fff; 
    border-radius: 12px; 
    padding: 55px 15px 15px 15px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
    max-height: 420px; 
    overflow-y: auto; 
    border: 1px solid #eee; 
    display: none; 
    
    animation: mzkSlideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
            @media (max-width: 768px) {
                #mzk-route-map { 
                    order: 2; 
                    height: 350px !important; 
                    margin-top: 2rem;
                }
                .line-route-content { 
                    order: 1; 
                }
                .mzk-direction-selector {
                    flex-direction: column; 
                    gap: 10px !important;
                }
                .dir-tab { 
                    font-size: 0.95rem; 
                    padding: 12px; 
                    width: 100%; 
                    justify-content: flex-start; 
                }
                .line-header {
                    padding: 1.5rem 1rem !important; 
                }
                .line-header h1 { 
                    font-size: 2rem !important; 
                }
            }
/* Usunięto starszy kolidujący selektor #mzk-close-results na rzecz klasy .mzk-close-results-btn (min 44x44px) */
.mzk-result-card { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; border-left: 5px solid var(--primary-color); border: 1px solid #f0f0f0; }
.mzk-res-line { font-size: 1.3rem; font-weight: 900; color: var(--primary-color); background: #f0f4f8; min-width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 8px; margin-right: 15px; }
.mzk-res-info { flex-grow: 1; }
.mzk-res-times { font-size: 1.1rem; font-weight: 700; color: #222; display: flex; align-items: center; }
.mzk-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
.mzk-line-tile {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.mzk-line-tile:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.line-number-box {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    background: #f0f4f8;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid transparent;
    transition: 0.3s;
}
.mzk-line-tile:hover .line-number-box {
    background: var(--primary-color);
    color: #fff;
}
.line-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.line-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: #333;
}
.btn-check {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #ddd;
    transition: 0.3s;
}
.mzk-line-tile:hover .btn-check {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
@media (max-width: 600px) {
    .mzk-lines-grid {
        grid-template-columns: 1fr; 
    }
    .mzk-line-tile {
        flex-direction: row; 
        text-align: left;
        padding: 15px;
    }
    .line-number-box {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 0;
        margin-right: 20px;
    }
    .line-footer {
        display: none; 
    }
}
.contact-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 15px; }
.contact-item .dashicons { font-size: 24px; color: var(--accent-color); margin-right: 15px; background: #fff5f5; border-radius: 50%; padding: 8px; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; }
.hero-icons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; margin-top: 3rem; }
.icon-box { background: rgba(0,0,0,0.5); padding: 20px; border-radius: 8px; color: #fff; display: flex; flex-direction: column; align-items: center; text-decoration: none; transition: 0.3s; }
.icon-box:hover { background: var(--primary-color); transform: translateY(-5px); }
@media (max-width: 768px) {
    .site-header { padding: 8px 0 !important; }
    .site-branding img, .site-branding .custom-logo { max-height: 45px !important; width: auto !important; }
    .mzk-form-row, .mzk-line-container, .contact-layout { grid-template-columns: 1fr !important; }
    .hero-icons-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    #mzk-results {
        position: fixed; top: auto; bottom: 0; z-index: 10005; 
        border-radius: 20px 20px 0 0; max-height: 75vh;
    }
}
@media screen {
body.high-contrast,
body.high-contrast :where(*:not(.leaflet-container):not(.leaflet-container *)) {
    background-color: #000 !important;
    background-image: none !important;
    color: #ff0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
body.high-contrast .leaflet-popup-content-wrapper,
body.high-contrast .leaflet-popup-tip,
body.high-contrast .leaflet-popup-content * {
    background-color: #000 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}
body.high-contrast a,
body.high-contrast a * {
    color: #ff0 !important;
    text-decoration: underline !important;
}
body.high-contrast .main-navigation a {
    text-decoration: none !important;
    border: 1px solid transparent !important;
}
body.high-contrast .main-navigation a:hover,
body.high-contrast .main-navigation a:focus {
    border-color: #ff0 !important;
}
body.high-contrast .current-menu-item > a,
body.high-contrast .current-menu-item > a *,
body.high-contrast .active > a,
body.high-contrast .active > a *,
body.high-contrast .active-tab,
body.high-contrast .active-tab * {
    background-color: #ff0 !important;
    color: #000 !important;
    text-decoration: none !important;
}
body.high-contrast table,
body.high-contrast th,
body.high-contrast td,
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea,
body.high-contrast button,
body.high-contrast .mzk-result-card,
body.high-contrast .mzk-line-tile,
body.high-contrast .bip-sidebar,
body.high-contrast .bip-content,
body.high-contrast .contact-card,
body.high-contrast .mzk-dynamic-content {
    border: 1px solid #ff0 !important;
}
body.high-contrast .dashicons {
    color: #ff0 !important;
    background-color: transparent !important;
}
}
/* Zachowano rozmiar 44x44px w .mzk-close-results-btn */
@media (max-width: 768px) {
    #mzk-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0; right: 0;
        height: 70vh; 
        border-radius: 25px 25px 0 0;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    }
    .mzk-result-card {
        padding: 20px;
        margin-bottom: 15px;
        font-size: 1.1rem;
    }
}
.mzk-line-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.route-header {
    background: #f0f4f8;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    text-transform: uppercase;
}
.mzk-timeline {
    list-style: none;
    padding-left: 30px;
    position: relative;
    margin: 0;
}
.mzk-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #dee2e6;
}
.mzk-timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.timeline-dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.2s ease;
}
.timeline-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s;
}
.mzk-timeline-item:hover .timeline-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}
.mzk-timeline-item:hover .timeline-link {
    color: var(--accent-color);
}
@media (max-width: 768px) {
    .mzk-line-container {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .line-header h1 {
        font-size: 2rem !important; 
    }
}
.mzk-modern-board {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}
.mzk-row-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
}
.mzk-row-group:last-child { border-bottom: none; }
.mzk-line-info {
    min-width: 120px;
    padding-right: 20px;
}
.mzk-line-info .line-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
}
.mzk-times-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.time-item {
    background: #ffffff; 
    border: 2px solid #ececec; 
    border-radius: 8px;
    padding: 8px 12px; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); 
    transition: all 0.2s ease;
}
.time-item:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    transform: translateY(-2px);
}
.t-hour { 
    color: #000000; 
    font-size: 1.25rem; 
    letter-spacing: 0.5px;
}
.t-type {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff !important; 
    min-width: 22px;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    margin-left: 4px;
}
.badge-workday { 
    background-color: #404040 !important; 
}
.badge-weekend { 
    background-color: #9e1926 !important; 
}
body.high-contrast .t-type {
    background-color: #ff0 !important; 
    color: #000 !important;            
    border: 1px solid #ff0;
}
.mzk-row-group {
    display: flex;
    align-items: flex-start; 
    padding: 25px;
    border-bottom: 2px solid #f0f0f0;
}
.mzk-row-group:nth-child(even) {
    background-color: #fcfcfc; 
}
.mzk-times-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; 
}
@media (max-width: 768px) {
    .mzk-row-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .mzk-line-info {
        margin-bottom: 15px;
        min-width: auto;
    }
}
.pricing-container {
    margin-top: 2rem;
}
.pricing-title {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
}
.mzk-table-complex {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}
.mzk-table-complex th {
    padding: 15px;
    text-align: left;
    font-weight: 800;
}
.mzk-table-complex thead th {
    text-transform: uppercase;
    font-size: 0.85rem;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}
.mzk-table-complex th.highlight-g {
    background-color: var(--zone-g-color);
    color: #fff;
}
.mzk-table-complex th.highlight-mg {
    background-color: var(--zone-mg-color);
    color: #fff;
}
.mzk-table-complex td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.mzk-table-complex th.ticket-name,
.ticket-name {
    font-weight: 800;
    color: var(--primary-color);
    background: #fcfcfc;
    border-right: 2px solid #eee;
    font-size: 1.1rem;
    text-transform: none;
    padding: 12px 15px;
}
.price-cell {
    font-weight: 700;
    color: #000;
    font-size: 1.05rem;
}
.last-in-group td {
    border-bottom: 3px solid #dee2e6;
}
.ticket-row-main {
    background-color: #fff;
}
.ticket-row-sub {
    background-color: #fafafa;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .mzk-table-complex, 
    .mzk-table-complex thead, 
    .mzk-table-complex tbody, 
    .mzk-table-complex th, 
    .mzk-table-complex td, 
    .mzk-table-complex tr { 
        display: block; 
        width: 100%;
    }
    .mzk-table-complex thead { display: none; } 
    .mzk-table-complex tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
    }
    .mzk-table-complex td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }
    .mzk-table-complex td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 800;
        color: #666;
        text-transform: uppercase;
        font-size: 0.75rem;
    }
    .ticket-name {
        background: var(--primary-color) !important;
        color: #fff !important;
        text-align: center !important;
        padding-left: 15px !important;
        font-size: 1.2rem !important;
    }
    .ticket-name::before { display: none; }
}
.bus-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 20px 0;
}
.bus-line-item {
    background: #f0f0f0;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.2s, background 0.2s;
}
.bus-line-item:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}
body:not(.high-contrast) .time-item.is-next-departure {
    border-color: #2ecc71 !important; 
    background: #eafaf1 !important;
    position: relative;
    transform: scale(1.1);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}
body:not(.high-contrast) .time-item.is-next-departure .t-hour {
    color: #27ae60 !important;
    font-weight: 900;
}
.next-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: bold;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
.time-item.is-next-departure {
    animation: pulse-green 2s infinite;
}
.filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 25px;
    color: #444;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    border: 2px solid transparent;
}
.filter-btn:hover {
    background: #e0e0e0;
}
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 78, 146, 0.2);
}
@media (max-width: 600px) {
    .mzk-filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-btn {
        text-align: center;
    }
}
.line-content-wrapper {
    display: flex;
    flex-direction: column;
}
#mzk-route-map { order: 1; }
.line-route-content { order: 2; }
@media (max-width: 768px) {
    .line-content-wrapper {
        display: flex;
        flex-direction: column;
    }
    .line-route-content { 
        order: 1; 
        margin-bottom: 2rem; 
    }
    #mzk-route-map { 
        order: 2; 
        height: 350px !important; 
    }
    
}
.mzk-search-grid {
    display: grid;
    grid-template-columns: 1fr 50px 1fr; 
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}
.mzk-time-group {
    grid-column: 1 / -1;
    margin-top: 10px;
    display: flex;
    gap: 15px;
}
.mzk-time-item {
    flex: 1;
    min-width: 0;
}
.mzk-swap-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5px; 
}
.mzk-btn-swap {
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.mzk-btn-swap:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(180deg);
}
#mzk-results {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 10000; 
    border: 1px solid #ddd;
}
@media (max-width: 768px) {
    .mzk-search-grid { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .mzk-btn-swap { 
        transform: rotate(90deg); 
        margin: 0 auto; 
    }
    .mzk-btn-swap:hover {
        transform: rotate(270deg);
    }
    #mzk-results {
        position: fixed;
        bottom: 0; top: auto;
        height: 70vh;
    }
    .mzk-swap-container {
        padding: 10px 0;
    }
    .mzk-time-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    .mzk-time-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }
}
.mzk-map-sidebar .mzk-search-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mzk-map-sidebar .ts-wrapper {
    width: 100% !important;
    min-width: 100%;
}
.mzk-map-sidebar .mzk-form-group {
    width: 100%;
    margin-bottom: 0;
}
.mzk-map-sidebar .mzk-swap-container {
    text-align: center;
    margin: -5px 0;
}
.mzk-map-sidebar .mzk-btn-swap {
    background: #f0f0f0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #ddd;
}
.mzk-map-sidebar .mzk-btn-search {
    width: 100%;
    min-height: 44px;
    margin-top: 15px;
    padding: 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

/* ==========================================================================
   Leaflet Critical Core & Map Planner Layout Stabilizer
   ========================================================================== */
.leaflet-container {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100%;
}
#mzk-full-map.leaflet-container {
    height: 100% !important;
}
#mzk-route-map,
#mzk-route-map.leaflet-container {
    height: 500px !important;
    min-height: 500px !important;
    width: 100% !important;
    display: block !important;
}
@media (max-width: 768px) {
    #mzk-route-map,
    #mzk-route-map.leaflet-container {
        height: 350px !important;
        min-height: 350px !important;
    }
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}
.leaflet-tile {
    user-select: none;
    -webkit-user-drag: none;
    max-width: none !important;
    max-height: none !important;
}

.mzk-map-page-container {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    min-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}
.mzk-map-sidebar {
    flex: 0 0 380px !important;
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    padding: 25px !important;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1) !important;
    z-index: 100 !important;
    overflow-y: auto !important;
    height: 100% !important;
}
.mzk-map-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 50 !important;
}
#mzk-full-map {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .mzk-map-page-container {
        flex-direction: column !important; 
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    .mzk-map-sidebar {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        position: relative !important;
        z-index: 101 !important;
        order: 1 !important;
    }
    .mzk-map-wrapper {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        height: 60vh !important;
        min-height: 400px !important;
        position: relative !important;
        order: 2 !important;
    }
    #mzk-full-map {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: 60vh !important; 
        min-height: 400px !important;
        width: 100% !important;
    }
    
    .mzk-map-sidebar .sidebar-desc { display: none !important; }
    .mzk-map-sidebar h2 { font-size: 1.2rem !important; margin-bottom: 10px !important; }
}

/* ==========================================================================
   Mapa punktów sprzedaży biletów (/bilety/)
   ========================================================================== */
#mzk-ticket-map,
.mzk-ticket-map-container {
    height: 500px !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    margin: 30px 0 !important;
    border: 3px solid var(--primary-color, #004e92) !important;
    z-index: 1 !important;
    background: #e5e5e5 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #mzk-ticket-map,
    .mzk-ticket-map-container {
        height: 380px !important;
        margin: 20px 0 !important;
    }
    .ticket-calculator {
        padding: 1.5rem 1rem !important;
        margin: 2rem 0 !important;
    }
}
.mzk-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 78, 146, 0.5);
    backdrop-filter: blur(3px);
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mzk-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 768px) {
    .site-header { z-index: 10020; position: relative; }
    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        z-index: 10030;
        position: relative;
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 6px;
        transition: 0.3s;
    }
    .menu-toggle:hover { background: var(--accent-color); }
    .main-navigation > ul,
    .main-navigation .menu-horizontal > ul,
    .main-navigation > div > ul { 
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        padding: 80px 0 30px 0;
        z-index: 10025;
        display: block;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        margin: 0;
    }
    .main-navigation.toggled > ul,
    .main-navigation.toggled .menu-horizontal > ul,
    .main-navigation.toggled > div > ul { left: 0; }
    .main-navigation > ul > li,
    .main-navigation .menu-horizontal > ul > li,
    .main-navigation > div > ul > li { 
        display: block; width: 100%; border-bottom: 1px solid #f0f0f0; position: relative;
    }
    .main-navigation > ul > li > a,
    .main-navigation .menu-horizontal > ul > li > a,
    .main-navigation > div > ul > li > a { 
        display: block;
        padding: 18px 20px;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary-color);
        text-align: left;
    }
    .main-navigation ul .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        width: 100%;
        height: auto;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
    .main-navigation ul li.mzk-submenu-open > .sub-menu {
        display: block;
    }
    .main-navigation ul .sub-menu li a {
        padding: 12px 20px 12px 40px;
        font-size: 1rem;
        font-weight: normal;
        color: #555;
        background: transparent;
    }
    .mzk-submenu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 60px;
        height: 60px;
        background: transparent;
        border: none;
        border-left: 1px solid #f0f0f0;
        color: var(--primary-color);
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
    }
    .mzk-submenu-open > .mzk-submenu-toggle { background: #eef5fb; }
    .mzk-submenu-open > .mzk-submenu-toggle .dashicons { transform: rotate(180deg); }
    
    .main-navigation > ul > li.menu-item-has-children > a { padding-right: 70px; }
}
.mzk-page-contact {
    padding: 3rem 0;
}
.mzk-contact-header {
    text-align: center;
    margin-bottom: 3rem;
}
.mzk-contact-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.mzk-contact-desc {
    font-size: 1.1rem;
    color: #666;
}
.contact-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.contact-subtext {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    margin-top: -10px;
}
.contact-highlight {
    color: var(--primary-color);
    font-weight: bold;
}
.contact-link {
    font-weight: bold;
    color: var(--primary-color);
}
.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: inherit;
}
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button:hover {
    background: var(--accent-color);
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}
@media (max-width: 992px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .leaflet-popup-close-button {
        width: 35px !important;
        height: 35px !important;
        font-size: 24px !important;
        line-height: 35px !important;
        color: var(--accent-color, #c92a39) !important;
        right: 5px !important;
        top: 5px !important;
        background: rgba(255,255,255,0.8) !important;
        border-radius: 50% !important;
    }
}
body:not(.high-contrast) .bip-nav ul li a:hover {
    background: #eef4f9 !important;
    color: var(--primary-color) !important;
    padding-left: 20px !important;
}
.bip-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}
@media (max-width: 992px) {
    .bip-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        width: 100% !important;
        max-width: 100vw !important; 
        overflow: hidden !important; 
    }
    .bip-sidebar {
        order: 2;
        width: 100% !important;
        background: #f8f9fa;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #eee;
        box-sizing: border-box !important;
    }
    .bip-content {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    .bip-content table, 
    .bip-content tbody, 
    .bip-content tr, 
    .bip-content td {
        max-width: 100% !important;
    }
    .bip-content table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch;
        border: 1px solid #eee;
    }
    .bip-content img, 
    .bip-content iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}
.mzk-editable-content a img {
    max-height: 60px !important;
    width: auto !important;
    background: transparent !important; 
    box-shadow: none !important;        
    border-radius: 0 !important;        
    transition: transform 0.3s ease;
    display: inline-block;
}
.mzk-editable-content a:hover img {
    transform: translateY(-5px);
}
.mzk-editable-content .wp-block-columns {
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.mzk-editable-content .wp-block-column {
    text-align: center;
    margin-bottom: 15px; 
}
.mzk-partners-section {
    background: #fcfcfc;
    padding: 50px 0;
    border-top: 1px solid #eee;
    overflow: hidden;
    position: relative;
}
.mzk-partners-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 800;
}
.mzk-carousel-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.mzk-carousel-container::before,
.mzk-carousel-container::after {
    content: ''; position: absolute; top: 0; width: 60px; height: 100%; z-index: 2;
}
.mzk-carousel-container::before { left: 0; background: linear-gradient(to right, #fcfcfc 0%, transparent 100%); }
.mzk-carousel-container::after { right: 0; background: linear-gradient(to left, #fcfcfc 0%, transparent 100%); }
.mzk-carousel-track {
    display: inline-block;
    animation: mzk-marquee 35s linear infinite; 
}
.mzk-carousel-track:hover,
.mzk-carousel-track:focus-within {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .mzk-carousel-track,
    .time-item.is-next-departure,
    .mzk-spin,
    #mzk-results {
        animation: none !important;
    }
}
.mzk-partner-item {
    display: inline-block;
    vertical-align: middle;
    margin: 0 50px; 
    transition: all 0.3s ease;
}
.mzk-partner-item:hover {
    transform: scale(1.1); 
}
.mzk-partner-item img {
    max-height: 90px; 
    width: auto;
    display: block;
}
@keyframes mzk-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .mzk-partner-item img { max-height: 65px; } 
    .mzk-partner-item { margin: 0 25px; }
}
body.high-contrast .mzk-partner-item { filter: grayscale(100%) brightness(200%) !important; }
.mzk-dynamic-content .wp-block-details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.mzk-dynamic-content .wp-block-details[open] {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,78,146,0.1);
}
.mzk-dynamic-content .wp-block-details summary {
    padding: 18px 45px 18px 20px; 
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; 
    position: relative;
    outline: none;
}
.mzk-dynamic-content .wp-block-details summary:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: -3px;
    border-radius: 8px;
}
.mzk-dynamic-content .wp-block-details summary::-webkit-details-marker {
    display: none;
}
.mzk-dynamic-content .wp-block-details summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--accent-color);
    font-family: monospace;
    font-weight: normal;
    transition: transform 0.3s ease;
}
.mzk-dynamic-content .wp-block-details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}
.mzk-dynamic-content .wp-block-details > *:not(summary) {
    padding: 0 20px 20px 20px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    border-top: 1px solid #f4f4f4;
    margin-top: 5px;
    padding-top: 15px;
}
body.high-contrast .mzk-dynamic-content .wp-block-details { border-color: #ff0 !important; }
body.high-contrast .mzk-dynamic-content .wp-block-details summary { color: #ff0 !important; }
body.high-contrast .mzk-dynamic-content .wp-block-details summary::after { color: #ff0 !important; }


a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #c92a39;
    outline-offset: 3px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible), 
input:focus:not(:focus-visible), select:focus:not(:focus-visible), 
textarea:focus:not(:focus-visible) {
    outline: none;
}


.mzk-bip-link:hover, .mzk-bip-link:focus {
    opacity: 0.8 !important;
}


select.mzk-select-search {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color, #222);
    background-color: #fff;
    cursor: pointer;
    box-sizing: border-box;
}
select.mzk-select-search.tomselected {
    display: none !important;
}


/* ==========================================================================
   MODERNIZACJA UI/UX - CZERWIEC 2026 (Liquid Glass, Bento Grid, Calm UI)
   ========================================================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.03);
    --shadow-glass: 0 8px 32px 0 rgba(0, 78, 146, 0.08);
    --bento-gap: 24px;
    --radius-bento: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. Liquid Glass */
.liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-bento);
}

/* 2. Bento Grid Layout Helpers (podstrony z .bento-col-*) */
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 992px) {
    .bento-col-4 { grid-column: span 6; }
}

@media (max-width: 768px) {
    .bento-col-4, .bento-col-6, .bento-col-8 { grid-column: span 12; }
}

/* 3. Calm Interfaces (Subtelne ulepszenia istniejacych elementow) */
.mzk-line-tile {
    border-radius: var(--radius-bento);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
}

.mzk-modern-board, .contact-card {
    border-radius: var(--radius-bento);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
}

/* --- PREMIUM RESPONSIVE HOMEPAGE REDESIGN (LISTOPAD 2026) --- */

/* Hero Section Updates & Vector Transit Mesh Fallback */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 18% 20%, #0a6bc4 0%, #004e92 48%, #00234d 100%);
    overflow: hidden;
}
.hero-bg-image,
.hero-network-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 56, 118, 0.86) 0%, rgba(0, 26, 68, 0.58) 100%);
    z-index: 1;
}
.hero-section.is-hero-vector .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 42, 92, 0.35) 0%, rgba(0, 22, 56, 0.55) 100%);
}
.hero-grid {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem 0;
}
.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0.94;
    margin: 0 auto 1.75rem auto;
    max-width: 620px;
}
.hero-search-box.liquid-glass {
    margin: 0 auto 2rem auto;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 50px rgba(0, 18, 48, 0.28);
}
/* Rozwijane w przeplywie wyniki planera na stronie glownej (czytelne na desktopie i mobile) */
.hero-search-box #mzk-results {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 1.25rem;
    padding: 18px 20px;
    max-height: 540px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 40, 90, 0.12);
    border: 1px solid #dbe4f0;
    z-index: 20;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 780px;
    margin: 0 auto;
}
.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 16, 48, 0.16);
}
.bento-item:hover,
.bento-item:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 16, 48, 0.24);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}
.bento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    margin-bottom: 0.65rem;
    color: #fff;
    transition: transform 0.25s ease, background 0.25s ease;
}
.bento-icon .mzk-svg-icon {
    width: 24px;
    height: 24px;
}
.bento-item:hover .bento-icon {
    transform: scale(1.08);
    background: rgba(255, 204, 0, 0.24);
}
.bento-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

/* Alerts Section */
.alerts-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #fff5f5, #ffffff);
}
.alerts-container {
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(201, 42, 57, 0.1);
    overflow: hidden;
}
.alerts-header {
    background: var(--accent-color);
    color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alerts-header h2 {
    margin: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.alerts-list {
    padding: 20px 25px;
}

/* News Section */
.latest-news-section {
    padding: 5rem 0;
    background: #fff;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.news-card {
    border: 1px solid #eee;
    padding: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.news-card-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
}
.news-card:hover,
.news-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.news-card-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}
.news-meta {
    color: #404040; /* Kontrast > 10:1 (WCAG AAA) */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.news-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.2s ease;
}
.news-card-link:hover .news-title,
.news-card-link:focus-visible .news-title {
    color: var(--primary-color);
}
.news-excerpt {
    margin-bottom: 2rem;
    color: #3d3d3d;
    flex-grow: 1;
    line-height: 1.7;
}
.read-more {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.news-card-link:hover .read-more,
.news-card-link:focus-visible .read-more {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* WCAG 2.2 AA 2.5.8 Target Size (Minimum 24x24px) */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.mzk-footer-link,
.mzk-alerts-list a,
.mzk-cookie-link,
.mzk-stop-link,
.timeline-link,
.contact-link,
.mzk-bip-link,
#mzk-use-location {
    min-height: 28px;
    min-width: 28px;
}
.mzk-alerts-list a,
.mzk-stop-link,
.timeline-link,
.contact-link {
    display: inline-flex;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-section {
        padding: 44px 0 40px 0;
        min-height: 0;
    }
    .hero-search-box,
    .hero-search-box.liquid-glass {
        padding: 18px 16px;
        border-radius: 18px;
        margin-bottom: 1.25rem;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .bento-item {
        padding: 1rem 0.75rem;
        border-radius: 14px;
    }
    .alerts-section {
        padding: 2rem 0;
    }
    .latest-news-section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* View Transitions API (WordPress 7.1 / 2026 MPA Navigation - respektuje prefers-reduced-motion z nagłówka pliku) */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.25s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.site-branding { view-transition-name: mzk-branding; }
.hero-search-box { view-transition-name: mzk-search-box; }
.line-header { view-transition-name: mzk-line-header; }
.stop-header { view-transition-name: mzk-stop-header; }

/* WCAG 2.2 SC 2.5.8 & EAA: Target Size Minimum (44x44px touch target) */
button,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.mzk-btn,
.wcag-btn,
.dir-tab,
.mzk-day-tab,
.mzk-popup-btn,
.mzk-cookie-btn,
.mzk-locate-btn,
.btn-pdf-download {
    min-height: 44px;
    box-sizing: border-box;
}

/* WCAG 2.2 Focus Visible & Focus Appearance (SC 2.4.11 & 2.4.13) */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}
body.high-contrast :focus-visible {
    outline: 4px solid #ff0 !important;
    outline-offset: 4px !important;
}

/* Dostosowanie do systemowych preferencji wysokiego kontrastu */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #002d5c;
        --accent-color: #7a121c;
        --text-color: #000000;
        --border-color: #000000;
    }
    body {
        font-weight: 500;
    }
    a {
        text-decoration: underline !important;
    }
}

/* ==========================================================================
   Moduł Ulubionych Linii i Przystanków (Favorites System) & PWA Banner
   ========================================================================== */
.mzk-fav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 6px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
    border-radius: 50%;
}
.mzk-fav-btn:hover {
    color: #f59e0b !important;
    transform: scale(1.18);
}
.mzk-fav-btn.is-favorite {
    color: #f59e0b !important;
}
.mzk-fav-btn:focus-visible {
    outline: 3px solid #f59e0b !important;
    outline-offset: 2px !important;
}
.mzk-favorites-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.mzk-favorites-pill:hover {
    background: var(--primary-color, #004e92);
    color: #fff !important;
    border-color: var(--primary-color, #004e92);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,78,146,0.18);
}
.mzk-favorites-pill .pill-badge {
    background: var(--primary-color, #004e92);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.mzk-favorites-pill:hover .pill-badge {
    background: #ffcc00;
    color: #002d5c;
}
body:not(.high-contrast) .btn-pwa-install:hover {
    background: #ffd633 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ==========================================================================
   HEADER, ACCESSIBILITY BAR, SEARCH HELPERS & FOOTER (Migracja z inline CSS)
   ========================================================================== */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0 !important;
    position: static !important;
}
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight,
font {
    background-color: transparent !important;
    box-shadow: none !important;
}

.top-bar {
    background: #f4f6f9;
    border-bottom: 1px solid #dbe2ea;
    padding: 6px 0;
    font-size: 0.85rem;
}
.top-bar-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-label {
    font-weight: 700;
    color: #334155;
}
.wcag-btn {
    background: #fff;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 6px 12px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.wcag-btn:hover,
.wcag-btn[aria-pressed="true"] {
    background: #e2e8f0;
    border-color: var(--primary-color);
}
.mzk-theme-toggle .mzk-icon-sun { display: none; }
html[data-theme="dark"] .mzk-theme-toggle .mzk-icon-moon { display: none; }
html[data-theme="dark"] .mzk-theme-toggle .mzk-icon-sun { display: inline-block; color: #facc15; }

.mzk-font-group {
    display: inline-flex;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.mzk-font-group button {
    background: transparent;
    border: none;
    border-right: 1px solid #cbd5e1;
    padding: 6px 12px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
}
.mzk-font-group button:last-child {
    border-right: none;
}
.mzk-font-group button:hover {
    background: #f1f5f9;
}
.mzk-bip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 4px 6px;
    transition: opacity 0.2s;
}
.mzk-bip-logo {
    height: 24px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}
.site-title-link {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .top-bar {
        padding: 4px 0;
        font-size: 0.75rem;
    }
    .top-bar-container {
        gap: 6px;
        justify-content: center;
    }
    .top-bar-label {
        font-size: 0.75rem;
    }
    .top-bar .wcag-btn {
        min-height: 36px;
        min-width: 36px;
        padding: 4px 10px;
        font-size: 0.78rem;
        gap: 4px;
        border-radius: 6px;
    }
    .top-bar .wcag-btn .mzk-svg-icon {
        width: 15px;
        height: 15px;
    }
    .top-bar .mzk-font-group {
        border-radius: 6px;
    }
    .top-bar .mzk-font-group button {
        min-height: 36px;
        min-width: 36px;
        padding: 4px 9px;
        font-size: 0.78rem;
    }
    .top-bar .mzk-bip-link {
        min-height: 36px;
        min-width: 36px;
        padding: 2px 6px;
    }
    .top-bar .mzk-bip-logo {
        height: 19px;
    }
}
@media (max-width: 480px) {
    .top-bar-label {
        display: none;
    }
}

/* Search Box Helpers & Results Flow */
.mzk-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}
.mzk-label-row label {
    margin-bottom: 0;
}
.mzk-locate-inline-btn {
    background: #eef5fb;
    border: 1px solid #c7ddf5;
    color: #003666;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.mzk-locate-inline-btn:hover {
    background: #dcebfa;
    border-color: var(--primary-color);
}
.mzk-locate-inline-btn .mzk-svg-icon {
    width: 16px;
    height: 16px;
}
.mzk-select-day-type {
    background-color: #fff;
}
#mzk-homepage-planer-hint,
#mzk-recent-routes,
#mzk-pwa-banner,
#mzk-favorites-section,
#mzk-results {
    display: none;
}
.mzk-homepage-planer-hint {
    margin-top: 12px;
    font-size: 0.88rem;
    background: #eef5fb;
    border: 1px solid #cce0f5;
    border-radius: 10px;
    padding: 10px 14px;
    color: #003666;
}
.mzk-recent-routes {
    margin-top: 14px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.mzk-close-results-btn {
    position: sticky;
    top: 4px;
    right: 4px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -36px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: #9e1926;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.mzk-results-alert {
    padding: 36px 20px;
    text-align: center;
    color: #9e1926;
    font-size: 1.05rem;
}
.mzk-transfer-cta-box {
    margin-top: 16px;
    padding: 16px;
    background: #eef5fb;
    border: 1px solid #b8d4f0;
    border-radius: 12px;
    text-align: center;
}
.mzk-transfer-cta-title {
    font-weight: 700;
    color: #004e92;
    margin-bottom: 6px;
}
.mzk-transfer-cta-desc {
    font-size: 0.9rem;
    color: #334155;
    margin: 0 0 12px 0;
}
.mzk-transfer-cta-btn {
    background: #004e92;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
@media (max-width: 768px) {
    .hero-search-box #mzk-results {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        height: auto;
        max-height: 500px;
        margin-top: 1rem;
        padding: 16px 14px;
    }
}

/* ==========================================================================
   SZYBKI WYBÓR LINII NA STRONIE GŁÓWNEJ
   ========================================================================== */
.mzk-quick-lines-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
}
.mzk-quick-lines-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mzk-quick-lines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.mzk-quick-lines-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}
.mzk-quick-lines-label .mzk-svg-icon {
    color: var(--primary-color);
}
.mzk-quick-lines-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 44px;
    padding: 4px 8px;
}
.mzk-quick-lines-all .mzk-svg-icon {
    width: 16px;
    height: 16px;
}
.mzk-quick-lines-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mzk-line-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.mzk-line-pill:hover,
.mzk-line-pill:focus-visible {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* PWA Banner, Ulubione, Aktualności CTA */
.mzk-pwa-banner {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.mzk-pwa-card {
    background: linear-gradient(135deg, #004e92 0%, #002d5c 100%);
    color: #fff;
    border-radius: 14px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 78, 146, 0.22);
}
.mzk-pwa-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mzk-pwa-icon {
    color: #ffcc00;
    display: inline-flex;
}
.mzk-pwa-icon .mzk-svg-icon {
    width: 32px;
    height: 32px;
}
.mzk-pwa-title {
    font-size: 1.05rem;
    display: block;
}
.mzk-pwa-subtitle {
    font-size: 0.88rem;
    opacity: 0.92;
}
.mzk-pwa-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-pwa-install {
    background: #ffcc00;
    color: #002d5c;
    font-weight: 700;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.btn-pwa-dismiss {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    font-size: 1.1rem;
}

.mzk-favorites-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.mzk-favorites-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.mzk-favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.mzk-favorites-heading {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mzk-favorites-star {
    color: #f59e0b;
    display: inline-flex;
}
.mzk-favorites-star .mzk-svg-icon {
    width: 22px;
    height: 22px;
    fill: #f59e0b;
}
.mzk-favorites-note {
    font-size: 0.85rem;
    color: #64748b;
}
.mzk-favorites-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mzk-alerts-header-icon {
    display: inline-flex;
}
.mzk-alerts-header-icon .mzk-svg-icon {
    width: 24px;
    height: 24px;
}

.news-all-container {
    text-align: center;
    margin-top: 2.5rem;
}
.mzk-btn-news-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    min-height: 44px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0,78,146,0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.mzk-btn-news-all:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.site-footer,
body:not(.high-contrast) #colophon.site-footer {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 3.5rem 0;
    margin-top: 4rem;
    font-size: 1rem;
    border-top: 5px solid var(--primary-color);
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-copy {
    color: #e2e8f0;
    font-weight: 400;
}
.footer-brand {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #f8fafc;
}
.footer-rights {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-sep {
    color: #94a3b8;
}
.mzk-footer-link,
body:not(.high-contrast) #colophon.site-footer a,
body:not(.high-contrast) #colophon.site-footer a:link,
body:not(.high-contrast) #colophon.site-footer a:visited,
body:not(.high-contrast) #colophon.site-footer .mzk-footer-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 6px;
    transition: color 0.2s, text-decoration 0.2s;
}
.mzk-footer-link:hover,
.mzk-footer-link:focus,
body:not(.high-contrast) #colophon.site-footer a:hover,
body:not(.high-contrast) #colophon.site-footer a:focus,
body:not(.high-contrast) #colophon.site-footer a:focus-visible,
body:not(.high-contrast) #colophon.site-footer .mzk-footer-link:hover,
body:not(.high-contrast) #colophon.site-footer .mzk-footer-link:focus,
body:not(.high-contrast) #colophon.site-footer .mzk-footer-link:focus-visible {
    color: #fde047 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: 2px dashed #fde047;
    outline-offset: 4px;
    background-color: transparent !important;
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav-list {
        justify-content: center;
    }
}

/* ==========================================================================
   NATYWNY TRYB CIEMNY (Dark Mode 2026 - respektuje priorytet .high-contrast)
   ========================================================================== */
@media screen {
html[data-theme="dark"] body:not(.high-contrast) {
    --bg-color: #0b1220;
    --bg-light: #131d31;
    --text-color: #e2e8f0;
    --border-color: #26344d;
    background-color: #0b1220;
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .top-bar {
    background: #0f172a;
    border-bottom-color: #1e293b;
}
html[data-theme="dark"] body:not(.high-contrast) .top-bar-label {
    color: #cbd5e1;
}
html[data-theme="dark"] body:not(.high-contrast) .wcag-btn,
html[data-theme="dark"] body:not(.high-contrast) .mzk-font-group {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-font-group button {
    color: #f8fafc;
    border-right-color: #334155;
}
html[data-theme="dark"] body:not(.high-contrast) .wcag-btn:hover,
html[data-theme="dark"] body:not(.high-contrast) .mzk-font-group button:hover {
    background: #334155;
}
html[data-theme="dark"] body:not(.high-contrast) .site-header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(148, 163, 184, 0.16);
}
html[data-theme="dark"] body:not(.high-contrast) .site-title-link,
html[data-theme="dark"] body:not(.high-contrast) .site-branding a {
    color: #60a5fa;
}
html[data-theme="dark"] body:not(.high-contrast) .main-navigation a {
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .main-navigation a:hover {
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .main-navigation ul .sub-menu {
    background: #1e293b;
    border-color: #334155;
}
html[data-theme="dark"] body:not(.high-contrast) .main-navigation ul .sub-menu a {
    color: #cbd5e1;
    border-bottom-color: #293548;
}
html[data-theme="dark"] body:not(.high-contrast) .main-navigation ul .sub-menu a:hover {
    background: #273449;
    color: #fff;
}
}
@media screen and (max-width: 768px) {
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > ul,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation .menu-horizontal > ul,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > div > ul,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation.toggled .menu-horizontal {
        background: #0f172a !important;
    }
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > ul > li,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation .menu-horizontal > ul > li,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > div > ul > li,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation.toggled .menu-horizontal li {
        border-bottom-color: #1e293b !important;
    }
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation .menu-horizontal > li > a,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > ul > li > a,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation .menu-horizontal > ul > li > a,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > div > ul > li > a {
        color: #e2e8f0 !important;
    }
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation .menu-horizontal .sub-menu,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > div > ul .sub-menu,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > ul .sub-menu {
        background: #1e293b !important;
    }
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation .menu-horizontal .sub-menu li a,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > div > ul .sub-menu li a,
    html[data-theme="dark"] body:not(.high-contrast) .main-navigation > ul .sub-menu li a {
        color: #cbd5e1 !important;
        border-bottom-color: #293548 !important;
    }
    html[data-theme="dark"] body:not(.high-contrast) .mzk-submenu-toggle {
        color: #93c5fd !important;
        border-left-color: #1e293b !important;
    }
    html[data-theme="dark"] body:not(.high-contrast) .mzk-submenu-open > .mzk-submenu-toggle {
        background: #1e293b !important;
        color: #93c5fd !important;
    }
}
@media screen {
html[data-theme="dark"] body:not(.high-contrast) .hero-search-box,
html[data-theme="dark"] body:not(.high-contrast) .hero-search-box.liquid-glass {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-locate-inline-btn {
    background: #1e293b;
    border-color: #334155;
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .ts-control,
html[data-theme="dark"] body:not(.high-contrast) .mzk-input-time,
html[data-theme="dark"] body:not(.high-contrast) .mzk-select-day-type {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.high-contrast) .ts-control input,
html[data-theme="dark"] body:not(.high-contrast) .ts-control .item {
    color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.high-contrast) .ts-dropdown {
    background: #1e293b;
    border-color: #334155 !important;
    color: #f1f5f9;
}
html[data-theme="dark"] body:not(.high-contrast) .ts-dropdown .option {
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .ts-dropdown .no-results {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .ts-dropdown .active {
    background: #2563eb;
    color: #ffffff;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-btn-swap {
    background: #1e293b;
    border-color: #334155;
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) #mzk-results,
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card,
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card.transfer-card,
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card.alternative-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card span[style*="color: #444"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card span[style*="color:#444"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-intermediate-stops,
html[data-theme="dark"] body:not(.high-contrast) .mzk-intermediate-stops summary,
html[data-theme="dark"] body:not(.high-contrast) .mzk-intermediate-stops li {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-intermediate-stops li span {
    color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.high-contrast) #mzk-results a[style*="color:#004e92"],
html[data-theme="dark"] body:not(.high-contrast) #mzk-results a[style*="color: #004e92"],
html[data-theme="dark"] body:not(.high-contrast) #direct-results-content a[style*="color:#004e92"],
html[data-theme="dark"] body:not(.high-contrast) #direct-results-content a[style*="color: #004e92"],
html[data-theme="dark"] body:not(.high-contrast) #transfer-results-content a[style*="color:#004e92"],
html[data-theme="dark"] body:not(.high-contrast) #transfer-results-content a[style*="color: #004e92"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card.alternative-card > div[style*="color: #004e92"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card.alternative-card > div[style*="color:#004e92"] {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) #mzk-results a[style*="e6f0fa"],
html[data-theme="dark"] body:not(.high-contrast) #direct-results-content a[style*="e6f0fa"],
html[data-theme="dark"] body:not(.high-contrast) #transfer-results-content a[style*="e6f0fa"] {
    background: #1e3a5f !important;
    border: 1px solid #3b82f6 !important;
    color: #dbeafe !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-result-card.transfer-card > div[style*="color: #27ae60"] {
    color: #4ade80 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-no-results span[style*="color: #d63638"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-no-results span[style*="color:#d63638"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-no-results .dashicons {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-res-line {
    background: #1e293b;
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-res-times {
    color: #f8fafc;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-homepage-planer-hint,
html[data-theme="dark"] body:not(.high-contrast) .mzk-transfer-cta-box {
    background: #172554;
    border-color: #1e40af;
    color: #dbeafe;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-homepage-planer-hint a,
html[data-theme="dark"] body:not(.high-contrast) .mzk-transfer-cta-title {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-transfer-cta-desc {
    color: #cbd5e1;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-quick-lines-section {
    background: #0f172a;
    border-bottom-color: #1e293b;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-quick-lines-label,
html[data-theme="dark"] body:not(.high-contrast) .mzk-quick-lines-all {
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-pill {
    background: #1e293b;
    border-color: #334155;
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-pill:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-favorites-card,
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile,
html[data-theme="dark"] body:not(.high-contrast) .contact-card,
html[data-theme="dark"] body:not(.high-contrast) .news-card,
html[data-theme="dark"] body:not(.high-contrast) .alerts-container {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .page-title,
html[data-theme="dark"] body:not(.high-contrast) .stop-title {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-favorites-heading,
html[data-theme="dark"] body:not(.high-contrast) .section-title,
html[data-theme="dark"] body:not(.high-contrast) .news-title,
html[data-theme="dark"] body:not(.high-contrast) .line-title {
    color: #f1f5f9;
}
html[data-theme="dark"] body:not(.high-contrast) .news-meta,
html[data-theme="dark"] body:not(.high-contrast) .news-excerpt,
html[data-theme="dark"] body:not(.high-contrast) .mzk-favorites-note {
    color: #94a3b8;
}
html[data-theme="dark"] body:not(.high-contrast) .read-more {
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-favorites-pill {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
html[data-theme="dark"] body:not(.high-contrast) .alerts-section {
    background: linear-gradient(to bottom, #241016, #0b1220);
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-alerts-list a {
    background: #1e293b !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-alerts-list a div {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .latest-news-section,
html[data-theme="dark"] body:not(.high-contrast) .mzk-partners-section {
    background: #0b1220;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-carousel-container::before {
    background: linear-gradient(to right, #0b1220 0%, transparent 100%);
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-carousel-container::after {
    background: linear-gradient(to left, #0b1220 0%, transparent 100%);
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-partners-title {
    color: #f1f5f9;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-cookie-banner {
    background: #0f172a;
    border-top-color: #3b82f6;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-cookie-text {
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-cookie-link {
    color: #93c5fd;
}
}

/* =========================================================================
   PODSTRONY: RESPONSYWNOŚĆ, WCAG & TRYB CIEMNY (html[data-theme="dark"])
   ========================================================================= */
.mzk-pagination a,
.mzk-pagination span.page-numbers {
    min-width: 44px;
    min-height: 44px;
}

.mzk-404-search-box {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

@media screen {
/* Mapy & Planer (page-mapa.php) */
html[data-theme="dark"] body:not(.high-contrast) .mzk-map-sidebar {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-map-sidebar h2 {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) #direct-results-title {
    color: #f1f5f9;
    border-bottom-color: #334155 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-locate-btn,
html[data-theme="dark"] body:not(.high-contrast) .mzk-popup-btn {
    background: #1e293b;
    border-color: #334155;
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-locate-btn:hover,
html[data-theme="dark"] body:not(.high-contrast) .mzk-popup-btn:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}
html[data-theme="dark"] body:not(.high-contrast) .leaflet-popup-content-wrapper,
html[data-theme="dark"] body:not(.high-contrast) .leaflet-popup-tip {
    background: #131d31;
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-popup-title,
html[data-theme="dark"] body:not(.high-contrast) .leaflet-popup-content strong[style*="color:#004e92"],
html[data-theme="dark"] body:not(.high-contrast) .leaflet-popup-content strong[style*="color: #004e92"] {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .leaflet-popup-content div[style*="color:#555"],
html[data-theme="dark"] body:not(.high-contrast) .leaflet-popup-content div[style*="color: #555"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-popup-lines-wrapper > span {
    background: #131d31 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #mzk-recent-routes > span {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #mzk-recent-routes button {
    background: #1e293b !important;
    color: #93c5fd !important;
    border-color: #334155 !important;
}

/* Pojedyncza linia i przystanek (single-bus_line.php, single-bus_stop.php) */
html[data-theme="dark"] body:not(.high-contrast) .dir-tab {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .dir-tab.active-tab {
    background: #1e40af !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-route-col,
html[data-theme="dark"] body:not(.high-contrast) .mzk-empty-state,
html[data-theme="dark"] body:not(.high-contrast) .mzk-highlighted-body,
html[data-theme="dark"] body:not(.high-contrast) .mzk-legend,
html[data-theme="dark"] body:not(.high-contrast) .mzk-no-results {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-empty-state p {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-empty-state .dashicons {
    color: #94a3b8 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .route-header {
    background: #16233b !important;
    border-color: #26344d !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-nav-walk-btn {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-route-col a,
html[data-theme="dark"] body:not(.high-contrast) .mzk-legend h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-legend h3,
html[data-theme="dark"] body:not(.high-contrast) .mzk-stop-page h2 {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-legend ul {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-day-selector {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-day-tab {
    color: #cbd5e1;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-day-tab.active-day {
    background: #1e293b;
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-route-title {
    background: #16233b !important;
    border-color: #26344d !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-times-grid {
    background: #0f172a !important;
    border-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .time-item {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .t-hour {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .time-item.is-passed {
    background: #0b1220;
    color: #64748b;
}
html[data-theme="dark"] body:not(.high-contrast) .time-item.is-passed .t-hour {
    color: #64748b !important;
}
html[data-theme="dark"] body:not(.high-contrast) .time-item.is-next-departure {
    background: #7f1d1d !important;
    border-color: #ef4444 !important;
    color: #fecaca !important;
}
html[data-theme="dark"] body:not(.high-contrast) .time-item.is-next-departure .t-hour {
    color: #fecaca !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-code {
    color: #94a3b8 !important;
}

/* Przystanki, Linie, Hub rozkładów (page-przystanki.php, page-linie.php, page-rozklady.php) */
html[data-theme="dark"] body:not(.high-contrast) #mzk-stop-search,
html[data-theme="dark"] body:not(.high-contrast) #mzk-line-search {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-stop-search-container .dashicons {
    color: #94a3b8 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-pinned-box {
    background: #1c1917 !important;
    border-color: #92400e !important;
    color: #fde68a !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-pinned-box h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-pinned-box span {
    color: #fde68a !important;
}
html[data-theme="dark"] body:not(.high-contrast) .pinned-stop {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .pinned-stop a {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .stop-group,
html[data-theme="dark"] body:not(.high-contrast) #mzk-no-stops-msg,
html[data-theme="dark"] body:not(.high-contrast) .mzk-hub-card {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .stop-group h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-hub-card h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile .line-title {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-stop-link,
html[data-theme="dark"] body:not(.high-contrast) .mzk-hub-card p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile .line-label {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-stop-link:hover,
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile .btn-check {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile .btn-check {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile {
    background: #131d31 !important;
    border-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-line-tile .line-footer {
    border-top-color: #26344d !important;
}

/* Bilety, Cennik, Reklama, Strona statyczna, Załączniki BIP */
html[data-theme="dark"] body:not(.high-contrast) .ticket-calculator,
html[data-theme="dark"] body:not(.high-contrast) .mzk-map-legend,
html[data-theme="dark"] body:not(.high-contrast) .mzk-point-card,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content .wp-block-details {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content .wp-block-details summary,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content a:not(.mzk-btn):not(.button),
html[data-theme="dark"] body:not(.high-contrast) .mzk-tickets-page .mzk-ticket-points-list h2 .dashicons,
html[data-theme="dark"] body:not(.high-contrast) .mzk-page-reklama .dashicons-portfolio {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-tickets-page div[style*="border-top: 1px dashed #eee"] {
    color: #cbd5e1 !important;
    border-top-color: #334155 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content ul {
    background: #1e293b !important;
    border-left-color: #60a5fa !important;
}
html[data-theme="dark"] body:not(.high-contrast) .ticket-calculator h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-tickets-page h2,
html[data-theme="dark"] body:not(.high-contrast) .pricing-title,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content h3,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content h4,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content strong {
    color: #f1f5f9 !important;
    border-bottom-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-point-card .dashicons-location-alt {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .ticket-calculator label,
html[data-theme="dark"] body:not(.high-contrast) .ticket-calculator p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-map-legend span,
html[data-theme="dark"] body:not(.high-contrast) .mzk-point-card p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-content li {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #calc-result {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-point-card h3 {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) #ticket-type,
html[data-theme="dark"] body:not(.high-contrast) #passenger-type {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
html[data-theme="dark"] body:not(.high-contrast) #calc-desc {
    background: transparent !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex,
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex td,
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex th,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments td,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments th,
html[data-theme="dark"] body:not(.high-contrast) .wp-block-table,
html[data-theme="dark"] body:not(.high-contrast) .wp-block-table td {
    border-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex th:not(.highlight-g):not(.highlight-mg),
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments thead tr,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments th {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex th.ticket-name {
    background: #16233b !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex td.price-cell {
    color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex tbody tr,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments tbody tr,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments td,
html[data-theme="dark"] body:not(.high-contrast) .wp-block-table tbody tr,
html[data-theme="dark"] body:not(.high-contrast) .wp-block-table td {
    background: #131d31 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments-section h3,
html[data-theme="dark"] body:not(.high-contrast) .mzk-attachments-wrapper h3,
html[data-theme="dark"] body:not(.high-contrast) .mzk-dynamic-attachments h3,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments h3,
html[data-theme="dark"] body:not(.high-contrast) .job-single-article h3 {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments td span[style*="#9e1926"] {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments td span[style*="#004e92"] {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex td::before {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-table-complex tbody tr:hover td,
html[data-theme="dark"] body:not(.high-contrast) .bip-attachments tbody tr:hover td,
html[data-theme="dark"] body:not(.high-contrast) .wp-block-table tbody tr:hover td {
    background: #1e293b !important;
}

/* Flota (page-flota.php) */
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-container {
    background: #131d31 !important;
    border-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row {
    border-bottom-color: #26344d !important;
    color: #e2e8f0;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row:hover {
    background-color: #1e293b;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td,
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-container td[colspan="8"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="color: #004e92"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="color:#004e92"] {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="color: #475569"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="color:#475569"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td strong,
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row h4 {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-plate,
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="border:1px solid #333"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="border: 2px solid #333"] {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-empty-thumb,
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="background:#eee"],
html[data-theme="dark"] body:not(.high-contrast) .mzk-fleet-row td span[style*="background: #eee"] {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

/* Aktualności, Pojedynczy wpis, Praca, Mapa strony, Kontakt, 404 */
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card,
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article,
html[data-theme="dark"] body:not(.high-contrast) .job-single-article {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card .entry-title,
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .entry-title,
html[data-theme="dark"] body:not(.high-contrast) .job-single-article .entry-title,
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .mzk-article-content,
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .mzk-article-content h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .mzk-article-content h3,
html[data-theme="dark"] body:not(.high-contrast) .job-single-article .entry-content,
html[data-theme="dark"] body:not(.high-contrast) .mzk-back-link,
html[data-theme="dark"] body:not(.high-contrast) .sitemap-section h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-error-container h1,
html[data-theme="dark"] body:not(.high-contrast) .mzk-error-container h2 {
    color: #f1f5f9 !important;
    border-bottom-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .mzk-article-content a,
html[data-theme="dark"] body:not(.high-contrast) .job-single-article .entry-content a {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-error-container .dashicons-warning {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .sitemap-list ul {
    border-left-color: #26344d;
}
html[data-theme="dark"] body:not(.high-contrast) .sitemap-list a {
    color: #cbd5e1;
}
html[data-theme="dark"] body:not(.high-contrast) .sitemap-list a:hover,
html[data-theme="dark"] body:not(.high-contrast) .sitemap-list a:focus {
    color: #93c5fd;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card time,
html[data-theme="dark"] body:not(.high-contrast) .mzk-error-container p,
html[data-theme="dark"] body:not(.high-contrast) .page-description,
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-muted,
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-icon,
html[data-theme="dark"] body:not(.high-contrast) .sitemap-list li[style*="color: #404040"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .entry-meta .dashicons,
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card .entry-meta .dashicons {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card .entry-summary,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-subtitle {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card .mzk-read-more,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-title {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-news-card .entry-footer,
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .entry-footer {
    border-top-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) #colophon.site-footer {
    border-top-color: #2563eb;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-single-article .entry-meta,
html[data-theme="dark"] body:not(.high-contrast) .job-single-article .entry-meta,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-previous,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-next,
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a,
html[data-theme="dark"] body:not(.high-contrast) .mzk-pagination a,
html[data-theme="dark"] body:not(.high-contrast) .mzk-pagination span.page-numbers,
html[data-theme="dark"] body:not(.high-contrast) .mzk-btn-error.btn-outline {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a h2 {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a > div,
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a > div > div,
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a > div > div > span:first-child,
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a > div > span:first-child,
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a span[style*="color: #404040"],
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a span[style*="color:#404040"],
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a span[style*="color: #666"],
html[data-theme="dark"] body:not(.high-contrast) .job-single-article .entry-meta span {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a span[style*="color: #9e1926"] {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fault-form-wrapper,
html[data-theme="dark"] body:not(.high-contrast) .mzk-feedback-form-wrapper {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fault-form-wrapper h2,
html[data-theme="dark"] body:not(.high-contrast) .mzk-feedback-form-wrapper h2 {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fault-form-wrapper p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-fault-form-wrapper label,
html[data-theme="dark"] body:not(.high-contrast) .mzk-feedback-form-wrapper p,
html[data-theme="dark"] body:not(.high-contrast) .mzk-feedback-form-wrapper label {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-fault-form-wrapper input,
html[data-theme="dark"] body:not(.high-contrast) .mzk-fault-form-wrapper textarea,
html[data-theme="dark"] body:not(.high-contrast) .mzk-feedback-form-wrapper input,
html[data-theme="dark"] body:not(.high-contrast) .mzk-feedback-form-wrapper textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-previous:hover,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-next:hover,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-previous:hover .nav-title,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-next:hover .nav-title,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-previous:hover .nav-subtitle,
html[data-theme="dark"] body:not(.high-contrast) .post-navigation .nav-next:hover .nav-subtitle,
html[data-theme="dark"] body:not(.high-contrast) .jobs-list a:hover,
html[data-theme="dark"] body:not(.high-contrast) .mzk-pagination a:hover,
html[data-theme="dark"] body:not(.high-contrast) .mzk-pagination span.page-numbers.current,
html[data-theme="dark"] body:not(.high-contrast) .mzk-btn-error.btn-outline:hover {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-heading-primary,
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-link-primary {
    color: #93c5fd !important;
    border-bottom-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-heading-accent,
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-link-accent {
    color: #fca5a5 !important;
    border-bottom-color: #26344d !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-heading-ticket,
html[data-theme="dark"] body:not(.high-contrast) .mzk-contact-link-ticket {
    color: #86efac !important;
    border-bottom-color: #26344d !important;
}

/* Strefa Gier (page-gra.php) */
html[data-theme="dark"] body:not(.high-contrast) #game-lock-screen,
html[data-theme="dark"] body:not(.high-contrast) #game-selection-screen,
html[data-theme="dark"] body:not(.high-contrast) #mzk-top10-modal > div,
html[data-theme="dark"] body:not(.high-contrast) .inline-top10-wrapper {
    background: #131d31 !important;
    border-color: #26344d !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #game-lock-screen h1,
html[data-theme="dark"] body:not(.high-contrast) #game-selection-screen h2,
html[data-theme="dark"] body:not(.high-contrast) #top10-title {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #game-lock-screen p,
html[data-theme="dark"] body:not(.high-contrast) #location-status,
html[data-theme="dark"] body:not(.high-contrast) .inline-top10-content,
html[data-theme="dark"] body:not(.high-contrast) #top10-save-container p {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #mzk-admin-dev-banner,
html[data-theme="dark"] body:not(.high-contrast) #top10-save-container,
html[data-theme="dark"] body:not(.high-contrast) #top10-list-container,
html[data-theme="dark"] body:not(.high-contrast) #btn-bypass-home,
html[data-theme="dark"] body:not(.high-contrast) .btn-show-top10,
html[data-theme="dark"] body:not(.high-contrast) #btn-close-top10,
html[data-theme="dark"] body:not(.high-contrast) #btn-close-top10-bottom {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) #top10-player-name {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #game-lock-screen #mzk-game-pin-icon {
    color: #93c5fd !important;
}
html[data-theme="dark"] body:not(.high-contrast) #game-lock-screen div[style*="color: #666"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) #top10-save-container h3 {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-popup-muted {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] body:not(.high-contrast) .mzk-popup-error {
    color: #fca5a5 !important;
}
html[data-theme="dark"] body:not(.high-contrast) *:focus-visible,
html[data-theme="dark"] body:not(.high-contrast) a:focus,
html[data-theme="dark"] body:not(.high-contrast) button:focus,
html[data-theme="dark"] body:not(.high-contrast) .main-navigation a:focus,
html[data-theme="dark"] body:not(.high-contrast) .mzk-cookie-btn:focus {
    outline-color: #93c5fd !important;
}
}
.mzk-popup-muted {
    color: #475569;
}
.mzk-popup-error {
    color: #b91c1c;
    font-weight: 600;
}
.mzk-app-link {
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s;
}
.mzk-app-link:hover,
.mzk-app-link:focus-visible {
    transform: translateY(-5px);
}
.mzk-app-link img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Baner cookies, skalowanie fontu i dostępność (przeniesione z inline CSS) */
.mzk-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 3px solid #004e92;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    font-family: inherit;
}
.mzk-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.mzk-cookie-text {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.5;
}
.mzk-cookie-link {
    color: #004e92;
    font-weight: bold;
    text-decoration: underline;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 4px;
}
.mzk-cookie-link:hover {
    color: #9e1926;
}
.mzk-cookie-btn {
    background-color: #004e92;
    color: #fff;
    border: none;
    padding: 12px 25px;
    min-height: 44px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}
.mzk-cookie-btn:hover,
.mzk-cookie-btn:focus {
    background-color: #9e1926;
    outline: 2px solid #000;
    outline-offset: 2px;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .mzk-cookie-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    .mzk-cookie-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
    .top-bar .container {
        justify-content: center !important;
    }
}
@media screen {
    body.high-contrast .mzk-cookie-banner {
        background-color: #000 !important;
        border-top: 3px solid #ff0 !important;
    }
    body.high-contrast .mzk-cookie-text {
        color: #fff !important;
    }
    body.high-contrast .mzk-cookie-link {
        color: #ff0 !important;
    }
    body.high-contrast .mzk-cookie-btn {
        background-color: #ff0 !important;
        color: #000 !important;
        border: 2px solid #ff0 !important;
    }
}
html.font-step--1 { font-size: 14px !important; }
html.font-step-1 { font-size: 18px !important; }
html.font-step-2 { font-size: 20px !important; }
html.font-step-3 { font-size: 22px !important; }
.mzk-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #9e1926;
    color: #fff;
    padding: 12px 25px;
    font-weight: bold;
    z-index: 100000;
    transition: top 0.3s ease;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.mzk-skip-link:focus {
    top: 0;
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* ==========================================================================
   PRINT STYLESHEET (Rozkłady jazdy i treści stron)
   ========================================================================== */
@media print {
    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
        line-height: 1.4;
    }

    .site-header,
    .top-bar,
    .site-footer,
    .mzk-cookie-banner,
    .mzk-pwa-banner,
    .mzk-fav-btn,
    .mzk-day-selector,
    .mzk-direction-selector,
    .pdf-action,
    #mzk-live-board,
    #mzk-route-map,
    #mzk-route-map.leaflet-container,
    #mzk-ticket-map,
    .mzk-map-wrapper,
    .mzk-stop-search-container,
    .mzk-map-sidebar form,
    .mzk-modal-overlay,
    .mzk-back-link,
    .post-navigation,
    .no-print {
        display: none !important;
    }

    .site-main,
    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    a,
    a:visited {
        color: #000000 !important;
        text-decoration: underline;
    }

    .mzk-route-group,
    .mzk-highlighted-line-board {
        border: 1px solid #000000 !important;
        background: #ffffff !important;
        margin-bottom: 12pt !important;
        break-inside: avoid;
    }

    .mzk-route-title {
        background: #f2f2f2 !important;
        color: #000000 !important;
        border-bottom: 1px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .time-item {
        border: 1px solid #444444 !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 4px 8px !important;
        break-inside: avoid;
    }

    .t-hour {
        color: #000000 !important;
    }

    .t-type,
    .mzk-badge-temp,
    .next-label {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: #ffffff !important;
    }

    table,
    th,
    td {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        background: #ffffff !important;
    }

    tr,
    .contact-card {
        break-inside: avoid;
    }
}
