.ks-theme-toggle{position:fixed;top:24px;right:24px;z-index:10000;display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;margin:0;padding:0;border:1px solid #9b1c29;border-radius:50%;background:#85141f;color:#fff;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.2);transition:background .2s,border-color .2s,transform .2s}
body.admin-bar .ks-theme-toggle{top:56px}
.ks-theme-toggle:hover{background:#a51c2b;border-color:#b82b39;transform:translateY(-1px)}
.ks-theme-toggle:focus-visible{outline:3px solid #ef5350;outline-offset:3px}
.ks-theme-toggle svg{display:block;width:23px;height:23px}
.ks-light .ks-theme-toggle{background:#fff;color:#223247;border-color:#d6dfe9;box-shadow:0 6px 18px rgba(25,43,64,.18)}
.ks-light .ks-theme-toggle:hover{background:#f2f5fa}
@media(max-width:921px){.ks-theme-toggle{top:92px;right:16px;width:48px;height:48px}body.admin-bar .ks-theme-toggle{top:124px}}

/* Jasna paleta. Czerwone przyciski i sekcja członkowska zachowują swój charakter. */
html.ks-light{color-scheme:light;--ast-global-color-2:#253247;--ast-global-color-3:#344358;--ast-global-color-4:#f5f7fa;--ast-global-color-5:#fff;--ast-global-color-6:#fff;--ast-global-color-7:#f5f7fa;--ast-global-color-8:#172536}
html.ks-light body,html.ks-light #page,html.ks-light .site-content{background:#f5f7fa!important;color:#253247!important}
/* Oryginalne logo ma własne ciemne tło; nagłówek pozostaje ciemny także w jasnym trybie. */
html.ks-light .ast-primary-header-bar,html.ks-light #ast-desktop-header .main-header-menu{background:#111418!important;border-color:#303842!important}
html.ks-light .main-header-menu>.menu-item>.menu-link{color:#f5f7fa!important}
html.ks-light .main-header-menu>.menu-item>.menu-link:hover,html.ks-light .main-header-menu>.current-menu-item>.menu-link{color:#ef5350!important}
html.ks-light .main-header-menu .sub-menu{background:#fff!important;border-color:#dbe2ea!important}
html.ks-light .main-header-menu .sub-menu .menu-link{color:#253247!important;background:#fff!important}
html.ks-light .main-header-menu .sub-menu .menu-link:hover{color:#85141f!important;background:#f2f5f9!important}
html.ks-light .site-below-footer-wrap{background:#e9eef4!important;color:#39495c!important;border-color:#d2dce6!important}
html.ks-light .site-below-footer-wrap a{color:#85141f!important}

/* Podstrony, wpisy, karty i formularze. */
html.ks-light body:not(.home) .ast-article-single,html.ks-light body:not(.home) .ast-article-post,html.ks-light body.single-post.ast-separate-container .site-main>.ast-article-single,html.ks-light body:not(.home) .ast-article-post .ast-article-inner{background:#fff!important;color:#253247!important;border-color:#dbe2ea!important;box-shadow:0 12px 35px rgba(30,48,70,.07)!important}
html.ks-light body:not(.home) .entry-title,html.ks-light body:not(.home) .entry-title a,html.ks-light body:not(.home) .entry-content h1,html.ks-light body:not(.home) .entry-content h2,html.ks-light body:not(.home) .entry-content h3,html.ks-light body:not(.home) .entry-content h4,html.ks-light body.single-post .entry-title,html.ks-light body.single-post .entry-content strong{color:#172536!important}
html.ks-light body:not(.home) .entry-content,html.ks-light body:not(.home) .entry-content p,html.ks-light body:not(.home) .entry-content li,html.ks-light body:not(.home) .entry-content>p:first-child:not(:empty),html.ks-light body.single-post .entry-content,html.ks-light body.single-post .entry-content p,html.ks-light body.single-post .entry-content li{color:#344358!important}
html.ks-light body:not(.home) .entry-meta,html.ks-light body:not(.home) .entry-meta *,html.ks-light body:not(.home) .entry-content figcaption{color:#59697b!important}
html.ks-light body:not(.home) .entry-content a:not(.wp-block-button__link),html.ks-light body.single-post .entry-content a,html.ks-light body:not(.home) .ast-taxonomy-container a{color:#85141f!important}
html.ks-light body:not(.home) .entry-content h2,html.ks-light body:not(.home) .entry-content hr,html.ks-light body.single-post .post-navigation{border-color:#dbe2ea!important}
html.ks-light body:not(.home) .entry-content .wp-block-group,html.ks-light body:not(.home) .entry-content .wp-block-file,html.ks-light body:not(.home) .entry-content blockquote{background:#f4f7fa!important;border-color:#dbe2ea!important;color:#344358!important}
html.ks-light body:not(.home) .entry-content .wp-block-button__link,html.ks-light body:not(.home) .entry-content .wp-block-file__button{background:#85141f!important;color:#fff!important}
html.ks-light body:not(.home) .entry-content .wp-block-button__link:hover{background:#6f101a!important}
html.ks-light body:not(.home) table,html.ks-light body:not(.home) th,html.ks-light body:not(.home) td{border-color:#dbe2ea!important}
html.ks-light body:not(.home) th,html.ks-light body:not(.home) .entry-content tbody tr:nth-child(even) td{background:#f1f5f9!important;color:#172536!important}
html.ks-light body:not(.home) input,html.ks-light body:not(.home) textarea,html.ks-light body:not(.home) select{background:#fff!important;color:#172536!important;border-color:#b9c7d6!important}
html.ks-light body.single-post .post-navigation a{color:#172536!important}

/* Przyciski list wpisów nie są zwykłymi linkami tekstowymi. */
html.ks-light body:not(.home) .entry-content a.wp-block-read-more{color:#fff!important}

/* Górne menu pozostaje na ciemnym tle również w jasnym motywie. */
html.ks-light #ast-desktop-header .main-header-menu>.menu-item>.menu-link:hover,
html.ks-light #ast-desktop-header .main-header-menu>.menu-item:hover>.menu-link,
html.ks-light #ast-desktop-header .main-header-menu>.current-menu-item>.menu-link,
html.ks-light #ast-desktop-header .main-header-menu>.current-menu-ancestor>.menu-link{color:#fff!important}

/* Strona główna: ciemne kolory są również zapisane wewnątrz bloków. */
html.ks-light body.home .entry-content>.wp-block-group[style*="background-color:#111418"],html.ks-light body.home .entry-content>.wp-block-group[style*="background-color:#15191e"]{background:#f5f7fa!important}
html.ks-light body.home .ks-feature-card,html.ks-light body.home .ks-news-card{background:#fff!important;border-color:#dbe2ea!important;color:#253247!important;box-shadow:0 10px 30px rgba(30,48,70,.05)}
html.ks-light body.home .ks-feature-card .wp-block-heading,html.ks-light body.home .ks-news-card .wp-block-post-title,html.ks-light body.home .ks-news-card .wp-block-post-title a,html.ks-light body.home .entry-content>.wp-block-group:not([style*="background-color:#b71c1c"])>h2{color:#172536!important}
html.ks-light body.home .ks-feature-card p:not(:first-child),html.ks-light body.home .ks-news-card .wp-block-post-excerpt,html.ks-light body.home .ks-news-card .wp-block-post-excerpt__excerpt,html.ks-light body.home .entry-content>.wp-block-group:not([style*="background-color:#b71c1c"])>p:not(:first-child){color:#46576b!important}
html.ks-light body.home .ks-news-card .wp-block-post-date{color:#9c1b27!important}
html.ks-light body.home .ks-news-card a.wp-block-post-excerpt__more-link{color:#fff!important}
html.ks-light body.home .entry-content>.wp-block-columns{color:#253247!important}
html.ks-light body.home .entry-content>.wp-block-columns h2,html.ks-light body.home .entry-content>.wp-block-columns h3{color:#172536!important}
html.ks-light body.home .entry-content>.wp-block-columns p,html.ks-light body.home .entry-content>.wp-block-columns li{color:#344358!important}
html.ks-light .ks-partners{background:#f5f7fa!important;color:#172536!important}
html.ks-light .ks-partners h2{color:#172536!important}
html.ks-light .ks-partners__card{border-color:#dbe2ea!important;box-shadow:0 8px 25px rgba(30,48,70,.07)}

/* Mobilna nawigacja ma własne, wcześniej wymuszone ciemne barwy. */
@media(max-width:921px){html.ks-light .ast-mobile-popup-drawer .ast-mobile-popup-inner,html.ks-light .ast-mobile-header-content,html.ks-light #ast-hf-mobile-menu,html.ks-light #ast-hf-mobile-menu .menu-item>.menu-link{background:#fff!important;color:#213044!important}html.ks-light #ast-hf-mobile-menu .sub-menu .menu-link{background:#f4f7fa!important;color:#213044!important}html.ks-light #ast-hf-mobile-menu .sub-menu .sub-menu .menu-link{background:#ebf1f7!important}html.ks-light #ast-hf-mobile-menu .menu-item>.menu-link,html.ks-light .ast-mobile-popup-drawer .ast-mobile-popup-header{border-color:#dbe2ea!important}html.ks-light #ast-hf-mobile-menu .ast-menu-toggle{color:#213044!important}html.ks-light #ast-hf-mobile-menu .current-menu-item>.menu-link{background:#85141f!important;color:#fff!important}html.ks-light #ast-hf-mobile-menu .menu-item.ast-submenu-expanded>.menu-link,html.ks-light #ast-hf-mobile-menu .current-menu-ancestor>.menu-link{background:#f9e9eb!important;color:#85141f!important}}
