/*
 * Mobile input focus-zoom fix for LomiWiki / the tree / Liberty.
 * 1rem alone is not enough: Liberty's default root font is 15px.
 * Apply before focus, including inputs created during SPA navigation.
 * Keep viewport scaling, keyboard events and pinch zoom unchanged.
 */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
    input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not(.pin-input),
    textarea,
    select,
    [contenteditable=""],
    [contenteditable="true"],
    [contenteditable="plaintext-only"] {
        font-size: 16px !important;
        font-size: max(16px, 1rem) !important;
    }

    /* Preserve the engine's already-larger verification-code text. */
    input.pin-input {
        font-size: 16.5px !important;
        font-size: max(16px, 1.1rem) !important;
    }

    /* Fit the larger text within Liberty's existing search-input height. */
    .Liberty #searchInput {
        line-height: 1.25 !important;
    }
}
