/* The three-way theme switch drawn by /theme.js */
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line, color-mix(in oklab, currentColor 14%, transparent)); border-radius: 99px; flex: none; }
.theme-toggle button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--muted, #6a6a6a); cursor: pointer; transition: background-color .15s, color .15s; }
.theme-toggle button:hover { color: var(--ink, currentColor); background: color-mix(in oklab, var(--ink, currentColor) 7%, transparent); }
.theme-toggle button[aria-pressed="true"] { color: var(--ink, currentColor); background: color-mix(in oklab, var(--ink, currentColor) 11%, transparent); }
.theme-toggle button:focus-visible { outline: 2px solid var(--p-accent, #1f6b3a); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .theme-toggle button { width: 44px; height: 44px; } }

/* Logos: the dark-ink logo on light, the light one on dark */
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
