/* ---------- Accessibility fixes (WCAG AA), Nov 1 2026 ---------- */

/* Image captions: full-strength muted grey instead of fading the text with opacity (was about 3.7:1) */
.cc-shot figcaption { opacity: 1; color: var(--muted); }

/* "To write" labels on draft pages: the dark-mode colour now also applies when dark mode comes from the device setting */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft b { color: var(--accent); } }

/* Pause / play button on looping videos (js/video-pause-1101a.js).
   44px tap target, sits in the video's bottom-right corner. Motion tokens: 0.2s, ease. */
.vid-wrap { position: relative; }
.vid-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(20, 24, 28, .72); color: #fff; cursor: pointer;
  transition: background-color .2s ease;
}
.vid-toggle:hover { background: rgba(20, 24, 28, .9); }
.vid-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.vid-toggle svg { width: 18px; height: 18px; display: block; }
