/* CTPA 2026-11-04: Prevent Safari iOS auto-zoom on keyboard focus.
   Keep accessible browser pinch zoom and the existing viewport metadata.
   Applies to every route and dynamically inserted editor/form field. */
@media screen and (max-width: 1024px), (pointer: coarse) {
  :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    textarea,
    select,
    [contenteditable]:not([contenteditable="false"])
  ) {
    font-size: 16px !important;
  }
}

/* The habits grid's intrinsic minimum previously stretched 320px layouts. */
@media screen and (max-width: 400px) {
  .col-stack { grid-template-columns: minmax(0, 1fr); }
  .oh-goal-tile strong { overflow-wrap: anywhere; }
}
