/* iPhone Duo (2026-11-07): closed (outer) and open (inner) are told apart by WIDTH, since a
   closed and a fully open Duo both report device-posture "continuous". A short landscape screen
   (outer, 368px tall) gets a smaller menu button and safe-area sides; touch screens get 44px hit
   areas through ::before without changing drawn sizes. */
@media (orientation: landscape) and (max-height: 430px) {
  .mob-menu-btn { width: 44px; height: 44px; bottom: max(env(safe-area-inset-bottom), 12px); left: max(12px, env(safe-area-inset-left)); }
}
@media (pointer: coarse) {
  .fb-close { position: relative; }
  .fb-close::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}

/* ── Foldables: iPhone Duo, closed and open (Caleb, 2026-11-07) ──────────
   Same format as Maintain (request-public/css/app.css): closed the Duo is a 466x678 phone;
   open it is an 890x626 landscape canvas (626x890 upright, about 445 wide in Split View)
   with the crease down the middle, and its Dynamic Island runs vertically along a side
   edge. Chrome and content keep clear of the island, a floating button never sits on an
   open sheet or drawer, and on the open screen nothing else changes on the open screen. Pinned by tests/unit/foldable-layout-surfaces.test.js. */
:root {
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}
.topbar, .topbar-inner {
  padding-left: max(16px, calc(8px + var(--safe-left)));
  padding-right: max(16px, calc(8px + var(--safe-right)));
}
body:has(.mob-drawer.open) .mob-menu-btn { visibility: hidden; }
@media (max-width: 760px) {
  .mob-menu-btn { left: calc(20px + var(--safe-left)); }
}
.admin-nav { padding-top: var(--safe-top); height: calc(60px + var(--safe-top)); }
@media (max-width: 760px) {
  .admin-nav { height: calc(54px + var(--safe-top)); }
}
