/* Print stylesheet for the CV.
 *
 * The screen layout is LaTeX-flavoured and mostly dark; on paper it needs to be
 * black on white, without navigation chrome.
 *
 * Deliberately does NOT expand link URLs with `a[href]::after`. Cloudflare
 * rewrites the mailto: href to /cdn-cgi/l/email-protection at the edge, so
 * printing href values would emit opaque tokens instead of the address. The
 * address itself is real text in the anchor, so it prints on its own.
 */

@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.35;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: none;
  }

  /* [TOP] back-links are navigation, not CV content. */
  footer {
    display: none !important;
  }

  /* Social and contact icons come from a webfont and are decorative; the
     email address next to the envelope is plain text and still prints. */
  i.fa,
  i.far,
  i.fas,
  i.fab {
    display: none !important;
  }

  h1 {
    font-size: 15pt;
  }

  h3 {
    font-size: 12pt;
  }

  /* Never split a role line, credential or project away from its body text. */
  #cv p,
  #education p,
  #languages p,
  #certifications p,
  #projects p,
  #patents p,
  li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Keep a role line attached to the bullets that follow it. */
  #cv p {
    break-after: avoid;
    page-break-after: avoid;
  }

  ul {
    margin-top: 0.2em;
  }
}
