/* katb-ketab (docs/milestones/27-katb-ketab.md): a tall mihrab holding the Basmala, the verse,
   the invitation line and the two names side by side, each with the father's and family name.
   The <html> carries .tpl-katb-ketab. */
.tpl-katb-ketab .hero__frame { width: min(80vw, 330px, calc(76svh * 300 / 600)); aspect-ratio: 300 / 600; }
.tpl-katb-ketab .hero__text { padding: 44% 12% 9%; gap: .4rem; }
/* The Quran text: Amiri Quran, right to left in both languages. */
.tpl-katb-ketab :is(.hero__basmala, .hero__verse p) { margin: 0; direction: rtl; unicode-bidi: isolate; font-family: "Amiri Quran", "Amiri", serif; font-weight: 400; }
.tpl-katb-ketab .hero__basmala { font-size: 1.25rem; line-height: 1.7; color: var(--accent-hi); }
.tpl-katb-ketab .hero__verse { display: grid; gap: .1rem; justify-items: center; }
.tpl-katb-ketab .hero__verse p { font-size: .98rem; line-height: 2.05; color: var(--accent); text-wrap: balance; }
.tpl-katb-ketab .hero__verse cite { font: normal .72rem/1.3 var(--font-label); letter-spacing: .06em; color: var(--muted); unicode-bidi: plaintext; }
:root[lang="ar"].tpl-katb-ketab .hero__verse cite { font-family: var(--font-ar-body); font-size: .82rem; letter-spacing: 0; }
.tpl-katb-ketab .hero__eyebrow { max-width: 24ch; margin-top: .3rem; font-size: .7rem; line-height: 1.7; letter-spacing: .14em; }
:root[lang="ar"].tpl-katb-ketab .hero__eyebrow { font-family: var(--font-ar-body); font-size: .92rem; line-height: 1.8; letter-spacing: 0; }
/* The two names side by side (the groom first in the reading direction), each with its line under it. */
.tpl-katb-ketab .hero__names { width: 100%; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: .4rem; }
.tpl-katb-ketab .hero__names > :nth-child(1) { grid-area: 1 / 1; }
.tpl-katb-ketab .hero__names > :nth-child(2) { grid-area: 2 / 1; }
.tpl-katb-ketab .hero__names > :nth-child(3) { grid-area: 1 / 2 / 3 / 3; }
.tpl-katb-ketab .hero__names > :nth-child(4) { grid-area: 1 / 3; }
.tpl-katb-ketab .hero__names > :nth-child(5) { grid-area: 2 / 3; }
.tpl-katb-ketab .hero__name { font-size: clamp(1.8rem, 8.6vw, 2.5rem); line-height: 1.15; }
:root[lang="ar"].tpl-katb-ketab .hero__name { font-size: clamp(2rem, 9.6vw, 2.7rem); font-weight: 700; line-height: 1.3; }
.tpl-katb-ketab .hero__joiner { font-size: 1.5rem; }
.tpl-katb-ketab .hero__family { font: 400 .74rem/1.35 var(--font-body); color: var(--muted); letter-spacing: .02em; }
:root[lang="ar"].tpl-katb-ketab .hero__family { font-family: var(--font-ar-body); font-size: .86rem; letter-spacing: 0; }
.tpl-katb-ketab .hero__rule { margin-top: .1rem; }
.tpl-katb-ketab .hero__blessing { margin: 0; font: italic 400 .9rem/1.4 var(--font-body); color: var(--muted); }
:root[lang="ar"].tpl-katb-ketab .hero__blessing { font-family: var(--font-ar-body); font-style: normal; font-size: .95rem; }
