/* ─────────────────────────────────────────────────────
   1. Modern Tech — 2 cột, sidebar trái màu primary
   ───────────────────────────────────────────────────── */
.tpl-modern-tech.a4-page { position: relative; background: #ffffff; }
/* Paint the dark sidebar stripe as a pseudo-element of the
   page so it flows continuously across page breaks in PDF. */
.tpl-modern-tech.a4-page::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 80mm;
  background: linear-gradient(180deg, var(--c-primary-dark), var(--c-primary));
  z-index: 0;
}
.tpl-modern-tech .tpl-grid {
  display: grid;
  grid-template-columns: 80mm 1fr;
  min-height: 297mm;
  position: relative;
  z-index: 1;
}
.tpl-modern-tech .tpl-aside {
  background: transparent;
  color: #fff;
  padding: 18mm 10mm;
}
.tpl-modern-tech .tpl-aside .avatar { margin: 0 auto; }
.tpl-modern-tech .tpl-name {
  margin-top: 12px; font-size: 16pt; text-align: center; line-height: 1.15;
}
.tpl-modern-tech .tpl-role {
  text-align: center; font-size: 10pt; color: var(--c-accent);
  margin-top: 2px; margin-bottom: 16px;
}
.tpl-modern-tech .tpl-aside .section-title {
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 4px; margin-bottom: 8px;
}
.tpl-modern-tech .tpl-aside .section-title .ico { color: var(--c-accent); }
.tpl-modern-tech .tpl-aside .contact-list .ico { color: var(--c-accent); }
.tpl-modern-tech .tpl-aside .cert-list strong { color: #fff; }
.tpl-modern-tech .tpl-aside .cert-meta { color: rgba(255,255,255,.7); }
.tpl-modern-tech .tpl-main { padding: 18mm 14mm; }
.tpl-modern-tech .tpl-main .section-title {
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 4px;
}

/* ─────────────────────────────────────────────────────
   2. Couture — ultra-thin haute fashion, generous whitespace
   ───────────────────────────────────────────────────── */
.tpl-couture { font-family: 'Source Sans 3', system-ui, sans-serif; font-weight: 300; }
.tpl-couture .tpl-cu { padding: 24mm 26mm; }
.tpl-couture .cu-head { text-align: center; margin-bottom: 22px; }
.tpl-couture .cu-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32pt;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--c-primary-dark);
  line-height: 1;
}
.tpl-couture .cu-rule {
  width: 36px; height: 1px;
  background: var(--c-primary);
  margin: 12px auto;
}
.tpl-couture .cu-role {
  font-size: 9.5pt; font-weight: 400;
  letter-spacing: 7px; text-transform: uppercase;
  color: var(--c-primary);
}
.tpl-couture .cu-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 22px;
  font-size: 9pt;
  font-weight: 300;
  color: #5b6775;
}
.tpl-couture .cu-sec {
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-primary-light);
}
.tpl-couture .cu-sec > h3 {
  font-size: 9.5pt;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 14px;
}
.tpl-couture .item { margin-bottom: 12px; }
.tpl-couture .item-head h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 12pt;
  color: var(--c-primary-dark);
}
.tpl-couture .item-sub { font-weight: 400; color: #5b6775; }
.tpl-couture .item-meta { font-weight: 300; }
.tpl-couture p, .tpl-couture .item-bullets li, .tpl-couture .item-notes { font-weight: 300; }
.tpl-couture .cu-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tpl-couture .cu-grid-2 > div > h3 {
  font-size: 9pt;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────
   3. Timeline Pro — 1 cột, vertical timeline
   ───────────────────────────────────────────────────── */
.tpl-timeline .tpl-tl { padding: 16mm; }
.tpl-timeline .tl-head {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 14px; border-bottom: 2px solid var(--c-primary);
  margin-bottom: 14px;
}
.tpl-timeline .tl-head h1 { font-size: 22pt; color: var(--c-primary-dark); }
.tpl-timeline .tl-head .role { font-size: 11pt; color: var(--c-primary); margin-top: 2px; }
.tpl-timeline .tl-head .contact-list {
  margin-top: 6px; flex-direction: row; flex-wrap: wrap; gap: 10px; font-size: 8.5pt;
}
.tpl-timeline .tl-sec { margin-top: 14px; }
.tpl-timeline .chip {
  display: inline-block;
  background: var(--c-primary); color: #fff;
  padding: 3px 12px; border-radius: 999px;
  font-size: 10pt; font-weight: 700;
  margin-bottom: 10px;
}
.tpl-timeline .timeline {
  position: relative; padding-left: 18px;
}
.tpl-timeline .timeline::before {
  content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 2px; background: var(--c-primary-light);
}
.tpl-timeline .tl-item { position: relative; margin-bottom: 12px; break-inside: avoid; }
.tpl-timeline .tl-dot {
  position: absolute; left: -18px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--c-primary);
}
.tpl-timeline .tl-time { font-size: 8.5pt; color: var(--c-muted); margin-bottom: 2px; }
.tpl-timeline .tl-item h4 { font-size: 10.5pt; color: var(--c-primary-dark); }
.tpl-timeline .tl-company { color: var(--c-primary); font-weight: 500; }
.tpl-timeline .tl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─────────────────────────────────────────────────────
   4. Sidebar Right — header full-width, sidebar phải
   ───────────────────────────────────────────────────── */
.tpl-sidebar-right .sr-head {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 80%);
  color: #fff;
  display: flex; gap: 16px; align-items: center;
  padding: 14mm 14mm;
}
.tpl-sidebar-right .sr-head h1 { font-size: 22pt; }
.tpl-sidebar-right .sr-head .role { color: var(--c-accent); font-size: 11pt; margin-top: 2px; }
.tpl-sidebar-right .sr-head .summary { font-size: 10pt; color: #ffffff; opacity: 0.92; margin-top: 8px; }
.tpl-sidebar-right .sr-body {
  display: grid; grid-template-columns: 1fr 65mm;
  position: relative;
}
/* Paint the right sidebar tint as a body-level background so it
   continues across page breaks in PDF export. */
.tpl-sidebar-right .sr-body::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 65mm;
  background: #f5f9fc;
  border-left: 2px solid var(--c-primary);
  z-index: 0;
}
.tpl-sidebar-right .sr-main { padding: 12mm 8mm 12mm 14mm; position: relative; z-index: 1; }
.tpl-sidebar-right .sr-aside {
  background: transparent;
  padding: 12mm 10mm 12mm 8mm;
  position: relative; z-index: 1;
}
.tpl-sidebar-right .sr-main .section-title { border-bottom: 1.5px solid var(--c-primary-light); padding-bottom: 3px; }

