/* =============================================================
   SmrAI-Studio — Template-Specific Styles
   Each template is namespaced to prevent conflicts.
   ============================================================= */

/* ===== BASE: Reset + typography for all templates =====
 * templates.css loads AFTER style.css (see partials/header.ejs).
 * At equal specificity (0,1,0), cascade order means these rules beat
 * style.css's legacy: .resume-page { display:flex; overflow:hidden;
 *   background:#f3f4f6; margin:1.5rem auto; max-width:900px; border-radius:8px }
 * Template-specific rules at (0,2,0) below override these base values as needed.
 * ============================================================== */
.resume-page {
  /* --- Layout reset (neutralize style.css page-layout rules) --- */
  display: block;            /* style.css: display:flex — block is correct base */
  margin: 0;                 /* style.css: margin:1.5rem auto */
  max-width: none;           /* style.css: max-width:900px */
  width: 100%;               /* fill the .resume-a4 container */

  /* --- Visual reset (these are owned by .resume-a4 wrapper) --- */
  background: transparent;   /* style.css: background:#f3f4f6 — templates set their own bg */
  box-shadow: none;          /* style.css: box-shadow — .resume-a4 owns the shadow */
  border-radius: 0;          /* style.css: border-radius:8px — .resume-a4 owns the radius */

  /* --- Overflow: allow content to grow for multi-page resumes --- */
  overflow: visible;         /* style.css: overflow:hidden — must NOT clip template content */

  /* --- A4 dimensions --- */
  min-height: 1123px;        /* A4 height baseline; tall content grows beyond naturally */
  height: auto;
  position: relative;
  z-index: 1;

  /* --- Typography base (individual templates override as needed) --- */
  font-family: "Segoe UI", Arial, sans-serif;
  color: #111827;
}

/* ===== SHARED: Company name inside experience items ===== */
.resume-page .exp-company {
  font-style: italic;
  font-weight: 600;
  font-size: 0.9em;
}

/* ===== RESET: Neutralize global styles from style.css that leak in ===== */
/* style.css has broad h1-h3, a, ul, ul li selectors that conflict with templates */
.resume-page h1,
.resume-page h2,
.resume-page h3 {
  color: inherit;               /* let each template control heading colors */
  margin: 0;
}

.resume-page p {
  margin: 0;                    /* remove browser default 1em top/bottom paragraph margins */
}

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

.resume-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-page ul li {
  background: none;             /* kill global white-card style */
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* ===== SHARED: Experience list (used by all templates) ===== */
.experience-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;           /* fixed 8px between cards — within 16px spec */
}

.resume-page .experience-list li {
  background: #f3f4f6;
  border-left: 4px solid #eab308;
  padding: 7px 12px;  /* 14px total vertical per spec */
  border-radius: 5px;
  margin-bottom: 0;
}

.exp-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.05rem 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.exp-title { font-weight: 700; }
.exp-company { font-weight: 600; font-size: 0.88em; font-style: italic; }
.exp-dates {
  font-weight: 500;
  color: #4b5563;
  font-size: 0.8rem;
  white-space: nowrap;
}

