/*
 * Résumé templates. One file for the editor's preview, the shared page and the
 * PDF renderer, so the three look the same. Structure: components/cv/templates.
 * Units are px at 96 per inch: a page is 794 × 1123.
 */

/* ---------- Base ---------- */
.cvt {
  --cvt-gap: 12px;
  --cvt-ink: #1c2433;
  --cvt-muted: #5b6577;
  --cvt-rule: #d9dee7;
  --cvt-side-w: 32%;
  color: var(--cvt-ink);
  font-size: 13px;
  line-height: var(--cvt-lh, 1.4);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
.cvt *,
.cvt *::before,
.cvt *::after { box-sizing: border-box; }
.cvt-f-sans { font-family: "Noto Sans Armenian", "Onest", "Segoe UI", sans-serif; }
.cvt-f-serif { font-family: "Noto Serif Armenian", "Noto Serif", Georgia, serif; }
.cvt-f-mono { font-family: "Noto Sans Mono", "Noto Sans Armenian", Consolas, monospace; }
.cvt-s-sm { font-size: 12px; }
.cvt-s-lg { font-size: 14px; }
.cvt-sp-compact { --cvt-gap: 8px; }
.cvt-sp-airy { --cvt-gap: 17px; }

.cvt-page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--cvt-w);
  height: var(--cvt-h);
  padding: var(--cvt-margin);
  overflow: hidden;
  background: #fff;
}
.cvt-page--endless { height: auto; }
.cvt-body { display: flex; flex: 1; gap: 26px; min-height: 0; }
.cvt-side-right .cvt-body { flex-direction: row-reverse; }
.cvt-main,
.cvt-side { display: flex; flex-direction: column; gap: var(--cvt-gap); min-width: 0; }
.cvt-main { flex: 1; }
.cvt-side { flex: none; width: var(--cvt-side-w); }
.cvt-block { break-inside: avoid; }

.cvt p,
.cvt ul,
.cvt h1,
.cvt h3,
.cvt h4 { margin: 0; }
.cvt a { color: inherit; text-decoration: none; }