/* ─────────────────────────────────────────────────────
   5. Compact Grid — band header + 2 col body
   ───────────────────────────────────────────────────── */
.tpl-compact .cp-band {
  background: var(--c-primary); color: #fff;
  padding: 10mm 14mm;
}
.tpl-compact .cp-band-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
}
.tpl-compact .cp-band h1 { font-size: 18pt; }
.tpl-compact .cp-band .role { color: var(--c-accent); font-size: 10.5pt; margin-top: 2px; }
.tpl-compact .cp-band-contact .contact-list { font-size: 8.5pt; gap: 2px; }
.tpl-compact .cp-band-contact .contact-list .ico { color: var(--c-accent); }
.tpl-compact .cp-band-contact .contact-list li { color: #fff; }

.tpl-compact .cp-body {
  display: grid; grid-template-columns: 70mm 1fr; gap: 0;
  position: relative;
}
/* Continuous left-column tint across PDF page breaks */
.tpl-compact .cp-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 70mm;
  background: #f5f9fc;
  z-index: 0;
}
.tpl-compact .cp-left {
  padding: 10mm 8mm; background: transparent;
  position: relative; z-index: 1;
}
.tpl-compact .cp-right { position: relative; z-index: 1; }
.tpl-compact .cp-left .section-title { font-size: 10.5pt; }
.tpl-compact .cp-right { padding: 10mm 12mm; }
.tpl-compact .section-title { border-bottom: 1px solid var(--c-primary-light); padding-bottom: 3px; }

/* ─────────────────────────────────────────────────────
   6. Creative Card — gradient header + section cards
   ───────────────────────────────────────────────────── */
