/* Matching binary switches; each pill is one button and one hit target. */
@media screen {
  .r-segs {gap:8px;align-items:center;}
  .r-header-switch {position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;align-items:center;flex:0 0 88px;width:88px;height:40px;padding:3px;border:1px solid var(--line-2);border-radius:999px;background:var(--card);color:var(--faint);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;}
  .r-switch-indicator {position:absolute;z-index:-1;left:3px;top:3px;width:calc((100% - 6px)/2);height:calc(100% - 6px);border-radius:999px;background:var(--well);transform:translateX(0);transition:transform 180ms cubic-bezier(.23,1,.32,1);}
  .r-header-switch[aria-checked="true"] .r-switch-indicator {transform:translateX(100%);}
  .r-switch-choice {display:flex;align-items:center;justify-content:center;height:100%;font-family:var(--font-display);font-size:12px;font-weight:600;line-height:1;pointer-events:none;}
  .r-switch-choice svg {width:16px;height:16px;}
  .r-header-switch[aria-checked="false"] [data-choice="first"],.r-header-switch[aria-checked="true"] [data-choice="second"] {color:var(--ink);}
  .r-header-switch:hover {border-color:var(--ink-2);}
  .r-header-switch:focus-visible {outline:2px solid var(--ink);outline-offset:4px;}
  .r-header-switch:active {border-color:var(--ink);}
  @media(max-width:620px) {.r-header-switch{width:72px;flex-basis:72px;} .r-segs{gap:6px;}}
  @media(max-width:380px) {.r-header-switch{width:64px;flex-basis:64px;} .r-side-foot{gap:5px;} .r-segs{gap:4px;}}
  @media(max-width:380px) {
    .r-nav-dl > .zh,.r-nav-dl > .en {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
    .r-nav-dl {height:40px;padding:0 12px;gap:6px;}
  }
  @media(prefers-reduced-motion:reduce) {.r-switch-indicator{transition:none;}}
}
