/* App pages (/buy/, /cart/, /login/ ...): layout around the untouched app view, with the shared
   site header + footer (inc/claude/app-chrome.php). Hand-written. */

/* the old header was position:fixed with body { margin-top: 94px / 78px !important } in
   momentum.css; the new header is sticky and in the flow, so the offset goes */
body.mc-app{margin-top:0 !important;background:#ffffff;}
/* white behind the view, and enough height that the footer stays down on short views */
body.mc-app #container{background:#ffffff;min-height:max(620px, calc(100vh - 69px));}
/* the shared header + footer span the page (momentum.css' flex column wrapper) */
body.mc-app .site-wrapper > .mc-site-header,body.mc-app .site-wrapper > .mc-site-footer{flex:none;width:100%;}
/* WordPress admin toolbar (logged-in staff only). momentum.css hides #wpadminbar and zeroes
   html's margin, but the sticky header still sits 32px down for it (site-app.css), which left
   a blank white strip. Show the toolbar again, with WordPress' own offsets. */
body.admin-bar.mc-app #wpadminbar{display:block !important;}
html:has(> body.admin-bar.mc-app){margin-top:32px !important;}
@media screen and (max-width:782px){html:has(> body.admin-bar.mc-app){margin-top:46px !important;}}
