/* A4 document preview; print/PDF generation stays on the existing server template. */
#odm-resume .resume-page {
  width: 210mm;
  min-height: 297mm;
  background: white;
  transform-origin: top center;
  transition: transform 0.3s ease;
  position: relative;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 10.5pt;
  line-height: 1.55;
  color: #000 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

#odm-resume .resume-page * { color: #000 !important; }

#odm-resume /* Template 1 — Classic */
.tpl-classic .rp-wrap { padding: 18mm 20mm 15mm; }

#odm-resume .tpl-classic .rh {
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 3px solid #0c1b33;
}

#odm-resume .tpl-classic .rh-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26pt;
  font-weight: 400;
  color: #0c1b33 !important;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

#odm-resume .tpl-classic .rh-title {
  font-size: 12pt;
  color: #c9a84c !important;
  font-weight: 600;
  margin-bottom: 8px;
}

#odm-resume .tpl-classic .rh-contact {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 9.5pt;
  color: #334155 !important;
}

#odm-resume /* Template 2 — Modern (sidebar) */
.tpl-modern .rp-wrap {
  display: grid;
  grid-template-columns: 68mm 1fr;
  min-height: 297mm;
}

#odm-resume .tpl-modern .r-sidebar {
  background: #0c1b33;
  padding: 20mm 14mm 14mm;
}

#odm-resume .tpl-modern .r-sidebar * { color: white !important; }

#odm-resume .tpl-modern .r-main {
  padding: 18mm 16mm 14mm 14mm;
}

#odm-resume .tpl-modern .rh-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20pt;
  color: white !important;
  line-height: 1.2;
  margin-bottom: 6px;
}

#odm-resume .tpl-modern .rh-title {
  font-size: 10pt;
  color: #c9a84c !important;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

#odm-resume .tpl-modern .rh-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 9pt;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.8) !important;
  word-break: break-all;
}

#odm-resume .tpl-modern .sidebar-section-title {
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c9a84c !important;
  margin: 16px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

#odm-resume .tpl-modern .skill-pill {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 8.5pt;
  margin: 2px;
  color: rgba(255,255,255,0.85) !important;
}

#odm-resume /* Template 3 — Executive */
.tpl-executive .rp-wrap { padding: 20mm 22mm 15mm; }

#odm-resume .tpl-executive .rh {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #0c1b33;
}

#odm-resume .tpl-executive .rh-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28pt;
  color: #0c1b33 !important;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

#odm-resume .tpl-executive .rh-title {
  font-size: 11.5pt;
  color: #c9a84c !important;
  font-weight: 600;
  margin-top: 4px;
}

#odm-resume .tpl-executive .rh-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 9.5pt;
  color: #334155 !important;
}

#odm-resume /* Shared resume section styles */
.rs {
  margin-bottom: 16px;
  page-break-inside: avoid;
}

#odm-resume .rs-title {
  font-size: 9.5pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #0c1b33 !important;
  padding-bottom: 5px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #c9a84c;
}

#odm-resume /* Modern sidebar title override */
.tpl-modern .r-main .rs-title {
  border-bottom-color: #c9a84c;
}

#odm-resume .re { margin-bottom: 10px; }

#odm-resume .re-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

#odm-resume .re-title { font-weight: 700; font-size: 10.5pt; color: #000 !important; }
#odm-resume .re-date { font-size: 9pt; color: #555 !important; font-weight: 600; white-space: nowrap; }
#odm-resume .re-org { font-size: 9.5pt; color: #c9a84c !important; font-weight: 600; margin-bottom: 5px; }

#odm-resume .re-body { font-size: 9.5pt; color: #333 !important; line-height: 1.6; }
#odm-resume .re-body ul { margin: 3px 0 0 18px; }
#odm-resume .re-body li { margin-bottom: 2px; }

#odm-resume .sg-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#odm-resume .r-skill-tag {
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: 500;
  color: #000 !important;
}

#odm-resume /* Preview footer in resume */
.resume-watermark {
  position: absolute;
  bottom: 8mm;
  left: 0; right: 0;
  text-align: center;
  font-size: 7.5pt;
  color: #94a3b8 !important;
  border-top: 1px solid #e2e8f0;
  padding-top: 5px;
  margin: 0 20mm;
}

