/* ==========================================================================
   22 Ganesh Royal (premium) – ivory page in a kumkum-red and gold double
   frame, a line-art Ganesh at the top, round photo in a gold ring and
   centred section titles between gold rules.
   The Ganesh motif shows unless the blessing line names another deity or
   the religion is not Hindu/Jain (preview.js adds .bd--no-motif).
   ========================================================================== */
.bd--ganesh-royal {
  --bd-bg: radial-gradient(60% 35% at 50% 0%, rgba(214, 160, 60, .14), transparent 70%), #FFF9EE;
  --bd-ink: #3A1F14;
  --bd-soft: #7C5A43;
  --bd-accent: #B8862F;
  --bd-red: #A3171C;
  --bd-base: 1.8cqi;
}
.bd--ganesh-royal .bd__decor::before { content: ""; position: absolute; inset: 2.4cqi; border: 1.5cqi solid var(--bd-red); }
.bd--ganesh-royal .bd__decor::after { content: ""; position: absolute; inset: 4.6cqi; border: .55cqi double var(--bd-accent); }
.bd--ganesh-royal .bd__corner { display: block; width: 11cqi; height: 11cqi; }
.bd--ganesh-royal .bd__corner--tl { top: 5.6cqi; left: 5.6cqi; }
.bd--ganesh-royal .bd__corner--tr { top: 5.6cqi; right: 5.6cqi; }
.bd--ganesh-royal .bd__corner--bl { bottom: 5.6cqi; left: 5.6cqi; }
.bd--ganesh-royal .bd__corner--br { bottom: 5.6cqi; right: 5.6cqi; }
.bd--ganesh-royal .bd__frame { padding: 8cqi 10.5cqi 9cqi; }
.bd--ganesh-royal .bd__watermark { bottom: 6.2cqi; }

