/* Compact theme action. The icon names the theme the button will enable. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border:1px solid #8cb7ac;border-radius:12px;background:#eef8f2;color:#006d77;cursor:pointer;touch-action:manipulation;vertical-align:middle}
.site-header .theme-toggle{padding:0}
.site-header .header-actions .theme-toggle{flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;align-self:center}
.theme-toggle svg{display:block;width:23px;height:23px;pointer-events:none}
.theme-toggle [hidden]{display:none}
.theme-toggle:hover{background:#dcefe6;border-color:#508e82}
.theme-toggle:focus-visible{outline:3px solid #007e87;outline-offset:4px}
html[data-theme=dark] .theme-toggle{background:#1b3a3e;color:#a1e7d8;border-color:#709f99}
html[data-theme=dark] .theme-toggle:hover{background:#285053}
html[data-theme=dark] .theme-toggle:focus-visible{outline-color:#8de0d3}
.site-header>.theme-toggle{margin-left:auto}
@media(max-width:1180px){.site-header{flex-wrap:wrap}body:not(.access-page) .site-header>nav{order:3;flex-basis:100%}}
@media(max-width:850px){.site-header .header-actions{width:100%;margin-left:0}}
@media(max-width:650px){
 .site-header .header-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px}
 .site-header .header-actions>.primary{grid-column:1/-1}
 .site-header .header-actions .theme-toggle{width:48px;min-width:48px}
}
.access-page .site-header{flex-wrap:wrap}
@media(max-width:600px){
 .access-page .site-header{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px 12px}
 .access-page .site-header .brand{grid-column:1;grid-row:1}
 .access-page .site-header>.theme-toggle{grid-column:2;grid-row:1}
 .access-page .site-header nav{grid-column:1/-1;grid-row:2}
}
.demo-header{flex-wrap:wrap}.demo-header .theme-toggle{margin-left:auto}
@media(max-width:600px){.demo-header .brand{flex-basis:100%}.demo-header .theme-label{margin-right:auto}}
/* Explicit choices must also override system-only styles on closed entry pages. */
html[data-theme=light] body.access-page{--access-fg:#202e32;--access-muted:#4c6063;--access-line:#b9cfc7;--access-accent:#006d77;background:#fffdf8 url("/page-pattern.svg");color:var(--access-fg)}
html[data-theme=light] .access-page .access-panel{background:#fffefa;border-color:#adc8be;box-shadow:0 14px 38px -28px #1c273c30}
html[data-theme=light] .access-page .access-field input{background:#f1f8f3;border-color:#abc8bc;color:#202e32}
html[data-theme=light] .access-page .access-submit:disabled{background:#e0e2e4;color:#414345;border-color:#d1d3d5}
html[data-theme=light] .access-page .brand{color:#202e32}
html[data-theme=dark] body.access-page{--access-fg:#edf6f3;--access-muted:#c0d6d2;--access-line:#648d87;--access-accent:#8de0d3;background:#101d22;color:var(--access-fg)}
html[data-theme=dark] .access-page .access-panel{background:#172930;border-color:#648d87;box-shadow:none}
html[data-theme=dark] .access-page .access-field input{background:#132a2e;border-color:#648d87;color:#edf6f3}
html[data-theme=dark] .access-page .access-submit:disabled{background:#303b44;color:#d2dbe2;border-color:#64717b}
html[data-theme=dark] .access-page .brand{color:#edf6f3}
html[data-theme=light] body.legal-page{--ink:#202e32;--muted:#4c6063;--paper:#fffefa;--base:#fffdf8;--line:#c4d7ce;--purple:#006d77;background:#fffdf8 url("/page-pattern.svg")}
html[data-theme=light] .legal-page :is(.note,code){background:#edf7f1}
html[data-theme=dark] body.legal-page{--ink:#edf6f3;--muted:#c0d6d2;--paper:#172930;--base:#101d22;--line:#648d87;--purple:#8de0d3;background:#101d22}
html[data-theme=dark] .legal-page :is(.note,code){background:#21413f}
@media(prefers-reduced-motion:reduce){.theme-toggle{animation:none;transition:none}}
