/* CV builder: the editor (cvb-*) and the CV templates (cv-*). Only loaded on the CV builder page.
   CV rules stick to what the PDF exporter (js/cv-pdf.js) can reproduce: solid colours (no gradients or color-mix),
   weights 400/700, no letter-spacing and no pseudo-element content. */

/* ---------- Editor layout ---------- */
.cvb { --panel: min(520px, 44%); }
.cvb-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--paper); box-shadow: var(--shadow-1); }
.cvb-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; flex: 1 1 320px; }
.cvb-doc select { width: auto; max-width: 220px; padding-top: 7px; padding-bottom: 7px; }
.cvb-doc input { width: auto; flex: 1 1 140px; min-width: 120px; padding: 7px 10px; }
.cvb-saved { font-size: 0.8rem; color: var(--slate-2); }
.cvb-actions { display: flex; align-items: center; gap: 6px; }
.cvb-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: var(--r-control); background: none; color: var(--ink); cursor: pointer; }
.cvb-icon-btn:hover:not(:disabled) { background: var(--mist); border-color: var(--line); }
.cvb-icon-btn:disabled { opacity: 0.35; cursor: default; }
.cvb-icon-btn svg { width: 17px; height: 17px; }
.cvb-icon-btn:focus-visible, .cvb-card-toggle:focus-visible, .cvb-item-toggle:focus-visible, .cvb-tpl:focus-visible, .cvb-swatch:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.cvb-danger { color: var(--bad) !important; }
.cvb-menu-wrap { position: relative; }
.cvb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 250px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--paper); box-shadow: var(--shadow-3); }
.cvb-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-control); background: none; color: var(--ink); font: 500 0.92rem var(--text); text-align: left; cursor: pointer; }
.cvb-menu button:hover, .cvb-menu button:focus-visible { background: var(--mist); outline: none; }
.cvb-menu svg { width: 17px; height: 17px; color: var(--slate); }
.cvb-menu hr { margin: 5px 0; border: 0; border-top: 1px solid var(--line); }
.cvb-status { min-height: 1.4em; margin: 8px 2px 0; font-size: 0.9rem; color: var(--slate); }
.cvb-switch { display: none; }

