/* The cookie policy's Analytics cookies control: site/src/analytics.js renders it into [data-cookie-choices] (the
   `@cookie-choices` line in a page's Markdown), and scripts/sitegen.py links this file on the pages that have one.
   Tokens only (docs-tokens.css, pages.css); the segmented On/Off follows the docs' quiet controls. */
.cookie-choices { margin: 20px 0 24px; padding: 20px clamp(16px, 4vw, 24px); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-s); }
.cookie-choices__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.prose .cookie-choices__title { margin: 0; font: 500 18px/1.35 var(--font-sans); letter-spacing: -0.01em; color: var(--text-strong); }
.prose .cookie-choices__status { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-body); }
.prose .cookie-choices__head + .cookie-choices__status { margin-top: 12px; max-width: 60ch; }
.cookie-choices__switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-xs); }
.cookie-choices__option { position: relative; display: inline-flex; }
.cookie-choices__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-choices__option span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: var(--button-height-sm); padding: 0 16px; border-radius: calc(var(--radius-xs) - 1px); font-size: 15px; color: var(--text-body); transition: background-color .15s, color .15s, box-shadow .15s; }
.cookie-choices__option input:hover + span { color: var(--text-strong); }
.cookie-choices__option input:checked + span { background: var(--bg-surface); color: var(--text-strong); box-shadow: 0 0 0 1px var(--border-strong); }
.cookie-choices__option input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (any-pointer: coarse) {
  .cookie-choices__option span { height: auto; min-height: var(--touch-target); min-width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-choices__option span { transition: none; }
}
