/* ===================================
   Resume template styles, shared by the in-app preview and the
   server-side PDF (pdf.js). Keep this file free of app UI rules.
   =================================== */

/* -- Shared Resume Styles -- */
.resume {
  padding: 48px 52px;
  color: #2d2d2d;
  line-height: 1.5;
  font-size: 10.5pt;
}

.resume h1 {
  margin: 0;
  line-height: 1.15;
}

.resume h2 {
  margin: 0;
  line-height: 1.3;
}

.resume h3 {
  margin: 0;
  line-height: 1.3;
}

.resume p {
  margin: 0;
}

.resume ul {
  margin: 4px 0 0 0;
  padding-left: 18px;
}

.resume li {
  margin-bottom: 2px;
}

.resume a {
  color: inherit;
  text-decoration: none;
}

.resume .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 10.5pt;
}

.resume .entry {
  margin-bottom: 14px;
}

.resume .entry:last-child {
  margin-bottom: 0;
}

.resume .entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0 12px;
}

.resume .entry-dates {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.resume .section {
  margin-top: 18px;
}

.resume .skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.resume-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #999;
  font-size: 1rem;
  text-align: center;
  padding: 40px;
  line-height: 1.6;
}

/* -- Classic Template -- */
.template-classic {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

.template-classic h1 {
  font-size: 22pt;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.template-classic .resume-title {
  text-align: center;
  font-size: 11pt;
  color: #555;
  margin-top: 4px;
  font-style: italic;
}

.template-classic .contact-row {
  justify-content: center;
  margin-top: 8px;
  color: #555;
}

.template-classic .contact-sep {
  color: #ccc;
}

.template-classic h2 {
  font-size: 11.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  border-bottom: 1.5px solid #1a1a1a;
  padding-bottom: 4px;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.template-classic h3 {
  font-size: 11pt;
  font-weight: 700;
}

.template-classic .entry-sub {
  font-style: italic;
  color: #555;
  font-size: 10pt;
}

.template-classic .entry-dates {
  font-size: 10pt;
  color: #555;
  font-style: italic;
}

.template-classic .entry-location {
  font-size: 9.5pt;
  color: #555;
  font-style: italic;
}

.template-classic .summary-text {
  margin-top: 6px;
  font-size: 10pt;
  line-height: 1.6;
  color: #333;
}

.template-classic .skills-list span {
  background: none;
  padding: 0;
  font-size: 10pt;
}

.template-classic .skills-list span::after {
  content: ' \2022';
  color: #ccc;
  margin-left: 6px;
}

.template-classic .skills-list span:last-child::after {
  display: none;
}

/* -- Modern Template -- */
.template-modern {
  font-family: 'Source Sans 3', 'Segoe UI', Calibri, sans-serif;
  padding: 0;
}

.template-modern .modern-header {
  background: #1e3a5f;
  color: #fff;
  padding: 36px 52px 28px;
}

.template-modern h1 {
  font-size: 26pt;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.template-modern .resume-title {
  font-size: 12pt;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.template-modern .contact-row {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 10.5pt;
}

.template-modern .modern-body {
  padding: 28px 52px 48px;
}

.template-modern h2 {
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e3a5f;
  padding-bottom: 6px;
  border-bottom: 2px solid #1e3a5f;
  margin-bottom: 12px;
}

.template-modern h3 {
  font-size: 11pt;
  font-weight: 600;
  color: #1a1a1a;
}

.template-modern .entry-sub {
  color: #1e3a5f;
  font-weight: 600;
  font-size: 10pt;
}

.template-modern .entry-dates {
  font-size: 9.5pt;
  color: #1e3a5f;
  font-weight: 600;
}

.template-modern .entry-location {
  font-size: 9pt;
  color: #1e3a5f;
  font-weight: 600;
}

.template-modern .summary-text {
  margin-top: 6px;
  line-height: 1.6;
  color: #444;
}

.template-modern .skills-list span {
  background: #e8eef4;
  color: #1e3a5f;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 9.5pt;
  font-weight: 500;
}

/* -- Minimal Template -- */
.template-minimal {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  padding: 56px 58px;
}

.template-minimal h1 {
  font-size: 28pt;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}

.template-minimal .resume-title {
  font-size: 11pt;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-minimal .contact-row {
  margin-top: 10px;
  color: #888;
  font-size: 10.5pt;
}

.template-minimal h2 {
  font-size: 9pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.template-minimal .section {
  margin-top: 28px;
}

.template-minimal h3 {
  font-size: 11pt;
  font-weight: 600;
  color: #1a1a1a;
}

.template-minimal .entry-sub {
  color: #888;
  font-size: 10pt;
}

.template-minimal .entry-dates {
  color: #888;
  font-size: 9.5pt;
}

.template-minimal .entry-location {
  font-size: 9pt;
  color: #888;
}

.template-minimal .entry {
  margin-bottom: 18px;
}

.template-minimal .summary-text {
  margin-top: 6px;
  color: #555;
  line-height: 1.7;
}

.template-minimal ul {
  color: #444;
}

.template-minimal .skills-list span {
  font-size: 10pt;
  color: #555;
}

.template-minimal .skills-list span::after {
  content: '/';
  margin-left: 6px;
  color: #ddd;
}

.template-minimal .skills-list span:last-child::after {
  display: none;
}

/* -- Executive Template -- */
.template-executive {
  font-family: 'Source Sans 3', Calibri, 'Segoe UI', sans-serif;
  padding: 0;
}

.template-executive .exec-header {
  background: #111827;
  color: #fff;
  padding: 40px 52px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.template-executive h1 {
  font-size: 28pt;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.template-executive .resume-title {
  font-size: 12pt;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.template-executive .exec-contact {
  text-align: right;
  font-size: 10pt;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  flex-shrink: 0;
}

.template-executive .exec-body {
  padding: 32px 52px 48px;
}

.template-executive h2 {
  font-size: 10.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111827;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2.5px solid #111827;
}

.template-executive h3 {
  font-size: 11pt;
  font-weight: 700;
  color: #111827;
}

.template-executive .entry-sub {
  font-weight: 600;
  color: #444;
  font-size: 10pt;
}

.template-executive .entry-dates {
  font-size: 9.5pt;
  color: #444;
  font-weight: 600;
}

.template-executive .entry-location {
  font-size: 9pt;
  color: #444;
  font-weight: 600;
}

.template-executive .summary-text {
  margin-top: 6px;
  line-height: 1.6;
  color: #333;
}

.template-executive .skills-list span {
  background: #111827;
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 9pt;
  font-weight: 500;
}

/* -- Elegant Template -- */
.template-elegant {
  font-family: 'Cormorant Garamond', Georgia, serif;
  padding: 52px 56px;
}

.template-elegant h1 {
  font-size: 30pt;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2c2420;
  text-align: center;
}

.template-elegant .resume-title {
  text-align: center;
  font-size: 11pt;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8b6f4e;
  margin-top: 4px;
  font-weight: 500;
}

.template-elegant .contact-row {
  justify-content: center;
  margin-top: 10px;
  color: #8b6f4e;
  font-size: 10.5pt;
  letter-spacing: 0.02em;
}

.template-elegant .elegant-divider {
  width: 40px;
  height: 1px;
  background: #8b6f4e;
  margin: 20px auto 0;
}

.template-elegant h2 {
  font-size: 11pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8b6f4e;
  text-align: center;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.template-elegant .section {
  margin-top: 24px;
}

.template-elegant h3 {
  font-size: 12pt;
  font-weight: 600;
  color: #2c2420;
}

.template-elegant .entry-sub {
  font-style: italic;
  color: #8b6f4e;
  font-size: 10.5pt;
}

.template-elegant .entry-dates {
  font-size: 10pt;
  color: #8b6f4e;
  font-style: italic;
}

.template-elegant .entry-location {
  font-size: 9.5pt;
  color: #8b6f4e;
  font-style: italic;
}

.template-elegant .summary-text {
  margin-top: 8px;
  font-size: 11pt;
  line-height: 1.7;
  color: #3a3430;
  text-align: center;
}

.template-elegant ul {
  color: #3a3430;
  font-size: 10.5pt;
}

.template-elegant .skills-list {
  justify-content: center;
}

.template-elegant .skills-list span {
  font-size: 10.5pt;
  color: #3a3430;
  letter-spacing: 0.02em;
}

.template-elegant .skills-list span::after {
  content: '\2014';
  margin-left: 6px;
  color: #d4c5b0;
}

.template-elegant .skills-list span:last-child::after {
  display: none;
}

