/* WWWN Tmavý režim – opravy 1.1.4 (2026-10-16): prvky, které neztmavly. Platí jen v tmavém režimu na světlých webech. */
/* Placeholdery šablony (ReHub blank.gif apod.) – skrýt bílou plochu, místo ní tmavý blok */
html[data-theme="dark"][data-wwwn-native="light"] img[src*="/images/default/blank.gif"],html[data-theme="dark"][data-wwwn-native="light"] img[src*="placeholder"],html[data-theme="dark"][data-wwwn-native="light"] img[src*="no-image"],html[data-theme="dark"][data-wwwn-native="light"] img[src*="noimage"]{opacity:0!important}
html[data-theme="dark"][data-wwwn-native="light"] a:has(> img[src*="/images/default/blank.gif"]),html[data-theme="dark"][data-wwwn-native="light"] figure:has(img[src*="/images/default/blank.gif"]),html[data-theme="dark"][data-wwwn-native="light"] .post-thumbnail:has(img[src*="placeholder"]){display:block;background:var(--wd-surface)!important;outline:1px solid var(--wd-line);outline-offset:-1px}
/* Bílá pozadí bloků (ReHub, Multinews, Citadela) */
html[data-theme="dark"][data-wwwn-native="light"] .fixed_wrap,html[data-theme="dark"][data-wwwn-native="light"] .fixed_wrap.fixed{background-color:var(--wd-bg)!important}
html[data-theme="dark"][data-wwwn-native="light"] .news-community,html[data-theme="dark"][data-wwwn-native="light"] .rh-post-wrapper,html[data-theme="dark"][data-wwwn-native="light"] .main-side,html[data-theme="dark"][data-wwwn-native="light"] .comment-respond,html[data-theme="dark"][data-wwwn-native="light"] #respond,html[data-theme="dark"][data-wwwn-native="light"] .item-content,html[data-theme="dark"][data-wwwn-native="light"] .post-thumbnail,html[data-theme="dark"][data-wwwn-native="light"] aside.sidebar,html[data-theme="dark"][data-wwwn-native="light"] .sidebar,html[data-theme="dark"][data-wwwn-native="light"] section.section,html[data-theme="dark"][data-wwwn-native="light"] .wpb_column.momizat_vc_col,html[data-theme="dark"][data-wwwn-native="light"] .nip-box,html[data-theme="dark"][data-wwwn-native="light"] .scroller-section,html[data-theme="dark"][data-wwwn-native="light"] .widget,html[data-theme="dark"][data-wwwn-native="light"] .rh-cartbox,html[data-theme="dark"][data-wwwn-native="light"] .woocommerce-cart-form,html[data-theme="dark"][data-wwwn-native="light"] .cart-empty,html[data-theme="dark"][data-wwwn-native="light"] .wc-empty-cart-message{background-color:var(--wd-surface)!important;color:var(--wd-ink)}
/* Formuláře */
html[data-theme="dark"][data-wwwn-native="light"] input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),html[data-theme="dark"][data-wwwn-native="light"] textarea,html[data-theme="dark"][data-wwwn-native="light"] select{background-color:var(--wd-bg)!important;color:var(--wd-ink)!important;border-color:var(--wd-line)!important}
html[data-theme="dark"][data-wwwn-native="light"] input::placeholder,html[data-theme="dark"][data-wwwn-native="light"] textarea::placeholder{color:var(--wd-muted)!important}
/* Tabulky */
html[data-theme="dark"][data-wwwn-native="light"] table,html[data-theme="dark"][data-wwwn-native="light"] td{background-color:transparent!important;border-color:var(--wd-line)!important;color:var(--wd-ink)}
html[data-theme="dark"][data-wwwn-native="light"] th,html[data-theme="dark"][data-wwwn-native="light"] thead td{background-color:var(--wd-surface)!important;border-color:var(--wd-line)!important;color:var(--wd-ink)!important}
html[data-theme="dark"][data-wwwn-native="light"] tr:nth-child(even) td{background-color:rgba(127,127,127,.06)!important}
/* Mapy (Leaflet dlaždice nejsou fotky – ztmavit) */
html[data-theme="dark"][data-wwwn-native="light"] .leaflet-container{background:var(--wd-surface)!important}
html[data-theme="dark"][data-wwwn-native="light"] .leaflet-tile-pane{filter:invert(.92) hue-rotate(180deg) brightness(.95) contrast(.9)}
/* Logo naučně.cz má tmavý text – světlý podklad, aby bylo čitelné */
html[data-theme="dark"][data-wwwn-native="light"] body.wwwn-dm-tpl-rehub .logo img{background:#F6F3EC;border-radius:10px;padding:4px 8px}
/* Obecná pojistka z opravy.js */
html[data-theme="dark"][data-wwwn-native="light"] .wwwn-tr-fix{background-color:var(--wd-surface)!important;color:var(--wd-ink)!important;border-color:var(--wd-line)!important}
html[data-theme="dark"][data-wwwn-native="light"] .wwwn-tr-fix-bg{background-color:var(--wd-bg)!important}
