/* Remove default margins, paddings, and set box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove list styles */
ul, ol {
  list-style: none;
}

/* Remove default anchor styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Reset heading and paragraph styles */
h1, h2, h3, h4, h5, h6, p {
  font-weight: normal;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove default form fields styles */
input, select, button, textarea {
  appearance: none;
  background: none;
  border: none;
}

/* Changes the cursor on pointer */
button {
  background: none;
  border: none;
  cursor: pointer;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
}

body form :where(input:not(.error), select:not(.error), textarea:not(.error)):focus-visible {
  border-color: var(--color-form-focus, var(--color-text-highlight--1, #003399)) !important;
  box-shadow: inset 0 0 0 1px var(--color-form-focus, var(--color-text-highlight--1, #003399));
}

:where(button, [role="button"]):focus-visible {
  color: var(--color-text-highlight--1, #003399);
  border-color: var(--color-text-highlight--1, #003399) !important;
  box-shadow: inset 0 -3px 0 var(--color-text-highlight--1, #003399);
}

:where(a):focus-visible {
  color: var(--color-links, #003399);
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:where(summary, [tabindex]):focus-visible {
  color: var(--color-text-highlight--1, #003399);
  box-shadow: inset 0 -3px 0 var(--color-text-highlight--1, #003399);
}

:where(input[type="checkbox"], input[type="radio"]):focus-visible + label {
  color: var(--color-text-highlight--1, #003399);
  text-decoration: underline 2px;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
