/* Shared mobile baseline, loaded by every page.
   - overflow-x: clip: an element that pokes out sideways (an entrance animation, a wide table)
     must never widen the page, or the phone zooms out to fit it and the site looks "broken".
     clip (not hidden) keeps position: sticky working.
   - 16px fields on touch: iOS zooms in when a field under 16px gets focus and doesn't zoom back. */
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img, video, iframe { max-width: 100%; }
@media (pointer: coarse) {
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px !important; }
    a, button, [role="button"], label { touch-action: manipulation; }
}

/* Panels (sidebar + main): the main column must shrink to the screen instead of growing to its content */
main.flex-grow-1 { min-width: 0; }
@media (max-width: 575.98px) {
    main.flex-grow-1.p-4 { padding: 16px !important; }
}