/* Header */
.cvt-head { display: flex; align-items: center; gap: 18px; margin-bottom: calc(var(--cvt-gap) * 1.6); }
.cvt-head__id { flex: 1; min-width: 0; }
.cvt-name { font-size: 2.15em; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cvt-headline { margin-top: 3px !important; font-size: 1.12em; font-weight: 600; color: var(--cvt-accent); }
.cvt-contacts { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 0; list-style: none; font-size: 0.9em; color: var(--cvt-muted); }
.cvt-contacts li { overflow-wrap: anywhere; }
.cvt-head--left,
.cvt-head--band { flex-wrap: wrap; }
.cvt-head--left .cvt-contacts,
.cvt-head--band .cvt-contacts { flex-basis: 100%; order: 3; }
.cvt-photo { flex: none; object-fit: cover; border-radius: 50%; }
.cvt-photo--small { width: 64px; height: 64px; }
.cvt-photo--medium { width: 88px; height: 88px; }
.cvt-photo--large { width: 112px; height: 112px; }

/* Headings and entries */
.cvt-h { margin-bottom: 6px !important; font-size: 1.08em; font-weight: 700; color: var(--cvt-accent); }
.cvt-h4 { margin: 6px 0 2px !important; font-size: 0.95em; font-weight: 700; }
.cvt-p + .cvt-p { margin-top: 3px; }
.cvt-entry__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cvt-entry__title { font-weight: 700; }
.cvt-entry__date { flex: none; font-size: 0.9em; color: var(--cvt-muted); white-space: nowrap; }
.cvt-entry__sub { font-weight: 500; color: var(--cvt-muted); }
.cvt-entry .cvt-p,
.cvt-entry .cvt-bullets { margin-top: 4px; }
.cvt-bullets { padding-left: 1.15em; }
.cvt-bullets li + li { margin-top: 2px; }
.cvt-entry--dl { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
.cvt-entry--dl .cvt-entry__date { white-space: normal; padding-top: 1px; }
.cvt-summary .cvt-p { margin-top: 0; }

.cvt-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cvt-chips span { padding: 2px 9px; border-radius: 4px; background: color-mix(in srgb, var(--cvt-accent) 12%, #fff); font-size: 0.92em; }
.cvt-skills { display: grid; gap: 4px; padding: 0; list-style: none; }
.cvt-skills li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cvt-dots { display: inline-flex; gap: 3px; flex: none; }
.cvt-dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--cvt-accent) 22%, #fff); }
.cvt-dots i.is-on { background: var(--cvt-accent); }
.cvt-langs { display: grid; gap: 3px; padding: 0; list-style: none; }
.cvt-langs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.cvt-langs__name { font-weight: 600; }
.cvt-langs__lvl { color: var(--cvt-muted); }
.cvt-langs__lvl em { font-style: normal; }

/* Europass-style label column */
.cvt-lab { display: grid; grid-template-columns: 158px 1fr; gap: 18px; }
.cvt-lab__label { padding-top: 1px; font-size: 0.86em; font-weight: 700; color: var(--cvt-accent); text-align: right; overflow-wrap: anywhere; }

/* ---------- 1. Clean ATS: one column, black text, plain headings ---------- */
.cvt--ats { --cvt-muted: #374151; }
.cvt--ats .cvt-headline { color: var(--cvt-ink); font-weight: 500; }
.cvt--ats .cvt-h { padding-bottom: 2px; border-bottom: 1px solid var(--cvt-ink); color: var(--cvt-ink); font-size: 1em; letter-spacing: 0.02em; }
.cvt--ats .cvt-contacts { color: var(--cvt-ink); }

/* ---------- 2. Classic: a dark band with the name ---------- */
.cvt--classic .cvt-head--band {
  margin: calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin)) calc(var(--cvt-gap) * 1.6);
  padding: calc(var(--cvt-margin) * 0.8) var(--cvt-margin);
  background: var(--cvt-accent);
  color: #fff;
}
.cvt--classic .cvt-head--band .cvt-headline,
.cvt--classic .cvt-head--band .cvt-contacts { color: rgba(255, 255, 255, 0.82); }
.cvt--classic .cvt-h { padding-bottom: 3px; border-bottom: 1.5px solid var(--cvt-accent); color: var(--cvt-ink); }

/* ---------- 3. Minimal: centred, quiet, thin rules ---------- */
.cvt--minimal .cvt-head { flex-direction: column; text-align: center; gap: 8px; }
.cvt--minimal .cvt-name { font-weight: 400; font-size: 2.4em; letter-spacing: 0.01em; }
.cvt--minimal .cvt-headline { color: var(--cvt-muted); font-weight: 400; }
.cvt--minimal .cvt-contacts { justify-content: center; }
.cvt--minimal .cvt-h { display: flex; align-items: center; gap: 12px; color: var(--cvt-ink); font-weight: 600; font-size: 0.95em; letter-spacing: 0.06em; }
.cvt--minimal .cvt-h::after { content: ""; flex: 1; height: 1px; background: var(--cvt-rule); }

/* ---------- 4. Student: a bar beside each heading, light and friendly ---------- */
.cvt--student .cvt-name { color: var(--cvt-accent); }
.cvt--student .cvt-headline { color: var(--cvt-ink); }
.cvt--student .cvt-h { padding-left: 9px; border-left: 4px solid var(--cvt-accent); color: var(--cvt-ink); }

/* ---------- 5. European (Europass-compatible structure) ---------- */
.cvt--europass .cvt-head { padding-bottom: calc(var(--cvt-gap) * 1.2); border-bottom: 2px solid var(--cvt-accent); }
.cvt--europass .cvt-head__id { order: 1; }
.cvt--europass .cvt-photo { order: 2; border-radius: 4px; }
.cvt--europass .cvt-name { font-size: 1.9em; }
.cvt--europass .cvt-contacts { order: 3; }
.cvt--europass .cvt-entry__title { color: var(--cvt-accent); }

/* ---------- 6. Modern: accent name, side column on the right ---------- */
.cvt--modern .cvt-name { color: var(--cvt-accent); font-weight: 800; }
.cvt--modern .cvt-headline { color: var(--cvt-ink); }
.cvt--modern .cvt-h { display: flex; align-items: center; gap: 8px; color: var(--cvt-ink); }
.cvt--modern .cvt-h::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--cvt-accent); }
.cvt--modern .cvt-side { padding-left: 18px; border-left: 1px solid var(--cvt-rule); }