.exp-body {
  margin-top: 0.15rem;
  font-size: 0.83rem;
  line-height: 1.35;
  color: #374151;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ===== SHARED: Experience entry — compact, no card ===== */
.exp-entry {
  margin-bottom: 0.6rem;
  padding-left: 10px;
  border-left: 3px solid #eab308;
}

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

/* String-format experience fallback */
.exp-text {
  font-size: 0.83rem;
  line-height: 1.5;
  color: #374151;
  white-space: pre-line;
}

/* Template accent overrides */
.resume-page.tech-focused   .exp-entry   { border-left-color: #10b981; }
.resume-page.tech-focused   .exp-heading { color: #e2e8f0; }
.resume-page.tech-focused   .exp-body    { color: #cbd5e1; }
.resume-page.tech-focused   .exp-text    { color: #94a3b8; white-space: pre-line; }
.resume-page.classic-border .exp-entry   { border-left-color: #2563eb; }
.resume-page.classic-border .exp-dates   { color: #3b82f6; }
.resume-page.elegant-serif  .exp-dates   { color: #d97706; font-style: italic; }

/* ===== MODERN-1 (two-column navy/yellow) ===== */
.resume-page.modern-1 {
  display: flex;
  /*
   * MUST be explicit: style.css has @media(max-width:768px){.resume-page{flex-direction:column}}
   * at specificity 0,1,0. Without an explicit value here at 0,2,0, that rule stacks the two
   * columns on any mobile viewport, breaking the sidebar layout. flex-direction:row at 0,2,0
   * beats the 0,1,0 media query unconditionally, preserving the two-column layout at all widths.
   * The JS scale() in resume-preview.ejs then handles visual resizing on narrow screens.
   */
  flex-direction: row;
  flex-wrap: nowrap;
}

.modern-left {
  width: 32%;
  background: #27355a;
  color: #ffffff;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 3px solid #facc15;
}

.modern-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 3px solid #facc15;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.modern-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 3px dashed #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #facc15;
}

.modern-name-block {
  text-align: center;
  margin-top: 1rem;
  color: #ffffff;
}

.modern-name-block h2 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 700;
  color: #ffffff;
}

.modern-name-block .role {
  font-size: 0.9rem;
  color: #e4e6ef;
  margin-top: 0.2rem;
}

.modern-sidebar-section {
  margin-top: 1.8rem;
  width: 100%;
  color: #ffffff;
}

.modern-sidebar-section h3 {
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 1px solid #facc15;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.modern-sidebar-section p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #ffffff;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.modern-sidebar-section span {
  color: #facc15;
  font-size: 0.9rem;
}

.modern-right {
  width: 68%;
  padding: 1.8rem 2rem;
  background: #ffffff;
}

.modern-section-block {
  margin-bottom: 1rem;  /* reduced from 1.5rem */
}

.modern-section-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #facc15;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;  /* reduced from 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-section-block p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #111827;
  padding: 0.25rem 0.55rem;
  border: 1px solid #f4f4f4;
  border-radius: 6px;
  background: #fafafa;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.modern-section-block ul:not(.experience-list) {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modern-section-block ul:not(.experience-list) li {
  background: #facc15;
  color: #111827;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
}

/* ===== MINIMAL-1 (single-column clean) ===== */
.resume-page.minimal-1 {
  padding: 1.5rem 2rem;
}

.min-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.min-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.min-role {
  font-size: 1rem;
  color: #6b7280;
}

.min-contact {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.4rem;
}

.min-contact span {
  margin-right: 0.75rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.min-section {
  margin-bottom: 1.2rem;
}

.min-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.min-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.min-section ul {
  margin-top: 0.3rem;
  padding-left: 1.2rem;
}

.min-section ul li {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.min-exp-heading {
  font-weight: 700;
  margin-bottom: 0.1rem;
}

/* ===== BOLD-SIDEBAR (header + full-width about + two-column + footer) ===== */
.resume-page.bold-sidebar {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  font-family: inherit;
  min-height: 1123px;    /* A4 screen height — enables sticky footer via flex */
}

/* ── Top accent strip (matches footer color) ── */
.bs-top-strip {
  height: 40px;
  background: #dbe6ea;
  flex-shrink: 0;
}

/* ── Content wrapper: fills space, pushes footer to bottom ── */
.bs-content-wrap {
  flex: 1;
}

/* ── Header: photo (square, large) + name/role/contact ── */
.bs-header {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.5rem 1.8rem 1.2rem;
  background: #ffffff;
}

.bs-header-photo {
  flex-shrink: 0;
}

.bs-header-photo img {
  width: 110px;
  height: 110px;
  border-radius: 4px;
  object-fit: cover;
}

.bs-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 4px;
  border: 1px dashed #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #9ca3af;
  background: #f9fafb;
}

.bs-header-info {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.bs-name {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bs-role {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 0.7rem;
  font-weight: 400;
}

/* 2×2 contact grid */
.bs-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.6rem;
}

.bs-contact-item {
  font-size: 0.78rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Divider: full-width, no side margins ── */
.bs-divider {
  height: 1px;
  background: #333;
  margin: 0;
}

/* ── Full-width About Me ── */
.bs-about {
  padding: 0.9rem 1.8rem 0.7rem;
}

.bs-about h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  border-bottom: 1px solid #444;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.bs-about p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

/* ── Two-column body ── */
.bs-body {
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 0;
}

/* ── Left column: Education + Skills ── */
.bs-left {
  padding: 0.9rem 1.2rem 1rem 1.8rem;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.bs-section {
  margin-bottom: 1rem;
}

.bs-section h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  border-bottom: 1px solid #444;
  padding-bottom: 0.25rem;
  margin-bottom: 0.45rem;
}

.bs-section p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #374151;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bs-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bs-skill-list li {
  font-size: 0.8rem;
  color: #374151;
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.bs-skill-list li::before {
  content: "•";
  position: absolute;
  left: 0.1rem;
  color: #374151;
}

/* ── Right column: Work Experience ── */
.bs-right {
  flex: 1;
  padding: 0.9rem 1.8rem 1rem 1.2rem;
}

.bs-content-section {
  margin-bottom: 1rem;
}

.bs-content-section h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  border-bottom: 1px solid #444;
  padding-bottom: 0.25rem;
  margin-bottom: 0.65rem;
}

/* ── Experience entries: dates-left column layout ── */
.bs-exp-item {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.65rem;
}

.bs-exp-item:last-child {
  margin-bottom: 0;
}

.bs-exp-dates {
  width: 20%;
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
  padding-top: 0.05rem;
  line-height: 1.3;
  word-break: break-word;
}

.bs-exp-detail {
  flex: 1;
  min-width: 0;
}

.bs-exp-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bs-exp-company {
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 0.2rem;
}

.bs-exp-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4b5563;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bs-fallback {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ===== CREATIVE-GRADIENT (blue header + dark sidebar) ===== */
.resume-page.creative-gradient {
  display: flex;
  flex-direction: column;
  min-height: 1123px;
  height: auto;
  background: linear-gradient(to right, #111111 32%, #ffffff 32%);
}

/* ── Header gradient bar ── */
.cg-header-bar {
  height: 170px;
  margin-top: 60px;
  background: linear-gradient(90deg, #0f2d75 0%, #1f4fb5 100%);
  display: flex;
  align-items: center;
  padding-left: 300px;
  padding-right: 2rem;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
  z-index: 10;
}
.cg-profile-photo {
  position: absolute;
  left: 30px;
  top: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 14px solid #0f2d75;
  object-fit: cover;
  z-index: 5;
}
.cg-no-photo {
  background: #2d4a8a;
}
.cg-header-text { color: #fff; text-align: left; }
.cg-name {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.3rem;
  color: #fff;
}
.cg-role {
  font-size: 1rem;
  font-weight: 400;
  color: #e0e6ff;
  margin: 0;
}

/* ── Two-column body ── */
.cg-main {
  display: flex;
  flex: 1;
}

/* ── Dark left sidebar ── */
.cg-sidebar {
  width: 32%;
  background: #111111;
  color: #ffffff;
  padding: 50px 50px 60px;  /* top pushes content below the overlapping photo */
  flex-shrink: 0;
}
/* Force white on ALL sidebar text — prevents global style bleed */
.cg-sidebar h3,
.cg-sidebar p,
.cg-sidebar li,
.cg-sidebar span {
  color: #ffffff !important;
}
.cg-sb-section {
  margin-bottom: 1.5rem;
}
.cg-sb-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.35rem;
}
.cg-sb-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 0 0.75rem;
}
.cg-sb-item {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 0.32rem;
  word-break: break-word;
  line-height: 1.4;
}
.cg-sb-text {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
}
.cg-sb-list {
  list-style: disc;
  padding-left: 1rem;
  margin: 0;
}
.cg-sb-list li {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.28rem;
  line-height: 1.4;
}

/* ── White right content ── */
.cg-content {
  width: 68%;
  padding: 2rem 5rem 3.75rem;
  background: #fff;
}
.cg-section {
  margin-bottom: 1.4rem;
  break-inside: avoid;
  page-break-inside: avoid;
}
.cg-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 6px;
  margin: 0 0 1.25rem;
}
.cg-section-divider {
  display: none;
}
.cg-section p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ── Experience items ── */
.cg-exp-item {
  margin-bottom: 0.9rem;
}
.cg-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  margin-bottom: 4px;
}
.cg-exp-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
}
.cg-exp-year {
  font-size: 0.78rem;
  color: #555;
  white-space: nowrap;
  margin-left: 0.5rem;
}
.cg-exp-company {
  font-size: 0.78rem;
  color: #555;
  margin: 0 0 8px;
}
.cg-exp-bullets {
  margin: 6px 0 16px 18px;
  padding: 0;
  list-style: disc;
}
.cg-exp-bullets li {
  font-size: 0.78rem;
  color: #374151;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── References grid ── */
.cg-refs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}
.cg-ref-card {
  break-inside: avoid;
  page-break-inside: avoid;
}
.cg-ref-name {
  font-size: 0.83rem;
  color: #111;
  margin: 0 0 0.18rem;
}
.cg-ref-org {
  font-size: 0.76rem;
  color: #374151;
  margin: 0 0 0.12rem;
}
.cg-ref-detail {
  font-size: 0.73rem;
  color: #6b7280;
  margin: 0;
}

/* ===== CORPORATE-CLEAN (blue-gray professional) ===== */
.resume-page.corporate-clean {
  display: flex;
  flex-direction: column;
}

.corp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #1e3a5f;
  color: #ffffff;
}

.corp-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.corp-role {
  font-size: 0.95rem;
  color: #93c5fd;
  margin: 0.2rem 0 0;
}

.corp-header-right {
  text-align: right;
}

.corp-header-right p {
  font-size: 0.85rem;
  margin: 0.15rem 0;
  color: #e0e7ff;
}

.corp-body {
  padding: 1.5rem 2rem;
}

.corp-full {
  margin-bottom: 1.2rem;
}

.corp-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 1.5rem;
}

.corp-section {
  margin-bottom: 1.2rem;
}

.corp-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a5f;
  border-bottom: 2px solid #93c5fd;
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.corp-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1e293b;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.corp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.corp-skill-tag {
  background: #e0e7ff;
  color: #1e3a5f;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.corp-section .experience-list li {
  border-left-color: #1e3a5f;
}

/* ===== ELEGANT-SERIF (classic academic style) ===== */
.resume-page.elegant-serif {
  padding: 2rem 2.5rem;
  font-family: Georgia, "Times New Roman", serif;
}

.es-header {
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px double #1e3a8a;
}

.es-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #1e3a8a;
  letter-spacing: 0.05em;
}

.es-role {
  font-size: 1.05rem;
  color: #d97706;
  margin: 0.3rem 0 0.6rem;
  font-style: italic;
}

.es-contact {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.es-divider {
  color: #9ca3af;
}

.es-body {
  /* no special wrapper styling needed */
}

.es-section {
  margin-bottom: 1.4rem;
}

.es-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #d97706;
  padding-bottom: 0.3rem;
}

.es-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1f2937;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.es-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.es-exp-item {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dotted #d1d5db;
}

.es-exp-item:last-child {
  border-bottom: none;
}

.es-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}

.es-exp-dates {
  font-size: 0.85rem;
  color: #d97706;
  font-style: italic;
}

.es-exp-desc {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #374151;
}

.es-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.es-skill {
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid #fcd34d;
}

/* ===== TECH-FOCUSED (professional developer resume) ===== */
.resume-page.tech-focused {
  padding: 0;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;
}

/* Outer wrapper — flex column, full page */
.tf-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 1123px;
}

/* ── Header ── */
.tf-header {
  background: #0f172a;
  border-top: 4px solid #3b82f6;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  color: #f8fafc;   /* ensures h1/h2/h3 color:inherit resolves to white */
}

/* Profile photo */
.tf-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid rgba(59,130,246,0.5);
  object-fit: cover;
  flex-shrink: 0;
}

