/* Theme toggle */
.theme-toggle{font:inherit;color:inherit;background:none;border:0;padding:13px 2px;min-width:44px;min-height:44px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;opacity:.85}
.theme-toggle:hover{opacity:1}
.theme-toggle svg{width:17px;height:17px;display:block}
.theme-toggle .sun{display:none}
html[data-theme=dark] .theme-toggle .sun{display:block}
html[data-theme=dark] .theme-toggle .moon{display:none}
.theme-toggle:focus-visible{outline:2px solid #ac854a;outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
nav{align-items:center}

/* Strategic counsel map: match the other scene images in height, keep the whole map */
@media(min-width:701px){.counsel .scene.lead{width:min(1000px,calc(100vw - 2*max(22px,4vw)))}.counsel .scene.lead img{aspect-ratio:2/1}}

/* Contact form */
.contact .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.contact button[disabled]{opacity:.7;cursor:default}
.contact .form-privacy{font:13px/1.5 var(--ui)!important;color:#6d6c63;margin:14px 0 0!important}
.contact .form-privacy a{color:inherit}
#contact-status{font:15px/1.5 var(--ui);margin:10px 0 0}
#contact-status[data-kind=ok]{color:#2f5a3f}
#contact-status[data-kind=error]{color:#9b2c2c}

/* Dark mode */
html[data-theme=dark]{color-scheme:dark;--gold-text:#d9bb84;--navy:#e9e4d8}
html[data-theme=dark] body{background:#0d1729;color:#d9d6cc}
html[data-theme=dark] main,html[data-theme=dark] .text-page{background:transparent!important}
html[data-theme=dark] header{border-bottom-color:rgba(194,166,121,.35)!important;background:#0c1628}
html[data-theme=dark] header .logo svg g{fill:#d6b57b}
html[data-theme=dark] header .logo svg>path{fill:#f4e3bf}
html[data-theme=dark] nav a,html[data-theme=dark] .theme-toggle{color:#e3dfd3!important}
html[data-theme=dark] .text-page h1,html[data-theme=dark] .text-page h2,html[data-theme=dark] .legal h2,html[data-theme=dark] .polaris-caption span{color:#f1ece0!important}
html[data-theme=dark] .text-page p,html[data-theme=dark] .text-page li,html[data-theme=dark] .text-page strong,html[data-theme=dark] .text-page label,html[data-theme=dark] .text-page small,html[data-theme=dark] .polaris-fact{color:#d3cfc4!important}
html[data-theme=dark] .text-page p.opening{color:#e7e2d6!important}
html[data-theme=dark] .text-page a,html[data-theme=dark] a.next,html[data-theme=dark] .context-link{color:#dfc28c!important}
html[data-theme=dark] .role,html[data-theme=dark] .bio-head .role{color:#d9bb84!important}
html[data-theme=dark] .scene-credit,html[data-theme=dark] .contact .form-privacy{color:#9c988c!important}
html[data-theme=dark] .counsel .svc,html[data-theme=dark] .services,html[data-theme=dark] .text-page hr{border-color:rgba(194,166,121,.28)!important}
html[data-theme=dark] .contact input,html[data-theme=dark] .contact textarea{background:#131f35;border-color:#4a5468;color:#ece8dc}
html[data-theme=dark] .contact button{background:#d6b57b;color:#0c1628;box-shadow:none}
html[data-theme=dark] .contact button:hover{background:#e4c793}
html[data-theme=dark] #contact-status[data-kind=ok]{color:#9fd3ae}
html[data-theme=dark] #contact-status[data-kind=error]{color:#f0a3a3}
html[data-theme=dark] footer.end{background:#0a1322!important;color:#c9c5b9!important}
html[data-theme=dark] footer.end a,html[data-theme=dark] footer.end summary,html[data-theme=dark] footer.end h2,html[data-theme=dark] footer.end p,html[data-theme=dark] footer.end button{color:#d6d2c6!important}
html[data-theme=dark] footer.end button{border-color:#6c7386}
html[data-theme=dark] .end-row{border-color:rgba(194,166,121,.35)!important}
html[data-theme=dark] .skip:focus{background:#0c1628;color:#fff}
nav a{white-space:nowrap}
@media(max-width:700px){nav{gap:clamp(10px,3.6vw,18px)}nav a,.theme-toggle{font-size:13.5px}.theme-toggle{min-width:40px;padding-inline:0}}
@media(max-width:360px){nav{gap:8px}nav a{font-size:12.5px}}
html[data-theme=dark] body:not(:has(.field)) footer.end{background:transparent!important}
html,body{overflow-x:clip}
[data-theme=dark] .polaris-credit{color:#a9a698!important}
[data-theme=dark] .polaris-credit a:hover{color:#d6b57b!important}
