/* Shared accessibility safeguards for every supported hosted Alpha route. */
html {
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  line-height: 1.5;
}

main,
section,
article,
aside,
header,
footer,
nav,
form,
fieldset,
div {
  min-width: 0;
}

p,
li,
dt,
dd,
label,
button,
a {
  overflow-wrap: anywhere;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #f5b942;
  outline-offset: 3px;
}

:where(button, input, select, textarea, summary) {
  min-height: 44px;
  font: inherit;
}

@media (max-width: 40rem) {
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-width: 4px;
  }

  a {
    text-decoration-thickness: 0.16em;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: Highlight;
  }

  :where(.status-message, [role='status'], .error-summary, [role='alert']) {
    border: 2px solid CanvasText;
  }

  :where(button, .button, .btn, [aria-pressed='true'], [aria-current]) {
    forced-color-adjust: auto;
  }
}
