/* R201: shared source cards; canonical text and mushaf geometry are independent. */
.qh-page .qh-source-heading{display:flex;flex-direction:row-reverse;align-items:center;gap:12px;min-width:0;width:100%;color:#244c45}
.qh-page .qh-book-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:40px;border:1px solid #cce2df;border-radius:10px;background:#f0f8f6;color:#086d6b}
.qh-page .qh-book-mark svg{display:block;width:20px;height:20px}
.qh-page .qh-source-titles{display:block;flex:1;min-width:0;text-align:right;overflow-wrap:anywhere}
.qh-page .qh-source-ar{display:block;font:22px/1.85 'IHA LPMQ',serif;unicode-bidi:isolate;color:#244c45}
.qh-page .qh-source-latin{display:block;margin-top:3px;font:italic 16px/1.55 Georgia,serif;color:#64766c;unicode-bidi:isolate}
.qh-page .qh-source-titles>.qh-source-latin:only-child{margin-top:0;font-style:normal;color:#254d3d}
.qh-page .qh-row-number{font:18px/1 'IHA LPMQ',serif}
.qh-page :is(.qh-hadith-record-body,.qh-reader-tafsir,.qh-card) .qh-prose>.qh-prose-paragraph{text-align:justify!important;text-align-last:right;direction:rtl;word-spacing:normal;hyphens:none}
.qh-page .qh-hadith-family{border:1px solid #dce5e0;border-radius:14px;background:#fff;box-shadow:none;margin-block:16px}
.qh-page .qh-hadith-family>header{display:flex;flex-direction:row-reverse;align-items:center;gap:20px;padding:18px 20px;background:#fff;border-bottom:1px solid #e5ebe6}
.qh-page .qh-hadith-family>header>h2{flex:1;min-width:0;margin:0}
.qh-page .qh-hadith-family>header>span{flex:0 0 auto;font:13px/1.7 system-ui;color:#637467}
.qh-page .qh-hadith-family>.qh-table-shell{border:0;border-radius:0;box-shadow:none}
.qh-page .qh-sharh-fold{background:#fafbf8;border-top-color:#e0e7e0}
.qh-page .qh-sharh-fold[open]>summary{background:#f2f6f1}
.qh-page .qh-sharh-book>h3{padding-inline:18px}
.qh-page .qh-sharh-book>h3 .qh-source-ar{font-size:20px}
.qh-page .qh-sharh-book>h3 .qh-source-latin{font-size:15px}
.qh-page .qh-sharh-book>h3 .qh-book-mark{flex-basis:32px;width:32px;height:36px}
.qh-page .qh-tafsir-book-title{display:block;margin-bottom:8px}
.qh-page .qh-tafsir-book-title .qh-source-ar{font-size:21px}
.qh-page .qh-tafsir-book-title .qh-source-latin{font-size:15px}
.qh-page .qh-tafsir-book-title~strong{font:13px/1.8 system-ui;color:#647568}
.qh-page .qh-tafsir-book-title~strong:empty{display:none}
.qh-page .qh-tafsir-book-title~strong bdi[lang=ar]{font:18px/1.8 'IHA LPMQ',serif}
.qh-page .qh-tafsir-book-title .qh-book-mark{flex-basis:32px;width:32px;height:36px}
.qh-page .qh-hadith-record>summary{min-height:48px}
.qh-page .qh-fold-action:after{display:none}
.qh-page .qh-source-expanded>td{padding:0!important}
.qh-page:not(.qh-hadith-page) .qh-hadith-record-body{padding:20px 24px!important}
.qh-page .qh-hadith-record:has(.qh-tafsir-book-title)>summary{gap:16px;flex-wrap:wrap}
.qh-page .qh-hadith-record:has(.qh-tafsir-book-title) .qh-record-copy{flex:1 1 220px}
.qh-page .qh-hadith-record:has(.qh-tafsir-book-title) .qh-fold-action{margin-inline-start:auto;min-height:44px}
.qh-page .qh-card>h2:has(.qh-source-heading){margin:14px 0 18px}
.qh-page .qh-card>h2:has(.qh-source-heading)>a{display:block}
.qh-page .qh-card:has(>.qh-card-top){border-color:#dce5e0;box-shadow:none;background:#fff}
.qh-page .qh-result-table{border-collapse:separate;border-spacing:0 12px;background:transparent;border:0;box-shadow:none}
.qh-page .qh-result-table .qh-hit-row>td{background:#fff;border-top:1px solid #dce5e0;border-bottom:1px solid #dce5e0}
.qh-page .qh-result-table .qh-hit-row>td:first-child{border-left:1px solid #dce5e0;border-radius:12px 0 0 12px;color:#6a796e}
.qh-page .qh-result-table .qh-hit-row>td:last-child{border-right:1px solid #dce5e0;border-radius:0 12px 12px 0;color:#6a796e}
.qh-page .qh-hit-toggle>.qh-source-heading .qh-source-latin{font:600 15px/1.6 system-ui}
.qh-page .qh-hit-toggle>.qh-table-verse{margin-top:14px!important}
.qh-page .qh-hit-toggle:focus-visible,.qh-page .qh-hadith-record>summary:focus-visible{outline:3px solid #758f79;outline-offset:3px;border-radius:8px}
.qh-page .qh-reader-tafsir>article:has(.qh-source-heading){margin-block:12px;padding:16px 12px;border:1px solid #dce5e0;border-radius:12px;background:#fff;min-width:0}
.qh-page .qh-reader-tafsir>article>.qh-source-heading,.qh-page .qh-reader-tafsir>article>h3:has(.qh-source-heading){margin:0 0 16px}
@media(max-width:650px){
 .qh-page .qh-hadith-family>header{padding:16px 14px;gap:12px;flex-wrap:wrap}
 .qh-page .qh-hadith-family>header>h2{flex-basis:calc(100% - 70px)}
 .qh-page .qh-source-heading{gap:10px}
 .qh-page .qh-source-ar{font-size:21px}
 .qh-page .qh-source-latin{font-size:15px}
 .qh-page .qh-book-mark{flex-basis:32px;width:32px;height:36px;border-radius:9px}
 .qh-page .qh-tafsir-book-title .qh-source-ar{font-size:20px}
 .qh-page .qh-hadith-record:has(.qh-tafsir-book-title) .qh-record-copy{flex-basis:100%}
 .qh-page:not(.qh-hadith-page) .qh-hadith-record-body{padding:16px 10px!important}
 .qh-page .qh-result-table .qh-hit-row>td{padding:12px 8px}
 .qh-page .qh-result-table .qh-hit-row>td:first-child{width:30px}
 .qh-page .qh-result-table .qh-hit-row>td:last-child{width:48px;font-size:12px}
}
@media print{.qh-page .qh-book-mark{background:none;border-color:#aaa}.qh-page .qh-source-heading{break-inside:avoid}}
