#theme-toggle { margin-inline-start:auto; flex:none; padding:.45rem .75rem; border:1px solid var(--line); border-radius:.5rem; background:var(--canvas); color:var(--ink); font:inherit; font-size:.88rem; cursor:pointer }
#theme-toggle[aria-pressed=true] { border-color:var(--brand) }
.header-inner { flex-wrap:wrap }
html[data-theme=dark] { color-scheme:dark; --ink:#e6edf5; --muted:#b7c6d8; --brand:#91c2ff; --deep:#b5d7ff; --tint:#23374d; --line:#46596e; --canvas:#101923; --white:#1b2836; --accent:#ffb28b; background:var(--canvas); color:var(--ink) }
html[data-theme=dark] body { background:var(--canvas); color:var(--ink) }
html[data-theme=dark] :where(header,main,footer) :is(div,section,aside,article,nav,details,summary,p,span,small,strong,b,li,h1,h2,h3,h4,label,figcaption,th,td,dt,dd,pre,code,blockquote,fieldset,legend,ol,ul,table,button,input,select,option,a), html[data-theme=dark] :is(.site-header,.site-footer) { background-color:transparent; background-image:none; color:inherit; border-color:var(--line) }
html[data-theme=dark] :is(.site-header,.panel,.search-hero,.category-card,.exam-card,.result-item,.article-header,.article-body,.toc,.practice-question,.practice-intro,.learn-article,.practice-option,input,select,option,button) { background-color:var(--white); color:var(--ink) }
html[data-theme=dark] :is(.character-note,.note,.review-answer,.practice-answer,th,pre,code,.article-summary,.index-table a,.practice-option:has(:checked)) { background-color:var(--tint); color:var(--ink) }
html[data-theme=dark] :is(a[href],summary,.term-blue,.term-navy,.eyebrow,.character-name) { color:var(--brand) }
html[data-theme=dark] :is(.muted,.metadata,.reading,.header-note,figcaption,small) { color:var(--muted) }
html[data-theme=dark] :is(button:hover,a[href]:hover,summary:hover) { color:#fff; background-color:#30465e }
html[data-theme=dark] :is([aria-pressed=true],[aria-current=page],.practice-option:has(:checked)) { outline:1px solid var(--brand); outline-offset:-1px }
html[data-theme=dark] :focus-visible { outline:3px solid #ffd572; outline-offset:2px }
html[data-theme=dark] .is-correct { color:#94e5ae }
html[data-theme=dark] .is-incorrect { color:#ffaeac }
html[data-theme=dark] .content-figure img { background:white }
