/* Browser "Print to PDF" fallback for /. The /resume.pdf route is the primary export;
   this strips the screen decoration back to a plain one-page document. Sizes here are
   deliberately close to cv/templates/cv/resume_pdf.html so both exports match. */
@page { size: A4; margin: 13mm 13mm; }

@media print {
  .toolbar, .monogram { display: none !important; }

  body {
    padding: 0;
    background: #fff none;
    color: #1a1a1a;
    font-size: 8.8pt;
    line-height: 1.36;
  }

  .page {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }

  a { color: #1a1a1a; text-decoration: none; }

  .masthead { padding-bottom: 0.3rem; }
  .masthead::after { background: #ccc; }
  .masthead h1 { font-size: 17pt; }
  .headline { margin-top: 0.1rem; color: #444; font-size: 8pt; }

  .contact { gap: 0 0.7rem; margin-top: 0.35rem; }
  .chip { padding: 0; border: 0; background: none; color: #555; font-size: 8pt; }
  .contact li + li::before { content: "·"; margin-right: 0.7rem; color: #aaa; }

  .section { margin-top: 0.7rem; }
  .section h2 { margin-bottom: 0.35rem; color: #666; page-break-after: avoid; }
  .section h2::after { background: #ccc; }

  .summary, .body { color: #333; font-size: 8.8pt; text-align: justify; }

  /* Two columns of real bullets — the screen grid's boxes would waste the page. */
  .skills { display: block; columns: 2; column-gap: 1.1rem; }
  .skills li {
    position: relative;
    padding: 0 0 0 0.75rem;
    border: 0;
    background: none;
    color: #333;
    font-size: 8.6pt;
    break-inside: avoid;
  }
  .skills li::before { content: "•"; position: absolute; left: 0; color: #999; }

  .timeline { padding-left: 0; }
  .timeline::before { display: none; }
  .timeline .entry { padding-bottom: 0.45rem; page-break-inside: avoid; }
  .timeline .entry::before { display: none; }
  .entry-head h3 { font-size: 9.6pt; }

  .place {
    margin: 0 0 0.1rem;
    color: #444;
    font-size: 8.4pt;
    font-style: italic;
    font-weight: normal;
  }
  .dates { color: #666; font-size: 8pt; }

  .education { display: block; }
  .edu-card {
    padding: 0 0 0.2rem;
    border: 0;
    background: none;
    page-break-inside: avoid;
  }
  .edu-card h3 { font-size: 9pt; display: inline; }
  .edu-card .place { display: inline; margin-left: 0.4rem; }
  .edu-card .dates { float: right; }
}