/* ---------- 7. Sidebar: a tinted column with the person on the left ---------- */
.cvt--sidebar .cvt-side {
  margin: calc(-1 * var(--cvt-margin)) 0 calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin));
  padding: var(--cvt-margin) 22px var(--cvt-margin) var(--cvt-margin);
  width: calc(var(--cvt-side-w) + var(--cvt-margin));
  background: color-mix(in srgb, var(--cvt-accent) 9%, #fff);
}
.cvt--sidebar .cvt-head--side { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.cvt--sidebar .cvt-name { font-size: 1.75em; }
.cvt--sidebar .cvt-contacts { flex-direction: column; gap: 3px; }
.cvt--sidebar .cvt-main .cvt-h { padding-bottom: 3px; border-bottom: 1px solid var(--cvt-rule); color: var(--cvt-ink); }

/* ---------- 8. Corporate: name left, contacts right, double rule ---------- */
.cvt--corporate .cvt-head--split { align-items: flex-end; padding-bottom: 12px; border-bottom: 3px double var(--cvt-accent); }
.cvt--corporate .cvt-head--split .cvt-contacts { flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.cvt--corporate .cvt-name { color: var(--cvt-accent); }
.cvt--corporate .cvt-headline { color: var(--cvt-muted); }
.cvt--corporate .cvt-h { color: var(--cvt-accent); font-size: 1em; letter-spacing: 0.04em; border-bottom: 1px solid var(--cvt-rule); padding-bottom: 2px; }
.cvt--corporate { --cvt-side-w: 30%; }
.cvt--corporate .cvt-side { padding: 12px 14px; background: #f5f7fa; border-radius: 2px; }

/* ---------- 9. Executive: large serif name, generous summary ---------- */
.cvt--executive .cvt-head { flex-direction: column; text-align: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--cvt-accent); }
.cvt--executive .cvt-name { font-size: 2.6em; font-weight: 600; letter-spacing: 0.02em; color: var(--cvt-accent); }
.cvt--executive .cvt-headline { color: var(--cvt-ink); font-weight: 500; letter-spacing: 0.03em; }
.cvt--executive .cvt-contacts { justify-content: center; }
.cvt--executive .cvt-summary { font-size: 1.06em; }
.cvt--executive .cvt-h { text-align: center; color: var(--cvt-accent); font-weight: 600; letter-spacing: 0.05em; }

/* ---------- 10. Developer: dark side column, monospaced headings ---------- */
.cvt--developer .cvt-side {
  margin: calc(-1 * var(--cvt-margin)) 0 calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin));
  padding: var(--cvt-margin) 22px var(--cvt-margin) var(--cvt-margin);
  width: calc(var(--cvt-side-w) + var(--cvt-margin));
  background: #0f172a;
  color: #e2e8f0;
  --cvt-muted: #94a3b8;
}
.cvt--developer .cvt-head--side { flex-direction: column; align-items: flex-start; gap: 10px; }
.cvt--developer .cvt-name { font-size: 1.6em; color: #fff; }
.cvt--developer .cvt-contacts { flex-direction: column; gap: 3px; }
.cvt--developer .cvt-h { font-family: "Noto Sans Mono", monospace; font-size: 1em; }
.cvt--developer .cvt-h::before { content: "// "; opacity: 0.6; }
.cvt--developer .cvt-side .cvt-dots i { background: rgba(255, 255, 255, 0.18); }
.cvt--developer .cvt-side .cvt-dots i.is-on { background: var(--cvt-accent); }
.cvt--developer .cvt-chips span { font-family: "Noto Sans Mono", monospace; font-size: 0.86em; }

/* ---------- 11. Creative: accent band, tinted side column, round marks ---------- */
.cvt--creative .cvt-head--band {
  margin: calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin)) calc(var(--cvt-gap) * 1.6);
  padding: calc(var(--cvt-margin) * 0.9) var(--cvt-margin);
  background: var(--cvt-accent);
  color: #fff;
}
.cvt--creative .cvt-head--band .cvt-headline,
.cvt--creative .cvt-head--band .cvt-contacts { color: rgba(255, 255, 255, 0.88); }
.cvt--creative .cvt-photo { border: 3px solid #fff; }
.cvt--creative .cvt-name { font-size: 2.4em; font-weight: 800; }
.cvt--creative .cvt-h { display: flex; align-items: center; gap: 8px; color: var(--cvt-ink); }
.cvt--creative .cvt-h::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cvt-accent); }
.cvt--creative .cvt-side { padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--cvt-accent) 8%, #fff); }

