/* Student v447: native touch-form compatibility. Claude design tokens and
   desktop rules remain in the original page. Pinch zoom stays available. */
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Reuse the original .input 16px baseline for the smaller editable
     exceptions (auth, major search and visa helpers). iOS may otherwise
     zoom on focus and retain that visual viewport when changing steps. */
  input:is(:not([type]), [type="text"], [type="email"], [type="password"],
    [type="tel"], [type="number"], [type="search"], [type="url"],
    [type="date"], [type="time"], [type="datetime-local"],
    [type="month"], [type="week"]):not([readonly]):not(:disabled),
  select:not(:disabled),
  textarea:not([readonly]):not(:disabled) {
    font-size: 16px !important;
  }

  /* A native date button can retain its own intrinsic size in Safari.
     Keep the ISO date value and native picker, with the same field bounds
     and left alignment as the original text inputs. */
  input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    text-align: left;
  }

  input.input[type="date"] {
    block-size: 3em;
    min-block-size: 3em;
  }

  input[type="date"]::-webkit-date-and-time-value {
    min-inline-size: 0;
    min-block-size: 1.25em;
    text-align: left;
  }

  input[type="date"]::-webkit-datetime-edit {
    min-inline-size: 0;
    padding: 0;
  }
}