.cvb-layout { display: grid; grid-template-columns: var(--panel) minmax(0, 1fr); gap: 18px; margin-top: 10px; height: min(920px, calc(100vh - 110px)); min-height: 560px; }
.cvb-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--canvas); overflow: hidden; }
.cvb-tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--paper); }
.cvb-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 0; border-radius: var(--r-control); background: none; color: var(--slate); font: 600 0.95rem var(--text); cursor: pointer; }
.cvb-tabs button svg { width: 17px; height: 17px; }
.cvb-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cvb-tab-body { flex: 1; overflow: auto; padding: 12px; overscroll-behavior: contain; }
.cvb-tab-body[hidden] { display: none; }
.cvb-preview-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: var(--r-panel); background: #DDE3EC; overflow: hidden; }
.cvb-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; font-size: 0.85rem; font-weight: 600; color: var(--slate); background: #E8EDF4; }
.cvb-zoom { display: inline-flex; align-items: center; gap: 2px; }
.cvb-zoom-label { min-width: 52px; padding: 6px; border: 0; border-radius: var(--r-control); background: none; font: 600 0.85rem var(--text); color: var(--ink); cursor: pointer; }
.cvb-zoom-label:hover { background: var(--paper); }
.cvb-preview { flex: 1; overflow: auto; padding: 16px 12px 24px; }
.cvb-page { position: relative; margin: 0 auto 18px; background: #fff; box-shadow: 0 2px 6px rgb(15 29 58 / 0.12), 0 12px 30px -12px rgb(15 29 58 / 0.3); overflow: hidden; cursor: pointer; }
.cvb-page-in { position: absolute; top: 0; left: 0; transform-origin: top left; overflow: hidden; }
.cvb-page-no { position: absolute; left: 0; right: 0; text-align: center; color: #6B7280; font-family: Arial, sans-serif; pointer-events: none; }
.cvb-measure { position: fixed; left: -30000px; top: 0; pointer-events: none; }

/* ---------- Editor cards ---------- */
.cvb-card { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--paper); transition: box-shadow 0.2s; }
.cvb-card.is-open { box-shadow: var(--shadow-2); }
.cvb-card.is-hidden .cvb-card-toggle strong, .cvb-item.is-hidden .cvb-item-toggle strong, .cvb-tag-row.is-hidden input { opacity: 0.5; }
.cvb-card.is-dragging, .cvb-item.is-dragging, .cvb-tag-row.is-dragging { opacity: 0.6; box-shadow: var(--shadow-3); }
.is-flash { animation: cvb-flash 1.2s; }
@keyframes cvb-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--signal); } 100% { box-shadow: none; } }
.cvb-card-head, .cvb-item-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; }
.cvb-grip { display: inline-grid; place-items: center; width: 24px; height: 32px; color: var(--slate-2); cursor: grab; touch-action: none; flex: none; }
.cvb-grip svg { width: 16px; height: 16px; }
.cvb-grip:active { cursor: grabbing; }
.cvb-card-toggle, .cvb-item-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; border-radius: var(--r-control); background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.cvb-card-toggle:hover, .cvb-item-toggle:hover { background: var(--mist); }
.cvb-card-toggle strong { font-family: var(--display); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvb-card-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--signal-soft); color: var(--signal-deep); flex: none; }
.cvb-card-icon svg { width: 16px; height: 16px; }
.cvb-badge { padding: 1px 7px; border-radius: 999px; background: var(--mist); color: var(--slate); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.cvb-card-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.cvb-card-body[hidden], .cvb-item-body[hidden] { display: none; }
.cvb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cvb-grid .field { margin: 0; }
.cvb-wide { grid-column: 1 / -1; }
.cvb-label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.cvb-label small { font-weight: 400; color: var(--slate-2); }
.cvb-date-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; }
.cvb-items { display: flex; flex-direction: column; gap: 8px; }
.cvb-item { border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE; }
.cvb-item-toggle { flex-direction: column; align-items: flex-start; gap: 0; }
.cvb-item-toggle strong { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cvb-item-toggle span { font-size: 0.8rem; color: var(--slate); }
.cvb-item-body { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.cvb-row-actions { display: inline-flex; flex: none; }
.cvb-row-actions .cvb-icon-btn { width: 30px; height: 30px; }
.cvb-tag-row { display: flex; align-items: center; gap: 6px; }
.cvb-tag-row input, .cvb-tag-row select { flex: 1 1 0; min-width: 0; padding: 8px 10px; }
.cvb-tag-row select { flex: 0 1 150px; padding-right: 30px; }
.cvb-detail-row input:first-child { flex: 0 1 38%; }
.cvb-add { align-self: flex-start; }
.cvb-add svg { width: 16px; height: 16px; }
.cvb-add-section { width: 100%; justify-content: center; border-style: dashed; }
.cvb-sec-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.cvb-sec-actions svg { width: 15px; height: 15px; }
.cvb-add-panel { padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.cvb-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cvb-add-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE; color: var(--ink); text-align: left; font: 600 0.88rem var(--text); cursor: pointer; }
.cvb-add-choice:hover { border-color: var(--signal); background: var(--signal-soft); }
.cvb-add-choice svg { width: 18px; height: 18px; color: var(--signal-deep); }
.cvb-add-choice small { font-weight: 400; color: var(--slate); font-size: 0.75rem; }
.cvb-photo-row { display: flex; align-items: center; gap: 14px; }
.cvb-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--mist); color: var(--slate-2); border: 1px solid var(--line); }
.cvb-photo img { width: 100%; height: 100%; object-fit: cover; }
.cvb-photo svg { width: 32px; height: 32px; }
.cvb-photo-row .btn { margin: 0 6px 6px 0; }
.cvb-photo-row .btn svg { width: 15px; height: 15px; }