/* ---------- 12. Finance: conservative, dates in their own column ---------- */
.cvt--finance .cvt-head--split { align-items: flex-end; padding-bottom: 10px; border-bottom: 1px solid var(--cvt-ink); }
.cvt--finance .cvt-head--split .cvt-contacts { flex-direction: column; align-items: flex-end; text-align: right; gap: 0; }
.cvt--finance .cvt-headline { color: var(--cvt-accent); font-weight: 500; }
.cvt--finance .cvt-h { font-size: 0.98em; color: var(--cvt-accent); letter-spacing: 0.05em; }
.cvt--finance .cvt-entry--dl { grid-template-columns: 104px 1fr; }

/* ---------- 13. Engineering: a timeline of dates on the left ---------- */
.cvt--engineer .cvt-head { padding-left: 14px; border-left: 6px solid var(--cvt-accent); }
.cvt--engineer .cvt-h { color: var(--cvt-ink); font-size: 1.05em; padding-bottom: 3px; border-bottom: 2px solid var(--cvt-accent); }
.cvt--engineer .cvt-entry--dl { position: relative; }
.cvt--engineer .cvt-entry--dl .cvt-entry__date { color: var(--cvt-accent); font-weight: 600; }

/* ---------- 14. Academic: serif, centred name, publications read well ---------- */
.cvt--academic .cvt-head { flex-direction: column; text-align: center; gap: 4px; }
.cvt--academic .cvt-name { font-weight: 600; font-size: 2em; }
.cvt--academic .cvt-headline { color: var(--cvt-muted); font-style: italic; font-weight: 400; }
.cvt--academic .cvt-contacts { justify-content: center; }
.cvt--academic .cvt-h { padding-bottom: 2px; border-bottom: 1px solid var(--cvt-ink); color: var(--cvt-ink); font-weight: 600; }
.cvt--academic .cvt-entry--dl { grid-template-columns: 96px 1fr; }

/* ---------- Screen and paper ---------- */
.cvt-measure { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }
.cvt-measure .cvt-page { height: auto; }
.cvt:not(.cvt-measure) .cvt-page + .cvt-page { margin-top: 24px; }
.cvt-screen .cvt-page { box-shadow: 0 1px 2px rgba(7, 21, 43, 0.08), 0 12px 32px -16px rgba(7, 21, 43, 0.3); }

