/* Shared browser-only light/dark preference; original photos and brand files stay intact. */
.header-preferences{display:flex;align-items:center;gap:9px;min-width:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:6px;border:0;background:transparent;color:#555;border-radius:50%;cursor:pointer;line-height:1}
.theme-toggle:hover{background:#f0f1f2}.theme-toggle:focus-visible{outline:2px solid #a16c16;outline-offset:3px}.theme-toggle[hidden]{display:none!important}
.theme-sun{display:none}html[data-theme=dark] .theme-sun{display:block}html[data-theme=dark] .theme-moon{display:none}
.standalone-theme-switch{position:fixed;top:20px;inset-inline-end:20px}
@media(max-width:1199px){.reporix-header .header-preferences{grid-column:2;grid-row:1}}
@media(max-width:420px){.reporix-masthead{gap:10px}.header-preferences{gap:4px}.reporix-header .language-picker summary{max-width:110px}.reporix-header .language-picker summary>span{max-width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:360px){.reporix-header .language-picker summary>span{display:none}}
html[data-theme=dark]{color-scheme:dark;background:#151719;--theme-bg:#151719;--theme-surface:#1e2125;--theme-text:#eceef1;--theme-muted:#aeb4be;--theme-line:#363b43;--theme-accent:#dfb35f;--ink:var(--theme-text);--muted:var(--theme-muted);--line:var(--theme-line);--bg:var(--theme-bg);--blue:#a9bfff}
html[data-theme=dark] body,html[data-theme=dark] #page-wrapper,html[data-theme=dark] #content-wrapper,html[data-theme=dark] #footer{background:var(--theme-bg);color:var(--theme-text)}
html[data-theme=dark] #header.reporix-header,html[data-theme=dark] #header .header-wrapper,html[data-theme=dark] .language-picker nav,html[data-theme=dark] .subcategory-menu{background:var(--theme-bg);border-color:var(--theme-line)}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,h6){color:var(--theme-text)}
html[data-theme=dark] :is(p,li,time,label,.article-paragraph,.post-excerpt,.post-date,.article-info,.copyrights,.footer-links a,.section-search-status,.share-status,.contact-success p,.blocked-label,.blocked-explanation){color:var(--theme-muted)}
html[data-theme=dark] :is(.post-title a,.related-story h3 a,.article-recent-posts a,.article-category-links a,.article-tag-links a,.article-info a,.link,.post-btn a,.footer-links a,.copyrights a,.contact-policy-links a,.article-share a,.article-share button,.subcategory-filters a,.language-picker a,.language-picker summary,.category-navigation>li>a){color:var(--theme-text)}
html[data-theme=dark] :is(.story-category,.story-category a,.category-navigation>li>a[aria-current=page],.subcategory-filters a[aria-current=page]){color:var(--theme-accent)}
html[data-theme=dark] :is(.language-picker nav a:hover,.subcategory-menu a:hover,.theme-toggle:hover){background:var(--theme-surface)}
html[data-theme=dark] :is(.theme-toggle,.subcategory-toggle,.reporix-menu-toggle,.section-search button,.home-carousel-controls button,.contact-success-icon){color:var(--theme-text)}
html[data-theme=dark] .reporix-menu-toggle span{background:var(--theme-text)}
html[data-theme=dark] :is(.stories-empty,.post-img-fallback,.related-logo-fallback,.featured-logo-fallback,.article-recent-thumbnail,.related-story-image,.card,.panel,.login-panel,.sidebar,.admin-sidebar-panel,.admin-panel-heading,.admin-menu-toggle,.stats>div){background:var(--theme-surface);border-color:var(--theme-line)}
html[data-theme=dark] img[src^="/logo.svg"]{filter:invert(1)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select,.form-control){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a0a7b1;opacity:1}
html[data-theme=dark] .section-search input{background:transparent}
html[data-theme=dark] :is(.newsletter-signup,.section-search,.subcategory-filters,.article-share,.related-stories,.article-recent-posts li,.article-category-links a,.footer-inner,.topbar,td,th,.card,.panel,.account,.admin-footer){border-color:var(--theme-line)}
html[data-theme=dark] .article-tag-links a,html[data-theme=dark] .link{box-shadow:inset 0 -3px #343a43}
html[data-theme=dark] :is(.newsletter-signup button,#reporix-contact-form button,.button:not(.secondary)){background:#d7dce4;color:#151719;border-color:#d7dce4}
html[data-theme=dark] :is(.button.secondary,.video-sound-button,.admin-pagination a){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line)}
html[data-theme=dark] :is(.pagination-current,.admin-pagination [aria-current=page]){background:var(--theme-text);color:var(--theme-bg)}
html[data-theme=dark] .article-pagination a,html[data-theme=dark] .article-pagination span{color:var(--theme-muted)}
html[data-theme=dark] .article-pagination .pagination-current{color:var(--theme-bg)}
html[data-theme=dark] :is(.contact-response,.error){background:#35232a!important;color:#ffd5d9!important;border-color:#b87680!important}
html[data-theme=dark] :is(.notice,.success,.contact-response[data-state=success]){background:#1e352c!important;color:#bce7ce!important;border-color:#608d71!important}
html[data-theme=dark] :is(.sidebar nav a,.admin-nav-link,.sidebar .account strong,.admin-account-label,.admin-footer,.muted,.environment,.admin-nav-label){color:var(--theme-muted)}
html[data-theme=dark] :is(.sidebar nav .nav-active,.admin-nav-link:hover,.admin-queue-shortcut,.admin-security-shortcut,.language-tabs button,.badge,.admin-avatar){background:#303844;color:var(--theme-text);border-color:var(--theme-line)}
html[data-theme=dark] :is(table thead,.language-tabs button[aria-selected=true]){background:#303844;color:var(--theme-text)}
html[data-theme=dark] .featured-caption,html[data-theme=dark] .featured-caption :is(h2,span){color:#fff}
html[data-theme=dark] .featured-caption>span{opacity:.9}
html[data-theme=dark] .ad-label,html[data-theme=dark] .card-view-count{color:#a5acb6}
html[data-theme=dark] .scrolltotop{background:var(--theme-surface);color:var(--theme-text)}
html[data-theme=dark] a{color:var(--theme-text)}
html[data-theme=dark] .post-list .post .post-content .post-date,html[data-theme=dark] .post-list .post .post-content .post-excerpt{color:var(--theme-muted)}
html[data-theme=dark] .story-taxonomy a{color:var(--theme-accent)}
html[data-theme=dark] .featured-story,html[data-theme=dark] .featured-caption :is(h2,span){color:#fff}
html[data-theme=dark] #footer .copyrights p,html[data-theme=dark] #footer .copyrights a,html[data-theme=dark] #footer .footer-links a{color:var(--theme-muted)}
html[data-theme=dark] .article-share>strong{color:var(--theme-text)}
html[data-theme=dark] .article-share-links img{filter:invert(1)}
html[data-theme=dark] .article-share-links :is(a,button):hover{background:var(--theme-surface)}
html[data-theme=dark] #footer{border-color:var(--theme-line)}
html[data-theme=dark] #reporix-contact-form .help-block{color:#ffb6be}
