/* iPhone-only: prevent Safari text inflation and a 1–2 line overflow from
 * creating a nearly empty final A4 sheet. Horizontal margins are unchanged.
 * The measurement clone and actual preview receive identical rules. */
html.cvb-ios-pdf #resume.cvb-paginated > .cvb-a4-page:not(.profile-sidebar):not(.quick-modern-template):not(.photo-modern):not(.photo-clean):not(.contact-panel):not(.pattern-sidebar),
html.cvb-ios-pdf .cvb-measure-host > .cvb-a4-page:not(.profile-sidebar):not(.quick-modern-template):not(.photo-modern):not(.photo-clean):not(.contact-panel):not(.pattern-sidebar){
 padding-top:7mm!important;padding-bottom:7mm!important;
 -webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;
}
html.cvb-ios-pdf #resume,html.cvb-ios-pdf #resume *{
 -webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;
}
/* On a narrow Safari screen the browser's font metrics can push a short
 * final section onto its own mostly empty page. Use slightly tighter section
 * heading spacing in BOTH the measurement clone and the visible preview. */
html.cvb-ios-pdf #resume.cvb-paginated > .cvb-a4-page section > h2,
html.cvb-ios-pdf .cvb-measure-host > .cvb-a4-page section > h2{
 margin-top:12px!important;
}
