/* TiviLux mobile Safari bottom navigation clearance — 2026-11-21.
   Keep the existing fixed six-tab dock and make underlying page controls reachable. */
@media (max-width:760px) and (pointer:coarse) {
  :root { --tivilux-mobile-dock-clearance: calc(118px + env(safe-area-inset-bottom, 0px)); }
  html { min-height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  body:not(:has(#main.auth-page)) { min-height:100dvh; height:auto; overflow-y:auto!important; padding-bottom:var(--tivilux-mobile-dock-clearance)!important; }
  body:not(:has(#main.auth-page)) #main:not(.auth-page) { height:auto; min-height:0; overflow-y:visible!important; padding-bottom:var(--tivilux-mobile-dock-clearance)!important; }
  body:not(:has(#main.auth-page)) #main:not(.auth-page) :is(button,a,input,select) { scroll-margin-bottom:var(--tivilux-mobile-dock-clearance); }
  #mobile-nav:not([hidden]) { flex-shrink:0; }
}
