/* CV builder print and long-text rules (round 15). Loaded after tools.css and jpg-to-pdf.css, only on the CV builder page.
   1. A long unbroken word, link or e-mail must wrap inside the paper: before, it widened the page, so Chrome shrank the whole printed CV to about 67% (English)
      or let the text run off the page edge (Arabic, right to left).
   2. Section headings stay with the first entry, entries and bullets are not cut in half, lines are not left alone at the top or foot of a page. */
.ct-cv-paper{overflow-wrap:anywhere;min-width:0}
.ct-cv-paper .cv-entry-head strong,.ct-cv-paper .cv-org,.ct-cv-paper .cv-title,.ct-cv-paper .cv-summary,.ct-cv-paper li,.ct-cv-paper h1{min-width:0;overflow-wrap:anywhere}
.ct-cv-paper .cv-entry-head .cv-dates{flex:none}
.ct-cv-paper .cv-chips li{min-width:0;max-width:100%}
.ct-cv-paper .cv-contact,.ct-cv-paper .cv-plain li{overflow-wrap:anywhere;word-break:normal}
.ct-cv-paper .cv-head,.ct-cv-paper .cv-cols,.ct-cv-paper .cv-main,.ct-cv-paper .cv-side{min-width:0}
.ct-cv-paper .cv-sec h2,.ct-cv-paper .cv-entry-head,.ct-cv-paper .cv-org{break-after:avoid;page-break-after:avoid}
.ct-cv-paper .cv-entry,.ct-cv-paper li,.ct-cv-paper .cv-head{break-inside:avoid;page-break-inside:avoid}
.ct-cv-paper p,.ct-cv-paper li{orphans:2;widows:2}
.ct-cv-paper .cv-sec>*:first-child+*{break-before:avoid}
/* An entry with many bullets (more than four) may continue on the next page, between two bullets: keeping it whole left up to 45% of a page blank.
   Its heading line stays with the first bullet, and the last two bullets stay together, so no page starts or ends with a single stray bullet. */
.ct-cv-paper .cv-entry.cv-long{break-inside:auto;page-break-inside:auto}
.ct-cv-paper .cv-entry.cv-long li:nth-last-child(2){break-after:avoid}
/* Each contact item (phone, e-mail, link) is one unit: a phone number is never split across two lines; a very long item still wraps inside its own box. */
.ct-cv-paper .cv-contact bdi,.ct-cv-paper .cv-plain bdi{display:inline-block;max-width:100%;vertical-align:top}
