/*
 * The colour theme's switch (assets/js/theme.js): next to the logo in the top bar, no words, a knob that slides
 * (left: the white theme, the default; right: the cream one). Charcoal with a cream knob, like the home page headline.
 * A page can have more of the same switch: <button class="theme-toggle" data-theme-switch>.
 */
.theme-toggle { flex: none; position: relative; width: 54px; height: 30px; margin: 0 auto 0 10px; padding: 0;
  border-radius: 999px; border: 2px solid #211f24; background: #211f24; cursor: pointer; transition: background .3s, border-color .3s; }
.theme-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #f8e2d1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.3, .7, .3, 1), background .3s; }
/* the second theme (cream page): the knob on the right, white (cream and white swap there) */
.theme-toggle[aria-checked="true"] .theme-knob { transform: translateX(24px); background: #fff; }
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid #ffc65c; outline-offset: 2px; }
@media (max-width: 720px) { .theme-toggle { margin-left: 8px; } }