@page { size: A4; margin: 0; }
@media print {
  html,
  body { margin: 0; background: #fff; }
  .cvt-page { box-shadow: none !important; margin: 0 !important; break-after: page; }
  .cvt-page:last-child { break-after: auto; }
  .cvt { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 15. Your own design: structure chosen in the editor ---------- */
.cvt--custom .cvt-head--band {
  margin: calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin)) calc(var(--cvt-gap) * 1.6);
  padding: calc(var(--cvt-margin) * 0.8) var(--cvt-margin);
  background: var(--cvt-accent);
  color: #fff;
}
.cvt--custom .cvt-head--band .cvt-headline,
.cvt--custom .cvt-head--band .cvt-contacts { color: rgba(255, 255, 255, 0.85); }
.cvt--custom .cvt-head--center { flex-direction: column; text-align: center; gap: 6px; }
.cvt--custom .cvt-head--center .cvt-contacts { justify-content: center; }
.cvt--custom .cvt-head--split { align-items: flex-end; padding-bottom: 10px; border-bottom: 2px solid var(--cvt-accent); }
.cvt--custom .cvt-head--split .cvt-contacts { flex-direction: column; align-items: flex-end; text-align: right; gap: 1px; }
.cvt--custom .cvt-head--side { flex-direction: column; align-items: flex-start; gap: 10px; }
.cvt--custom .cvt-head--side .cvt-name { font-size: 1.7em; }
.cvt--custom .cvt-head--side .cvt-contacts { flex-direction: column; gap: 3px; }
.cvt--custom.cvt-side-left .cvt-side {
  margin: calc(-1 * var(--cvt-margin)) 0 calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin));
  padding: var(--cvt-margin) 22px var(--cvt-margin) var(--cvt-margin);
  width: calc(var(--cvt-side-w) + var(--cvt-margin));
  background: color-mix(in srgb, var(--cvt-accent) 9%, #fff);
}
.cvt--custom.cvt-side-right .cvt-side { padding-left: 18px; border-left: 1px solid var(--cvt-rule); }
.cvt-hd-rule .cvt-h { padding-bottom: 3px; border-bottom: 1.5px solid var(--cvt-accent); color: var(--cvt-ink); }
.cvt-hd-bar .cvt-h { padding-left: 9px; border-left: 4px solid var(--cvt-accent); color: var(--cvt-ink); }
.cvt-hd-plain .cvt-h { color: var(--cvt-accent); }
.cvt-hd-chip .cvt-h { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--cvt-accent); color: #fff; font-size: 0.95em; }

/* =====================================================================
 * Refinements and templates made for a profession. These come last, so
 * they win over the first versions above.
 * ===================================================================== */

/* Classic: a band with a light stripe under it */
.cvt--classic .cvt-head--band { background: linear-gradient(135deg, var(--cvt-accent), color-mix(in srgb, var(--cvt-accent) 78%, #fff)); border-bottom: 4px solid color-mix(in srgb, var(--cvt-accent) 40%, #fff); }
.cvt--classic .cvt-name { font-size: 2.3em; letter-spacing: 0.01em; }
.cvt--classic .cvt-h { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--cvt-rule); color: var(--cvt-accent); text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.08em; }
.cvt--classic .cvt-h::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cvt-accent); }
.cvt--classic .cvt-entry__title { color: var(--cvt-ink); }

/* Modern: a bar at the top of the page, name in the accent */
.cvt--modern .cvt-page::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--cvt-accent); }
.cvt--modern .cvt-page { padding-top: calc(var(--cvt-margin) + 8px); }
.cvt--modern .cvt-headline { display: inline-block; margin-top: 6px !important; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--cvt-accent) 11%, #fff); color: var(--cvt-accent); font-size: 1em; }
.cvt--modern .cvt-side { padding: 14px 16px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--cvt-accent) 6%, #fff); }

/* Sidebar: the person in a tinted column, a stripe on its edge */
.cvt--sidebar .cvt-side { border-right: 4px solid var(--cvt-accent); background: color-mix(in srgb, var(--cvt-accent) 8%, #fff); }
.cvt--sidebar .cvt-name { color: var(--cvt-accent); font-weight: 800; }
.cvt--sidebar .cvt-side .cvt-h { color: var(--cvt-accent); text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.1em; }
.cvt--sidebar .cvt-main .cvt-h { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; color: var(--cvt-ink); }
.cvt--sidebar .cvt-main .cvt-h::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--cvt-accent), transparent); }