.bd--ganesh-royal .bd__motif {
  display: block; align-self: center; width: 4.6em; height: 4.6em; margin-bottom: .2em;
  background: linear-gradient(180deg, #C99A3C, #9C6E1F);
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cg fill="none" stroke="%23000" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M37 34C35 46 39 56 45 60"/%3E%3Cpath d="M63 34C65 46 61 56 55 60"/%3E%3Cpath d="M37 37C24 30 13 40 16 53C19 65 31 66 39 56"/%3E%3Cpath d="M63 37C76 30 87 40 84 53C81 65 69 66 61 56"/%3E%3Cpath d="M21 46C22 52 26 56 31 56" stroke-width="1.4"/%3E%3Cpath d="M79 46C78 52 74 56 69 56" stroke-width="1.4"/%3E%3Cpath d="M47 47C47 62 44 75 49 83C54 90 63 87 63 80C63 75 57 74 56 78"/%3E%3Cpath d="M53 47C53 60 52 70 55 74"/%3E%3Cpath d="M57 60L62 66" stroke-width="2"/%3E%3Cpath d="M40 92Q50 86 60 92" stroke-width="1.6"/%3E%3Cpath d="M33 95Q50 85 67 95" stroke-width="1.2"/%3E%3C/g%3E%3Cg fill="%23000"%3E%3Cpath d="M37 31C37 23 42 17 50 11C58 17 63 23 63 31Z"/%3E%3Cpath d="M35 33h30v2.4H35z"/%3E%3Ccircle cx="43" cy="43" r="1.7"/%3E%3Ccircle cx="57" cy="43" r="1.7"/%3E%3Cpath d="M50 35l1.6 3.4-1.6 3.4-1.6-3.4z"/%3E%3Ccircle cx="50" cy="8" r="2.2"/%3E%3Ccircle cx="31" cy="27" r="1.4"/%3E%3Ccircle cx="69" cy="27" r="1.4"/%3E%3C/g%3E%3C/svg%3E%0A') center / contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cg fill="none" stroke="%23000" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M37 34C35 46 39 56 45 60"/%3E%3Cpath d="M63 34C65 46 61 56 55 60"/%3E%3Cpath d="M37 37C24 30 13 40 16 53C19 65 31 66 39 56"/%3E%3Cpath d="M63 37C76 30 87 40 84 53C81 65 69 66 61 56"/%3E%3Cpath d="M21 46C22 52 26 56 31 56" stroke-width="1.4"/%3E%3Cpath d="M79 46C78 52 74 56 69 56" stroke-width="1.4"/%3E%3Cpath d="M47 47C47 62 44 75 49 83C54 90 63 87 63 80C63 75 57 74 56 78"/%3E%3Cpath d="M53 47C53 60 52 70 55 74"/%3E%3Cpath d="M57 60L62 66" stroke-width="2"/%3E%3Cpath d="M40 92Q50 86 60 92" stroke-width="1.6"/%3E%3Cpath d="M33 95Q50 85 67 95" stroke-width="1.2"/%3E%3C/g%3E%3Cg fill="%23000"%3E%3Cpath d="M37 31C37 23 42 17 50 11C58 17 63 23 63 31Z"/%3E%3Cpath d="M35 33h30v2.4H35z"/%3E%3Ccircle cx="43" cy="43" r="1.7"/%3E%3Ccircle cx="57" cy="43" r="1.7"/%3E%3Cpath d="M50 35l1.6 3.4-1.6 3.4-1.6-3.4z"/%3E%3Ccircle cx="50" cy="8" r="2.2"/%3E%3Ccircle cx="31" cy="27" r="1.4"/%3E%3Ccircle cx="69" cy="27" r="1.4"/%3E%3C/g%3E%3C/svg%3E%0A') center / contain no-repeat;
}
.bd--ganesh-royal.bd--no-motif .bd__motif { display: none; }
.bd--ganesh-royal .bd__title { color: var(--bd-red); margin-bottom: 1em; }

.bd--ganesh-royal .bd__head { gap: .8em; }
.bd--ganesh-royal .bd__photo {
  width: 9.4em; aspect-ratio: 1; border-radius: 50%;
  border: .32em solid var(--bd-accent);
  box-shadow: 0 0 0 .22em #FFF9EE, 0 0 0 .42em var(--bd-red);
  background: #F3E6CF; color: #DCC7A2;
}
.bd--ganesh-royal .bd__name { color: #7E1014; font-size: 2.5em; }
.bd--ganesh-royal .bd__divider { margin: 1em auto 1.1em; }

.bd--ganesh-royal .bd__body { gap: 1em; }
.bd--ganesh-royal .bd__sec-title {
  display: flex; align-items: center; gap: .8em; text-align: center; color: var(--bd-red); margin-bottom: .5em;
}
.bd--ganesh-royal .bd__sec-title::before,
.bd--ganesh-royal .bd__sec-title::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--bd-accent));
}
.bd--ganesh-royal .bd__sec-title::after { background: linear-gradient(90deg, var(--bd-accent), transparent); }
.bd--ganesh-royal .bd__row { grid-template-columns: 36% 1fr; }
.bd--ganesh-royal .bd__row dt { color: var(--bd-soft); }

/* Two columns of short rows so a complete biodata fits one A4 page; long rows span both */
.bd--ganesh-royal .bd__rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4em; }
.bd--ganesh-royal .bd__row { grid-template-columns: 46% 1fr; }
.bd--ganesh-royal .bd__row[data-row="college"],
.bd--ganesh-royal .bd__row[data-row="hobbies"],
.bd--ganesh-royal .bd__row[data-row="languages_known"],
.bd--ganesh-royal .bd__row[data-row="email"],
.bd--ganesh-royal .bd__row[data-row="partner_expectations"],
.bd--ganesh-royal .bd__row[data-row="address"] { grid-column: 1 / -1; grid-template-columns: calc(23% - .552em) 1fr; }