/* No-photo placeholder */
.tf-no-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  border: 3px solid rgba(59,130,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #93c5fd;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Name / role / contact info block */
.tf-header-info {
  flex: 1;
  min-width: 0;
}

.tf-name {
  font-size: 1.55rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}

.tf-role {
  font-size: 0.88rem;
  color: #93c5fd;
  margin: 0 0 0.45rem;
  font-weight: 500;
}

.tf-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-bottom: 0.3rem;
}

.tf-contact-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.tf-contact-label {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tf-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.tf-link-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #60a5fa;
}

/* QR code block — absolute top-right of header */
.tf-qr-block {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tf-qr-img {
  width: 78px;
  height: 78px;
  border-radius: 6px;
  border: 2px solid rgba(59,130,246,0.35);
}

.tf-qr-label {
  font-size: 0.58rem;
  color: #64748b;
  text-align: center;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ── Summary band ── */
.tf-summary-band {
  background: #1e293b;
  padding: 0.75rem 1.6rem;
  flex-shrink: 0;
  color: #f8fafc;   /* ensures h2 color:inherit resolves to light text */
}

.tf-summary-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.tf-summary-band p {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

/* ── Body: two-column ── */
.tf-body {
  display: flex;
  flex: 1;
}

/* Left sidebar */
.tf-left {
  width: 34%;
  background: #f1f5f9;
  padding: 1.1rem 1rem;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* Right content */
.tf-right {
  flex: 1;
  background: #ffffff;
  padding: 1.1rem 1.3rem;
  min-width: 0;
}

/* ── Section titles (both columns) ── */
.tf-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tf-section-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── ATS Friendly variant modifier (used by ats-friendly.ejs) ────────────── */
/* HTML source order: tf-right first, tf-left second. CSS order flips visual. */
.tf-wrap--ats .tf-left  { order: 1; }
.tf-wrap--ats .tf-right { order: 2; }

/* h2 section titles: override .resume-page h2 {color:inherit} (0-1-1) via 0-2-0 */
.tf-wrap--ats .tf-section-title {
  color: #3b82f6;
}
.tf-wrap--ats .tf-summary-label {
  color: #60a5fa;
}

/* Proper mailto:/tel: links in header — visually unchanged */
.tf-wrap--ats .tf-contact-item a {
  color: inherit;
  text-decoration: none;
}
.tf-wrap--ats .tf-contact-item a:hover { text-decoration: underline; }
.tf-wrap--ats .tf-link-item a {
  color: inherit;
  text-decoration: none;
}
.tf-wrap--ats .tf-link-item a:hover { text-decoration: underline; }

/* ── ATS: tighter left sidebar spacing so fewer sections straddle page breaks ── */
.tf-wrap--ats .tf-left-section { margin-bottom: 0.5rem; }
.tf-wrap--ats .tf-cert-list    { gap: 0.16rem; }
.tf-wrap--ats .tf-divider      { margin: 0.45rem 0; }

.tf-left-section {
  margin-bottom: 0.95rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.tf-right-section {
  margin-bottom: 1.1rem;
}

/* ── Tech skill categories ── */
.tf-tech-category {
  margin-bottom: 0.55rem;
}

.tf-tech-cat-label {
  font-size: 0.67rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.tf-tech-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.tf-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.63rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  white-space: nowrap;
}

/* Skill icon inside tags */
.tf-skill-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Fallback flat skill list */
.tf-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tf-skill-list li,
.resume-page .tf-skill-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #374151;
  padding: 0;
  background: transparent;
  border: none;
  margin: 0;
  box-shadow: none;
  white-space: normal;
}

.tf-skill-list li::before,
.resume-page .tf-skill-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
  display: block;
}

/* ── Left column plain text (education, languages) ── */
.tf-left-text {
  font-size: 0.72rem;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

/* ── Certifications list ── */
.tf-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.tf-cert-list li,
.resume-page .tf-cert-list li {
  font-size: 0.7rem;
  color: #374151;
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.45;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  white-space: normal;
}

.tf-cert-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 0.6rem;
  top: 0.08rem;
}

/* ── Divider ── */
.tf-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.75rem 0;
}

/* ── Experience items (right) ── */
.tf-exp-item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  break-inside: avoid;
  page-break-inside: avoid;
}

.tf-exp-item:last-child {
  border-bottom: none;
}

.tf-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.tf-exp-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.tf-exp-company {
  font-size: 0.76rem;
  color: #3b82f6;
  font-style: italic;
}

.tf-exp-location {
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
}

.tf-exp-dates {
  font-size: 0.67rem;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.tf-exp-body {
  font-size: 0.72rem;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

/* ── Key Achievements list (right column) ── */
.tf-achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tf-achievement-list li,
.resume-page .tf-achievement-list li {
  font-size: 0.72rem;
  color: #374151;
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  white-space: normal;
}

.tf-achievement-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 0.6rem;
  top: 0.15em;
}

/* ── Project cards (right) ── */
.tf-project-card {
  border: 1px solid #e2e8f0;
  border-left: 3px solid #3b82f6;
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.6rem;
  background: #fafafa;
  break-inside: avoid;
  page-break-inside: avoid;
}

.tf-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.tf-project-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

.tf-project-link {
  font-size: 0.63rem;
  color: #3b82f6;
}

.tf-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.tf-project-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  padding: 0.08rem 0.28rem;
  white-space: nowrap;
}

.tf-skill-icon-sm {
  width: 10px;
  height: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.tf-project-desc {
  font-size: 0.7rem;
  color: #374151;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0;
}

/* ── Tech-Focused: References Footer Bar ── */
.tf-footer-bar {
  background: #0f172a;
  border-top: 4px solid #3b82f6;
  padding: 0.9rem 1.6rem;
  width: 100%;
  box-sizing: border-box;
}
.tf-footer-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.6rem;
}
.tf-footer-ref-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}
.tf-footer-ref-card {
  flex: 1;
  min-width: 150px;
}
.tf-footer-ref-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.2rem;
}
.tf-footer-ref-detail {
  font-size: 0.66rem;
  color: #94a3b8;
  margin: 0 0 0.1rem;
}
.tf-footer-ref-plain {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

/* Project description bullets: visible dot (overrides tiny star) */
.tf-project-card .tf-achievement-list {
  margin-top: 0.3rem;
}
.tf-project-card .tf-achievement-list li::before {
  content: '▸';
  font-size: 0.7rem;
  top: 0.08em;
  color: #3b82f6;
}

/* ===== CLASSIC-BORDER (bordered sections with blue accents) ===== */
.resume-page.classic-border {
  padding: 0;
}

.cb-inner {
  border: 2px solid #2563eb;
  margin: 1.2rem;
  padding: 1.5rem 2rem;
}

.cb-header {
  text-align: center;
  padding-bottom: 1rem;
}

.cb-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #1e40af;
}

