/* Limited demo content fades into a compact endpoint. Full recipes stay out of this dataset. */
#main{max-height:900px;overflow:hidden;padding-bottom:0}
.recipe-card:nth-child(n+5){display:none}
#main .library{padding-bottom:16px}
.preview-cutoff{position:relative;z-index:3;background:#fff;text-align:center;padding:10px 18px 16px;color:#526b80}
.preview-cutoff:before{content:"";position:absolute;top:-60px;left:0;right:0;height:60px;background:linear-gradient(to top,#fff 4%,rgba(255,255,255,.92) 22%,rgba(255,255,255,0));pointer-events:none}
.preview-cutoff strong{display:none}
.preview-cutoff p{font-size:12px;line-height:1.4;margin:0}
.prep-footer{display:none}
.header-tools .about-control{display:none}
@media(max-width:700px){.preview-cutoff{padding-bottom:18px}.site-header .main-nav{z-index:10}#main{max-height:1050px}}
body::after{content:"";position:fixed;z-index:6;pointer-events:none;left:0;right:0;bottom:0;height:48px;background:linear-gradient(to top,#fff,rgba(255,255,255,0))}
@media(max-width:700px){body::after{bottom:70px;height:48px}}

/* Keep the preview's next actions in the same place as the full reader. */
@media screen {
  #main .app-page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 16px 0;
    padding: 16px;
    border-radius: 12px;
  }
  #main .app-page-intro > div { display: block; }
  #main .app-page-intro .preview-workflow-actions { display: flex; flex: 0 0 auto; gap: 8px; }
  #main .app-page-intro h1 { margin: 0 0 6px; }
  #main .app-page-intro p { margin: 0; }
}
@media screen and (max-width:700px) {
  #main .app-page-intro .preview-workflow-actions { width: 100%; }
  #main .preview-workflow-actions .button { flex-grow: 1; padding-inline: 8px; font-size: .84rem; }
}