.tpl-creative { background: #f6fbff; }
.tpl-creative .cr-head {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 50%, var(--c-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 16mm 14mm 14mm;
}
.tpl-creative .cr-head .avatar { margin: 0 auto; }
.tpl-creative .cr-head h1 { font-size: 22pt; margin-top: 10px; }
.tpl-creative .cr-head .role { color: #ffffff; opacity: .92; font-size: 11pt; margin-top: 2px; letter-spacing: 1px; }
.tpl-creative .cr-head-contact { margin-top: 10px; }
.tpl-creative .cr-head-contact .contact-list {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 8.5pt;
}
.tpl-creative .cr-head-contact .contact-list .ico { color: #fff; }
.tpl-creative .cr-body {
  padding: 10mm 10mm;
  display: flex; flex-direction: column; gap: 8mm;
}
.tpl-creative .card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--c-primary-light);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0, 102, 171, .08);
  break-inside: avoid;
}
.tpl-creative .card .section-title { margin-bottom: 8px; }
.tpl-creative .cr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }

/* ─────────────────────────────────────────────────────
   7. Infographic — dark band + stats tiles + 2 col body
   ───────────────────────────────────────────────────── */
.tpl-infographic.a4-page { background: #ffffff; }
.tpl-infographic .ig-head {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary) 80%);
  color: #fff;
  padding: 14mm 14mm 12mm;
  display: flex; gap: 16px; align-items: center;
}
.tpl-infographic .ig-head .avatar { background: rgba(255, 255, 255, 0.1); }
.tpl-infographic .ig-head h1 { font-size: 22pt; }
.tpl-infographic .ig-head .role { color: var(--c-accent); font-size: 11pt; margin: 2px 0 8px; letter-spacing: 0.5px; }
.tpl-infographic .ig-head-contact .contact-list {
  flex-direction: row; flex-wrap: wrap; gap: 4px 14px;
  font-size: 8.5pt;
}
.tpl-infographic .ig-head-contact .contact-list .ico { color: var(--c-accent); }

.tpl-infographic .ig-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--c-primary-dark);
  color: #fff;
  text-align: center;
}
.tpl-infographic .ig-stat {
  padding: 7mm 4mm;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-direction: column; gap: 2px;
}
.tpl-infographic .ig-stat:last-child { border-right: 0; }
.tpl-infographic .ig-num {
  font-size: 24pt; font-weight: 800; color: var(--c-accent); line-height: 1;
}
.tpl-infographic .ig-lbl {
  font-size: 8pt; text-transform: uppercase; letter-spacing: 1.2px;
  opacity: 0.88;
}

.tpl-infographic .ig-body {
  display: grid; grid-template-columns: 1fr 65mm;
  gap: 8mm;
  padding: 10mm 12mm;
}
.tpl-infographic .ig-main .section-title {
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 3px;
}
.tpl-infographic .ig-aside {
  padding-left: 6mm;
  border-left: 2px solid var(--c-primary-light);
}
.tpl-infographic .ig-aside .section-title {
  font-size: 10.5pt;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────
   8. Corporate — header navy chuyên nghiệp + 2 col, heading serif
   ───────────────────────────────────────────────────── */
.tpl-corporate .co-band {
  background: var(--c-primary-dark);
  color: #fff;
  padding: 12mm 14mm;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
}
.tpl-corporate .co-band h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22pt;
  letter-spacing: 0.3px;
}
.tpl-corporate .co-band .role {
  color: var(--c-accent);
  font-size: 11pt;
  font-style: italic;
  margin-top: 3px;
  letter-spacing: 0.4px;
}
.tpl-corporate .co-band-contact .contact-list { font-size: 8.5pt; gap: 2px; }
.tpl-corporate .co-band-contact .contact-list .ico { color: var(--c-accent); }

.tpl-corporate .co-body {
  display: grid; grid-template-columns: 1.7fr 1fr;
  gap: 10mm;
  padding: 12mm 14mm;
}
.tpl-corporate .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12.5pt;
  border-bottom: 1px solid var(--c-primary);
  padding-bottom: 4px;
  margin-bottom: 8px;
  color: var(--c-primary-dark);
  font-weight: 700;
}
.tpl-corporate .co-aside .section-title { font-size: 11pt; }
.tpl-corporate .item-head h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11pt;
}

