/* TaTasque — MAP FOCUS on a phone (public/mapfocus/mapfocus.js). Prefix thmf-. App tokens only. Copyright Rapid Surveys Pty Ltd.
 * body.thmf-on = hide everything but the action; body.thmf-act = an action is on (its own bar stays). Phones only: a computer never matches. */
@media (max-width: 767px) {
  /* what goes: the company row, the + buttons (the bottom strip Tasks · Map · More STAYS, Gary 2026-11-07 mp7), the filter row, every map button except the scale + credit */
  body.thmf-on #topbar, body.thmf-on #fab, body.thmf-on #mapToolbarSlot,
  body.thmf-on #overviewSheet .leaflet-control-container .leaflet-control:not(.leaflet-control-scale):not(.leaflet-control-attribution):not(.th-scalebar-ctl):not(.thf-lyr):not(.thtm-ctl),   /* .thf-lyr: the form's Plans list while the Map picks a spot for a form (FORMPICKPLANS) stays reachable on a phone */
  body.thmf-on #overviewSheet .thmd-chip, body.thmf-on .thtm-bottom, body.thmf-on .thtm-fixed { display:none !important; }   /* the pen bar already names what is drawn */
  body.thmf-act #overviewSheet .th-scalebar-ctl { display:none !important; }   /* an action's own bar sits where the scale is */
  /* the map fills the screen */
  body.thmf-on #overviewSheet.mapview { top:var(--thtm-notice-b, 0px); }   /* the notice strip stays: the spanner and its ✕ never move (Gary 2026-11-07) */
  /* what stays keeps clear of the screen's edges (notch); the strip below the map keeps the home bar clear */
  body.thmf-on #overviewSheet .thom-sheet { left:calc(8px + env(safe-area-inset-left)); right:calc(8px + env(safe-area-inset-right)); }
  body.thmf-on #overviewSheet .mapnote { top:calc(10px + env(safe-area-inset-top)); }
  body.thmf-on #overviewSheet .leaflet-control-attribution { margin-bottom:env(safe-area-inset-bottom); }
}
