/* Mobile baseline for every page on the space.
   Deliberately small: only fixes that are correct for any design.
   Loaded globally from custom_head_html as /mobile.css. */

/* Stop iOS/Android from inflating type in landscape (it breaks fixed layouts). */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* A stray wide image must never push the page sideways. */
img,
video {
  max-width: 100%;
}

/* Touch devices: no double-tap zoom on controls, and no control below the
   WCAG 2.2 minimum target (24x24). Buttons only — links inside prose must
   keep their natural inline box. */
@media (pointer: coarse) {
  button,
  [role="button"],
  input[type="checkbox"],
  input[type="radio"] {
    touch-action: manipulation;
  }
  button,
  [role="button"] {
    min-height: 24px;
  }
}

/* iOS zooms the whole page whenever a form field focuses below 16px. This is
   the single most common mobile annoyance across the tools. */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
