/* Preserve visible controls and keyboard focus in Windows High Contrast mode. */
@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 3px;
  }

  button,
  [role="button"],
  input,
  select,
  textarea {
    border-color: ButtonText;
  }

  /* Disabled form fields and custom controls need the same system-colour cue
     as disabled buttons; don't leave their borders looking interactive. */
  :where(
    button,
    input,
    select,
    textarea,
    [role="button"],
    [role="checkbox"],
    [role="radio"],
    [role="switch"],
    [role="tab"],
    [role="option"]
  ):disabled,
  :where(
    button,
    input,
    select,
    textarea,
    [role="button"],
    [role="checkbox"],
    [role="radio"],
    [role="switch"],
    [role="tab"],
    [role="option"]
  )[aria-disabled="true"] {
    color: GrayText;
    border-color: GrayText;
  }

  a {
    color: LinkText;
  }

  svg {
    forced-color-adjust: auto;
  }
}
