html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html :is(a:any-link, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

@media (forced-colors: active) {
  html :is(a:any-link, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: Highlight;
  }
}

html :is(input, select, textarea):is(:user-invalid, [aria-invalid="true"]) {
  border-color: #a61b1b;
}

.form-field-error {
  color: #a61b1b;
  font-weight: 600;
  margin: 4px 0 0;
}

.form-field-hint {
  color: #4b4450;
  font-size: .9rem;
  margin: 0 0 6px;
}

.form-validation-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
