/* Appearance control shares the existing header icon language. */
:root{color-scheme:light;--theme-base:#fff;--theme-card:#fff;--theme-link:#A85532;--theme-hover:#f1f1f1}
.theme-picker{position:relative;flex:none;display:flex;align-items:center}
.theme-picker .theme-toggle{width:34px;height:38px}
.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-moon{display:none}html[data-theme=dark] .theme-sun{display:none}html[data-theme=dark] .theme-moon{display:block}
.theme-panel{position:absolute;right:-10px;top:calc(100% + 15px);width:190px;padding:10px;background:var(--theme-card);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 36px #0002;z-index:115}
.theme-panel>p{font-size:11px;color:var(--muted);padding:8px 12px;line-height:1.4}
.theme-panel>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;border:0;background:transparent;color:inherit;border-radius:10px;padding:10px 12px;font-size:13px;text-align:left}
.theme-panel>button:hover,.theme-panel>button:focus-visible{background:var(--theme-hover)}
.theme-panel>button[aria-checked=true]{font-weight:650}
.theme-panel>button[aria-checked=true]:after{content:'✓';color:var(--theme-link);font-size:15px}
@media(max-width:1100px){.theme-picker .theme-toggle{width:38px;height:44px}.theme-panel{right:-38px;top:calc(100% + 10px)}}

/* Night surfaces and typography retain photographs and the copper action colour. */
html[data-theme=dark]{color-scheme:dark;--ink:#f1f1ef;--muted:#b5b5b2;--paper:#1c1c1c;--line:#3b3b3b;--blue:#e5a27b;--theme-base:#141414;--theme-card:#242424;--theme-link:#e5a27b;--theme-hover:#303030;color:var(--ink);background:var(--theme-base)}
html[data-theme=dark] body{background:var(--theme-base);color:var(--ink)}
html[data-theme=dark] main>section,html[data-theme=dark] .page-top{background:var(--theme-base)}
html[data-theme=dark] main>section.gray{background:var(--paper)}
html[data-theme=dark] main>section.hero{background:var(--navy)}
html[data-theme=dark] .header{background:#181818f2;border-color:var(--line)}
html[data-theme=dark] :is(.mega,.language-panel,.nav.mobile-open){background:#1c1c1c;border-color:var(--line)}
html[data-theme=dark] :is(.nav-item>a,.mega-primary>a,.mega-group>a,.language-toggle,.icon-button){color:var(--ink)}
html[data-theme=dark] :is(.nav-item>a:hover,.nav-item.expanded>a,.mega-group>a:hover,.mega-primary>a:hover){color:var(--theme-link)}
html[data-theme=dark] :is(.mega-primary>p,.mega-group>h3,.mega-primary>span,.language-panel>p,.language-panel .planned-language,.language-panel .planned-language small,.language-panel>a small,.nav .language-toggle:after){color:var(--muted)}
html[data-theme=dark] :is(.language-panel .planned-language,.nav-item){border-color:var(--line)}
html[data-theme=dark] :is(.brand img,.search-brand img){filter:grayscale(1) invert(1)}
html[data-theme=dark] .footer-brands img{filter:brightness(0) invert(1)}
html[data-theme=dark] :is(.card,.sector-card,.person,.project-card,.project-wrap,.project-feature,.service,.process-card,.location,.contact-form,.career-area,.dialog){background:var(--theme-card);color:var(--ink)}
html[data-theme=dark] :is(.story-grid>div,.timeline>div,.related-link,.served-region,.direct-panel,.contact-panel,.legal-toc,.cv-upload,.catalogue-section figure){background:var(--paper)}
html[data-theme=dark] :is(.form-field input,.form-field select,.form-field textarea,.filterbar select,.filterbar input,.cv-upload input){background:#181818;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#969693}
html[data-theme=dark] :is(.form-field small,.form-privacy,.form-submit-row p,.career-area p,.application-consent,.executive-copy p,.served-region li,.legal-copy p,.legal-toc a,.timeline-label,.step-number,.service .index){color:var(--muted)}
html[data-theme=dark] :is(.facts-grid strong,.heritage-year,.founder-signature,.breadcrumbs span[aria-current]){color:var(--ink)}
html[data-theme=dark] :is(.text-link,.sector-card .text-link,.contact-email,.legal-copy a,.form-availability a,.form-privacy a,.application-consent a,.footer-col a,.footer-contact>div:first-child a,.footer .legal-links a,.footer .copyright a,.filter-reset){color:var(--theme-link)}
html[data-theme=dark] :is(.text-link:hover,.footer-col a:hover,.footer-contact>div:first-child a:hover,.footer .legal-links a:hover,.footer .copyright a:hover,.legal-copy a:hover){color:#ffc5a3}
html[data-theme=dark] :is(.hero .text-link,.global-band .text-link){color:#e6e6e3}
html[data-theme=dark] :is(.hero .text-link:hover,.global-band a:hover){color:#fff}
html[data-theme=dark] .text-link:after{background-color:#e0e0de}
html[data-theme=dark] :is(.pill.ghost,.cta .pill.ghost){color:var(--theme-link);border-color:var(--theme-link)}
html[data-theme=dark] .pill.ghost:hover{color:#fff;border-color:var(--action)}
html[data-theme=dark] .hero .pill.ghost{color:#fff;border-color:#fff}
html[data-theme=dark] :is(.breadcrumb-band,.section-jump-band,.subnav-band,.category-dock){background:#1c1c1cf2;border-color:var(--line)}
html[data-theme=dark] :is(.breadcrumbs,.breadcrumbs a,.section-jumps){color:var(--muted)}
html[data-theme=dark] :is(.section-jumps a:hover,.section-jumps a.active){color:var(--ink)}
html[data-theme=dark] .section-jumps a.active:after{background:var(--ink)}
html[data-theme=dark] :is(.rail-button,.map-controls button,.category-dock button:hover,.category-dock button.active,.search-suggestions button,.dialog .close){background:#353535;color:var(--ink)}
html[data-theme=dark] .map-controls button.active{background:var(--action);color:#fff}
html[data-theme=dark] :is(.category-tile,.form-availability,.direct-channels>a){background:var(--theme-card);color:var(--ink)}
html[data-theme=dark] .category-tile.active{background:#303030;border-color:var(--theme-link)}
html[data-theme=dark] .category-tile.active span{color:var(--theme-link)}
html[data-theme=dark] .world-map{background:#1d1d1d}
html[data-theme=dark] .map-country{fill:#383838;stroke:#222}
html[data-theme=dark] .map-marker{fill:#d3d3d3;stroke:#1c1c1c}
html[data-theme=dark] .map-marker[fill='#767676']{fill:#929292}
html[data-theme=dark] .legend-dot{background:#d3d3d3}
html[data-theme=dark] .legend-dot.representative{background:#929292}
html[data-theme=dark] :is(.socials a,.person-socials a,.channel-arrow){color:var(--ink)}
html[data-theme=dark] :is(.socials a:hover,.person-socials a:hover){color:var(--theme-link)}
html[data-theme=dark] .direct-channels img{filter:grayscale(1) invert(1)}
html[data-theme=dark] .direct-channels svg{filter:none}
html[data-theme=dark] .footer{color:var(--muted)}
html[data-theme=dark] .search-dialog input{color:var(--ink);background:transparent}
html[data-theme=dark] .skip{background:var(--theme-card);color:var(--ink)}
html[data-theme=dark] .timeline-dot{background:var(--theme-link)}
html[data-theme=dark] .cv-upload{border-color:#737373}
html[data-theme=dark] .application-consent input{accent-color:var(--action)}
/* Original company artwork stays on a light identity plate, without recolouring. */
html[data-theme=dark] :is(.company-logo,.company-card .logo-box,.brand-band a){background:#f5f5f5;color:#202020;border-color:#e8e8e8}

html[data-theme=dark] .cv-upload input::file-selector-button{background:#353535;color:var(--ink)}

html[data-theme=dark] .language-panel>a[aria-current]{color:var(--theme-link)}
html[data-theme=dark] .mega-group .catalogue-pending{color:var(--muted)}
html[data-theme=dark] :is(a,button,input,select,textarea):focus-visible{outline-color:var(--theme-link)}