.cb-role {
  font-size: 1rem;
  color: #3b82f6;
  margin: 0.3rem 0 0.5rem;
}

.cb-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.cb-divider {
  height: 1px;
  background: #2563eb;
  margin: 0.8rem 0;
  opacity: 0.3;
}

.cb-section {
  margin-bottom: 0.8rem;
}

.cb-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cb-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1f2937;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.cb-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cb-exp-item {
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed #dbeafe;
}

.cb-exp-item:last-child {
  border-bottom: none;
}

.cb-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}

.cb-exp-dates {
  font-size: 0.85rem;
  color: #3b82f6;
}

.cb-exp-desc {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #374151;
}

.cb-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cb-skill-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #93c5fd;
}

.cb-inner .experience-list li {
  border-left-color: #2563eb;
}

/* ===== BOLD-SIDEBAR: footer bar (Languages + References) ===== */
.resume-page.bold-sidebar .bs-footer {
  background: #dbe6ea;
  display: flex;
  flex-direction: row;
}

.bs-footer-col {
  flex: 1;
  padding: 0.75rem 1.2rem 0.75rem 1.2rem;
}

/* Languages column matches body left-column width */
.bs-footer-col:first-child {
  flex: 0 0 35%;
  border-right: 1px solid #d1d5db;
  padding-left: 1.8rem;
}

/* References column takes remaining width */
.bs-footer-col:last-child {
  padding-left: 1.2rem;
  padding-right: 1.8rem;
}

.bs-footer-col h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111827;
  border-bottom: 1px solid #444;
  padding-bottom: 0.25rem;
  margin-bottom: 0.45rem;
}

