/*
 * Resume templates. Plain CSS, shared by the editor live preview, the preview
 * page and the PDF (inlined by ResumePdfService), so all three look the same.
 */
.resume {
  --r-ink: #111827;
  --r-muted: #4b5563;
  --r-soft: #6b7280;
  --r-line: #e5e7eb;
  --r-accent: #0b7a41;
  box-sizing: border-box;
  width: 100%;
  max-width: 794px; /* A4 width at 96dpi */
  min-height: 1123px;
  margin: 0 auto;
  padding: 56px 60px;
  background: #ffffff;
  color: var(--r-ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.resume *, .resume *::before, .resume *::after { box-sizing: border-box; }
.resume h1, .resume h2, .resume p, .resume ul { margin: 0; padding: 0; }
.resume ul { list-style: none; }

.resume .r-text { white-space: pre-line; color: var(--r-muted); }
.resume .r-entry { margin-top: 14px; break-inside: avoid; }
.resume .r-entry:first-of-type { margin-top: 0; }
.resume .r-entry-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.resume .r-entry-head strong { font-weight: 600; font-size: 14px; }
.resume .r-dates { flex-shrink: 0; color: var(--r-soft); font-size: 12px; white-space: nowrap; }
.resume .r-entry-sub { color: var(--r-soft); font-size: 12.5px; margin-bottom: 4px; }

/* ---------- Professional ---------- */
.resume--professional { font-family: Georgia, 'Times New Roman', serif; }
.resume--professional .rp-header { text-align: center; padding-bottom: 18px; border-bottom: 2px solid var(--r-ink); }
.resume--professional .rp-name { font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.resume--professional .rp-title { margin-top: 4px; font-size: 15px; color: var(--r-muted); font-style: italic; }
.resume--professional .rp-contact { margin-top: 10px; font-size: 12px; color: var(--r-muted); font-family: 'Helvetica Neue', Arial, sans-serif; }
.resume--professional .rp-contact span + span::before { content: '|'; margin: 0 8px; color: #9ca3af; }
.resume--professional .rp-section { margin-top: 22px; }
.resume--professional .rp-section h2 {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding-bottom: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--r-line);
}
.resume--professional .r-entry-sub { font-style: italic; }
.resume--professional .rp-skills span + span::before { content: '•'; margin: 0 8px; color: #9ca3af; }
.resume--professional .rp-skills { color: var(--r-muted); }

/* ---------- Modern ---------- */
.resume--modern { padding: 0; }
.resume--modern .rm-header { padding: 48px 48px 28px; border-bottom: 4px solid var(--r-accent); }
.resume--modern .rm-name { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.resume--modern .rm-title { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--r-accent); }
.resume--modern .rm-grid { display: grid; grid-template-columns: 34% 1fr; }
.resume--modern .rm-sidebar { background: #f2f8f4; padding: 28px 24px 48px 48px; }
.resume--modern .rm-main { padding: 28px 48px 48px 32px; }
.resume--modern .rm-block + .rm-block { margin-top: 26px; }
.resume--modern h2 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--r-accent); margin-bottom: 10px;
}
.resume--modern .rm-list li { font-size: 12px; color: var(--r-muted); margin-bottom: 6px; }
.resume--modern .rm-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.resume--modern .rm-skills li {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #ffffff;
  border: 1px solid #cfe5d7; color: var(--r-ink);
}

/* ---------- Minimal ---------- */
.resume--minimal { padding: 72px 76px; font-size: 12.5px; line-height: 1.65; }
.resume--minimal .rn-name { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; }
.resume--minimal .rn-title { margin-top: 2px; font-size: 14px; color: var(--r-soft); }
.resume--minimal .rn-contact { margin-top: 14px; font-size: 11.5px; color: var(--r-soft); }
.resume--minimal .rn-contact span + span::before { content: '/'; margin: 0 10px; color: #d1d5db; }
.resume--minimal .rn-section { margin-top: 40px; }
.resume--minimal .rn-section h2 {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--r-soft); margin-bottom: 16px;
}
.resume--minimal .r-entry { margin-top: 20px; }
.resume--minimal .r-entry-head strong { font-weight: 500; }
.resume--minimal .rn-at { font-weight: 400; color: var(--r-soft); }
.resume--minimal .rn-summary { color: var(--r-ink); font-size: 13px; }
.resume--minimal .rn-skills span + span::before { content: '·'; margin: 0 9px; color: #d1d5db; }
.resume--minimal .rn-skills { color: var(--r-muted); }

/* ---------- Print / PDF: page margins come from Puppeteer, not the sheet. ---------- */
@media print {
  .resume { max-width: none; min-height: 0; padding-top: 0; padding-bottom: 0; box-shadow: none; }
  .resume--modern .rm-header { padding-top: 0; }
  .resume--modern .rm-sidebar, .resume--modern .rm-main { padding-bottom: 0; }
}
