/* v392 — maker pages only. Full tool flows with the WEBSITE page; no nested scrolling. */

/* Outer maker sections must be normal document flow. */
.maker-project-page,
.maker-project-page > .maker-project-body,
body[data-page="goal-maker-shell"] main.page-content,
body[data-page="goal-maker-shell"] .goal-maker-shell-panel,
body[data-page="goal-maker-shell"] .goal-maker-shell-panel > .panel-body,
body[data-page="goal-maker-shell"] .goal-maker-embed-wrap{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}

.maker-project-page > .maker-project-body{
  margin:0 !important;
  padding:0 !important;
  border-top:1px solid var(--line) !important;
}

body[data-page="goal-maker-shell"] .goal-maker-shell-panel,
body[data-page="goal-maker-shell"] .goal-maker-shell-panel > .panel-body,
body[data-page="goal-maker-shell"] .goal-maker-embed-wrap{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

/* The iframe never scrolls itself. The height is updated by maker-page-v392.js.
   Fallback heights are intentionally tall enough that the WEBSITE itself always scrolls
   even if a browser blocks local file postMessage sizing. */
html body .maker-project-page .maker-frame,
html body[data-page="goal-maker-shell"] .goal-maker-embed{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#090712 !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  clip:auto !important;
  clip-path:none !important;
  overflow:hidden !important;
}

html body .maker-frame[data-maker-kind="frame"]{height:1800px !important;}
html body .maker-frame[data-maker-kind="scene"]{height:2200px !important;}
html body[data-page="goal-maker-shell"] .goal-maker-embed{height:2800px !important;}

/* No 'Free' badge above maker names. */
.maker-project-page .real-project-badges{display:none !important;}

@media(max-width:900px){
  html body .maker-frame[data-maker-kind="frame"]{height:3200px !important;}
  html body .maker-frame[data-maker-kind="scene"]{height:4200px !important;}
  html body[data-page="goal-maker-shell"] .goal-maker-embed{height:4800px !important;}
}

/* Explicitly keep the OUTER website document in normal scrolling flow. */
body.maker-site-page:not(.nav-open){
  height:auto !important;
  min-height:100vh !important;
  max-height:none !important;
  overflow-y:visible !important;
}
body.maker-site-page .app-shell,
body.maker-site-page main.page-content{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}


/* v417 Frame & Media Studio flow alignment patch */
/* The page scrolls normally; no artificial empty tail space. */
html body .maker-frame[data-maker-kind="frame"],
html body .maker-frame[data-maker-kind="scene"] {
  height: auto !important;
  min-height: 0 !important;
}

html body .maker-project-page,
html body .maker-project-page > .maker-project-body,
html body[data-page="goal-maker-shell"] main.page-content {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
