/* ==========================================================
   CV Dost — Biodata document styles (6 designs)
   ========================================================== */
.bd{
  --c:#9f1239;--c-soft:#fbe7ee;--c-mid:#d98aa3;--fs:1;--pw:210mm;--ph:297mm;
  --scripts:'Noto Sans Tamil','Noto Sans Telugu','Noto Sans Kannada','Noto Sans Malayalam','Noto Sans Gujarati','Noto Sans Gurmukhi','Noto Sans Oriya','Noto Naskh Arabic','Noto Sans Ol Chiki','Noto Sans Devanagari','Noto Sans Bengali','PingFang SC','Microsoft YaHei','Hiragino Sans','Malgun Gothic','Noto Sans CJK SC';
  --bd-font:'Source Serif 4','Noto Serif Devanagari','Noto Serif Bengali',var(--scripts),Georgia,serif;
  --bd-name:var(--bd-font);
  width:var(--pw);min-height:var(--ph);background:#fff;color:#2a2230;position:relative;overflow:hidden;
  font-family:var(--bd-font);font-size:calc(11pt * var(--fs) * var(--fit,1));line-height:1.5;box-sizing:border-box;
  -webkit-print-color-adjust:exact;print-color-adjust:exact;
}
.bd *,.bd *::before,.bd *::after{box-sizing:border-box;margin:0;padding:0}
.bd.bdfont-sans{--bd-font:'Poppins',var(--scripts),Arial,sans-serif;font-size:calc(10.4pt * var(--fs) * var(--fit,1))}
.bd.bdfont-script{--bd-name:'Great Vibes','Noto Serif Devanagari','Noto Serif Bengali',var(--scripts),cursive}
.bd.bdfont-script .bd-name{font-weight:400;font-size:3.1em;letter-spacing:0}
.bd-in{position:relative;z-index:1}
.bd-inv{text-align:center;color:var(--c);font-weight:700;font-size:1.05em;margin-bottom:.4em;letter-spacing:.03em}
.bd-title{text-align:center;text-transform:uppercase;letter-spacing:.3em;font-weight:700;color:var(--c);font-size:1.02em}
.uncased .bd-title{letter-spacing:0;text-transform:none;font-size:1.15em}
.is-rtl{direction:rtl;line-height:1.75}
.is-rtl *{letter-spacing:0 !important}
.bd-name{font-family:var(--bd-name);font-size:2.3em;line-height:1.15;color:#1d1420;font-weight:700;text-align:center}
.bd-ph{color:#c4bcc8}
.bd-photo{width:38mm;height:46mm;object-fit:cover;display:block;flex-shrink:0}
.photo-circle .bd-photo{width:40mm;height:40mm;border-radius:50%}
.photo-rounded .bd-photo{border-radius:10px}
.bd-sec{margin-top:1.1em;break-inside:avoid;page-break-inside:avoid}
.bd-sec-title{font-size:1.08em;color:var(--c);font-weight:700;margin-bottom:.45em;font-family:var(--bd-font)}
.bd-kv{width:100%;border-collapse:collapse}
.bd-kv th{text-align:start;font-weight:600;width:36%;padding:.22em .4em .22em 0;vertical-align:top;color:#4a3f4f}
.bd-kv .bd-colon{width:1.2em;padding:.22em .4em;vertical-align:top;color:var(--c)}
.bd-kv td{padding:.22em 0;vertical-align:top}
.bd-div{display:flex;align-items:center;gap:10px;margin:.8em auto .2em;width:70%;color:var(--c)}
.bd-div span{flex:1;height:1px;background:var(--c-mid)}
.bd-div i{font-style:normal;font-size:.9em}

/* 1 ROYAL FRAME */
.tpl-royal{padding:9mm}
.tpl-royal .bd-frame{position:relative;border:3px double var(--c);min-height:calc(var(--ph) - 18mm);padding:13mm 15mm;outline:1px solid var(--c-mid);outline-offset:-8px}

.tpl-royal .bd-corner{position:absolute;width:20mm;height:20mm;border:0 solid var(--c);display:block}
.tpl-royal .bd-corner::after{content:"";position:absolute;width:13mm;height:13mm;border:0 solid var(--c-mid)}
.tpl-royal .bd-corner b{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--c)}
.tpl-royal .bd-corner.tl{top:5px;left:5px;border-top-width:3px;border-left-width:3px;border-top-left-radius:16mm}
.tpl-royal .bd-corner.tl::after{top:4px;left:4px;border-top-width:1px;border-left-width:1px;border-top-left-radius:11mm}
.tpl-royal .bd-corner.tl b{top:7mm;left:7mm}
.tpl-royal .bd-corner.tr{top:5px;left:calc(100% - 20mm - 5px);border-top-width:3px;border-right-width:3px;border-top-right-radius:16mm}
.tpl-royal .bd-corner.tr::after{top:4px;left:calc(100% - 13mm - 4px);border-top-width:1px;border-right-width:1px;border-top-right-radius:11mm}
.tpl-royal .bd-corner.tr b{top:7mm;left:calc(100% - 7mm - 7px)}
.tpl-royal .bd-corner.bl{top:calc(100% - 20mm - 5px);left:5px;border-bottom-width:3px;border-left-width:3px;border-bottom-left-radius:16mm}
.tpl-royal .bd-corner.bl::after{top:calc(100% - 13mm - 4px);left:4px;border-bottom-width:1px;border-left-width:1px;border-bottom-left-radius:11mm}
.tpl-royal .bd-corner.bl b{top:calc(100% - 7mm - 7px);left:7mm}
.tpl-royal .bd-corner.br{top:calc(100% - 20mm - 5px);left:calc(100% - 20mm - 5px);border-bottom-width:3px;border-right-width:3px;border-bottom-right-radius:16mm}
.tpl-royal .bd-corner.br::after{top:calc(100% - 13mm - 4px);left:calc(100% - 13mm - 4px);border-bottom-width:1px;border-right-width:1px;border-bottom-right-radius:11mm}
.tpl-royal .bd-corner.br b{top:calc(100% - 7mm - 7px);left:calc(100% - 7mm - 7px)}
.tpl-royal .bd-head{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:.8em}
.tpl-royal .bd-sec-title{background:var(--c);color:#fff;display:inline-block;padding:.2em 1.1em;border-start-end-radius:20px;border-end-end-radius:20px}

/* 2 FLORAL */
.tpl-floral{padding:16mm 18mm;background:linear-gradient(180deg,var(--c-soft),#fff 30%,#fff 75%,var(--c-soft))}
.tpl-floral .bd-fl{position:absolute;width:26mm;height:26mm;color:var(--c-mid)}
.tpl-floral .bd-fl svg{display:block}
.tpl-floral .f1{top:2mm;left:2mm}.tpl-floral .f2{top:2mm;left:calc(100% - 28mm)}
.tpl-floral .f3{top:calc(100% - 28mm);left:2mm}.tpl-floral .f4{top:calc(100% - 28mm);left:calc(100% - 28mm)}
.tpl-floral .bd-head{display:flex;flex-direction:column;align-items:center;gap:8px}
.tpl-floral .bd-photo{border:4px solid #fff;box-shadow:0 0 0 2px var(--c-mid)}
.tpl-floral .bd-sec{background:rgba(255,255,255,.85);border:1px solid var(--c-mid);border-radius:14px;padding:.7em 1.1em .8em}
.tpl-floral .bd-sec-title{text-align:center}
.tpl-floral .bd-sec-title span{border-bottom:2px solid var(--c);padding:0 .3em .1em}

/* 3 SIMPLE CLASSIC */
.tpl-classic{padding:15mm 17mm}
.tpl-classic .bd-title{margin-bottom:.8em;text-decoration:underline;text-underline-offset:5px}
.tpl-classic .bd-head{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:2px solid var(--c);padding-bottom:.8em}
.tpl-classic .bd-name{text-align:start}
.tpl-classic .bd-sec-title{border-bottom:1px solid var(--c-mid);padding-bottom:.2em}
.tpl-classic .bd-kv tr:nth-child(even){background:#faf8fb}

/* 4 ELEGANT GOLD */
.tpl-elegant{padding:16mm 20mm;--c:#a16207;background:#fffdf8}
.tpl-elegant .bd-line{position:absolute;inset:7mm;border:1px solid var(--c-mid);pointer-events:none}
.tpl-elegant .bd-line::after{content:"";position:absolute;inset:3px;border:1px solid var(--c-mid)}
.tpl-elegant .bd-head{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:.6em}
.tpl-elegant .bd-photo{border:1px solid var(--c);padding:3px;background:#fff}
.tpl-elegant .bd-sec-title{text-align:center;display:flex;align-items:center;gap:12px;justify-content:center;font-weight:600;letter-spacing:.05em}
.tpl-elegant .bd-sec-title::before,.tpl-elegant .bd-sec-title::after{content:"❦";font-size:.8em;opacity:.7}

/* 5 MODERN SIDEBAR */
.tpl-modern{display:grid;grid-template-columns:68mm 1fr;--bd-font:'Poppins',var(--scripts),Arial,sans-serif;font-size:calc(10.2pt * var(--fs) * var(--fit,1))}
.tpl-modern .bd-side{background:var(--c);color:#fff;padding:18mm 8mm;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.tpl-modern .bd-side .bd-name{color:#fff;font-size:1.9em}
.tpl-modern .bd-side .bd-title{color:#fff;opacity:.85;letter-spacing:.18em;font-size:.85em}
.tpl-modern .bd-photo{border:4px solid rgba(255,255,255,.6)}
.tpl-modern .bd-in{padding-block:16mm 14mm;padding-inline:11mm 13mm}
.tpl-modern .bd-inv{text-align:start}
.tpl-modern .bd-sec:first-of-type{margin-top:0}
.tpl-modern .bd-sec-title{display:flex;align-items:center;gap:8px}
.tpl-modern .bd-sec-title::after{content:"";flex:1;height:2px;background:var(--c-soft)}
.tpl-modern .bd-kv th{width:42%}

/* 6 MANDALA */
.tpl-mandala{padding:10mm;background:var(--c-soft)}
.tpl-mandala .bd-mandala{position:absolute;width:150mm;height:150mm;left:30mm;top:85mm;color:var(--c);opacity:.09}
.tpl-mandala .bd-mandala svg{display:block}
.tpl-mandala .bd-frame{position:relative;background:rgba(255,255,255,.82);border:2px solid var(--c);border-radius:6px;min-height:calc(var(--ph) - 20mm);padding:13mm 15mm}
.tpl-mandala .bd-head{display:flex;flex-direction:column;align-items:center;gap:8px}
.tpl-mandala .bd-photo{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c)}
.tpl-mandala .bd-sec-title{text-align:center}
.tpl-mandala .bd-sec-title span{background:var(--c-soft);border:1px solid var(--c-mid);border-radius:20px;padding:.15em 1.2em}

@media print{@page{size:A4;margin:0}}
.is-rtl .bd-kv td,.is-rtl .bd-name,.is-rtl .bd-inv{unicode-bidi:plaintext}
