/* v300 - iPhone PDF/preview visual integrity. Scope exclusively to iOS.
   Keep Android, desktop and Word template geometry unchanged. */
html.cvb-ios-pdf #resume.cvb-paginated .reference-card,
html.cvb-ios-pdf .cvb-measure-host .reference-card,
html.cvb-ios-pdf #resume.cvb-paginated .tpl-refs > div,
html.cvb-ios-pdf .cvb-measure-host .tpl-refs > div{
  min-width:0!important;max-width:100%!important;
  font-size:inherit!important;line-height:1.28!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
}
html.cvb-ios-pdf #resume.cvb-paginated .reference-card strong,
html.cvb-ios-pdf .cvb-measure-host .reference-card strong,
html.cvb-ios-pdf #resume.cvb-paginated .tpl-refs strong,
html.cvb-ios-pdf .cvb-measure-host .tpl-refs strong{
  font-size:inherit!important;line-height:inherit!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
}
html.cvb-ios-pdf #resume.cvb-paginated .reference-card p,
html.cvb-ios-pdf .cvb-measure-host .reference-card p,
html.cvb-ios-pdf #resume.cvb-paginated .tpl-refs p,
html.cvb-ios-pdf .cvb-measure-host .tpl-refs p{
  font-size:inherit!important;line-height:inherit!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
}
/* Quick Modern's original 55%/45% header grid puts long imported
   descriptions in a fictitious third column. On iPhone, stack the role,
   organization and date within the correct experience column. */
html.cvb-ios-pdf #resume.cvb-paginated .quick-modern-template .quick-job,
html.cvb-ios-pdf .cvb-measure-host .quick-modern-template .quick-job{
  display:block!important;min-width:0!important;
}
html.cvb-ios-pdf #resume.cvb-paginated .quick-modern-template .quick-job > strong,
html.cvb-ios-pdf .cvb-measure-host .quick-modern-template .quick-job > strong,
html.cvb-ios-pdf #resume.cvb-paginated .quick-modern-template .quick-job > span,
html.cvb-ios-pdf .cvb-measure-host .quick-modern-template .quick-job > span{
  display:block!important;text-align:left!important;max-width:100%!important;
  overflow-wrap:anywhere!important;
}
html.cvb-ios-pdf #resume.cvb-paginated .quick-modern-template .quick-job > span,
html.cvb-ios-pdf .cvb-measure-host .quick-modern-template .quick-job > span{
  margin:2px 0 3px!important;
}
/* Explicitly keep reference data inside the column to which it belongs. */
html.cvb-ios-pdf #resume.cvb-paginated :is(.cv15-sidebar,.cv16-side,.cv17-sidebar,.cv18-side,.quick-columns>aside,.cv-column-left,.cv-column-right) .reference-grid,
html.cvb-ios-pdf .cvb-measure-host :is(.cv15-sidebar,.cv16-side,.cv17-sidebar,.cv18-side,.quick-columns>aside,.cv-column-left,.cv-column-right) .reference-grid{
  grid-template-columns:minmax(0,1fr)!important;width:100%!important;
}
html.cvb-ios-pdf #resume.cvb-paginated .quick-modern-template .quick-job > span:empty,
html.cvb-ios-pdf .cvb-measure-host .quick-modern-template .quick-job > span:empty{display:none!important;margin:0!important}
/* The iPhone has Save PDF and Share/Save to Files already; do not show a
   redundant Open PDF action. Android's existing dialog stays unchanged. */
html.cvb-ios-pdf #cvb297-open-pdf{display:none!important}

/* Safari measures invisible pages and the preview with identical font rules. */
html.cvb-ios-pdf .cvb-measure-host,html.cvb-ios-pdf .cvb-measure-host *,
html.cvb-ios-pdf #resume.cvb-paginated,html.cvb-ios-pdf #resume.cvb-paginated *{
  -webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;
}
/* Reflow within assigned left or right column, never a phantom third column. */
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .cvb-a4-page
 :is(.cv-columns,.quick-columns,.cv15-layout,.cv16-layout,.cv17-layout,.cv18-columns) > *{
  min-width:0!important;box-sizing:border-box!important;
}
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .cvb-a4-page
 :is(.item-top,.quick-job,.tpl-item,.reference-card,.reference-grid){min-width:0!important;max-width:100%!important;}
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .cvb-a4-page
 :is(.jobtitle,.meta,.reference-card strong,.reference-card p,.tpl-refs strong,.tpl-refs p){
  overflow-wrap:break-word!important;word-break:normal!important;
}
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .reference-card,
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .tpl-refs > div{
  font-size:inherit!important;line-height:1.3!important;
}
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .reference-card strong,
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .tpl-refs strong{
  font-size:1em!important;font-weight:600!important;line-height:1.3!important;
  display:block!important;overflow-wrap:break-word!important;
}
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .reference-card p,
html.cvb-ios-pdf :is(#resume.cvb-paginated,.cvb-measure-host) .tpl-refs p{
  font-size:1em!important;font-weight:400!important;line-height:1.3!important;
  margin:2px 0!important;
}
/* Clients never see developer diagnostics, including persisted legacy banner. */
#cvb299-data-check{display:none!important}
/* Removed at the source; this guards older cached copies on iPhone/Android. */
#cvb297-top-home,#cvb297-top-button{display:none!important}
/* Quick Modern: both independently flowing columns must paint to the A4 edge.
   align-items:start left an unpainted white block below short main content. */
html.cvb-ios-pdf #resume.cvb-paginated .cvb-a4-page.quick-modern-template .quick-columns,
html.cvb-ios-pdf .cvb-measure-host .cvb-a4-page.quick-modern-template .quick-columns{
  align-items:stretch!important;
}
html.cvb-ios-pdf #resume.cvb-paginated .cvb-a4-page.quick-modern-template .quick-columns>main,
html.cvb-ios-pdf #resume.cvb-paginated .cvb-a4-page.quick-modern-template .quick-columns>aside,
html.cvb-ios-pdf .cvb-measure-host .cvb-a4-page.quick-modern-template .quick-columns>main,
html.cvb-ios-pdf .cvb-measure-host .cvb-a4-page.quick-modern-template .quick-columns>aside{
  align-self:stretch!important;min-height:100%!important;
}