/* ─────────────────────────────────────────────────────
   9. Ivy League — classic centered, serif, small caps headings
   ───────────────────────────────────────────────────── */
.tpl-ivy-league .tpl-iv { padding: 22mm 22mm 18mm; }
.tpl-ivy-league .iv-head {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-primary-dark);
  margin-bottom: 16px;
}
.tpl-ivy-league .iv-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28pt;
  font-style: italic;
  letter-spacing: 0.5px;
  color: var(--c-primary-dark);
}
.tpl-ivy-league .iv-role {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 11pt;
  font-style: italic;
  color: var(--c-primary);
  margin: 4px 0 10px;
}
.tpl-ivy-league .iv-contact .contact-list {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  font-size: 9pt;
  color: #4a5664;
}

.tpl-ivy-league .iv-sec { margin-bottom: 14px; }
.tpl-ivy-league .iv-sec > h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12pt;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--c-primary-dark);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.tpl-ivy-league .iv-sec > h3::before,
.tpl-ivy-league .iv-sec > h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-primary-light);
  max-width: 80px;
}
.tpl-ivy-league .item-head h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--c-primary-dark);
  font-size: 11pt;
}
.tpl-ivy-league .item-sub { color: #3a4452; font-style: normal; }
.tpl-ivy-league .iv-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpl-ivy-league .iv-grid-2 h3 { font-size: 10.5pt; letter-spacing: 3px; }
.tpl-ivy-league .iv-grid-2 h3::before,
.tpl-ivy-league .iv-grid-2 h3::after { max-width: 40px; }

/* ─────────────────────────────────────────────────────
   10. Swiss Grid — typographic, bold, numbered sections
   ───────────────────────────────────────────────────── */
.tpl-swiss-grid .tpl-sw { padding: 16mm 18mm; }
.tpl-swiss-grid .sw-head { margin-bottom: 14px; }
.tpl-swiss-grid .sw-head h1 {
  font-size: 32pt;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 0.98;
  color: var(--c-primary-dark);
  margin-bottom: 4px;
}
.tpl-swiss-grid .sw-role {
  font-size: 11pt;
  font-weight: 600;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}
.tpl-swiss-grid .sw-rule {
  height: 3px;
  background: var(--c-primary);
  margin: 12px 0 12px;
}
.tpl-swiss-grid .sw-meta {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 18px;
  font-size: 9pt;
}
.tpl-swiss-grid .sw-meta-block { display: flex; flex-direction: column; gap: 6px; }
.tpl-swiss-grid .sw-meta-lbl {
  font-size: 8pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--c-primary);
}
.tpl-swiss-grid .sw-meta-block .contact-list { font-size: 9pt; gap: 3px; }
.tpl-swiss-grid .sw-meta-block p { color: #2c3848; }

.tpl-swiss-grid .sw-sec {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
}
.tpl-swiss-grid .sw-sec > h3 {
  font-size: 12pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary-dark);
  margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 10px;
}
.tpl-swiss-grid .sw-num {
  font-size: 9pt;
  font-weight: 800;
  color: var(--c-primary);
  font-feature-settings: 'tnum' 1;
}
.tpl-swiss-grid .sw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tpl-swiss-grid .sw-grid-2 > div > h3 {
  font-size: 11pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary-dark);
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.tpl-swiss-grid .item-head h4 { font-weight: 700; }

/* ─────────────────────────────────────────────────────
   11. Aurora — gradient blob header, asymmetric body
   ───────────────────────────────────────────────────── */
