/* assets/mobile.css — the Ops Centre's mobile layer (feature/mobile-p1), loaded by data/ops_head.php.
   Phone and tablet only, so the desktop layout is untouched. */

/* iOS zooms the page when a field under 16px is focused. 16px stops it, without blocking pinch zoom. */
@media (max-width: 639px) {
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),
  select, textarea, [contenteditable="true"], .ql-editor { font-size: 16px !important; }
}

/* Header and menu: 44px tap targets below the desktop nav breakpoint (xl). */
@media (max-width: 1279px) {
  #nav-hamburger-btn { width: 44px !important; height: 44px !important; }
  #privacy-mode-toggle { min-width: 44px; min-height: 44px; }
  header a[title="Operations Centre home"] { min-width: 44px; min-height: 44px; }
  #mobile-nav-panel nav > div > div > a, #mobile-nav-panel nav > a,
  #mobile-nav-panel nav button, #mobile-nav-panel [id^="mobilenavdd-"] a { min-height: 44px; display: flex; align-items: center; }
  #mobile-search-input { min-height: 44px; }
}

/* Notch and home indicator: zero on a normal screen, real padding on an iPhone. */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
/* Installed app (black-translucent status bar): keep the header clear of the clock and battery. */
html.ops-app header { padding-top: env(safe-area-inset-top); }
html.ops-app body { padding-bottom: env(safe-area-inset-bottom); }

/* Touch screens: things that only appear on hover are always visible. */
@media (hover: none) {
  .group:hover .group-hover\:opacity-100, .group .group-hover\:opacity-100 { opacity: 1; }
}

/* Kanban boards on a phone: one column at a time, snapping, with the next column peeking in so it is
   obvious there is more. Cards move with the "Move to…" select (dragging is unreliable on touch). */
@media (max-width: 639px) {
  main:has(> #board), main:has(> #board-flat) { scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
  #board > .lead-col { flex: 0 0 85vw; min-width: 0; scroll-snap-align: start; }
  #board-flat > .w-72 { width: 85vw; scroll-snap-align: start; }
}
