/* Advoke CV — Shared template primitives and mini-preview utilities
   Contains the 6 "base" template styles (ats-01, modern-01, minimal-01,
   creative-01, student-01, industry-01) — remove duplicates from builder.css. */

/* ---------- Mini-preview used on template listing pages ---------- */
.tpl-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 794 / 1123;
  overflow: hidden;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.tpl-preview-scaler {
  position: absolute;
  top: 0; left: 0;
  width: 794px;
  height: 1123px;
  transform-origin: top left;
  pointer-events: none;
}
.tpl-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* ---------- tpl-ats-01: Precision ATS ---------- */
.resume.tpl-ats-01 .resume-header { border-bottom-color: #111827; text-align: left; }
.resume.tpl-ats-01 .resume-section-title { color: #111827; border-bottom-color: #111827; font-weight: 700; }
.resume.tpl-ats-01 .resume-entry-subtitle { color: #374151; }
.resume.tpl-ats-01 .resume-skills-list li { background: transparent; border: none; padding: 0; color: #374151; }
.resume.tpl-ats-01 .resume-skills-list { gap: 4px 8px; }

/* ---------- tpl-modern-01: Executive Sidebar ---------- */
.resume.tpl-modern-01 { padding: 0; display: grid; grid-template-columns: 240px 1fr; min-height: 100%; }
.resume.tpl-modern-01 .resume-sidebar { background: var(--accent); color: #FFFFFF; padding: 40px 28px; font-size: 9pt; }
.resume.tpl-modern-01 .resume-sidebar .resume-name { color: #FFFFFF; font-size: 20pt; margin-bottom: 4px; }
.resume.tpl-modern-01 .resume-sidebar .resume-job-title { color: rgba(255,255,255,0.85); font-size: 10pt; margin-bottom: 24px; font-weight: 400; }
.resume.tpl-modern-01 .resume-main { padding: 40px 40px 40px 32px; }
.resume.tpl-modern-01 .resume-contact { flex-direction: column; gap: 6px; font-size: 8.5pt; color: rgba(255,255,255,0.92); }
.resume.tpl-modern-01 .resume-contact li:not(:last-child)::after { display: none; }
.resume.tpl-modern-01 .resume-sidebar .resume-section-title { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.25); font-size: 8.5pt; margin-top: 24px; }
.resume.tpl-modern-01 .resume-sidebar .resume-section:first-child .resume-section-title { margin-top: 0; }
.resume.tpl-modern-01 .resume-sidebar .resume-skills-list { gap: 4px 0; flex-direction: column; }
.resume.tpl-modern-01 .resume-sidebar .resume-skills-list li { background: transparent; border: none; padding: 1px 0; color: rgba(255,255,255,0.95); }
.resume.tpl-modern-01 .resume-sidebar .resume-languages-list { flex-direction: column; gap: 4px; color: rgba(255,255,255,0.92); }
.resume.tpl-modern-01 .resume-main .resume-section-title { color: var(--accent); border-bottom: 1px solid #E5E7EB; font-size: 10pt; letter-spacing: 0.1em; }

/* ---------- tpl-minimal-01: Minimal Whitespace ---------- */
.resume.tpl-minimal-01 { padding: 64px 68px; }
.resume.tpl-minimal-01 .resume-header { border-bottom: none; padding-bottom: 0; margin-bottom: 32px; text-align: center; }
.resume.tpl-minimal-01 .resume-name { font-family: 'Source Serif', Georgia, serif; font-size: 28pt; font-weight: 400; letter-spacing: 0; margin-bottom: 6px; }
.resume.tpl-minimal-01 .resume-job-title { font-family: inherit; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.25em; color: #6B7280; font-weight: 500; }
.resume.tpl-minimal-01 .resume-contact { justify-content: center; margin-top: 14px; font-size: 9pt; }
.resume.tpl-minimal-01 .resume-section-title { font-family: 'Source Serif', Georgia, serif; text-transform: none; letter-spacing: 0; font-size: 13pt; color: #111827; font-weight: 400; border-bottom: none; margin-bottom: 10px; padding-bottom: 0; }
.resume.tpl-minimal-01 .resume-section { margin-bottom: 22px; }
.resume.tpl-minimal-01 .resume-entry-title { font-weight: 600; }

/* ---------- tpl-creative-01: Bold Header ---------- */
.resume.tpl-creative-01 { padding: 0; }
.resume.tpl-creative-01 .resume-header { background: var(--accent); color: #FFFFFF; padding: 32px 40px 28px; border-bottom: none; margin-bottom: 24px; }
.resume.tpl-creative-01 .resume-name { color: #FFFFFF; font-size: 26pt; letter-spacing: -0.02em; margin-bottom: 2px; }
.resume.tpl-creative-01 .resume-job-title { color: rgba(255,255,255,0.85); font-size: 11pt; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.resume.tpl-creative-01 .resume-contact { color: rgba(255,255,255,0.9); font-size: 9pt; margin-top: 12px; }
.resume.tpl-creative-01 .resume-contact li:not(:last-child)::after { color: rgba(255,255,255,0.5); }
.resume.tpl-creative-01 .resume-body { padding: 0 40px 40px; }
.resume.tpl-creative-01 .resume-section-title { background: color-mix(in srgb, var(--accent) 12%, white); padding: 4px 10px; border-radius: 3px; border-bottom: none; color: var(--accent); font-size: 9pt; }
.resume.tpl-creative-01 .resume-skills-list li { background: color-mix(in srgb, var(--accent) 15%, white); border-color: color-mix(in srgb, var(--accent) 25%, white); color: var(--accent); font-weight: 500; }

/* ---------- tpl-student-01: Graduate Focus ---------- */
.resume.tpl-student-01 .resume-header { border-bottom: 2px solid var(--accent); padding-bottom: 12px; margin-bottom: 12px; }
.resume.tpl-student-01 .resume-name { font-size: 24pt; color: var(--accent); }
.resume.tpl-student-01 .resume-job-title { color: #374151; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10pt; }
.resume.tpl-student-01 .resume-section-title { color: #111827; border-left: 3px solid var(--accent); padding-left: 8px; border-bottom: none; padding-bottom: 0; font-size: 11pt; text-transform: uppercase; letter-spacing: 0.06em; }
.resume.tpl-student-01 .resume-entry-bullets li::marker { color: var(--accent); }

/* ---------- tpl-industry-01: Tech Pro ---------- */
.resume.tpl-industry-01 { font-size: 10pt; }
.resume.tpl-industry-01 .resume-header { border-bottom: 2px solid #111827; padding-bottom: 10px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.resume.tpl-industry-01 .resume-name { font-size: 20pt; font-family: 'Inter', -apple-system, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.resume.tpl-industry-01 .resume-job-title { font-family: ui-monospace, 'SF Mono', 'Menlo', monospace; font-size: 10pt; color: var(--accent); font-weight: 500; }
.resume.tpl-industry-01 .resume-contact { font-family: ui-monospace, 'SF Mono', 'Menlo', monospace; font-size: 8.5pt; color: #6B7280; }
.resume.tpl-industry-01 .resume-section-title { font-family: ui-monospace, 'SF Mono', 'Menlo', monospace; font-size: 9pt; color: var(--accent); border-bottom: 1px dashed #D1D5DB; padding-bottom: 3px; }
.resume.tpl-industry-01 .resume-skills-list li { background: #F3F4F6; border-color: #D1D5DB; font-family: ui-monospace, 'SF Mono', 'Menlo', monospace; font-size: 8.5pt; }