.tpl-aurora .au-head {
  position: relative;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 55%, var(--c-primary-dark) 100%);
  color: #fff;
  padding: 16mm 14mm;
  display: flex; gap: 16px; align-items: center;
  overflow: hidden;
}
.tpl-aurora .au-blob {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}
.tpl-aurora .au-blob-1 { width: 180px; height: 180px; top: -60px; right: -40px; }
.tpl-aurora .au-blob-2 { width: 120px; height: 120px; bottom: -50px; left: 30%; background: rgba(255,255,255,0.06); }
.tpl-aurora .au-head h1 { font-size: 22pt; }
.tpl-aurora .au-role { color: rgba(255,255,255,0.92); font-size: 11pt; margin-top: 4px; letter-spacing: 0.4px; }
.tpl-aurora .au-contactbar {
  background: var(--c-primary-dark);
  color: #fff;
  padding: 6mm 14mm;
}
.tpl-aurora .au-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; gap: 4px 16px;
  font-size: 8.5pt;
}
.tpl-aurora .au-contactbar .contact-list .ico { color: var(--c-accent); }
.tpl-aurora .au-body {
  display: grid; grid-template-columns: 1fr 60mm;
  gap: 8mm;
  padding: 10mm 12mm;
}
.tpl-aurora .au-main .section-title {
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 3px;
}
.tpl-aurora .au-aside { padding-left: 6mm; border-left: 2px dashed var(--c-primary-light); }

/* ─────────────────────────────────────────────────────
   12. Onyx — full dark luxury page, accent rule
   ───────────────────────────────────────────────────── */