/* Rich text */
.cvb-rte { border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--paper); }
.cvb-rte:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.cvb-rte-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: #FBFCFE; border-radius: var(--r-control) var(--r-control) 0 0; }
.cvb-rte-bar button { display: inline-grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.cvb-rte-bar button:hover { background: var(--mist); }
.cvb-rte-bar svg { width: 15px; height: 15px; }
.cvb-rte-area { min-height: 84px; max-height: 340px; overflow: auto; padding: 10px 12px; font-size: 0.95rem; line-height: 1.55; color: var(--ink); outline: none; }
.cvb-rte-area:empty::before { content: attr(data-placeholder); color: var(--slate-2); }
.cvb-rte-area p, .cvb-rte-area ul, .cvb-rte-area ol { margin: 0 0 6px; }
.cvb-rte-area ul, .cvb-rte-area ol { padding-left: 22px; }
.cvb-rte-area a { color: var(--signal-ink); }

/* Design tab */
.cvb-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cvb-tpl { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); text-align: left; cursor: pointer; }
.cvb-tpl:hover { border-color: var(--line-strong); }
.cvb-tpl.is-active { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.cvb-tpl-thumb { position: relative; display: block; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cvb-tpl-thumb > span { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; }
.cvb-tpl-name { font-weight: 700; font-size: 0.88rem; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.cvb-tpl-note { font-size: 0.75rem; color: var(--slate); }
.cvb-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cvb-swatch { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.cvb-swatch.is-active { box-shadow: 0 0 0 2px var(--ink); }
.cvb-swatch-custom { background: conic-gradient(#f44, #fd4, #4d4, #4df, #44f, #f4f, #f44); overflow: hidden; }
.cvb-swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
#cvb-design .cvb-grid { margin-bottom: 12px; }
#cvb-design .checkbox { margin-bottom: 8px; }

@media (max-width: 960px) {
    .cvb-switch { display: flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: var(--r-panel); background: var(--mist); position: sticky; top: 64px; z-index: 6; }
    .cvb-switch button { flex: 1; padding: 9px; border: 0; border-radius: var(--r-control); background: none; font: 700 0.95rem var(--text); color: var(--slate); }
    .cvb-switch button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
    .cvb-layout { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
    .cvb-layout[data-view="edit"] .cvb-preview-col, .cvb-layout[data-view="preview"] .cvb-panel { display: none; }
    .cvb-panel, .cvb-preview-col { overflow: visible; }
    .cvb-tab-body, .cvb-preview { overflow: visible; }
    .cvb-preview { overflow-x: auto; }
}
@media (max-width: 520px) {
    .cvb-grid { grid-template-columns: 1fr; }
    .cvb-tab-body { padding: 8px; }
    .cvb-card-body { padding: 4px 10px 12px; }
    /* Two rows: handle, type or level and buttons on top; the text full width below. */
    .cvb-tag-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
    .cvb-tag-row > input[type="text"] { grid-column: 1 / -1; grid-row: 2; }
    .cvb-tag-row > select { grid-column: 2; grid-row: 1; }
    .cvb-tag-row > .cvb-row-actions { grid-column: 3; grid-row: 1; justify-self: end; }
    .cvb-tag-row > .cvb-grip { grid-column: 1; grid-row: 1; }
    .cvb-tag-row:not(:has(select)) > input[type="text"] { grid-column: 2; grid-row: 1; }
    .cvb-detail-row { grid-template-columns: minmax(0, 1fr) auto; }
    .cvb-detail-row > input[type="text"]:first-child { grid-column: 1; grid-row: 1; }
    .cvb-detail-row > input[type="text"] + input { grid-column: 1 / -1; grid-row: 2; }
    .cvb-detail-row > .cvb-row-actions { grid-column: 2; grid-row: 1; }
    .cvb-actions .btn { padding-left: 12px; padding-right: 12px; }
}

/* Printing: only the CV pages. */
.cvb-print-root { display: none; }
@media print {
    body.cvb-printing > :not(.cvb-print-root) { display: none !important; }
    body.cvb-printing { background: #fff; }
    body.cvb-printing .cvb-print-root { display: block; }
    .cvb-print-page { position: relative; overflow: hidden; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cvb-print-page .cvb-page-no { bottom: 6mm; font-size: 8pt; }
}

/* ---------- The CV ---------- */
.cv { position: relative; box-sizing: border-box; padding: var(--m) 0; background: #fff; color: #1F2937; font-family: var(--font); font-size: var(--fs); line-height: var(--lh); font-kerning: none; font-variant-ligatures: none; text-align: left; overflow-wrap: break-word; }
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The site's heading styles must not leak in: everything in the CV uses the CV font (the PDF embeds only that). */
.cv h1, .cv h2, .cv h3, .cv p, .cv li, .cv a, .cv span { font-family: inherit; letter-spacing: normal; text-wrap: wrap; }
.cv a { color: inherit; text-decoration: none; }
.cv b, .cv strong { font-weight: 700; }
.cv i, .cv em { font-style: italic; }
.cv u { text-decoration: underline; }
.cv ul, .cv ol { list-style: none; }
.cv-spacer { display: block; }
.cv-cols { display: flex; gap: calc(var(--m) * 0.9); padding: 0 var(--m); }
.cv-col { min-width: 0; }
.cv-main { flex: 1 1 0; }
.cv-side { flex: 0 0 var(--side); }
.cv-head { display: flex; align-items: center; gap: calc(var(--m) * 0.8); padding: 0 var(--m); margin-bottom: calc(var(--fs) * 1.4 * var(--gap)); }
.cv-head-text { flex: 1; min-width: 0; }
.cv-name { font-size: calc(var(--fs) * 2.5); line-height: 1.12; font-weight: 700; color: #111827; }
.cv-title { margin-top: 0.25em; font-size: calc(var(--fs) * 1.25); line-height: 1.3; color: var(--accent); }
.cv-photo { display: block; width: calc(var(--fs) * 7.5); height: calc(var(--fs) * 7.5); object-fit: cover; flex: none; }
.cv-photo-circle .cv-photo { border-radius: 50%; }
.cv-photo-rounded .cv-photo { border-radius: 14%; }
.cv-contact { margin-top: 0.7em; display: flex; flex-wrap: wrap; gap: 0.25em 1.3em; }
.cv-contact li { display: flex; align-items: center; gap: 0.45em; min-width: 0; }
.cv-icon { width: 1.05em; height: 1.05em; flex: none; color: var(--accent); }
.cv-detail b { font-weight: 700; }

.cv-sec + .cv-sec { margin-top: calc(var(--fs) * 1.3 * var(--gap)); }
.cv-h { font-size: calc(var(--fs) * 1.2); line-height: 1.3; font-weight: 700; color: var(--accent); padding-bottom: 0.25em; margin-bottom: 0.55em; border-bottom: 1.5px solid var(--accent-soft); }
.cv-upper .cv-h { text-transform: uppercase; }
.cv-entry + .cv-entry { margin-top: calc(var(--fs) * 0.85); }
.cv-e-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.9em; }
.cv-e-main { min-width: 0; }
.cv-e-title { font-weight: 700; color: #111827; }
.cv-e-sub { color: #374151; }
.cv-e-linkline { font-size: 0.92em; color: var(--accent); }
.cv-e-meta { flex: none; max-width: 42%; text-align: right; color: #6B7280; font-size: 0.92em; }
.cv-e-body { margin-top: 0.3em; color: #374151; }
.cv-e-body > * + *, .cv-text > * + * { margin-top: 0.35em; }
.cv-e-body a, .cv-text a { color: var(--accent); }
.cv-text { color: #374151; }
.cv-list li { position: relative; padding-left: 1.15em; }
.cv-list li + li { margin-top: 0.18em; }
.cv-bullet { position: absolute; left: 0; top: 0; color: var(--accent); }
.cv-skills li { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.12em 0; }
.cv-skill-name { min-width: 0; }
.cv-bar { position: relative; flex: 0 0 38%; height: 0.42em; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.cv-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); }
.cv-dots { display: flex; gap: 0.25em; flex: none; }
.cv-dots i { display: block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--accent-soft); }
.cv-dots i.on { background: var(--accent); }
.cv-lvl-text { flex: none; color: #6B7280; font-size: 0.92em; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 0.35em; }
.cv-chips li { padding: 0.12em 0.65em; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.94em; }

/* Modern: coloured sidebar on the left with photo and contact details. */
.cv-t-modern .cv-band { position: absolute; top: 0; bottom: 0; left: 0; width: var(--side); background: var(--accent); }
.cv-t-modern .cv-cols { position: relative; padding: 0; gap: 0; }
.cv-t-modern .cv-side { padding: 0 calc(var(--m) * 0.75); color: #fff; }
.cv-t-modern .cv-main { padding: 0 var(--m) 0 calc(var(--m) * 0.9); }
.cv-t-modern .cv-head { padding: 0; margin-bottom: calc(var(--fs) * 1.3 * var(--gap)); }
.cv-t-modern .cv-name { color: var(--accent); }
.cv-t-modern .cv-title { color: #374151; }
.cv-t-modern .cv-photo-wrap { display: flex; justify-content: center; margin-bottom: calc(var(--fs) * 1.5); }
.cv-t-modern .cv-photo { width: 72%; height: auto; aspect-ratio: 1; }
.cv-t-modern .cv-side .cv-h { color: #fff; border-bottom-color: var(--accent-mid); }
.cv-t-modern .cv-side .cv-contact { display: block; margin: 0; font-size: 0.9em; }
.cv-t-modern .cv-side .cv-contact li { align-items: flex-start; margin-bottom: 0.4em; }
.cv-t-modern .cv-side .cv-icon { color: #fff; margin-top: 0.2em; }
.cv-t-modern .cv-side .cv-e-title, .cv-t-modern .cv-side .cv-e-sub, .cv-t-modern .cv-side .cv-e-body, .cv-t-modern .cv-side .cv-text, .cv-t-modern .cv-side .cv-e-meta, .cv-t-modern .cv-side .cv-lvl-text { color: #fff; }
.cv-t-modern .cv-side .cv-e-head { display: block; }
.cv-t-modern .cv-side .cv-e-meta { max-width: none; text-align: left; }
.cv-t-modern .cv-side .cv-bar { background: var(--accent-mid); }
.cv-t-modern .cv-side .cv-bar span, .cv-t-modern .cv-side .cv-dots i.on { background: #fff; }
.cv-t-modern .cv-side .cv-dots i { background: var(--accent-mid); }
.cv-t-modern .cv-side .cv-skills li { display: block; }
.cv-t-modern .cv-side .cv-skills .cv-bar, .cv-t-modern .cv-side .cv-skills .cv-dots { margin-top: 0.25em; }
.cv-t-modern .cv-side .cv-bar { display: block; width: 100%; }
.cv-t-modern .cv-side .cv-chips li { background: var(--accent-dark); color: #fff; }
.cv-t-modern .cv-side .cv-bullet, .cv-t-modern .cv-side a { color: #fff; }

/* Executive: full-width coloured header, sidebar on the right. */
.cv-t-executive .cv-head { margin: calc(var(--m) * -1) 0 calc(var(--fs) * 1.6 * var(--gap)); padding: calc(var(--m) * 0.9) var(--m); background: var(--accent); color: #fff; }
.cv-t-executive .cv-name { color: #fff; }
.cv-t-executive .cv-title { color: var(--accent-soft); }
.cv-t-executive .cv-icon { color: #fff; }
.cv-t-executive .cv-side .cv-h, .cv-t-executive .cv-main .cv-h { border-bottom: 0; padding-bottom: 0; }
.cv-t-executive .cv-side { padding-left: calc(var(--m) * 0.8); border-left: 1px solid #E5E7EB; }
.cv-t-executive .cv-side .cv-e-head { display: block; }
.cv-t-executive .cv-side .cv-e-meta { max-width: none; text-align: left; }

/* Clean: light two-column layout, photo on the right. */
.cv-t-clean .cv-head { flex-direction: row-reverse; padding-bottom: calc(var(--fs) * 1.1); border-bottom: 2px solid var(--accent); }
.cv-t-clean .cv-h { border-bottom: 0; padding-bottom: 0; color: #111827; }
.cv-t-clean .cv-side { background: var(--accent-soft); padding: calc(var(--fs) * 1) calc(var(--fs) * 1.1); border-radius: 8px; align-self: flex-start; }
.cv-t-clean .cv-side .cv-h { color: var(--accent-dark); }
.cv-t-clean .cv-side .cv-e-head { display: block; }
.cv-t-clean .cv-side .cv-e-meta { max-width: none; text-align: left; }
.cv-t-clean .cv-side .cv-bar { background: #fff; }
.cv-t-clean .cv-side .cv-dots i { background: #fff; }
.cv-t-clean .cv-side .cv-chips li { background: #fff; }

/* Classic: centred header, rules under headings. */
.cv-t-classic .cv-head { flex-direction: column; text-align: center; gap: calc(var(--fs) * 0.8); }
.cv-t-classic .cv-contact { justify-content: center; }
.cv-t-classic .cv-name { color: #111827; }
.cv-t-classic .cv-h { color: #111827; border-bottom: 1px solid #9CA3AF; }
.cv-t-classic .cv-e-title { color: #111827; }
.cv-t-classic .cv-e-sub { font-style: italic; }

/* Elegant: centred, generous, thin accent lines. */
.cv-t-elegant .cv-head { flex-direction: column; text-align: center; gap: calc(var(--fs) * 0.9); padding-bottom: calc(var(--fs) * 1.2); border-bottom: 1px solid var(--accent-mid); }
.cv-t-elegant .cv-name { font-size: calc(var(--fs) * 2.8); font-weight: 400; color: var(--accent-dark); }
.cv-t-elegant .cv-title { color: #4B5563; font-style: italic; }
.cv-t-elegant .cv-contact { justify-content: center; }
.cv-t-elegant .cv-h { text-align: center; font-weight: 400; font-size: calc(var(--fs) * 1.35); color: var(--accent-dark); border-bottom: 0; padding-bottom: 0; margin-bottom: 0.7em; }
.cv-t-elegant .cv-e-sub { font-style: italic; color: var(--accent-dark); }

/* Minimal: plain and airy, small accent headings. */
.cv-t-minimal .cv-head { margin-bottom: calc(var(--fs) * 2 * var(--gap)); }
.cv-t-minimal .cv-name { font-weight: 400; font-size: calc(var(--fs) * 2.7); color: #111827; }
.cv-t-minimal .cv-title { color: #6B7280; }
.cv-t-minimal .cv-icon { color: #9CA3AF; }
.cv-t-minimal .cv-h { border-bottom: 0; padding-bottom: 0; font-size: calc(var(--fs) * 1.05); color: var(--accent); }
.cv-t-minimal .cv-sec + .cv-sec { margin-top: calc(var(--fs) * 1.8 * var(--gap)); }

/* Timeline: dates in a column on the left. */
.cv-t-timeline .cv-h { border-bottom: 0; padding-bottom: 0; color: #111827; }
.cv-t-timeline .cv-head { padding-bottom: calc(var(--fs) * 1); border-bottom: 3px solid var(--accent); }
.cv-t-timeline .cv-entry .cv-e-head, .cv-t-timeline .cv-entry .cv-e-body { margin-left: calc(var(--fs) * 9); }
.cv-t-timeline .cv-e-head { position: relative; display: block; }
.cv-t-timeline .cv-e-meta { position: absolute; top: 0; left: calc(var(--fs) * -9); width: calc(var(--fs) * 8.2); max-width: none; text-align: left; color: var(--accent); font-weight: 700; }
.cv-t-timeline .cv-e-loc { font-weight: 400; color: #6B7280; }
.cv-t-timeline .cv-entry { border-left: 0; }

/* Compact: dense single column, plain text, no photo (best for ATS). */
.cv-t-compact { --gap-scale: 0.7; }
.cv-t-compact .cv-head { margin-bottom: calc(var(--fs) * 0.9 * var(--gap)); padding-bottom: calc(var(--fs) * 0.6); border-bottom: 1px solid #9CA3AF; }
.cv-t-compact .cv-name { font-size: calc(var(--fs) * 2); color: #111827; }
.cv-t-compact .cv-title { color: #374151; font-size: calc(var(--fs) * 1.1); }
.cv-t-compact .cv-contact { margin-top: 0.4em; gap: 0.15em 1em; }
.cv-t-compact .cv-icon { display: none; }
.cv-t-compact .cv-h { font-size: calc(var(--fs) * 1.08); color: #111827; border-bottom: 0; padding-bottom: 0; margin-bottom: 0.35em; }
.cv-t-compact .cv-sec + .cv-sec { margin-top: calc(var(--fs) * 0.95 * var(--gap)); }
.cv-t-compact .cv-entry + .cv-entry { margin-top: calc(var(--fs) * 0.55); }
.cv-t-compact .cv-chips { display: block; }
.cv-t-compact .cv-chips li { display: inline; padding: 0; background: none; color: #374151; font-size: 1em; }
.cv-chip-sep { display: none; }
.cv-t-compact .cv-chip-sep { display: inline; }
.cv-noicons .cv-icon { display: none; }
