/* Form fields on iOS (2026-10-06, reported by a student). Linked from every page;
   test/ios-form-fields.test.js checks it stays that way.

   1. iOS Safari zooms in on any text field whose text is under 16px, and leaves the page
      zoomed after typing. On touch screens, field text is never smaller than 16px. Pinch-zoom
      stays on (no maximum-scale), which people with low vision rely on. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]),
  select,
  textarea {
    font-size: max(16px, 1em) !important;
  }
}

/* 2. Safari's contacts / passwords AutoFill button, on fields that opted out of AutoFill
      (student answers use name="search" too, which keeps Safari's contact suggestions away). */
input[autocomplete="off"]::-webkit-contacts-auto-fill-button,
input[autocomplete="off"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}
