/* Keep editable text above the mobile browser's focus-zoom threshold, including compact controls. */
:where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select,
    textarea,
    [contenteditable]:not([contenteditable="false" i])
) {
    font-size: max(16px, 1rem) !important;
}

:is(input.form-control-lg, textarea.form-control-lg, select.form-select-lg) {
    font-size: max(16px, 1.25rem) !important;
}

/* Remove double-tap magnification from form controls while retaining panning and pinch zoom. */
:is(input, select, textarea, button, [contenteditable]:not([contenteditable="false" i])) {
    touch-action: manipulation;
}