/* Corporate: calmer panel, small caps headings */
.cvt--corporate .cvt-side { border-top: 3px solid var(--cvt-accent); background: #f4f6f9; }
.cvt--corporate .cvt-h { text-transform: uppercase; font-size: 0.88em; letter-spacing: 0.1em; }

/* Executive: air, a small ornament under the name */
.cvt--executive .cvt-head { border-bottom: 0; }
.cvt--executive .cvt-head::after { content: ""; display: block; width: 44px; height: 3px; margin: 6px auto 0; background: var(--cvt-accent); }
.cvt--executive .cvt-h { display: flex; align-items: center; gap: 12px; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.14em; }
.cvt--executive .cvt-h::before, .cvt--executive .cvt-h::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--cvt-accent) 35%, #fff); }

/* Developer: a terminal. Dark column, green prompt, entries like a git log */
.cvt--developer .cvt-side { background: linear-gradient(180deg, #0b1220, #111b2e); border-right: 3px solid var(--cvt-accent); }
.cvt--developer .cvt-side .cvt-h { color: var(--cvt-accent); text-transform: lowercase; letter-spacing: 0.02em; }
.cvt--developer .cvt-side .cvt-h::before { content: "$ "; opacity: 1; }
.cvt--developer .cvt-head--side .cvt-headline { font-family: "Noto Sans Mono", monospace; font-size: 0.92em; color: var(--cvt-accent); }
.cvt--developer .cvt-head--side .cvt-headline::before { content: "> "; }
.cvt--developer .cvt-side .cvt-chips span { background: rgba(16, 185, 129, 0.12); border: 1px solid color-mix(in srgb, var(--cvt-accent) 45%, transparent); color: #d1fae5; border-radius: 4px; }
.cvt--developer .cvt-main .cvt-h { display: flex; align-items: center; gap: 8px; color: var(--cvt-ink); font-family: "Noto Sans Mono", monospace; font-size: 0.98em; }
.cvt--developer .cvt-main .cvt-h::before { content: "{"; color: var(--cvt-accent); opacity: 1; font-weight: 800; }
.cvt--developer .cvt-main .cvt-h::after { content: "}"; color: var(--cvt-accent); font-weight: 800; }
.cvt--developer .cvt-main .cvt-entry { padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--cvt-accent) 40%, #fff); }
.cvt--developer .cvt-main .cvt-entry__date { font-family: "Noto Sans Mono", monospace; font-size: 0.82em; color: var(--cvt-accent); }
.cvt--developer .cvt-main .cvt-chips span { border: 1px solid color-mix(in srgb, var(--cvt-accent) 45%, #fff); background: #f0fdf9; font-family: "Noto Sans Mono", monospace; font-size: 0.82em; }

/* Creative: a band that ends in a slant, round marks */
.cvt--creative .cvt-head--band { padding-bottom: calc(var(--cvt-margin) * 1.1); clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); margin-bottom: calc(var(--cvt-gap) * 0.4); background: linear-gradient(120deg, var(--cvt-accent), color-mix(in srgb, var(--cvt-accent) 60%, #fb7185)); }
.cvt--creative .cvt-side { border: 2px dashed color-mix(in srgb, var(--cvt-accent) 35%, #fff); background: #fff; }
.cvt--creative .cvt-chips span { border-radius: 999px; background: color-mix(in srgb, var(--cvt-accent) 12%, #fff); color: color-mix(in srgb, var(--cvt-accent) 80%, #000); }

/* Finance: ledger lines */
.cvt--finance .cvt-head--split { border-bottom: 3px solid var(--cvt-accent); }
.cvt--finance .cvt-name { font-weight: 600; letter-spacing: 0.01em; }
.cvt--finance .cvt-h { padding-bottom: 3px; border-bottom: 1px solid var(--cvt-rule); text-transform: uppercase; font-size: 0.88em; }
.cvt--finance .cvt-entry--dl .cvt-entry__date { font-variant-numeric: tabular-nums; color: var(--cvt-accent); font-weight: 600; }

/* Engineering: a timeline, dates on the line, dashed bar on the name */
.cvt--engineer .cvt-head { position: relative; padding: 4px 0 4px 16px; border-left: 0; }
.cvt--engineer .cvt-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--cvt-accent) 0 10px, transparent 10px 14px); }
.cvt--engineer .cvt-name { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 800; }
.cvt--engineer .cvt-h { display: inline-block; padding: 2px 10px; border: 0; background: var(--cvt-ink); color: #fff; font-size: 0.86em; letter-spacing: 0.1em; text-transform: uppercase; }
.cvt--engineer .cvt-entry--dl { position: relative; grid-template-columns: 104px 1fr; gap: 0 26px; }
.cvt--engineer .cvt-entry--dl::before { content: ""; position: absolute; left: 111px; top: 4px; width: 10px; height: 10px; border: 2.5px solid var(--cvt-accent); border-radius: 50%; background: #fff; z-index: 1; }
.cvt--engineer .cvt-entry--dl::after { content: ""; position: absolute; left: 115px; top: 16px; bottom: calc(-1 * var(--cvt-gap) - 2px); width: 2px; background: color-mix(in srgb, var(--cvt-accent) 30%, #fff); }
.cvt--engineer .cvt-block:last-child .cvt-entry--dl::after { display: none; }
.cvt--engineer .cvt-chips span { border-radius: 2px; border-left: 3px solid var(--cvt-accent); background: #f6f4ef; }

/* Academic: serif, a double line under the name, a hanging date column */
.cvt--academic .cvt-head { padding-bottom: 10px; border-bottom: 3px double var(--cvt-ink); }
.cvt--academic .cvt-h { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9em; }
.cvt--academic .cvt-entry--dl .cvt-entry__date { font-style: italic; }

/* Student: a soft block for the name, friendly bars */
.cvt--student .cvt-head { padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--cvt-accent) 9%, #fff); }
.cvt--student .cvt-chips span { border-radius: 999px; }

/* ---------- 16. Medical: calm teal, a cross before each heading ---------- */
.cvt--medical { --cvt-muted: #51606c; --cvt-side-w: 30%; }
.cvt--medical .cvt-head { padding-bottom: 14px; border-bottom: 2px solid var(--cvt-accent); }
.cvt--medical .cvt-photo { border: 3px solid color-mix(in srgb, var(--cvt-accent) 30%, #fff); }
.cvt--medical .cvt-name { color: var(--cvt-accent); font-weight: 700; }
.cvt--medical .cvt-headline { color: var(--cvt-ink); font-weight: 500; }
.cvt--medical .cvt-h { display: flex; align-items: center; gap: 9px; color: var(--cvt-accent); text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.08em; }
.cvt--medical .cvt-h::before { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--cvt-accent), var(--cvt-accent)) center / 100% 4px no-repeat, linear-gradient(var(--cvt-accent), var(--cvt-accent)) center / 4px 100% no-repeat; }
.cvt--medical .cvt-side { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--cvt-accent) 7%, #fff); }
.cvt--medical .cvt-entry--dl .cvt-entry__date { color: var(--cvt-accent); font-weight: 600; }

/* ---------- 17. Legal: serif, navy and a gold thread ---------- */
.cvt--legal { --cvt-gold: #a67c2e; --cvt-muted: #4b5563; }
.cvt--legal .cvt-head { flex-direction: column; text-align: center; gap: 6px; padding: 12px 0; border-top: 3px double var(--cvt-accent); border-bottom: 3px double var(--cvt-accent); }
.cvt--legal .cvt-name { font-weight: 600; font-size: 2.3em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cvt-accent); }
.cvt--legal .cvt-headline { color: var(--cvt-gold); font-style: italic; font-weight: 500; letter-spacing: 0.03em; }
.cvt--legal .cvt-contacts { justify-content: center; }
.cvt--legal .cvt-h { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--cvt-accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.9em; font-weight: 600; }
.cvt--legal .cvt-h::before, .cvt--legal .cvt-h::after { content: ""; flex: 1; height: 1px; background: var(--cvt-gold); opacity: 0.6; }
.cvt--legal .cvt-entry--dl { grid-template-columns: 104px 1fr; }
.cvt--legal .cvt-entry--dl .cvt-entry__date { font-style: italic; color: var(--cvt-gold); }
.cvt--legal .cvt-entry__title { color: var(--cvt-accent); }

/* ---------- 18. Teacher: warm and open, rounded labels ---------- */
.cvt--teacher .cvt-head { padding: 16px 20px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--cvt-accent) 14%, #fff), color-mix(in srgb, var(--cvt-accent) 4%, #fff)); }
.cvt--teacher .cvt-photo { border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.cvt--teacher .cvt-name { color: color-mix(in srgb, var(--cvt-accent) 85%, #000); font-weight: 800; }
.cvt--teacher .cvt-headline { color: var(--cvt-ink); }
.cvt--teacher .cvt-h { display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--cvt-accent); color: #fff; font-size: 0.92em; letter-spacing: 0.02em; }
.cvt--teacher .cvt-entry { padding-left: 12px; border-left: 3px solid color-mix(in srgb, var(--cvt-accent) 30%, #fff); }
.cvt--teacher .cvt-chips span { border-radius: 999px; background: color-mix(in srgb, var(--cvt-accent) 12%, #fff); }
.cvt--teacher .cvt-bullets li::marker { color: var(--cvt-accent); }

/* ---------- 19. Architect and builder: a grid sheet, uppercase, one bright accent ---------- */
.cvt--architect .cvt-side { margin: calc(-1 * var(--cvt-margin)) 0 calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin)); padding: var(--cvt-margin) 22px var(--cvt-margin) var(--cvt-margin); width: calc(var(--cvt-side-w) + var(--cvt-margin)); background: #f3f2ee; border-top: 8px solid var(--cvt-accent); }
.cvt--architect .cvt-head--side { flex-direction: column; align-items: flex-start; gap: 10px; }
.cvt--architect .cvt-name { font-size: 1.7em; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 300; line-height: 1.15; }
.cvt--architect .cvt-name::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; background: var(--cvt-accent); }
.cvt--architect .cvt-headline { color: var(--cvt-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82em; font-weight: 600; }
.cvt--architect .cvt-contacts { flex-direction: column; gap: 3px; }
.cvt--architect .cvt-h { color: var(--cvt-ink); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8em; font-weight: 800; }
.cvt--architect .cvt-main .cvt-h { position: relative; padding-top: 10px; }
.cvt--architect .cvt-main .cvt-h::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 3px; background: var(--cvt-accent); }
.cvt--architect .cvt-main { padding-top: 4px; }
.cvt--architect .cvt-entry__date { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.cvt--architect .cvt-photo { border-radius: 0; }

/* ---------- 20. Sales and management: a strong band, results stand out ---------- */
.cvt--sales .cvt-head--band { margin: calc(-1 * var(--cvt-margin)) calc(-1 * var(--cvt-margin)) calc(var(--cvt-gap) * 1.6); padding: calc(var(--cvt-margin) * 0.85) var(--cvt-margin); background: #0f172a; color: #fff; border-bottom: 5px solid var(--cvt-accent); }
.cvt--sales .cvt-head--band .cvt-headline { color: color-mix(in srgb, var(--cvt-accent) 55%, #fff); }
.cvt--sales .cvt-head--band .cvt-contacts { color: rgba(255, 255, 255, 0.8); }
.cvt--sales .cvt-name { font-size: 2.3em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.cvt--sales .cvt-photo { border: 3px solid var(--cvt-accent); }
.cvt--sales .cvt-h { display: flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--cvt-ink); color: var(--cvt-ink); text-transform: uppercase; font-size: 0.92em; letter-spacing: 0.06em; }
.cvt--sales .cvt-h::before { content: ""; width: 10px; height: 10px; background: var(--cvt-accent); transform: rotate(45deg) scale(0.8); }
.cvt--sales .cvt-bullets li::marker { color: var(--cvt-accent); font-weight: 800; }
.cvt--sales .cvt-bullets li { font-weight: 500; }
.cvt--sales .cvt-side { padding: 14px 16px; border-left: 4px solid var(--cvt-accent); background: #f5f6f8; }
.cvt--sales .cvt-chips span { border-radius: 3px; background: #0f172a; color: #fff; }
