/* Theme switch, shared by every page. */
.theme-switch { display: inline-flex; gap: 2px; margin-top: 20px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--edge); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.theme-switch svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button:focus-visible { outline: 2px solid var(--grad-1); outline-offset: 2px; }
.theme-foot { display: flex; justify-content: center; padding: 0 20px 32px; }
.theme-foot .theme-switch { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .theme-switch button { transition: none; } }
@media (max-width: 640px) { .footer .theme-switch { display: flex; width: fit-content; margin-inline: auto; } }
