/* CVYARAT v8.2.3 — natural multi-page flow
   Live preview is one continuous A4-width document that grows with content.
   Mini template cards remain locked to one A4 thumbnail. */
#printArea{
  width:210mm!important;
  min-height:297mm!important;
  height:auto!important;
  overflow:visible!important;
  margin:0 auto!important;
}
#printArea>.previewCv:not(.miniCv),
#printArea>.cvPaper.previewCv:not(.miniCv),
#printArea>.cv-page.previewCv:not(.miniCv),
#printArea>.pdfInspiredCv.previewCv:not(.miniCv),
#printArea>.uploadedPremiumCv.previewCv:not(.miniCv){
  width:210mm!important;
  min-width:210mm!important;
  max-width:210mm!important;
  min-height:297mm!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0 auto!important;
  transform:none!important;
  position:relative!important;
  contain:none!important;
}

/* Remove all internal one-page clipping only in the live document. */
#printArea>.previewCv:not(.miniCv) .cvHeader,
#printArea>.previewCv:not(.miniCv) .cvAside,
#printArea>.previewCv:not(.miniCv) .cvBody,
#printArea>.previewCv:not(.miniCv) .cv-body,
#printArea>.previewCv:not(.miniCv) .cv-sidebar,
#printArea>.previewCv:not(.miniCv) .cv-main,
#printArea>.previewCv:not(.miniCv) .pdfSide,
#printArea>.previewCv:not(.miniCv) .pdfMain,
#printArea>.previewCv:not(.miniCv) .upBlueTop,
#printArea>.previewCv:not(.miniCv) .upBlueGrid,
#printArea>.previewCv:not(.miniCv) .upBlackLeft,
#printArea>.previewCv:not(.miniCv) .upBlackRight,
#printArea>.previewCv:not(.miniCv) .upBrownGrid,
#printArea>.previewCv:not(.miniCv) .upBrownGrid>div,
#printArea>.previewCv:not(.miniCv) .upBrownExperience,
#printArea>.previewCv:not(.miniCv) section{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#printArea>.cv-page.previewCv:not(.miniCv) .cv-body{
  min-height:297mm!important;
  height:auto!important;
  align-items:stretch!important;
}
#printArea>.uploadedPremiumCv.previewCv.layout-premiumBlackEditorial:not(.miniCv){
  grid-template-rows:auto!important;
  align-items:stretch!important;
}
#printArea>.uploadedPremiumCv.previewCv.layout-premiumBrownPortfolio:not(.miniCv) .upBrownExperience{
  min-height:0!important;
}
#printArea>.uploadedPremiumCv.previewCv:not(.miniCv) .upItem p{
  display:block!important;
  -webkit-line-clamp:unset!important;
  overflow:visible!important;
}

/* Keep individual records together when possible, but never lock the whole CV. */
#printArea .cvEntry,
#printArea .cv-item,
#printArea .pdfEntry,
#printArea .upItem,
#printArea .cvStats,
#printArea .pdfStats{
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}

/* The preview pane scrolls through the whole growing document. */
.creatorPaperStage{overflow:auto!important;scrollbar-gutter:stable both-edges!important;}
.creatorScale{width:max-content!important;min-height:297mm!important;}
.creatorScale .printArea{height:auto!important;max-height:none!important;overflow:visible!important;}
