/* =========================================================================
   print.css  —  Print / PDF stylesheet for the resume
   Loaded via  <link rel="stylesheet" href="print.css" media="print">
   so it applies ONLY when printing or exporting to PDF.

   Aesthetic: "Hybrid" — keep the dark identity header, lighten the body
   (white section fills + rules), drop the dark footer bar.
   ========================================================================= */

/* ---- Page geometry ---------------------------------------------------- */
@page {
  size: Letter;          /* US Letter; swap to A4 if needed */
  margin: 0.5in;         /* safe, printable margin on all sides */
}

/* Force background colors/graphics to print (the dark header) even when the
   browser's "Background graphics" option is off. */
html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  font-size: 16px;       /* neutral base; sizes below are set in pt */
}

body {
  background: #fff;
  color: #2d2d2d;
  line-height: 1.45;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ---- Page container --------------------------------------------------- */
.page {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
  background: #fff;
}

/* ---- Header (kept dark — the visual identity) ------------------------- */
.header {
  background: #2b2b2b;
  color: #fff;
  padding: 20pt 26pt;
  gap: 1rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  break-inside: avoid;
  break-after: avoid;
}

.header-name h1 {
  font-size: 22pt;
  line-height: 1.08;
}

.header-name .title {
  font-size: 9.5pt;
  color: #b8b8b8;
  margin-top: 0.3rem;
}

.header-contact {
  font-size: 8.5pt;
  line-height: 1.7;
  color: #cfcfcf;
}

/* Print links in the same tone as their surrounding text (no default blue). */
.header-contact a { color: #cfcfcf; text-decoration: none; }

/* ---- Summary (lightened: white fill, keep divider rule) --------------- */
.summary {
  background: #fff;
  padding: 12pt 26pt;
  border-bottom: 1px solid #ccc;
  break-inside: avoid;
}

.summary h2      { font-size: 11pt; margin-bottom: 0.4rem; }
.summary p       { font-size: 9pt; line-height: 1.5; color: #3a3a3a; orphans: 2; widows: 2; }
.summary p + p   { margin-top: 0.5rem; }

/* ---- Two-column content grid (preserved) ------------------------------ */
.content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;   /* re-assert so print never collapses it */
  gap: 0;
}

.sidebar {
  padding: 16pt 18pt;
  border-right: 1px solid #d8d8d8;
}

.main {
  padding: 16pt 18pt;
}

/* ---- Section titles --------------------------------------------------- */
.section-title {
  font-size: 11pt;
  margin-bottom: 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #2b2b2b;
  break-after: avoid;            /* never orphan a heading at a page bottom */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.section + .section {
  margin-top: 14pt;
}

/* Keep each sidebar section together where it reasonably fits. */
.section { break-inside: avoid; }

/* ---- Education / Volunteer entries ------------------------------------ */
.edu-item + .edu-item { margin-top: 0.9rem; }
.edu-item             { break-inside: avoid; }
.edu-item h3          { font-size: 9.5pt; line-height: 1.3; }
.edu-item .degree     { font-size: 8.5pt; }
.edu-item .dates      { font-size: 8pt; margin-top: 0.1rem; }

/* ---- Skills / Certifications / Languages / Publications lists --------- */
.skills-list,
.cert-list {
  font-size: 9pt;
  line-height: 1.5;
}

.skills-list li,
.cert-list li {
  break-inside: avoid;
  margin-bottom: 0.15rem;
}

/* ---- Experience (Professional Experience column) ---------------------- */
.job + .job     { margin-top: 12pt; }
.job            { break-inside: avoid; }   /* keep a whole job on one page */
.job h3         { font-size: 10.5pt; break-after: avoid; }
.job .company-line {
  font-size: 8.5pt;
  color: #555;
  margin-top: 0.1rem;
  break-after: avoid;
}
.job ul         { margin-top: 0.4rem; padding-left: 1.1em; font-size: 9pt; }
.job ul li      { margin-bottom: 0.2rem; line-height: 1.4; orphans: 2; widows: 2; }

/* ---- Technical Proficiencies (lightened: white fill, keep top rule) --- */
.details-section {
  background: #fff;
  padding: 14pt 26pt;
  border-top: 1px solid #ccc;
  break-inside: avoid;
}

.details-grid       { gap: 14pt; }
.details-grid > div { break-inside: avoid; }
.details-grid h4    { font-size: 9pt; margin-top: 0.6rem; }
.details-grid p     { font-size: 8.5pt; line-height: 1.45; color: #4a4a4a; }

/* ---- Footer (dark bar dropped → plain centered text) ------------------ */
.footer {
  background: #fff;
  color: #666;
  padding: 12pt 0 0;
  font-size: 8pt;
  border-top: 1px solid #e2e2e2;
  break-inside: avoid;
}

.footer a { color: #666; text-decoration: none; }
