/* ===== print.css — résumé + future print contexts =====
   Extracted from resume/style.css (V2 Foundations Task 12).
   Linked from resume/index.html with media="print" so it has zero
   impact on screen rendering. Token names here are the résumé-scoped
   tokens defined in resume/style.css. */

@media print {
  @page { size: A4; margin: 0; }

  /* Force light palette in print regardless of screen theme — even if a
     visitor printed while in dark mode, the resume goes to A4 in the
     editorial light values. */
  :root, [data-theme="dark"] {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --bg-sidebar: #F2EFE7;    --surface-sunken: #F2EFE7;
    --ink: #1A1815;
    --ink-muted: #3A3A3A;
    --ink-subtle: #5C5C5C;
    --accent-pink: #1A1815;
    --rule: #DDDDDD;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #FFFFFF;        /* white page in print — saves ink, max contrast */
    padding: 0;
    margin: 0;
    font-size: 9pt;
    line-height: 1.35;
  }

  .resume-back { display: none; }
  .theme-toggle, .resume-back__actions { display: none !important; }

  .resume {
    max-width: none;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #FFFFFF;
    grid-template-columns: 64mm 1fr;
    min-height: 297mm;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .sidebar {
    background: var(--bg-sidebar);
    padding: 10mm 6mm;
  }

  .sidebar__photo {
    width: 32mm;
    height: 40mm;
    border-radius: 16mm 16mm 3mm 3mm;
    margin-bottom: 4mm;
    box-shadow: none;
  }

  .sidebar__contact {
    font-size: 7.4pt;
    gap: 3pt;
    margin-bottom: 5mm;
  }

  .sidebar h2 {
    font-size: 8.5pt;
    margin-bottom: 3mm;
    letter-spacing: var(--tracking-normal);
  }

  .sidebar section + section { margin-top: 2mm; }

  .sidebar p, .sidebar li, .skill-group__list {
    font-size: 7.6pt;
    line-height: 1.3;
  }

  .skill-group { margin-bottom: 1.7mm; }
  .skill-group__label { font-size: 7.4pt; margin-bottom: 1pt; }
  .skill-group__list { font-size: 7.6pt; line-height: 1.3; }

  .education-item { margin-bottom: 2.5mm; }
  .education-item__date { font-size: 7pt; }
  .education-item__title { font-size: 8pt; }
  .education-item__org { font-size: 7.4pt; }

  .main { padding: 7mm 8mm 6mm 9mm; }

  .main__name { font-size: 21pt; margin-bottom: 1pt; letter-spacing: 0.015em; }
  .main__title { font-size: 12.5pt; margin-bottom: 5mm; color: var(--accent-pink); }

  .main h2 {
    font-size: 9pt;
    margin-bottom: 2.5mm;
    letter-spacing: var(--tracking-normal);
  }

  .main section + section { margin-top: 4mm; }

  .role { margin-bottom: 2.2mm; page-break-inside: avoid; }
  .role__title { font-size: 9pt; }
  .role__org { font-size: 7.8pt; margin-bottom: 0.8mm; }
  .role__date { font-size: 7.4pt; }
  .role__bullets { padding-left: 11pt; }
  .role__bullets li {
    font-size: 7.7pt;
    line-height: 1.3;
    margin-bottom: 0.4pt;
  }

  .quals-list { gap: 1mm; }
  .quals-list li {
    font-size: 7.7pt;
    padding-bottom: 0.6mm;
  }
  .quals-list .quals-year { font-size: 7.5pt; }

  section { page-break-inside: avoid; }
}
