/* R5: align central public pages with the existing Appstead layout contract.
   Scope remains public; internal workspaces keep their own scrolling/navigation. */
html body .mc-public-home .mc-public-left > .mc-video-entry{
 flex:0 0 auto;align-self:stretch;width:100%;min-height:44px;
 box-sizing:border-box;white-space:normal;text-align:center;
}
/* MAX-Cloud mobile public-logo anchor contract.
   The logo is the only fixed top element. Scrolling content fades away before it. */
.mc-public-fixed-logo{display:none}
@media(max-width:1000px){
 html:has(body #app > main.mc-public-home),
 html body:has(#app > main.mc-public-home),
 html body #app:has(>main.mc-public-home){
  height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;
 }
 html body #app > main.mc-public-home{
  --mc-mobile-logo-zone:152px;
  --mc-mobile-fade-start:100px;
  --mc-mobile-fade-end:158px;
  position:relative!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;
 }
 html body .mc-public-fixed-logo{
  position:fixed!important;z-index:95!important;
  top:max(10px,env(safe-area-inset-top))!important;left:14px!important;right:auto!important;
  width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;box-sizing:border-box!important;
  display:grid!important;place-items:center!important;height:124px!important;
  margin:0!important;padding:0!important;background:transparent!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;pointer-events:none!important;
 }
 html body .mc-public-fixed-logo>a{display:grid!important;place-items:center!important;width:min(100%,390px)!important;height:100%!important;pointer-events:auto!important}
 html body .mc-public-fixed-logo img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:116px!important;object-fit:contain!important}
 html body .mc-public-home .mc-public-logo-safe{display:none!important}
 html body .mc-public-home .mc-public-shell{
  position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;
  width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:var(--mc-mobile-logo-zone) 14px calc(122px + env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;
  scrollbar-gutter:auto!important;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent var(--mc-mobile-fade-start),#000 var(--mc-mobile-fade-end),#000 100%)!important;
  mask-image:linear-gradient(to bottom,transparent 0,transparent var(--mc-mobile-fade-start),#000 var(--mc-mobile-fade-end),#000 100%)!important;
 }
 html body .mc-public-home.has-form .mc-public-shell{padding-bottom:calc(132px + env(safe-area-inset-bottom))!important}
 html body .mc-public-home .public-route-form{padding-bottom:26px!important}
 html body .mc-public-home .trial-system-card{margin-bottom:22px!important}
 html body .mc-public-home .mc-sponsor-strip.mc-sponsors-mobile{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
 html body .mc-public-home .mc-sponsor-strip.mc-sponsors-mobile .mc-sponsor-viewport{min-width:0!important;max-width:100%!important}
 html body .mc-public-home .mc-sponsor-strip.mc-sponsors-mobile .mc-sponsor-control{flex:0 0 34px!important;width:34px!important}
 body:has(.mc-public-home) .mc-public-footer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
