/* Explicit light default prevents compatible browsers from guessing a palette. */
:root{color-scheme:only light}
.header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.theme-toggle[hidden]{display:none!important}
.theme-toggle:hover{color:var(--accent);border-color:var(--accent);background:var(--soft)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.theme-icon-sun{display:none}
html[data-kh-theme=dark] .theme-icon-moon{display:none}
html[data-kh-theme=dark] .theme-icon-sun{display:block}
/* Preserve logo pixels; no inversion or brightness filters on photographs. */
.site-header .brand{background:#f8f7f3;color-scheme:only light;border-radius:3px}
@media(max-width:800px){.header-inner>.header-actions{margin-left:auto}}
@media(max-width:600px){.header-actions{gap:10px}.header-inner .brand{flex-basis:150px}.header-inner .brand-image{width:150px;height:58px}.header-actions .languages{gap:12px}.theme-toggle{width:40px;height:40px}}
@media(max-width:380px){.header-inner .brand{flex-basis:124px}.header-inner .brand-image{width:124px;height:48px}.header-actions{gap:8px}.header-actions .languages{gap:10px;font-size:.75rem}}
@media screen{
 html[data-kh-theme=dark]{color-scheme:dark;--ink:#eeede9;--muted:#b6b5b0;--paper:#17191c;--surface:#22252a;--line:#41434a;--soft:#2c2f35;--accent:#e2a4ae}
 html[data-kh-theme=dark] .topline{background:#111316;color:#deddd8;border-bottom:1px solid var(--line)}
 html[data-kh-theme=dark] .site-footer{background:#111316;color:#eae8e2}
 html[data-kh-theme=dark] .site-header .brand{padding-inline:8px}
 html[data-kh-theme=dark] .lead,html[data-kh-theme=dark] .kh-section-heading p,html[data-kh-theme=dark] .kh-section-query,html[data-kh-theme=dark] .kh-small-body p,html[data-kh-theme=dark] .kh-small-meta,html[data-kh-theme=dark] .photo-empty{color:var(--muted)}
 html[data-kh-theme=dark] .search-form{border-color:#65656b}
 html[data-kh-theme=dark] .search-form input::placeholder{color:#b1b0ac}
 html[data-kh-theme=dark] .search-form>button{background:#7e3e4d;color:#fff}
 html[data-kh-theme=dark] .language-prompt,html[data-kh-theme=dark] .kh-section-dropdown,html[data-kh-theme=dark] .kh-small-card{background:var(--surface);color:var(--ink);border-color:var(--line)}
 html[data-kh-theme=dark] .article-row-image,html[data-kh-theme=dark] .kh-small-photo{background:var(--soft)}
 html[data-kh-theme=dark] .card-topics a,html[data-kh-theme=dark] .kh-section-badge{background:#34272e;border-color:#72505a;color:var(--accent)}
 html[data-kh-theme=dark] .card-topics a:hover,html[data-kh-theme=dark] .kh-section-dropdown a:hover,html[data-kh-theme=dark] .kh-section-dropdown a:focus-visible{background:#403039}
 html[data-kh-theme=dark] .record-card .card-status{background:var(--soft);color:var(--muted);border-color:var(--line)}
 html[data-kh-theme=dark] .record-card .card-status.is-long{background:transparent;color:var(--muted);border-color:#94747c}
 html[data-kh-theme=dark] .filters .active,html[data-kh-theme=dark] .pagination .current{background:#7e3e4d;color:#fff;border-color:#bc818d}
 html[data-kh-theme=dark] .contact-tile-primary{background:#66333f;color:#fff;border-color:#8e5a66}
 html[data-kh-theme=dark] .contact-tile-primary .kh-signal-link{border-color:#c2949f}
 html[data-kh-theme=dark] .sources li[id^=source-]:target,html[data-kh-theme=dark] .entry-content p.kh-internal-source{background:#332830;border-color:#6d505a}
 html[data-kh-theme=dark] .entry-content p.kh-internal-source:target{background:#42313b;outline-color:#95717c}
 html[data-kh-theme=dark] .kh-suggest .kh-suggest-option{border-color:var(--line)}
 html[data-kh-theme=dark] .kh-suggest-option:hover,html[data-kh-theme=dark] .kh-suggest-option[aria-selected=true]{background:#3c2d35}
 html[data-kh-theme=dark] .kh-suggest-portrait{background:var(--soft);color:var(--accent)}
 html[data-kh-theme=dark] .search-form .kh-suggest .kh-suggest-all{background:var(--soft);color:var(--accent)}
 html[data-kh-theme=dark] .search-form .kh-suggest .kh-suggest-all:hover,html[data-kh-theme=dark] .kh-tg-link:hover,html[data-kh-theme=dark] .kh-social-profiles .kh-profile-link:hover{background:#403039}
 html[data-kh-theme=dark] .site-footer .footer-newsroom .kh-tg-link:hover{background:#7c4351}
}
@media print{.theme-toggle{display:none!important}}
