/* =====================================================================
   Marriage Biodata Maker: extra templates, top artwork, decorative
   borders and template-picker thumbnails. Loaded after documents.css.
   All artwork is original inline SVG / data-URI SVG (no external files).
   ===================================================================== */

/* Print colours and borders exactly as shown in the preview. */
.paper.biodata { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ---------- Template picker: 8 options, safe down to 320 px ---------- */
#bio-form .template-picker label { min-width: 0; }
#bio-form .template-picker span { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
@media (max-width: 380px) {
  #bio-form .template-picker { gap: 8px; }
  #bio-form .template-picker span { padding: 7px; font-size: .8rem; gap: 6px; }
}

.template-picker i.tp-b-royal { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='rgb(253,246,227)'/><rect x='3' y='3' width='134' height='94' fill='none' stroke='rgb(159,18,57)' stroke-width='2'/><rect x='8' y='8' width='124' height='84' fill='none' stroke='rgb(183,121,31)' stroke-width='3' stroke-dasharray='3 2'/><rect x='12.5' y='12.5' width='115' height='75' fill='none' stroke='rgb(159,18,57)' stroke-width='.8'/><rect x='3' y='3' width='6' height='6' fill='rgb(159,18,57)'/><rect x='131' y='3' width='6' height='6' fill='rgb(159,18,57)'/><rect x='3' y='91' width='6' height='6' fill='rgb(159,18,57)'/><rect x='131' y='91' width='6' height='6' fill='rgb(159,18,57)'/><circle cx='70' cy='22' r='6' fill='rgb(246,227,180)' stroke='rgb(183,121,31)' stroke-width='1.2'/><rect x='50' y='32' width='40' height='4' rx='1' fill='rgb(159,18,57)'/><rect x='58' y='42' width='24' height='5' rx='1' fill='rgb(159,18,57)'/><g fill='rgb(214,196,160)'><rect x='22' y='53' width='42' height='3'/><rect x='76' y='53' width='42' height='3'/><rect x='22' y='61' width='42' height='3'/><rect x='76' y='61' width='42' height='3'/><rect x='22' y='69' width='96' height='3'/></g></svg>") center / 100% 100% no-repeat !important; }

.template-picker i.tp-b-classic { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='rgb(255,253,246)'/><rect x='4' y='4' width='132' height='92' fill='none' stroke='rgb(183,121,31)' stroke-width='1.6'/><rect x='7.5' y='7.5' width='125' height='85' fill='none' stroke='rgb(183,121,31)' stroke-width='.7'/><g fill='rgb(183,121,31)'><path d='M8 3L12 8L8 13L4 8Z'/><path d='M132 3L136 8L132 13L128 8Z'/><path d='M8 87L12 92L8 97L4 92Z'/><path d='M132 87L136 92L132 97L128 92Z'/></g><circle cx='70' cy='20' r='6' fill='rgb(246,227,180)' stroke='rgb(183,121,31)' stroke-width='1.2'/><rect x='48' y='30' width='44' height='4' rx='1' fill='rgb(159,18,57)'/><path d='M56 39H84' stroke='rgb(183,121,31)' stroke-width='.8'/><path d='M20 48L22 46L24 48L22 50Z' fill='rgb(183,121,31)'/><rect x='27' y='46.5' width='26' height='3' fill='rgb(159,18,57)'/><path d='M56 48H120' stroke='rgb(183,121,31)' stroke-width='.6'/><g fill='rgb(209,213,219)'><rect x='20' y='56' width='44' height='3'/><rect x='76' y='56' width='44' height='3'/><rect x='20' y='64' width='44' height='3'/><rect x='76' y='64' width='44' height='3'/><rect x='20' y='72' width='100' height='3'/></g></svg>") center / 100% 100% no-repeat !important; }

.template-picker i.tp-b-premium { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='rgb(255,251,242)'/><rect x='2' y='2' width='136' height='96' fill='none' stroke='rgb(183,121,31)' stroke-width='1'/><rect x='5.5' y='5.5' width='129' height='89' fill='none' stroke='rgb(159,18,57)' stroke-width='3'/><rect x='10' y='10' width='120' height='80' fill='none' stroke='rgb(183,121,31)' stroke-width='.8'/><g fill='rgb(255,251,242)' stroke='rgb(183,121,31)' stroke-width='1.4'><circle cx='7' cy='7' r='5'/><circle cx='133' cy='7' r='5'/><circle cx='7' cy='93' r='5'/><circle cx='133' cy='93' r='5'/></g><g fill='rgb(183,121,31)'><circle cx='7' cy='7' r='2'/><circle cx='133' cy='7' r='2'/><circle cx='7' cy='93' r='2'/><circle cx='133' cy='93' r='2'/></g><circle cx='70' cy='22' r='6' fill='rgb(246,227,180)' stroke='rgb(183,121,31)' stroke-width='1.2'/><rect x='50' y='32' width='40' height='4' rx='1' fill='rgb(159,18,57)'/><rect x='20' y='42' width='100' height='6' fill='rgb(250,236,238)' stroke='rgb(183,121,31)' stroke-width='.6'/><rect x='56' y='43.8' width='28' height='2.4' fill='rgb(159,18,57)'/><g fill='rgb(214,196,160)'><rect x='22' y='54' width='42' height='3'/><rect x='76' y='54' width='42' height='3'/><rect x='22' y='62' width='42' height='3'/><rect x='76' y='62' width='42' height='3'/><rect x='22' y='70' width='96' height='3'/></g></svg>") center / 100% 100% no-repeat !important; }

.template-picker i.tp-b-floral { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='rgb(255,247,249)'/><rect x='4' y='4' width='132' height='92' rx='5' fill='rgb(255,255,255)' stroke='rgb(183,121,31)' stroke-width='1'/><g fill='rgb(242,182,198)'><circle cx='10' cy='10' r='4'/><circle cx='130' cy='10' r='4'/><circle cx='10' cy='90' r='4'/><circle cx='130' cy='90' r='4'/></g><g fill='rgb(183,121,31)'><circle cx='10' cy='10' r='1.6'/><circle cx='130' cy='10' r='1.6'/><circle cx='10' cy='90' r='1.6'/><circle cx='130' cy='90' r='1.6'/></g><g fill='rgb(122,150,110)'><ellipse cx='22' cy='8' rx='4' ry='1.5'/><ellipse cx='118' cy='8' rx='4' ry='1.5'/><ellipse cx='22' cy='92' rx='4' ry='1.5'/><ellipse cx='118' cy='92' rx='4' ry='1.5'/></g><rect x='46' y='14' width='48' height='5' rx='2' fill='rgb(159,18,57)'/><path d='M52 24H88' stroke='rgb(183,121,31)' stroke-width='.8'/><path d='M18 50V38A9 9 0 0 1 36 38V50Z' fill='rgb(251,207,232)' stroke='rgb(183,121,31)' stroke-width='1'/><rect x='42' y='36' width='40' height='5' rx='1' fill='rgb(55,65,81)'/><rect x='42' y='44' width='28' height='3' fill='rgb(209,213,219)'/><g fill='rgb(249,215,227)'><rect x='18' y='58' width='46' height='3'/><rect x='76' y='58' width='46' height='3'/><rect x='18' y='66' width='46' height='3'/><rect x='76' y='66' width='46' height='3'/><rect x='18' y='74' width='104' height='3'/></g></svg>") center / 100% 100% no-repeat !important; }

.template-picker i.tp-b-minimal { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'><rect width='140' height='100' fill='rgb(255,255,255)'/><rect x='0' y='0' width='5' height='100' fill='rgb(159,18,57)'/><rect x='16' y='12' width='34' height='2.5' fill='rgb(156,163,175)'/><rect x='16' y='20' width='58' height='7' rx='1' fill='rgb(17,24,39)'/><rect x='16' y='31' width='38' height='3' fill='rgb(156,163,175)'/><rect x='104' y='10' width='22' height='26' rx='2' fill='rgb(229,231,235)'/><rect x='16' y='45' width='22' height='2.5' fill='rgb(159,18,57)'/><path d='M41 46.2H126' stroke='rgb(229,231,235)' stroke-width='1'/><g fill='rgb(209,213,219)'><rect x='16' y='53' width='46' height='3'/><rect x='76' y='53' width='46' height='3'/><rect x='16' y='61' width='46' height='3'/><rect x='76' y='61' width='46' height='3'/></g><rect x='16' y='73' width='22' height='2.5' fill='rgb(159,18,57)'/><path d='M41 74.2H126' stroke='rgb(229,231,235)' stroke-width='1'/><g fill='rgb(209,213,219)'><rect x='16' y='81' width='46' height='3'/><rect x='76' y='81' width='46' height='3'/></g></svg>") center / 100% 100% no-repeat !important; }

/* ---------- Top artwork (Ganesh Ji / Om), coloured from the accent ---------- */
.biodata .b-art {
  --art-line: var(--accent);
  --art-gold: var(--gold);
  --art-fill: #fff6e6;
  --art-crown: #f6e3b4;
  display: block; width: 15mm; height: 15mm; margin: 0 auto .8mm;
}
.biodata .b-art.b-art-om { width: 12mm; height: 12mm; }
.biodata .b-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.b-art .a-s { fill: var(--art-fill); stroke: var(--art-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b-art .a-g { fill: none; stroke: var(--art-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b-art .a-gf { fill: var(--art-crown); stroke: var(--art-gold); stroke-width: 1.6; stroke-linejoin: round; }
.b-art .a-d { fill: var(--art-line); }
.b-art .a-t { fill: #fffdf8; stroke: var(--art-line); stroke-width: 1.4; stroke-linejoin: round; }
.b-art .a-h { fill: none; stroke: var(--art-gold); stroke-width: .8; opacity: .55; }
.b-art .a-om { fill: none; stroke: var(--art-line); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.b-art .a-dot { fill: var(--art-gold); }
/* Existing Modern template: artwork sits on the coloured band */
.biodata.tpl-modern .b-band .b-art { --art-line: #fff; --art-gold: #fde7b0; --art-fill: transparent; --art-crown: transparent; margin: 0 0 1.5mm; }
.biodata.tpl-modern .b-band .b-art .a-t { fill: transparent; }
.biodata.tpl-minimal .b-art { margin-left: 0; }

/* ---------- Shared frame for the new templates ---------- */
.biodata.bx { --pad: 9mm; }
.biodata.bx .b-frame { padding: 10mm 14mm 9mm; }
.biodata.bx .b-frame > :not(.b-deco) { position: relative; z-index: 1; }
.biodata .b-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.biodata .b-deco::before, .biodata .b-deco::after { content: ""; position: absolute; box-sizing: border-box; }
.biodata .bd-c { position: absolute; display: block; width: 6mm; height: 6mm; background-repeat: no-repeat; background-size: 100% 100%; }
.biodata .bd-tl { top: 0; left: 0; }
.biodata .bd-tr { top: 0; right: 0; transform: scaleX(-1); }
.biodata .bd-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.biodata .bd-br { bottom: 0; right: 0; transform: scale(-1, -1); }
.biodata.bx .b-photo { width: 34mm; height: 42mm; }
.biodata.bx .b-top { margin-top: 3.5mm; }
/* Slightly tighter rhythm and wider labels (fewer wrapped labels) so the
   decorated templates still fit typical details on one A4 sheet. */
.biodata.bx { line-height: 1.36; }
.biodata.bx section { margin-top: 3mm; }
.biodata.bx .b-row { padding: .3mm 0; }
.biodata.bx dt { flex-basis: 42%; }
.biodata.bx .b-row.wide dt { flex-basis: calc(21% - 1.68mm); }

/* ---------- Traditional Royal: Indian geometric border, maroon & gold ---------- */
.biodata.tpl-royal { background: #fdf6e3; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", "Nirmala UI", serif; }
.biodata.tpl-royal .b-frame { padding: 10mm 14mm 9mm; }
.biodata.tpl-royal .b-deco { border: .7mm solid var(--accent); }
.biodata.tpl-royal .b-deco::before {
  inset: 1.5mm; border: 4mm solid transparent;
  border-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path fill='rgb(183,121,31)' d='M5 1L9 5L5 9L1 5ZM15 1L19 5L15 9L11 5ZM25 1L29 5L25 9L21 5ZM5 11L9 15L5 19L1 15ZM25 11L29 15L25 19L21 15ZM5 21L9 25L5 29L1 25ZM15 21L19 25L15 29L11 25ZM25 21L29 25L25 29L21 25Z'/><path fill='rgb(253,246,227)' d='M5 3.4L6.6 5L5 6.6L3.4 5ZM15 3.4L16.6 5L15 6.6L13.4 5ZM25 3.4L26.6 5L25 6.6L23.4 5ZM5 13.4L6.6 15L5 16.6L3.4 15ZM25 13.4L26.6 15L25 16.6L23.4 15ZM5 23.4L6.6 25L5 26.6L3.4 25ZM15 23.4L16.6 25L15 26.6L13.4 25ZM25 23.4L26.6 25L25 26.6L23.4 25Z'/><path fill='rgb(183,121,31)' d='M10 4.2A.8 .8 0 1 0 10 5.8A.8 .8 0 1 0 10 4.2ZM20 4.2A.8 .8 0 1 0 20 5.8A.8 .8 0 1 0 20 4.2ZM10 24.2A.8 .8 0 1 0 10 25.8A.8 .8 0 1 0 10 24.2ZM20 24.2A.8 .8 0 1 0 20 25.8A.8 .8 0 1 0 20 24.2ZM4.2 10A.8 .8 0 1 0 5.8 10A.8 .8 0 1 0 4.2 10ZM4.2 20A.8 .8 0 1 0 5.8 20A.8 .8 0 1 0 4.2 20ZM24.2 10A.8 .8 0 1 0 25.8 10A.8 .8 0 1 0 24.2 10ZM24.2 20A.8 .8 0 1 0 25.8 20A.8 .8 0 1 0 24.2 20Z'/></svg>") 10 round;
}
.biodata.tpl-royal .b-deco::after { inset: 6.3mm; border: .35mm solid var(--accent); }
.biodata.tpl-royal .bd-c { width: 7mm; height: 7mm; top: auto; left: auto; right: auto; bottom: auto; transform: none; background: var(--accent); outline: .35mm solid var(--gold); outline-offset: -1.2mm; }
.biodata.tpl-royal .bd-tl { top: .7mm; left: .7mm; }
.biodata.tpl-royal .bd-tr { top: .7mm; right: .7mm; }
.biodata.tpl-royal .bd-bl { bottom: .7mm; left: .7mm; }
.biodata.tpl-royal .bd-br { bottom: .7mm; right: .7mm; }
.biodata.tpl-royal .b-invocation { font-size: 1.1em; }
.biodata.tpl-royal .b-title { font-family: Georgia, "Noto Serif Devanagari", serif; font-size: 1.6em; }
.biodata.tpl-royal .b-title::before, .biodata.tpl-royal .b-title::after { content: ""; display: inline-block; width: 2mm; height: 2mm; background: var(--gold); transform: rotate(45deg); margin: 0 4mm; vertical-align: middle; }
.biodata.tpl-royal .b-name { color: var(--accent); font-family: Georgia, "Noto Serif Devanagari", serif; }
.biodata.tpl-royal .b-photo { border: 1.2mm double var(--gold); border-radius: 1mm; }
.biodata.tpl-royal .b-h { display: table; margin: 0 auto 1.6mm; padding: .3mm 6mm; background: var(--accent); color: #fff; border-radius: .8mm; outline: .3mm solid var(--gold); outline-offset: .6mm; text-transform: uppercase; letter-spacing: .12em; font-size: .92em; text-align: center; }
.biodata.tpl-royal dt { color: #5b3a1a; }
.biodata.tpl-royal dt::after { color: var(--gold); }

/* ---------- Classic Indian: subtle golden double frame, corner diamonds ---------- */
.biodata.tpl-classic { background: #fffdf6; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", "Nirmala UI", serif; }
.biodata.tpl-classic .b-deco { border: .8mm solid var(--gold); }
.biodata.tpl-classic .b-deco::before { inset: 1.8mm; border: .3mm solid var(--gold); }
.biodata.tpl-classic .bd-c { width: 6.4mm; height: 6.4mm; top: auto; left: auto; right: auto; bottom: auto; transform: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><rect width='12' height='12' fill='rgb(255,253,246)'/><rect x='.8' y='.8' width='10.4' height='10.4' fill='none' stroke='rgb(183,121,31)' stroke-width='.9'/><path d='M6 2.4L9.6 6L6 9.6L2.4 6Z' fill='rgb(183,121,31)'/><path d='M6 4.6L7.4 6L6 7.4L4.6 6Z' fill='rgb(255,253,246)'/></svg>"); }
.biodata.tpl-classic .bd-tl { top: -.6mm; left: -.6mm; }
.biodata.tpl-classic .bd-tr { top: -.6mm; right: -.6mm; }
.biodata.tpl-classic .bd-bl { bottom: -.6mm; left: -.6mm; }
.biodata.tpl-classic .bd-br { bottom: -.6mm; right: -.6mm; }
.biodata.tpl-classic .b-title { font-family: Georgia, "Noto Serif Devanagari", serif; font-size: 1.5em; }
.biodata.tpl-classic .b-title::after { content: ""; display: block; width: 46mm; height: 2.6mm; margin: 1.4mm auto 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 6'><path d='M0 3H36M56 3H92' stroke='rgb(183,121,31)' stroke-width='.6'/><path d='M46 0L49.5 3L46 6L42.5 3Z' fill='rgb(183,121,31)'/><circle cx='39' cy='3' r='1' fill='rgb(183,121,31)'/><circle cx='53' cy='3' r='1' fill='rgb(183,121,31)'/></svg>") center / 100% 100% no-repeat; }
.biodata.tpl-classic .b-name { font-family: Georgia, "Noto Serif Devanagari", serif; }
.biodata.tpl-classic .b-photo { border: .5mm solid var(--gold); outline: .3mm solid var(--gold); outline-offset: .8mm; border-radius: 0; }
.biodata.tpl-classic .b-h { display: flex; align-items: center; gap: 2.5mm; text-transform: uppercase; letter-spacing: .1em; font-size: .95em; }
.biodata.tpl-classic .b-h::before { content: ""; flex: none; width: 1.8mm; height: 1.8mm; background: var(--gold); transform: rotate(45deg); }
.biodata.tpl-classic .b-h::after { content: ""; flex: 1; height: .3mm; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Premium Wedding: layered frame with corner ornaments ---------- */
.biodata.tpl-premium { background: #fffbf2; font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", "Nirmala UI", serif; }
.biodata.tpl-premium .b-frame { padding: 10mm 15mm 9mm; }
.biodata.tpl-premium .b-deco { border: .5mm solid var(--gold); }
.biodata.tpl-premium .b-deco::before { inset: 1.4mm; border: 1.3mm solid var(--accent); }
.biodata.tpl-premium .b-deco::after { inset: 3.6mm; border: .35mm solid var(--gold); }
.biodata.tpl-premium .bd-c { width: 21mm; height: 21mm; margin: -.5mm;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'><circle cx='8' cy='8' r='7.6' fill='rgb(255,251,242)'/><g fill='none' stroke='rgb(183,121,31)' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.4' stroke-width='.9'/><path stroke-width='.8' d='M16.5 11.5C20 9.5 23.5 10 25 12.6C26.4 15 29.4 15.2 31 13.2C32.6 11.4 35.6 11.2 38.5 12.4'/><path stroke-width='.8' d='M11.5 16.5C9.5 20 10 23.5 12.6 25C15 26.4 15.2 29.4 13.2 31C11.4 32.6 11.2 35.6 12.4 38.5'/><path stroke-width='.7' d='M25 12.6C24.4 15.6 22 16.6 20.2 15.4'/><path stroke-width='.7' d='M12.6 25C15.6 24.4 16.6 22 15.4 20.2'/></g><g fill='rgb(183,121,31)'><circle cx='8' cy='8' r='2.2'/><path d='M8 2.6L9.1 5.4L8 6.2L6.9 5.4Z'/><path d='M13.4 8L10.6 9.1L9.8 8L10.6 6.9Z'/><path d='M8 13.4L6.9 10.6L8 9.8L9.1 10.6Z'/><path d='M2.6 8L5.4 6.9L6.2 8L5.4 9.1Z'/><circle cx='39.6' cy='12.6' r='1'/><circle cx='12.6' cy='39.6' r='1'/><ellipse cx='29' cy='10.4' rx='2' ry='.9' transform='rotate(-20 29 10.4)'/><ellipse cx='10.4' cy='29' rx='.9' ry='2' transform='rotate(20 10.4 29)'/></g></svg>"); }
.biodata.tpl-premium .b-invocation { font-size: 1.05em; }
.biodata.tpl-premium .b-title { font-family: Georgia, "Noto Serif Devanagari", serif; font-size: 1.55em; letter-spacing: .16em; }
.biodata.tpl-premium .b-title::after { content: ""; display: block; width: 30mm; height: .4mm; margin: 1.2mm auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.biodata.tpl-premium .b-name { font-family: Georgia, "Noto Serif Devanagari", serif; color: var(--accent); }
.biodata.tpl-premium .b-photo { border: .7mm solid var(--gold); outline: .3mm solid var(--gold); outline-offset: .9mm; border-radius: 1.5mm; }
.biodata.tpl-premium .b-h { display: flex; justify-content: center; align-items: center; gap: 3mm; text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: .92em; line-height: 1.3; padding: .2mm 0; margin-bottom: 1.4mm; background: color-mix(in srgb, var(--accent) 7%, #fffbf2); border-top: .3mm solid var(--gold); border-bottom: .3mm solid var(--gold); }
.biodata.tpl-premium .b-h::before, .biodata.tpl-premium .b-h::after { content: ""; display: inline-block; width: 1.4mm; height: 1.4mm; background: var(--gold); transform: rotate(45deg); flex: none; }
.biodata.tpl-premium dt::after { color: var(--gold); }

/* ---------- Elegant Floral: soft frame with floral corner sprays ---------- */
.biodata.tpl-floral { background: color-mix(in srgb, var(--accent) 3%, #fff); }
.biodata.tpl-floral .b-deco { border: .45mm solid var(--gold); border-radius: 3mm; }
.biodata.tpl-floral .b-deco::before { inset: 1.6mm; border: .25mm solid color-mix(in srgb, var(--accent) 35%, #fff); border-radius: 2mm; }
.biodata.tpl-floral .bd-c { width: 30mm; height: 30mm;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><g id='arm'><path d='M15 10C22 7 28 12 35 9C41 6.5 46 9 52 7.5C55 6.8 57 7 58.5 8' fill='none' stroke='rgb(122,150,110)' stroke-width='.9' stroke-linecap='round'/><g fill='rgb(140,168,124)'><ellipse cx='24' cy='8.6' rx='3' ry='1.2' transform='rotate(-25 24 8.6)'/><ellipse cx='31' cy='11.4' rx='2.8' ry='1.1' transform='rotate(20 31 11.4)'/><ellipse cx='45' cy='8.2' rx='2.6' ry='1' transform='rotate(-15 45 8.2)'/></g><g fill='rgb(242,182,198)' stroke='rgb(214,120,150)' stroke-width='.3'><circle cx='38' cy='6.4' r='1.3'/><circle cx='39.71' cy='7.64' r='1.3'/><circle cx='39.06' cy='9.66' r='1.3'/><circle cx='36.94' cy='9.66' r='1.3'/><circle cx='36.29' cy='7.64' r='1.3'/><ellipse cx='58.5' cy='8' rx='1.6' ry='1'/></g><circle cx='38' cy='8.2' r='.9' fill='rgb(183,121,31)'/></g><g transform='matrix(0 1 1 0 0 0)'><path d='M15 10C22 7 28 12 35 9C41 6.5 46 9 52 7.5C55 6.8 57 7 58.5 8' fill='none' stroke='rgb(122,150,110)' stroke-width='.9' stroke-linecap='round'/><g fill='rgb(140,168,124)'><ellipse cx='24' cy='8.6' rx='3' ry='1.2' transform='rotate(-25 24 8.6)'/><ellipse cx='31' cy='11.4' rx='2.8' ry='1.1' transform='rotate(20 31 11.4)'/><ellipse cx='45' cy='8.2' rx='2.6' ry='1' transform='rotate(-15 45 8.2)'/></g><g fill='rgb(242,182,198)' stroke='rgb(214,120,150)' stroke-width='.3'><circle cx='38' cy='6.4' r='1.3'/><circle cx='39.71' cy='7.64' r='1.3'/><circle cx='39.06' cy='9.66' r='1.3'/><circle cx='36.94' cy='9.66' r='1.3'/><circle cx='36.29' cy='7.64' r='1.3'/><ellipse cx='58.5' cy='8' rx='1.6' ry='1'/></g><circle cx='38' cy='8.2' r='.9' fill='rgb(183,121,31)'/></g><g fill='rgb(140,168,124)'><ellipse cx='17' cy='15' rx='3' ry='1.3' transform='rotate(45 17 15)'/></g><g fill='rgb(242,182,198)' stroke='rgb(214,120,150)' stroke-width='.4'><circle cx='11' cy='7.4' r='2.6'/><circle cx='14.42' cy='9.89' r='2.6'/><circle cx='13.12' cy='13.91' r='2.6'/><circle cx='8.88' cy='13.91' r='2.6'/><circle cx='7.58' cy='9.89' r='2.6'/></g><circle cx='11' cy='11' r='1.7' fill='rgb(183,121,31)'/></svg>"); }
.biodata.tpl-floral .b-frame { padding: 10mm 14mm 9mm; }
.biodata.tpl-floral .b-title { font-family: Georgia, "Noto Serif Devanagari", serif; text-transform: none; letter-spacing: .04em; font-style: italic; font-size: 1.75em; }
.biodata.tpl-floral .b-title::after { content: ""; display: block; width: 52mm; height: 3.4mm; margin: 1mm auto 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'><path d='M4 4H50M70 4H116' stroke='rgb(183,121,31)' stroke-width='.6' stroke-linecap='round'/><g fill='rgb(140,168,124)'><ellipse cx='53.5' cy='4' rx='2.6' ry='1'/><ellipse cx='66.5' cy='4' rx='2.6' ry='1'/></g><g fill='rgb(242,182,198)' stroke='rgb(214,120,150)' stroke-width='.3'><circle cx='60' cy='2.2' r='1.5'/><circle cx='61.71' cy='3.44' r='1.5'/><circle cx='61.06' cy='5.46' r='1.5'/><circle cx='58.94' cy='5.46' r='1.5'/><circle cx='58.29' cy='3.44' r='1.5'/></g><circle cx='60' cy='4' r='.9' fill='rgb(183,121,31)'/></svg>") center / 100% 100% no-repeat; }
.biodata.tpl-floral .b-name { font-family: Georgia, "Noto Serif Devanagari", serif; }
.biodata.tpl-floral .b-photo { border-radius: 17mm 17mm 2mm 2mm; border: .6mm solid var(--gold); }
.biodata.tpl-floral .b-h { font-family: Georgia, "Noto Serif Devanagari", serif; font-style: italic; font-size: 1.12em; display: flex; align-items: center; gap: 2mm; border-bottom: .3mm solid color-mix(in srgb, var(--accent) 22%, #fff); padding-bottom: .8mm; }
.biodata.tpl-floral .b-h::before { content: ""; flex: none; width: 3.4mm; height: 3.4mm; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><circle cx='5' cy='2.7' r='1.9'/><circle cx='7.19' cy='4.29' r='1.9'/><circle cx='6.35' cy='6.86' r='1.9'/><circle cx='3.65' cy='6.86' r='1.9'/><circle cx='2.81' cy='4.29' r='1.9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><circle cx='5' cy='2.7' r='1.9'/><circle cx='7.19' cy='4.29' r='1.9'/><circle cx='6.35' cy='6.86' r='1.9'/><circle cx='3.65' cy='6.86' r='1.9'/><circle cx='2.81' cy='4.29' r='1.9'/></svg>") center / contain no-repeat; }
.biodata.tpl-floral dt::after { color: color-mix(in srgb, var(--accent) 45%, #fff); }

/* ---------- Modern Minimal: white page, accent edge bar, quiet type ---------- */
.biodata.tpl-minimal { background: #fff; }
.biodata.tpl-minimal .b-frame { padding: 8mm 10mm 8mm 13mm; }
.biodata.tpl-minimal .b-deco::before { top: calc(var(--pad) * -1); bottom: calc(var(--pad) * -1); left: calc(var(--pad) * -1); width: 2.2mm; background: var(--accent); }
.biodata.tpl-minimal .bd-c { display: none; }
.biodata.tpl-minimal .b-invocation { text-align: left; font-size: .95em; }
.biodata.tpl-minimal .b-title { text-align: left; font-size: .85em; font-weight: 600; letter-spacing: .3em; color: #6b7280; }
.biodata.tpl-minimal .b-name { font-size: 2.1em; letter-spacing: -.01em; }
.biodata.tpl-minimal .b-sub { color: var(--accent); font-weight: 600; }
.biodata.tpl-minimal .b-photo { border: 0; border-radius: 1.5mm; }
.biodata.tpl-minimal .b-h { display: flex; align-items: center; gap: 3mm; text-transform: uppercase; letter-spacing: .18em; font-size: .8em; margin-bottom: 1.8mm; }
.biodata.tpl-minimal .b-h::after { content: ""; flex: 1; height: .25mm; background: #e5e7eb; }
.biodata.tpl-minimal dt { font-weight: 500; color: #6b7280; }
.biodata.tpl-minimal dt::after { content: ""; }

/* ---------- Phone instructions (screen only) ---------- */
.bd-phone-note { display: none; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .85rem; color: var(--text-2); }
@media (max-width: 900px) {
  .bd-phone-note { display: block; }
}
