/* Loaded by every page. Windows high contrast removes backgrounds and box shadows,
   which is how this site marks selected items and team colours. No effect in normal mode. */
@media (forced-colors: active) {
  /* Charts and court lines are drawn from these tokens, so they follow the contrast theme. */
  :root { --text:CanvasText; --muted:CanvasText; --faint:CanvasText; --control:CanvasText;
    --rule:GrayText; --light-kit:GrayText; }

  /* Selected filters, tabs and the clip that is playing: the theme's own colours, swapped.
     !important because the pages' own selected styles are more specific. */
  button[aria-pressed="true"], button[aria-selected="true"], button.on, .chip.on {
    forced-color-adjust:none; background:CanvasText !important; color:Canvas !important; }
  button[aria-pressed="true"] *, button[aria-selected="true"] *, button.on *, .chip.on * {
    forced-color-adjust:none; color:inherit !important; }

  /* The "made shot" marker is only a background, so it would vanish. */
  .dot { forced-color-adjust:none; }

  /* Team dots stay in the team's colour, with an edge so they show on any background. */
  .kit { forced-color-adjust:none; outline:1px solid CanvasText; }
  .kit-light { background:#e9e6e1; }
  .kit-dark { background:#6e4fb0; }

  /* Section on screen in the top bar, and flagged values in the box score. */
  .bar nav a[aria-current="location"] { text-decoration:underline; text-underline-offset:6px; }
  .chk.off { outline:1px solid CanvasText; }
}
