/* after32 (Indy 2026-10-23): iOS Settings switch (UISwitch) as the theme control, replacing the sun/moon button.
   ON (green) = dark mode, OFF (grey) = light mode. Apple proportions 51×31, knob 27, 2pt inset. No glyphs.
   --p: 0 = off, 1 = on (springy ease); --kw = knob length (stretches while pressed). */
@property --p  { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --kw { syntax: "<number>"; inherits: true; initial-value: 27; }
.ios-switch {
  --p: 1; --kw: 27; --u: .9px;
  appearance: none; border: 0; padding: 0; margin: 0; background: none; color: inherit; cursor: pointer;
  width: calc(51 * var(--u)); height: calc(31 * var(--u)); border-radius: 999px; position: relative; display: block; flex: none;
  -webkit-tap-highlight-color: transparent;
  transition: --p 380ms cubic-bezier(.3, 1.35, .45, 1), --kw 220ms cubic-bezier(.25, .8, .3, 1);
}
[data-theme="light"] .ios-switch { --p: 0; }
.ios-switch:active, .ios-switch.is-pressed { --kw: 33; }
.ios-switch:focus-visible { outline: 2px solid var(--ds-accent, #0a84ff); outline-offset: 3px; }
.ios-track { position: absolute; inset: 0; border-radius: inherit; display: block;
  background-color: #34c759; transition: background-color 250ms ease; }
html[data-theme="light"] .ios-track { background-color: #e9e9ea; }
html[data-theme="dark"] .ios-switch[aria-checked="false"] .ios-track { background-color: #39393d; }   /* iOS dark-mode off grey */
.ios-knob { position: absolute; top: calc(2 * var(--u)); height: calc(27 * var(--u)); display: block; border-radius: 999px; background: #fff;
  width: calc(var(--kw) * var(--u));
  left: calc((2 + var(--p) * (47 - var(--kw))) * var(--u));
  box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.15), 0 calc(3 * var(--u)) calc(1 * var(--u)) rgba(0,0,0,.06),
              0 0 0 .5px rgba(0,0,0,.04); }
@media (max-width: 600px) { .ios-switch { --u: .8px; } }
@media (prefers-reduced-motion: reduce) {
  .ios-switch, .ios-track { transition: none; }
  .ios-switch:active, .ios-switch.is-pressed { --kw: 27; }
}

/* r12 (Indy 2026-10-24): the etched sun/moon glyphs on the knob are removed; the knob is plain again. */