.bs-lang-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bs-lang-list li {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}

.bs-lang-list li::before {
  content: "•";
  position: absolute;
  left: 0.1rem;
  color: #374151;
}

.bs-footer-text {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

/* ================================================================
   ATS ROLE TEMPLATES — UNIQUE VISUAL DESIGNS
   Scope: .resume-page.[id] .tf-* (specificity 0,3,0)
   Overrides base .tf-* (0,1,0) and .tf-wrap--ats .tf-* (0,2,0)
   ================================================================ */

/* ─── Helper: reset ::before to text-character mode ─── */
/* Used when we set a text/icon character as section title prefix */

/* ─────────────────────────────────────────────────────────────────
   1. CUSTOMER SERVICE — Amber / Warm Brown
   Professional, warm, friendly service aesthetic
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-customer-service .tf-header {
  background: #7c2d12;
  border-top-color: #f59e0b;
}
.resume-page.ats-customer-service .tf-summary-band {
  background: #92400e;
}
.resume-page.ats-customer-service .tf-left {
  background: #fff7ed;
  width: 30%;
}
.resume-page.ats-customer-service .tf-section-title {
  color: #b45309;
  border-bottom: 2px solid #f59e0b;
  padding-bottom: 0.15rem;
}
.resume-page.ats-customer-service .tf-section-title::before {
  background: #f59e0b;
}
.resume-page.ats-customer-service .tf-summary-label { color: #fcd34d; }
.resume-page.ats-customer-service .tf-exp-dates     { color: #b45309; }
.resume-page.ats-customer-service .tf-exp-company   { color: #d97706; }
.resume-page.ats-customer-service .tf-exp-title     { color: #7c2d12; }
.resume-page.ats-customer-service .tf-tech-tag {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.resume-page.ats-customer-service .tf-project-link { color: #d97706; }
.resume-page.ats-customer-service .tf-divider      { background: #fde68a; }
.resume-page.ats-customer-service .tf-cert-list li::before       { color: #d97706; }
.resume-page.ats-customer-service .tf-achievement-list li::before { color: #d97706; }
.resume-page.ats-customer-service .tf-skill-list li::before      { background: #d97706; }
.resume-page.ats-customer-service .tf-project-card { border-left-color: #f59e0b; }

/* ─────────────────────────────────────────────────────────────────
   2. SALES & BUSINESS DEVELOPMENT — Emerald Green
   Bold, results-driven, confident energy
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-sales .tf-header {
  background: #064e3b;
  border-top-color: #34d399;
}
.resume-page.ats-sales .tf-summary-band {
  background: #065f46;
}
.resume-page.ats-sales .tf-left {
  background: #ecfdf5;
  width: 32%;
}
.resume-page.ats-sales .tf-section-title {
  color: #065f46;
}
.resume-page.ats-sales .tf-section-title::before {
  background: #10b981;
}
.resume-page.ats-sales .tf-summary-label { color: #6ee7b7; }
.resume-page.ats-sales .tf-exp-dates     { color: #059669; }
.resume-page.ats-sales .tf-exp-company   { color: #059669; }
.resume-page.ats-sales .tf-exp-title     { color: #064e3b; }
.resume-page.ats-sales .tf-tech-tag {
  background: #d1fae5;
  color: #064e3b;
  border-color: #6ee7b7;
}
.resume-page.ats-sales .tf-project-link  { color: #059669; }
.resume-page.ats-sales .tf-divider       { background: #a7f3d0; }
.resume-page.ats-sales .tf-cert-list li::before       { color: #10b981; }
.resume-page.ats-sales .tf-achievement-list li::before { color: #10b981; }
.resume-page.ats-sales .tf-skill-list li::before      { background: #10b981; }
.resume-page.ats-sales .tf-project-card { border-left-color: #10b981; }

/* ─────────────────────────────────────────────────────────────────
   3. MARKETING & DIGITAL — Purple / Magenta Gradient
   Creative, digital-native, vibrant brand energy
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-marketing .tf-header {
  background: linear-gradient(135deg, #4c1d95 0%, #9d174d 100%);
  border-top-color: #e879f9;
}
.resume-page.ats-marketing .tf-summary-band {
  background: #4c1d95;
}
.resume-page.ats-marketing .tf-left {
  background: #fdf4ff;
  width: 35%;
}
.resume-page.ats-marketing .tf-section-title {
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.resume-page.ats-marketing .tf-section-title::before {
  background: #a21caf;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.resume-page.ats-marketing .tf-summary-label { color: #f0abfc; }
.resume-page.ats-marketing .tf-exp-dates     { color: #7c3aed; }
.resume-page.ats-marketing .tf-exp-company   { color: #a21caf; }
.resume-page.ats-marketing .tf-exp-title     { color: #4c1d95; }
.resume-page.ats-marketing .tf-tech-tag {
  background: #ede9fe;
  color: #4c1d95;
  border-color: #c4b5fd;
}
.resume-page.ats-marketing .tf-project-link  { color: #7c3aed; }
.resume-page.ats-marketing .tf-divider       { background: #e9d5ff; }
.resume-page.ats-marketing .tf-cert-list li::before       { color: #a21caf; }
.resume-page.ats-marketing .tf-achievement-list li::before { color: #7c3aed; }
.resume-page.ats-marketing .tf-skill-list li::before      { background: #a21caf; }
.resume-page.ats-marketing .tf-project-card { border-left-color: #7c3aed; }

/* ─────────────────────────────────────────────────────────────────
   4. HEALTHCARE & NURSING — Clinical Sky Blue
   Clean, clinical, trustworthy; narrow sidebar for content density
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-healthcare .tf-header {
  background: #0c4a6e;
  border-top-color: #38bdf8;
}
.resume-page.ats-healthcare .tf-summary-band {
  background: #075985;
}
.resume-page.ats-healthcare .tf-left {
  background: #f0f9ff;
  width: 28%;
}
.resume-page.ats-healthcare .tf-section-title {
  color: #0369a1;
}
.resume-page.ats-healthcare .tf-section-title::before {
  content: '+';
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  margin-right: 0.2rem;
}
.resume-page.ats-healthcare .tf-summary-label { color: #7dd3fc; }
.resume-page.ats-healthcare .tf-exp-dates     { color: #0284c7; }
.resume-page.ats-healthcare .tf-exp-company   { color: #0ea5e9; }
.resume-page.ats-healthcare .tf-exp-title     { color: #0c4a6e; }
.resume-page.ats-healthcare .tf-tech-tag {
  background: #e0f2fe;
  color: #0c4a6e;
  border-color: #7dd3fc;
}
.resume-page.ats-healthcare .tf-project-link  { color: #0284c7; }
.resume-page.ats-healthcare .tf-divider       { background: #bae6fd; }
.resume-page.ats-healthcare .tf-cert-list li::before       { color: #0284c7; }
.resume-page.ats-healthcare .tf-achievement-list li::before { color: #0284c7; }
.resume-page.ats-healthcare .tf-skill-list li::before      { background: #0284c7; }
.resume-page.ats-healthcare .tf-project-card { border-left-color: #38bdf8; }

/* ─────────────────────────────────────────────────────────────────
   5. FINANCE & ACCOUNTING — Deep Navy / Gold
   Conservative, prestigious, boardroom-ready
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-finance .tf-header {
  background: #1e3a5f;
  border-top-color: #f59e0b;
}
.resume-page.ats-finance .tf-summary-band {
  background: #1a2f4e;
}
.resume-page.ats-finance .tf-left {
  background: #fefce8;
  width: 33%;
}
.resume-page.ats-finance .tf-section-title {
  color: #92400e;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  border-bottom: 1px solid #d97706;
  padding-bottom: 0.12rem;
}
.resume-page.ats-finance .tf-section-title::before {
  background: #d97706;
}
.resume-page.ats-finance .tf-summary-label { color: #fde68a; }
.resume-page.ats-finance .tf-exp-dates     { color: #b45309; }
.resume-page.ats-finance .tf-exp-company   { color: #d97706; }
.resume-page.ats-finance .tf-exp-title     { color: #1e3a5f; }
.resume-page.ats-finance .tf-tech-tag {
  background: #fef9c3;
  color: #713f12;
  border-color: #fde68a;
}
.resume-page.ats-finance .tf-project-link  { color: #d97706; }
.resume-page.ats-finance .tf-divider       { background: #fde68a; }
.resume-page.ats-finance .tf-cert-list li::before       { color: #d97706; }
.resume-page.ats-finance .tf-achievement-list li::before { color: #d97706; }
.resume-page.ats-finance .tf-skill-list li::before      { background: #d97706; }
.resume-page.ats-finance .tf-project-card { border-left-color: #f59e0b; }

/* ─────────────────────────────────────────────────────────────────
   6. TEACHING & EDUCATION — Burgundy / Warm Cream
   Academic, nurturing, scholarly warmth
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-teacher .tf-header {
  background: #881337;
  border-top-color: #fb7185;
}
.resume-page.ats-teacher .tf-summary-band {
  background: #9f1239;
}
.resume-page.ats-teacher .tf-left {
  background: #fff1f2;
  width: 35%;
}
.resume-page.ats-teacher .tf-section-title {
  color: #9f1239;
  border-bottom: 1px solid #fda4af;
  padding-bottom: 0.15rem;
}
.resume-page.ats-teacher .tf-section-title::before {
  content: '◆';
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: #e11d48;
  font-size: 0.55rem;
  line-height: 1;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.resume-page.ats-teacher .tf-summary-label { color: #fda4af; }
.resume-page.ats-teacher .tf-exp-dates     { color: #e11d48; }
.resume-page.ats-teacher .tf-exp-company   { color: #be123c; }
.resume-page.ats-teacher .tf-exp-title     { color: #881337; }
.resume-page.ats-teacher .tf-tech-tag {
  background: #ffe4e6;
  color: #881337;
  border-color: #fda4af;
}
.resume-page.ats-teacher .tf-project-link  { color: #be123c; }
.resume-page.ats-teacher .tf-divider       { background: #fecdd3; }
.resume-page.ats-teacher .tf-cert-list li::before       { color: #e11d48; }
.resume-page.ats-teacher .tf-achievement-list li::before { color: #e11d48; }
.resume-page.ats-teacher .tf-skill-list li::before      { background: #e11d48; }
.resume-page.ats-teacher .tf-project-card { border-left-color: #fb7185; }

/* ─────────────────────────────────────────────────────────────────
   7. HUMAN RESOURCES — Dark Teal / Slate
   People-focused, professional, warm yet structured
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-hr .tf-header {
  background: #134e4a;
  border-top-color: #2dd4bf;
}
.resume-page.ats-hr .tf-summary-band {
  background: #115e59;
}
.resume-page.ats-hr .tf-left {
  background: #f0fdfa;
  width: 31%;
}
.resume-page.ats-hr .tf-section-title {
  color: #0f766e;
}
.resume-page.ats-hr .tf-section-title::before {
  content: '◆';
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: #0d9488;
  font-size: 0.5rem;
  line-height: 1;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.resume-page.ats-hr .tf-summary-label { color: #5eead4; }
.resume-page.ats-hr .tf-exp-dates     { color: #0d9488; }
.resume-page.ats-hr .tf-exp-company   { color: #14b8a6; }
.resume-page.ats-hr .tf-exp-title     { color: #134e4a; }
.resume-page.ats-hr .tf-tech-tag {
  background: #ccfbf1;
  color: #134e4a;
  border-color: #5eead4;
}
.resume-page.ats-hr .tf-project-link  { color: #0d9488; }
.resume-page.ats-hr .tf-divider       { background: #99f6e4; }
.resume-page.ats-hr .tf-cert-list li::before       { color: #0d9488; }
.resume-page.ats-hr .tf-achievement-list li::before { color: #0d9488; }
.resume-page.ats-hr .tf-skill-list li::before      { background: #0d9488; }
.resume-page.ats-hr .tf-project-card { border-left-color: #2dd4bf; }

/* ─────────────────────────────────────────────────────────────────
   8. ENGINEERING — Graphite / Burnt Orange
   Technical, precise, industrial strength
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-engineering .tf-header {
  background: #1c1917;
  border-top-color: #f97316;
}
.resume-page.ats-engineering .tf-summary-band {
  background: #292524;
}
.resume-page.ats-engineering .tf-left {
  background: #fff7ed;
  width: 33%;
}
.resume-page.ats-engineering .tf-section-title {
  color: #c2410c;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.05em;
}
.resume-page.ats-engineering .tf-section-title::before {
  content: '■';
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: #ea580c;
  font-size: 0.6rem;
  line-height: 1;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.resume-page.ats-engineering .tf-summary-label { color: #fdba74; }
.resume-page.ats-engineering .tf-exp-dates     { color: #ea580c; }
.resume-page.ats-engineering .tf-exp-company   { color: #f97316; }
.resume-page.ats-engineering .tf-exp-title     { color: #1c1917; }
.resume-page.ats-engineering .tf-tech-tag {
  background: #ffedd5;
  color: #7c2d12;
  border-color: #fdba74;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
}
.resume-page.ats-engineering .tf-project-link  { color: #ea580c; }
.resume-page.ats-engineering .tf-divider       { background: #fed7aa; }
.resume-page.ats-engineering .tf-cert-list li::before       { color: #ea580c; }
.resume-page.ats-engineering .tf-achievement-list li::before { color: #ea580c; }
.resume-page.ats-engineering .tf-skill-list li::before      { background: #ea580c; }
.resume-page.ats-engineering .tf-project-card { border-left-color: #f97316; }

/* ─────────────────────────────────────────────────────────────────
   9. ADMINISTRATIVE & OFFICE — Steel Blue / Clean White
   Organised, efficient, professional office aesthetic
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-admin .tf-header {
  background: #1e40af;
  border-top-color: #93c5fd;
}
.resume-page.ats-admin .tf-summary-band {
  background: #1d4ed8;
}
.resume-page.ats-admin .tf-left {
  background: #eff6ff;
  width: 32%;
}
.resume-page.ats-admin .tf-section-title {
  color: #1d4ed8;
  border-bottom: 1px solid #bfdbfe;
  padding-bottom: 0.15rem;
  letter-spacing: 0.08em;
}
.resume-page.ats-admin .tf-section-title::before {
  background: #2563eb;
}
.resume-page.ats-admin .tf-summary-label { color: #bfdbfe; }
.resume-page.ats-admin .tf-exp-dates     { color: #2563eb; }
.resume-page.ats-admin .tf-exp-company   { color: #3b82f6; }
.resume-page.ats-admin .tf-exp-title     { color: #1e3a8a; }
.resume-page.ats-admin .tf-tech-tag {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}
.resume-page.ats-admin .tf-project-link  { color: #2563eb; }
.resume-page.ats-admin .tf-divider       { background: #bfdbfe; }
.resume-page.ats-admin .tf-cert-list li::before       { color: #2563eb; }
.resume-page.ats-admin .tf-achievement-list li::before { color: #2563eb; }
.resume-page.ats-admin .tf-skill-list li::before      { background: #2563eb; }
.resume-page.ats-admin .tf-project-card { border-left-color: #60a5fa; }

/* ─────────────────────────────────────────────────────────────────
   10. LEGAL & COMPLIANCE — Deep Navy / Antique Gold
   Formal, authoritative, traditional legal gravitas
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-legal .tf-header {
  background: #0f1c3f;
  border-top: 5px solid #b45309;
}
.resume-page.ats-legal .tf-summary-band {
  background: #0a1628;
}
.resume-page.ats-legal .tf-left {
  background: #faf7f2;
  width: 30%;
}
.resume-page.ats-legal .tf-section-title {
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-variant: small-caps;
  border-bottom: 1px solid #b45309;
  padding-bottom: 0.12rem;
}
.resume-page.ats-legal .tf-section-title::before {
  background: #b45309;
  width: 12px;
}
.resume-page.ats-legal .tf-summary-label { color: #fcd34d; }
.resume-page.ats-legal .tf-exp-dates     { color: #b45309; }
.resume-page.ats-legal .tf-exp-company   { color: #92400e; }
.resume-page.ats-legal .tf-exp-title     { color: #0f1c3f; }
.resume-page.ats-legal .tf-tech-tag {
  background: #fef3c7;
  color: #78350f;
  border-color: #d97706;
  border-radius: 2px;
}
.resume-page.ats-legal .tf-project-link  { color: #b45309; }
.resume-page.ats-legal .tf-divider       { background: #d97706; opacity: 0.3; }
.resume-page.ats-legal .tf-cert-list li::before       { color: #b45309; }
.resume-page.ats-legal .tf-achievement-list li::before { color: #b45309; content: '§'; font-size: 0.7rem; }
.resume-page.ats-legal .tf-skill-list li::before      { background: #b45309; }
.resume-page.ats-legal .tf-project-card { border-left-color: #b45309; }

/* ─────────────────────────────────────────────────────────────────
   11. LOGISTICS & SUPPLY CHAIN — Bold Red / Dark Charcoal
   Dynamic, operational, high-throughput energy
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-logistics .tf-header {
  background: #7f1d1d;
  border-top-color: #fca5a5;
}
.resume-page.ats-logistics .tf-summary-band {
  background: #991b1b;
}
.resume-page.ats-logistics .tf-left {
  background: #fef2f2;
  width: 32%;
}
.resume-page.ats-logistics .tf-section-title {
  color: #b91c1c;
}
.resume-page.ats-logistics .tf-section-title::before {
  content: '▶';
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: #dc2626;
  font-size: 0.55rem;
  line-height: 1;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.resume-page.ats-logistics .tf-summary-label { color: #fca5a5; }
.resume-page.ats-logistics .tf-exp-dates     { color: #dc2626; }
.resume-page.ats-logistics .tf-exp-company   { color: #ef4444; }
.resume-page.ats-logistics .tf-exp-title     { color: #7f1d1d; }
.resume-page.ats-logistics .tf-tech-tag {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #fca5a5;
}
.resume-page.ats-logistics .tf-project-link  { color: #dc2626; }
.resume-page.ats-logistics .tf-divider       { background: #fecaca; }
.resume-page.ats-logistics .tf-cert-list li::before       { color: #dc2626; }
.resume-page.ats-logistics .tf-achievement-list li::before { color: #dc2626; }
.resume-page.ats-logistics .tf-skill-list li::before      { background: #dc2626; }
.resume-page.ats-logistics .tf-project-card { border-left-color: #ef4444; }

/* ─────────────────────────────────────────────────────────────────
   12. HOSPITALITY & TOURISM — Warm Brown / Golden
   Welcoming, warm, world-class service ambiance
   ───────────────────────────────────────────────────────────────── */
.resume-page.ats-hospitality .tf-header {
  background: #78350f;
  border-top-color: #fbbf24;
}
.resume-page.ats-hospitality .tf-summary-band {
  background: #92400e;
}
.resume-page.ats-hospitality .tf-left {
  background: #fefce8;
  width: 34%;
}
.resume-page.ats-hospitality .tf-section-title {
  color: #92400e;
}
.resume-page.ats-hospitality .tf-section-title::before {
  content: '★';
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: #d97706;
  font-size: 0.65rem;
  line-height: 1;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.resume-page.ats-hospitality .tf-summary-label { color: #fde68a; }
.resume-page.ats-hospitality .tf-exp-dates     { color: #b45309; }
.resume-page.ats-hospitality .tf-exp-company   { color: #d97706; }
.resume-page.ats-hospitality .tf-exp-title     { color: #78350f; }
.resume-page.ats-hospitality .tf-tech-tag {
  background: #fef9c3;
  color: #78350f;
  border-color: #fde68a;
}
.resume-page.ats-hospitality .tf-project-link  { color: #d97706; }
.resume-page.ats-hospitality .tf-divider       { background: #fde68a; }
.resume-page.ats-hospitality .tf-cert-list li::before       { color: #d97706; }
.resume-page.ats-hospitality .tf-achievement-list li::before { color: #d97706; content: '★'; font-size: 0.6rem; }
.resume-page.ats-hospitality .tf-skill-list li::before      { background: #d97706; }
.resume-page.ats-hospitality .tf-project-card { border-left-color: #fbbf24; }

/* Reference cards: 3 side by side */
.bs-ref-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.bs-ref-entry {
  flex: 1;
  min-width: 0;
}

.bs-ref-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.1rem;
  line-height: 1.25;
}

.bs-ref-institution {
  font-size: 0.74rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.bs-ref-contact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: #374151;
}

/* ═══════════════════════════════════════════════════════════════════════════
   photo-resume   (.pr-)
   Two-column: left sidebar (About Me / Education / Languages) |
               right main  (Work Experience / Skills)
   Header: profile photo + name + role + contact row
   Design: black/white/gray, uppercase section titles, subtle bg pattern
═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.resume-page.photo-resume {
  display: block;
  background: #fff;
}

.pr-page {
  position: relative;
  width: 794px;
  min-height: 1123px;
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #111;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── Subtle diagonal grid background ── */
.pr-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(0,0,0,0.03) 20px,
      rgba(0,0,0,0.03) 21px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(0,0,0,0.03) 20px,
      rgba(0,0,0,0.03) 21px
    );
  filter: blur(0.4px);
}

/* ── Header ── */
.pr-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  padding: 28px 32px 22px;
  border-bottom: 1px solid #ddd;
  gap: 26px;
}

/* Profile photo */
.pr-photo-wrap {
  flex-shrink: 0;
  width: 116px;
  height: 136px;
}
.pr-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pr-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.8rem;
}

/* Name / role / contact */
.pr-header-info {
  flex: 1;
  padding-top: 6px;
}
.pr-name {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  color: #111 !important;
  margin: 0 0 3px !important;
  line-height: 1.15;
  text-transform: uppercase;
}
.pr-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 10px !important;
}
.pr-header-rule {
  border: none !important;
  border-top: 1px solid #ccc !important;
  margin: 0 0 10px !important;
}
.pr-contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 0.7rem;
  color: #444;
}
.pr-contact-line {
  display: flex;
  align-items: center;
  gap: 3px 6px;
  flex-wrap: wrap;
}
.pr-contact-item { white-space: nowrap; }
.pr-contact-sep  { color: #bbb; }

/* ── Body (two columns) ── */
.pr-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(1123px - 188px);
}
.pr-left {
  width: 38%;
  padding: 22px 18px 22px 32px;
  border-right: 1px solid #e8e8e8;
  box-sizing: border-box;
}
.pr-right {
  width: 62%;
  padding: 22px 32px 22px 20px;
  box-sizing: border-box;
}

/* ── Section ── */
.pr-section {
  margin-bottom: 20px;
}
.pr-section-title {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #111 !important;
  margin: 0 0 7px !important;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

/* ── About Me ── */
.pr-about-text {
  font-size: 0.74rem;
  line-height: 1.65;
  color: #333;
  text-align: justify;
  margin: 0 !important;
}

/* ── Education ── */
.pr-edu-entry {
  margin-bottom: 11px;
}
.pr-edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 3px;
}
.pr-edu-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  flex: 1;
}
.pr-edu-dates {
  font-size: 0.68rem;
  color: #555;
  white-space: nowrap;
}
.pr-edu-bullet {
  font-size: 0.7rem;
  color: #333;
  margin: 0 0 2px !important;
  line-height: 1.5;
}

/* ── Languages ── */
.pr-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.pr-lang-name {
  font-size: 0.7rem;
  color: #333;
  width: 72px;
  flex-shrink: 0;
}
.pr-lang-bar {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}
.pr-lang-bar-fill {
  height: 100%;
  background: #555;
  border-radius: 2px;
}

/* ── Work Experience ── */
.pr-exp-entry {
  margin-bottom: 16px;
}
.pr-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pr-exp-company {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
  flex: 1;
}
.pr-exp-dates {
  font-size: 0.68rem;
  color: #555;
  white-space: nowrap;
}
.pr-exp-bullet {
  font-size: 0.71rem;
  color: #333;
  margin: 0 0 2px !important;
  line-height: 1.55;
}

/* ── Skills 2-col grid ── */
.pr-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.pr-skill-item {
  font-size: 0.71rem;
  color: #333;
}