.tpl-onyx.a4-page { background: #0d1620; color: #d0d8e2; }
.tpl-onyx.a4-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(18, 195, 244, 0.10), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(212, 175, 55, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.tpl-onyx > * { position: relative; z-index: 1; }
.tpl-onyx .ox-head {
  display: flex; gap: 18px; align-items: center;
  padding: 16mm 14mm 8mm;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.tpl-onyx .ox-head .avatar { background: rgba(255,255,255,0.08); }
.tpl-onyx .ox-head h1 { font-size: 24pt; color: #f4f7fa; }
.tpl-onyx .ox-role { color: var(--c-accent); font-size: 11pt; margin-top: 2px; letter-spacing: 0.5px; }
.tpl-onyx .ox-rule {
  height: 2px; width: 60px;
  background: var(--c-accent);
  margin: 8px 0 8px;
}
.tpl-onyx .ox-head .contact-list { font-size: 8.5pt; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.tpl-onyx .ox-head .contact-list .ico { color: var(--c-accent); }
.tpl-onyx .ox-body {
  display: grid; grid-template-columns: 1fr 60mm;
  gap: 8mm; padding: 10mm 14mm;
}
.tpl-onyx .section-title {
  color: var(--c-accent);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 3px;
}
.tpl-onyx .item-head h4 { color: #f4f7fa; }
.tpl-onyx .item-sub { color: var(--c-accent); }
.tpl-onyx .item-bullets li { color: #c4ccd4; }
.tpl-onyx .item-notes, .tpl-onyx .summary, .tpl-onyx p { color: #d0d8e2; }
.tpl-onyx .item-meta { color: #8b95a3; }
.tpl-onyx .tag { background: rgba(18, 195, 244, 0.18); color: #d0e8f4; }
.tpl-onyx .cert-list strong { color: #f4f7fa; }
.tpl-onyx .cert-meta { color: #8b95a3; }
.tpl-onyx .sk-bar-track { background: rgba(255,255,255,0.12); }
.tpl-onyx .sk-bar-fill  { background: linear-gradient(90deg, var(--c-accent), #fff); }
.tpl-onyx .sk-dots .dot { border-color: var(--c-accent); }
.tpl-onyx .sk-dots .dot.on { background: var(--c-accent); }
.tpl-onyx .sk-list li { border-bottom-color: rgba(255,255,255,0.10); }
.tpl-onyx .sk-list .sk-lvl { color: var(--c-accent); }
.tpl-onyx .sk-pie-svg .pie-track { stroke: rgba(255,255,255,0.18); }
.tpl-onyx .sk-pie-svg .pie-fill { stroke: var(--c-accent); }
.tpl-onyx .sk-pie-svg .pie-text { fill: #f4f7fa; }

/* ─────────────────────────────────────────────────────
   13. Manhattan — magazine, thick rule, drop cap
   ───────────────────────────────────────────────────── */
.tpl-manhattan .tpl-mn { padding: 16mm 16mm; }
.tpl-manhattan .mn-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.tpl-manhattan .mn-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30pt;
  letter-spacing: -0.5px;
  color: var(--c-primary-dark);
}
.tpl-manhattan .mn-role {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 10pt;
  color: var(--c-primary);
  margin-top: 4px;
}
.tpl-manhattan .mn-rule {
  height: 4px;
  background: var(--c-primary-dark);
  margin: 10px 0 8px;
}
.tpl-manhattan .mn-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; gap: 4px 16px;
  font-size: 9pt; margin-bottom: 12px;
}
.tpl-manhattan .mn-sec { margin-bottom: 12px; }
.tpl-manhattan .mn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tpl-manhattan .mn-grid .mn-sec { padding-right: 10px; border-right: 1px solid var(--c-line); }
.tpl-manhattan .mn-grid .mn-sec:last-child { border-right: 0; padding-right: 0; padding-left: 10px; }
.tpl-manhattan .mn-dropcap::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38pt; line-height: 0.9;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--c-primary);
  font-weight: 700;
}
.tpl-manhattan .section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13pt;
  border-bottom: 2px solid var(--c-primary-dark);
  padding-bottom: 3px;
}

/* ─────────────────────────────────────────────────────
   14. Boutique — soft cool tint + rounded shadow cards
   ───────────────────────────────────────────────────── */
.tpl-boutique.a4-page { background: #f0f6fb; }
.tpl-boutique .bq-head {
  text-align: center;
  padding: 16mm 14mm 10mm;
}
.tpl-boutique .bq-head .avatar { margin: 0 auto; box-shadow: 0 0 0 6px #fff, 0 6px 20px rgba(0, 102, 171, 0.20); }
.tpl-boutique .bq-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26pt;
  margin-top: 12px;
  color: var(--c-primary-dark);
}
.tpl-boutique .bq-role {
  font-style: italic;
  color: var(--c-primary);
  font-size: 11pt;
  margin: 2px 0 8px;
}
.tpl-boutique .bq-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
  font-size: 9pt;
}
.tpl-boutique .bq-body {
  padding: 0 12mm 12mm;
  display: flex; flex-direction: column; gap: 6mm;
}
.tpl-boutique .card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 102, 171, 0.08);
  box-shadow: 0 4px 16px rgba(0, 60, 120, 0.08);
  padding: 12px 16px;
}
.tpl-boutique .card .section-title {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
  color: var(--c-primary-dark);
}
.tpl-boutique .bq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }

/* ─────────────────────────────────────────────────────
   15. Mosaic — colored tile band + block-accent headings
   ───────────────────────────────────────────────────── */
.tpl-mosaic .mo-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 8mm;
  gap: 0;
}
.tpl-mosaic .mo-tiles > span:nth-child(odd) { background: var(--c-primary-dark); }
.tpl-mosaic .mo-tiles > span:nth-child(even) { background: var(--c-primary); }
.tpl-mosaic .mo-tiles > span:nth-child(3n) { background: var(--c-accent); }
.tpl-mosaic .mo-tiles > span:nth-child(5n) { background: var(--c-primary-light); }
.tpl-mosaic .mo-head {
  display: flex; gap: 16px; align-items: center;
  padding: 12mm 14mm 10mm;
  border-bottom: 1px solid var(--c-line);
}
.tpl-mosaic .mo-head h1 {
  font-size: 24pt;
  font-weight: 900;
  color: var(--c-primary-dark);
  letter-spacing: -0.3px;
}
.tpl-mosaic .mo-role {
  font-size: 10pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--c-primary);
  margin: 4px 0 8px;
}
.tpl-mosaic .mo-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; gap: 3px 14px;
  font-size: 8.5pt;
}
.tpl-mosaic .mo-body { padding: 10mm 14mm 12mm; }
.tpl-mosaic .mo-sec { margin-bottom: 12px; }
.tpl-mosaic .mo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpl-mosaic .mo-st {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 4px 14px;
  border-left: 6px solid var(--c-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10.5pt;
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────
   16. Velvet — vertical accent ribbon left, elegant
   ───────────────────────────────────────────────────── */
.tpl-velvet.a4-page { background: #fafbfc; }
.tpl-velvet.a4-page::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 9mm;
  background: linear-gradient(180deg, var(--c-accent), var(--c-primary) 50%, var(--c-primary-dark));
  z-index: 0;
}
.tpl-velvet > * { position: relative; z-index: 1; }
.tpl-velvet .tpl-vl { padding: 18mm 16mm 16mm 22mm; }
.tpl-velvet .vl-head {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-primary-light);
  margin-bottom: 14px;
}
.tpl-velvet .vl-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24pt;
  color: var(--c-primary-dark);
}
.tpl-velvet .vl-role {
  font-style: italic;
  font-size: 11pt;
  color: var(--c-primary);
  margin: 2px 0 6px;
}
.tpl-velvet .vl-head .contact-list {
  flex-direction: row; flex-wrap: wrap; gap: 3px 14px;
  font-size: 8.5pt;
}
.tpl-velvet .vl-sec { margin-bottom: 12px; }
.tpl-velvet .vl-st {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12pt;
  color: var(--c-primary-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 4px solid var(--c-accent);
  padding-left: 10px;
  margin-bottom: 8px;
}
.tpl-velvet .vl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tpl-velvet .vl-grid-2 .vl-st { font-size: 10.5pt; }

/* ─────────────────────────────────────────────────────
   17. Marquee — hero centered + 2-col body
   ───────────────────────────────────────────────────── */
.tpl-marquee .mq-hero {
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(255,255,255,0.18), transparent 70%),
    linear-gradient(180deg, var(--c-primary-dark) 0%, var(--c-primary) 70%, var(--c-accent) 100%);
  color: #fff;
  text-align: center;
  padding: 14mm 14mm 12mm;
}
.tpl-marquee .mq-hero .avatar { margin: 0 auto; }
.tpl-marquee .mq-hero h1 {
  font-size: 26pt;
  margin-top: 12px;
  letter-spacing: 0.5px;
}
.tpl-marquee .mq-role {
  font-size: 11pt;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 4px 0 10px;
  opacity: 0.92;
}
.tpl-marquee .mq-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  font-size: 9pt;
}
.tpl-marquee .mq-contactbar .contact-list .ico { color: #fff; }
.tpl-marquee .mq-body {
  display: grid; grid-template-columns: 1fr 60mm;
  gap: 8mm; padding: 10mm 12mm;
}
.tpl-marquee .mq-main .section-title { border-bottom: 2px solid var(--c-primary); padding-bottom: 3px; }
.tpl-marquee .mq-aside { padding-left: 6mm; border-left: 2px solid var(--c-primary-light); }

/* ─────────────────────────────────────────────────────
   18. Cobalt — dot-pattern dark sidebar
   ───────────────────────────────────────────────────── */
.tpl-cobalt.a4-page { background: #ffffff; position: relative; }
.tpl-cobalt.a4-page::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 75mm;
  background:
    radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 2px) 0 0 / 7mm 7mm,
    linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  z-index: 0;
}
.tpl-cobalt .tpl-cb {
  display: grid;
  grid-template-columns: 75mm 1fr;
  position: relative; z-index: 1;
  min-height: 297mm;
}
.tpl-cobalt .cb-aside {
  color: #fff;
  padding: 16mm 10mm;
}
.tpl-cobalt .cb-aside .avatar { margin: 0 auto; }
.tpl-cobalt .cb-name { text-align: center; font-size: 16pt; margin-top: 10px; }
.tpl-cobalt .cb-role { text-align: center; font-size: 10pt; color: var(--c-accent); margin: 2px 0 14px; }
.tpl-cobalt .cb-aside .section-title {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
}
.tpl-cobalt .cb-aside .section-title .ico { color: var(--c-accent); }
.tpl-cobalt .cb-aside .contact-list .ico { color: var(--c-accent); }
.tpl-cobalt .cb-aside .cert-list strong { color: #fff; }
.tpl-cobalt .cb-aside .cert-meta { color: rgba(255,255,255,0.7); }
.tpl-cobalt .cb-aside .sk-bar-track { background: rgba(255,255,255,0.18); }
.tpl-cobalt .cb-aside .sk-bar-fill  { background: linear-gradient(90deg, #fff, var(--c-accent)); }
.tpl-cobalt .cb-aside .sk-dots .dot { border-color: #fff; }
.tpl-cobalt .cb-aside .sk-dots .dot.on { background: #fff; }
.tpl-cobalt .cb-aside .sk-list li { border-bottom-color: rgba(255,255,255,0.18); }
.tpl-cobalt .cb-aside .sk-list .sk-lvl { color: var(--c-accent); }
.tpl-cobalt .cb-aside .sk-pie-svg .pie-track { stroke: rgba(255,255,255,0.22); }
.tpl-cobalt .cb-aside .sk-pie-svg .pie-fill  { stroke: var(--c-accent); }
.tpl-cobalt .cb-aside .sk-pie-svg .pie-text  { fill: #fff; }
.tpl-cobalt .cb-main { padding: 16mm 14mm; }
.tpl-cobalt .cb-main .section-title {
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 3px;
}

/* ─────────────────────────────────────────────────────
   19. Apex — angular triangle accent, professional
   ───────────────────────────────────────────────────── */
.tpl-apex .ap-head {
  position: relative;
  background: #ffffff;
  padding: 14mm 14mm 12mm;
  overflow: hidden;
  border-bottom: 3px solid var(--c-primary);
}
.tpl-apex .ap-triangle {
  position: absolute;
  top: 0; right: 0;
  pointer-events: none;
}
.tpl-apex .ap-triangle-1 {
  width: 60mm; height: 60mm;
  background: linear-gradient(225deg, var(--c-primary) 0%, var(--c-primary) 50%, transparent 50%);
}
.tpl-apex .ap-triangle-2 {
  width: 30mm; height: 30mm;
  background: linear-gradient(225deg, var(--c-accent) 0%, var(--c-accent) 50%, transparent 50%);
}
.tpl-apex .ap-head-inner {
  position: relative;
  z-index: 1;
  display: flex; gap: 16px; align-items: center;
}
.tpl-apex .ap-head h1 {
  font-size: 24pt;
  font-weight: 900;
  color: var(--c-primary-dark);
  letter-spacing: -0.4px;
}
.tpl-apex .ap-role {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--c-primary);
  margin: 4px 0 8px;
}
.tpl-apex .ap-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; gap: 3px 14px;
  font-size: 8.5pt;
}
.tpl-apex .ap-body {
  display: grid; grid-template-columns: 1fr 62mm;
  gap: 10mm;
  padding: 12mm 14mm;
}
.tpl-apex .ap-main .section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11.5pt;
  border-bottom: 3px solid var(--c-accent);
  padding-bottom: 4px;
}
.tpl-apex .ap-aside .section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10.5pt;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 3px;
}
.tpl-apex .item-head h4 { font-weight: 700; }

/* ─────────────────────────────────────────────────────
   20. Vogue — magazine cover, big initial monogram
   ───────────────────────────────────────────────────── */
.tpl-vogue { font-family: 'Merriweather', Georgia, serif; }
.tpl-vogue .tpl-vg { padding: 16mm 16mm; }
.tpl-vogue .vg-head { text-align: center; margin-bottom: 14px; }
.tpl-vogue .vg-monogram {
  width: 24mm; height: 24mm;
  margin: 0 auto 8px;
  border: 3px double var(--c-primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28pt;
  font-weight: 800;
  color: var(--c-primary-dark);
}
.tpl-vogue .vg-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32pt;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--c-primary-dark);
  font-weight: 900;
}
.tpl-vogue .vg-role {
  font-style: italic;
  font-size: 11pt;
  color: var(--c-primary);
  margin: 4px 0 10px;
  letter-spacing: 1px;
}
.tpl-vogue .vg-divider {
  border-top: 4px double var(--c-primary-dark);
  width: 60%;
  margin: 0 auto 10px;
}
.tpl-vogue .vg-contactbar .contact-list {
  flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px 14px;
  font-size: 9pt;
  color: #3a4452;
}
.tpl-vogue .vg-sec { margin-bottom: 12px; }
.tpl-vogue .vg-sec > h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13pt;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--c-primary-dark);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  border-top: 1px solid var(--c-primary-light);
  border-bottom: 1px solid var(--c-primary-light);
  padding: 4px 0;
}
.tpl-vogue .vg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpl-vogue .item-head h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--c-primary-dark);
}
