/* Static presentation does not expose selection or long-press browser callouts. */
body,
body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Keep text entry and the actual manual-copy fallbacks fully selectable. */
body input,
body textarea,
body [contenteditable="true"],
body [contenteditable="true"] *,
body [contenteditable=""],
body [contenteditable=""] *,
body [contenteditable="plaintext-only"],
body [contenteditable="plaintext-only"] * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Allow scrolling and pinch zoom while suppressing accidental double-tap zoom. */
html,
body,
#site-viewport,
#site-scroll {
  touch-action: manipulation;
}

/* iOS focuses small form text by zooming; keep phone editing text at least 16px. */
@media (max-width: 600px) {
  body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  body select,
  body textarea,
  body [contenteditable="true"],
  body [contenteditable=""],
  body [contenteditable="plaintext-only"] {
    font-size: max(16px, 1em) !important;
  }
}
