/* AMM 2.28.64: Safari iPad/iPhone navigation cleanup.
   Does not change auth, routes, player, or private catalogue.
   Native Safari already provides its own browser chrome: remove the extra
   72px physical clearance in browser mode. Preserve standalone PWA offsets. */
@media (max-width:1100px) and (pointer:coarse) and (display-mode:browser){
  body{padding-top:12px!important;}
}
/* iPad landscape: legacy header kept the original Ask alongside the new
   Ask/Menu buttons. Preserve underlying Ask handler for both shortcuts. */
@media (min-width:821px) and (max-width:1100px) and (pointer:coarse){
  body>header.topbar .top-actions{display:flex!important;align-items:center!important;gap:12px!important;margin-left:auto!important}
  body>header.topbar .top-actions #headerAskAmm{display:none!important}
  body>header.topbar .top-actions .header-brief{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;white-space:nowrap!important}
  body>header.topbar .amm4-head-actions{margin-left:0!important;gap:9px!important}
  body>header.topbar .amm4-head-actions button{min-height:44px!important;min-width:62px!important;padding:9px 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
}
/* The page-history bar belongs on inner pages. Home has menu navigation and
   the browser's own history controls; don't spend a full row on it. */
body.amm-screen-shell[data-amm-screen="home"]>.amm-universal-history,
body.page-view-mode[data-amm-screen="home"]>.amm-universal-history,
body:has(>main>#home.amm-screen-active)>.amm-universal-history{
  display:none!important;
}
@media (max-width:1100px) and (pointer:coarse){
  body>.amm-universal-history:not([hidden]){min-height:42px!important}
}
@media (max-width:440px){
  body>header.topbar .amm4-head-actions button{min-height:44px!important}
}
