/* The six CV designs rendered by cv-templates.js. The page (.cv-doc) is an
   A4 sheet ~460px wide in the preview and is captured as-is for the PDF, so
   sizes here are tuned for that width. --cv-accent is the user's colour. */
.cv-doc[class*="tpl-"]{padding:0;font-family:"Alexandria",Arial,sans-serif;color:#23262b;line-height:1.5;font-size:7.4px;}
.cv-doc[class*="tpl-"] *{box-sizing:border-box}
.cv-doc[class*="tpl-"] h1{font-size:21px;line-height:1.2;font-weight:800;letter-spacing:0;margin:0}
.cv-doc .t-role{font-size:9px;font-weight:600;margin-top:3px;color:var(--cv-accent)}
.cv-doc .t-sec{margin:0 0 11px}
.cv-doc .t-h{font-size:9px;font-weight:800;margin:0 0 6px;display:flex;align-items:center;gap:6px;color:#16181c}
.cv-doc .t-p{margin:0;color:#4a4f57}
.cv-doc .t-item{margin-bottom:7px;position:relative}
.cv-doc .t-item-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.cv-doc .t-item-head b{font-size:8.2px;font-weight:700;color:#16181c}
.cv-doc .t-date{flex:none;font-size:6.6px;color:#7b8189;font-weight:600}
.cv-doc .t-sub{font-size:7px;color:var(--cv-accent);font-weight:600;margin:1px 0 2px}
.cv-doc .t-bul{margin:2px 0 0;padding-inline-start:10px;color:#4a4f57}
.cv-doc .t-bul li{margin-bottom:1px}
.cv-doc .t-mini{margin-bottom:5px;display:flex;flex-direction:column}
.cv-doc .t-mini b{font-size:7.6px;color:#16181c}
.cv-doc .t-mini span{color:#5d636b;font-size:6.8px}
.cv-doc .t-url{color:var(--cv-accent)!important}
.cv-doc .t-tags{display:flex;flex-wrap:wrap;gap:3px}
.cv-doc .t-tags span{padding:2px 6px;border-radius:999px;background:color-mix(in srgb,var(--cv-accent) 12%,#fff);color:color-mix(in srgb,var(--cv-accent) 75%,#000);font-weight:600;font-size:6.6px}
.cv-doc .t-tags.soft span{background:#eef0f2;color:#4a4f57}
.cv-doc .t-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.cv-doc .t-list li{position:relative;padding-inline-start:8px}
.cv-doc .t-list li::before{content:"";position:absolute;inset-inline-start:0;top:.62em;width:3px;height:3px;border-radius:50%;background:var(--cv-accent)}
.cv-doc .t-list em{font-style:normal;color:#7b8189}
.cv-doc .t-contacts{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cv-doc .t-contacts li{display:flex;align-items:center;gap:5px;min-width:0}
.cv-doc .t-contacts span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cv-doc .t-ic{width:12px;height:12px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--cv-accent)}
.cv-doc .t-ic svg{width:7px;height:7px;fill:#fff}
.cv-doc .t-lang{display:grid;grid-template-columns:1fr auto;gap:1px 6px;margin-bottom:5px}
.cv-doc .t-lang em{font-style:normal;font-size:6.4px;opacity:.75}
.cv-doc .t-lang i{grid-column:1 / -1;height:3px;border-radius:3px;background:rgba(127,127,127,.25);position:relative;overflow:hidden}
.cv-doc .t-lang i::after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:var(--p);background:var(--cv-accent);border-radius:3px}
.cv-doc .t-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.cv-doc .t-photo{width:74px;height:74px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--cv-accent) 18%,#fff);flex:none}
.cv-doc .t-photo img{width:100%;height:100%;object-fit:cover}
.cv-doc .t-photo span{font-size:28px;font-weight:800;color:var(--cv-accent)}
.cv-doc .t-timeline .t-item{padding-inline-start:12px;border-inline-start:1.5px solid color-mix(in srgb,var(--cv-accent) 30%,#fff);margin-bottom:0;padding-bottom:7px}
.cv-doc .t-timeline .t-item::before{content:"";position:absolute;inset-inline-start:-4.5px;top:2px;width:7px;height:7px;border-radius:50%;background:#fff;border:2px solid var(--cv-accent)}

/* 1. Noir */
.tpl-noir{display:grid;grid-template-columns:34% 1fr}
.tpl-noir .t-side{background:#26282e;color:#e8eaee;padding:24px 16px;min-height:100%}
.tpl-noir .t-side .t-photo{margin:0 auto 16px;width:92px;height:92px;box-shadow:0 0 0 3px var(--cv-accent)}
.tpl-noir .t-side .t-h{color:#fff;background:var(--cv-accent);padding:3px 10px;border-radius:999px;width:max-content}
.tpl-noir .t-side .t-list li::before{background:#fff}
.tpl-noir .t-side .t-lang i{background:rgba(255,255,255,.18)}
.tpl-noir .t-main{padding:26px 20px}
.tpl-noir .t-head{padding-bottom:12px;margin-bottom:12px;border-bottom:1.5px solid #e6e8eb}
.tpl-noir .t-head h1{font-size:23px}
.tpl-noir .t-main .t-h{color:#16181c;border-bottom:1.5px solid var(--cv-accent);padding-bottom:3px;width:100%}

/* 2. Azure */
.tpl-azure .t-band{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 24px 20px;background:var(--cv-accent);color:#fff}
.tpl-azure .t-band h1{color:#fff;font-size:23px}
.tpl-azure .t-band .t-role{color:rgba(255,255,255,.88)}
.tpl-azure .t-band .t-p{color:rgba(255,255,255,.85);margin-top:6px;max-width:300px}
.tpl-azure .t-band .t-photo{width:86px;height:86px;box-shadow:0 0 0 3px #fff;background:rgba(255,255,255,.2)}
.tpl-azure .t-band .t-photo span{color:#fff}
.tpl-azure .t-strip{display:flex;flex-wrap:wrap;gap:4px 14px;padding:8px 24px;background:color-mix(in srgb,var(--cv-accent) 10%,#fff)}
.tpl-azure .t-cols{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;padding:14px 24px}
.tpl-azure .t-h{padding:3px 8px;background:color-mix(in srgb,var(--cv-accent) 12%,#fff);color:color-mix(in srgb,var(--cv-accent) 80%,#000);border-inline-start:3px solid var(--cv-accent);border-radius:2px}

/* 3. Frame (id: mauve) */
.tpl-mauve{padding:14px!important;background:#fff}
.tpl-mauve .t-frame{min-height:100%;border:3px solid var(--cv-accent);padding:22px 26px;outline:1px solid color-mix(in srgb,var(--cv-accent) 35%,#fff);outline-offset:-8px}
.tpl-mauve .t-center{text-align:center;display:flex;flex-direction:column;align-items:center;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e6e2dd}
.tpl-mauve .t-center .t-photo{width:78px;height:78px;margin-bottom:8px;box-shadow:0 0 0 3px #fff,0 0 0 4.5px var(--cv-accent)}
.tpl-mauve .t-center h1{font-size:24px;letter-spacing:.03em}
.tpl-mauve .t-inline{display:flex;flex-wrap:wrap;justify-content:center;gap:3px 12px;margin-top:8px}
.tpl-mauve .t-lead{text-align:center;max-width:340px;margin:0 auto 14px}
.tpl-mauve .t-h{justify-content:center;text-align:center;letter-spacing:.12em;color:var(--cv-accent)}
.tpl-mauve .t-h::before,.tpl-mauve .t-h::after{content:"";flex:1;height:1px;background:#e6e2dd}
.tpl-mauve .t-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}
.tpl-mauve .t-grid3 .t-h::before,.tpl-mauve .t-grid3 .t-h::after{display:none}
.tpl-mauve .t-grid3 .t-h{justify-content:flex-start}

/* 4. Angle (id: slate) */
.tpl-slate .t-angle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:26px 26px 40px;background:var(--cv-accent);color:#fff;clip-path:polygon(0 0,100% 0,100% 74%,0 100%)}
.tpl-slate[dir="rtl"] .t-angle{clip-path:polygon(0 0,100% 0,100% 100%,0 74%)}
.tpl-slate .t-angle h1{color:#fff;font-size:27px;line-height:1.1}
.tpl-slate .t-angle .t-role{color:rgba(255,255,255,.9);font-size:10px}
.tpl-slate .t-photo-big{width:96px;height:96px;box-shadow:0 0 0 4px #fff;background:rgba(255,255,255,.2)}
.tpl-slate .t-photo-big span{color:#fff}
.tpl-slate .t-lead{padding:0 26px;margin:-4px 0 10px}
.tpl-slate .t-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;padding:0 26px 20px}
.tpl-slate .t-h{font-size:10px;color:var(--cv-accent)}
.tpl-slate .t-h::before{content:"";width:14px;height:3px;border-radius:2px;background:var(--cv-accent)}
.tpl-slate .t-side{padding:12px;border-radius:10px;background:color-mix(in srgb,var(--cv-accent) 7%,#fff)}

/* 5. Bars (id: navy) */
.tpl-navy .t-bars-head{display:flex;gap:16px;align-items:center;padding:22px 24px 16px}
.tpl-navy .t-photo-square{width:84px;height:96px;border-radius:6px;box-shadow:6px 6px 0 var(--cv-accent)}
.tpl-navy .t-bars-head h1{font-size:23px}
.tpl-navy .t-bars-head .t-p{margin-top:5px}
.tpl-navy .t-cols{display:grid;grid-template-columns:36% 1fr}
.tpl-navy .t-side{background:#f1f2f4;padding:12px 14px 20px;min-height:100%}
.tpl-navy .t-main{padding:12px 20px 20px}
.tpl-navy .t-h{background:var(--cv-accent);color:#fff;padding:4px 9px;border-radius:2px;font-size:8.6px;letter-spacing:.06em}
.tpl-navy .t-side .t-h{background:#2d3138}

/* 6. Minimal ATS */
.tpl-ats{padding:30px 32px!important}
.tpl-ats .t-head{padding-bottom:12px;margin-bottom:6px;border-bottom:1px solid #d9dce0}
.tpl-ats .t-head h1{font-size:25px;letter-spacing:.01em}
.tpl-ats .t-head .t-role{color:#4a4f57}
.tpl-ats .t-inline{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:6px;color:#4a4f57}
.tpl-ats .t-row{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #eceef0}
.tpl-ats .t-row .t-h{font-size:7.6px;text-transform:uppercase;letter-spacing:.1em;color:var(--cv-accent);margin:0}

/* Template picker: live miniature of each design */
.cv-template-card .cv-tpl-thumb{position:relative;width:100%;aspect-ratio:210/297;overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.cv-template-card .cv-tpl-thumb .cv-doc{position:absolute;top:0;inset-inline-start:0;width:460px;max-width:none;transform-origin:top left;box-shadow:none;pointer-events:none}
.cv-template-card .cv-tpl-thumb .cv-doc[dir="rtl"]{transform-origin:top right}
