/* The footer appearance switch (appearance/appearance.js): one pill track, Auto · Light · Dark with icon and word, the
   chosen one a raised thumb. Native radios, so Tab, arrow keys and screen readers treat it as a radio group.
   Each page stylesheet maps --ap-* to its own tokens; nothing here names a colour. */
.appearance { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ap-gap); color: var(--ap-muted); font-size: var(--ap-fs); }
.appearance-track { display: inline-flex; padding: var(--ap-pad); gap: var(--ap-pad); border-radius: var(--ap-pill); background: var(--ap-track); box-shadow: inset 0 0 0 1px var(--ap-line); }
.appearance label { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.appearance input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.appearance .ap-face { display: inline-flex; align-items: center; gap: var(--ap-icon-gap); min-height: var(--ap-h); padding: 0 var(--ap-x); border-radius: var(--ap-pill); color: var(--ap-muted); font-weight: var(--ap-w); line-height: 1; transition: background-color var(--ap-dur) ease, color var(--ap-dur) ease; }
.appearance svg { width: var(--ap-icon); height: var(--ap-icon); flex: none; }
.appearance input:checked + .ap-face { background: var(--ap-thumb); color: var(--ap-ink); box-shadow: inset 0 0 0 1px var(--ap-line-strong); }
.appearance label:hover input:not(:checked) + .ap-face { color: var(--ap-ink); }
.appearance input:focus-visible + .ap-face { outline: none; box-shadow: 0 0 0 3px var(--ap-ring); }
@media (pointer: coarse), (max-width: 599px) { .appearance .ap-face { min-height: var(--ap-h-touch); } }
@media (prefers-reduced-motion: reduce) { .appearance .ap-face { transition: none; } }
