/* Stage 17. Biography heading «التَّكْوِينُ الْأَكَادِيمِيُّ وَالْعِلْمِيُّ» only: close the gaps inside its words.
   word-spacing gives back what letter-spacing takes from each space, so the gaps between words stay unchanged. */
[dir=rtl] #part-1-h{letter-spacing:-.06em;word-spacing:.06em}

/* Biography heading «رَوَافِدُ تَكْوِينِهِ الْمَعْرِفِيِّ وَمَنْهَجُهُ فِي الْقِرَاءَةِ» only: its word spaces were narrower than the
   gaps inside its words, so «مَنْهَجُهُ فِي» ran together while «وَ» floated loose. Slightly wider word spaces, and the
   «وَ» of «وَمَنْهَجُهُ» (marked .join in i18n hHtml) pulled back onto its word. */
[dir=rtl] #part-7-h{word-spacing:.15em}
[dir=rtl] #part-7-h .join{margin-inline-end:-.14em}

/* Home paintings (the user's four, in paintings.js `home` order): a fixed hang instead of masonry. The three landscapes
   stack in one column beside the tall birch alley (4th), which spans all three rows on the outer side. Column ratio
   1 : 1.47 makes the birch as tall as the stack, so top and bottom edges line up. Revisit if the home set changes. */
.gal-home,.paint-feature .gal-home{display:grid;columns:auto;grid-template-columns:minmax(0,1fr) minmax(0,1.47fr);grid-template-rows:repeat(3,auto);gap:.9rem;align-items:center}
.gal-home .frame:nth-child(n){grid-column:1;margin:0;transform:none}
.gal-home .frame:nth-child(4){grid-column:2;grid-row:1/span 3}
.gal-home .frame .pin{width:100%}
.gal-home .frame .pin img{width:100%;max-height:none}
@media(min-width:900px){.paint-feature .gal-home{gap:1.6rem}}

/* Alternative Medicine: show all three pots in the IBS image, same frame size */
#e-ibs .hm-fig img{object-fit:contain;background:#eae4df}

/* Home about: single paragraph replaces heading, quote and two columns (user, 2026-10-14) */
.about.one{grid-template-columns:1fr}
.about.one p.drop{max-width:68ch}
/* Book cards: one cover shape for all books (covers range 0.69–0.77); slight trim via object-fit */
a.book .bk .cover-img{aspect-ratio:5/7;height:auto;object-fit:cover}
