/* One focus treatment for form controls across the site. */
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), textarea, select) {
  border-color: #365044;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}

body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), textarea, select):focus {
  border-color: #79bf9b;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

body .search-box {
  transition: border-color .18s ease, background-color .18s ease;
}

body .search-box:focus-within {
  border-color: #79bf9b;
}

body .search-box input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  body :is(input, textarea, select, .search-box) {
    transition: none;
  }
}

@media (forced-colors: active) {
  body :is(input, textarea, select):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}
