/* Theme switch and shared dark palette for the main search routes. */
.pk-theme-toggle{display:inline-grid;place-items:center;width:40px;height:40px;flex:0 0 40px;padding:0;border:1px solid #dce5f0;border-radius:50%;background:transparent;color:#405875;cursor:pointer;line-height:1;box-sizing:border-box}
.pk-theme-toggle:hover{background:#edf4ff;color:#1759b5;border-color:#b6cbe8}
.pk-theme-toggle:focus-visible{outline:3px solid #86b5fc;outline-offset:3px}
.pk-theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.pk-theme-toggle[hidden],.pk-theme-toggle .pk-sun{display:none!important}
.pk-theme-nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
:root[data-theme=dark]{color-scheme:dark;--pk-bg:#111827;--pk-panel:#1b2637;--pk-raised:#243349;--pk-ink:#e7edf6;--pk-muted:#b5c3d7;--pk-line:#3a4b63;--pk-link:#92baff;--ink:var(--pk-ink);--muted:var(--pk-muted);--line:var(--pk-line);--blue:#92baff}
:root[data-theme=dark] body{background:var(--pk-bg);color:var(--pk-ink)}
:root[data-theme=dark] a,:root[data-theme=dark] .layout-fix{color:var(--pk-link)}
:root[data-theme=dark] .brand{color:var(--pk-ink)}
:root[data-theme=dark] .brand span{color:var(--pk-link)}
:root[data-theme=dark] .brand small,:root[data-theme=dark] .tagline,:root[data-theme=dark] .note,:root[data-theme=dark] .meta,:root[data-theme=dark] footer,:root[data-theme=dark] .options,:root[data-theme=dark] .privacy,:root[data-theme=dark] .external,:root[data-theme=dark] .external p,:root[data-theme=dark] #status,:root[data-theme=dark] .source-tools label,:root[data-theme=dark] .source-line,:root[data-theme=dark] .source-date,:root[data-theme=dark] .source small,:root[data-theme=dark] .pk-option small,:root[data-theme=dark] .pk-assist-bar,:root[data-theme=dark] #verticals a,:root[data-theme=dark] body.pk-local small{color:var(--pk-muted)}
:root[data-theme=dark] header,:root[data-theme=dark] footer,:root[data-theme=dark] fieldset,:root[data-theme=dark] .source-tools,:root[data-theme=dark] .source,:root[data-theme=dark] .overview-compare,:root[data-theme=dark] #questions,:root[data-theme=dark] #related,:root[data-theme=dark] .turn,:root[data-theme=dark] .external,:root[data-theme=dark] .external a{border-color:var(--pk-line)}
:root[data-theme=dark] body.pk-ai header,:root[data-theme=dark] body.pk-ai section,:root[data-theme=dark] body.pk-local .results article,:root[data-theme=dark] .menu-panel,:root[data-theme=dark] .overview,:root[data-theme=dark] .pk-assist,:root[data-theme=dark] .answer{background:var(--pk-panel);color:var(--pk-ink);border-color:var(--pk-line)}
:root[data-theme=dark] .query,:root[data-theme=dark] .query-box{background:var(--pk-panel);border-color:var(--pk-line);box-shadow:none}
:root[data-theme=dark] .query-box:focus-within,:root[data-theme=dark] .query:focus-within{border-color:var(--pk-link);box-shadow:0 0 0 3px #92baff30}
:root[data-theme=dark] input:not([type=radio]):not([type=checkbox]),:root[data-theme=dark] select,:root[data-theme=dark] textarea{background:var(--pk-panel);color:var(--pk-ink);border-color:var(--pk-line)}
:root[data-theme=dark] .query input,:root[data-theme=dark] .query-box input{background:transparent}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:var(--pk-muted);opacity:1}
:root[data-theme=dark] .modes input:checked+span{background:var(--pk-raised);border-color:var(--pk-line);color:var(--pk-link)}
:root[data-theme=dark] body.pk-results fieldset input:checked+span{color:var(--pk-link);border-bottom-color:var(--pk-link);background:transparent}
:root[data-theme=dark] .menu-panel a:hover,:root[data-theme=dark] .pk-option:hover,:root[data-theme=dark] .pk-option[aria-selected=true],:root[data-theme=dark] .secondary,:root[data-theme=dark] .site-letter,:root[data-theme=dark] .links a{background:var(--pk-raised);color:var(--pk-link)}
:root[data-theme=dark] .pk-assist-bar{border-color:var(--pk-line)}
:root[data-theme=dark] .pk-assist-bar button,:root[data-theme=dark] .tag,:root[data-theme=dark] .eyebrow{color:var(--pk-link)}
:root[data-theme=dark] .source p{color:var(--pk-ink)}
:root[data-theme=dark] .query-box button,:root[data-theme=dark] .query button,:root[data-theme=dark] body.pk-ai button:not(.secondary):not(.pk-theme-toggle),:root[data-theme=dark] body.pk-local form button,:root[data-theme=dark] #pagination [aria-current]{background:#2873dc;color:#fff;border-color:#2873dc}
:root[data-theme=dark] .query-box button:hover,:root[data-theme=dark] .query button:hover{background:#2060be}
:root[data-theme=dark] mark{background:#644d16;color:#fff1c3}
:root[data-theme=dark] .source mark{background:transparent;color:inherit}
:root[data-theme=dark] .pk-theme-toggle{border-color:var(--pk-line);background:transparent;color:#ffd477}
:root[data-theme=dark] .pk-theme-toggle:hover{background:var(--pk-raised)}
:root[data-theme=dark] .pk-theme-toggle .pk-moon{display:none!important}
:root[data-theme=dark] .pk-theme-toggle .pk-sun{display:block!important}
@media(max-width:540px){body.pk-home .top{gap:8px}body.pk-home .top nav{gap:8px;flex:1;min-width:0}.pk-theme-toggle{width:38px;height:38px;flex-basis:38px}.pk-theme-nav{gap:8px}}
