/* Shared Logic & Lore palette and theme control. Synced to every product website. */
:root{--paper:#fafafa;--ink:#242424;--muted:#5b5b5b;--accent:#2859b8;--line:#d4d4d4;--pale:#eeeeee;--surface:#ffffff;--solid:#2859b8;--on-solid:#ffffff;--solid-hover:#204993;--banner:#26385e;--banner-ink:#f5f5f5;--shadow:#00000040;--keyword:#75409b;--string:#765335;--comment:#5b5b5b;--number:#80571f;--type:#285e94;--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;--serif:Georgia,'Times New Roman',serif;color-scheme:light;--secondary:#7140a0;--accent-surface:#eaf0ff;--secondary-surface:#f0eafa;--note-bg:#fff2d8;--note-ink:#704500;--note-line:#b87913;--info-bg:#e7f1ff;--info-ink:#234f85;--code-bg:#edf2fc;--code-ink:#263347;--code-line:#b8c9e6;--function:#215ba0;--attribute:#924774;--operator:#76512e;}
:root[data-theme="dark"]{color-scheme:dark;--paper:#2b2b2b;--ink:#eeeeee;--muted:#c4c4c4;--accent:#a6c7ff;--line:#505050;--pale:#363636;--surface:#303030;--solid:#adcaff;--on-solid:#172238;--solid-hover:#c3d8ff;--banner:#303b50;--banner-ink:#eeeeee;--shadow:#00000060;--keyword:#d5b2ff;--string:#e9c28d;--comment:#b8b8b8;--number:#e7c381;--type:#9ecce3;--secondary:#ccb0ff;--accent-surface:#343e50;--secondary-surface:#40384d;--note-bg:#49402e;--note-ink:#f5d59b;--note-line:#e9b653;--info-bg:#303f55;--info-ink:#b8d8ff;--code-bg:#283548;--code-ink:#e9f0fb;--code-line:#516d95;--function:#96d5ff;--attribute:#f1add5;--operator:#f2c48f;}

.theme-switch{display:flex;flex-shrink:0;padding:3px;border:1px solid var(--line);border-radius:99px;background:var(--pale);gap:2px}
.theme-switch button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:11px;padding:7px 9px;border-radius:99px;cursor:pointer;line-height:1.2}
.theme-switch button[aria-pressed="true"]{background:var(--solid);color:var(--on-solid);font-weight:600}
.theme-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:760px){.theme-switch{padding:2px;gap:0}.theme-switch button{font-size:10px;padding:7px 6px}}
@media print{.theme-switch{display:none}}
