/* Readable related material, including when the main theme is dark. */
html[data-design] .quran-related-hadiths,html[data-design] .quran-related-hadiths .quran-hadith-card{background:#fff3da!important;color:#34260e!important;border-color:#b98b34!important}
html[data-design] .quran-related-hadiths p,html[data-design] .quran-related-hadiths span,html[data-design] .quran-related-hadiths small,html[data-design] .quran-related-hadiths strong{color:#49340d!important}
html[data-design] .quran-related-ayahs,html[data-design] .quran-related-ayah-card{background:#e8f2ff!important;color:#183b68!important;border-color:#7098c7!important}
html[data-design] .quran-related-ayahs p,html[data-design] .quran-related-ayahs span,html[data-design] .quran-related-ayahs small,html[data-design] .quran-related-ayahs strong{color:#183b68!important}
html[data-design] .qx-page .qx-detail-body .quran-related-hadiths .quran-hadith-card{background:#fff3da!important;color:#34260e!important;border-color:#b98b34!important}
html[data-design] .qx-page .qx-detail-body .quran-related-hadiths{background:#fff3da!important;padding:12px!important;border-radius:12px;color:#49340d!important}
html[data-design] .qx-page .qx-detail-body .quran-related-hadiths :is(.quran-hadith-text,.quran-hadith-translation,.quran-hadith-source){background:#fff3da!important;color:#49340d!important}
html[data-design] .qx-page .qx-detail-body .quran-related-hadiths :is(p,small,span,strong,h2,h3,h4){color:#49340d!important}
html[data-design] .qx-page .qx-detail-body .quran-related-ayahs .quran-related-ayah-card{background:#e8f2ff!important;color:#183b68!important;border-color:#7098c7!important}
html[data-design] .qx-page .qx-detail-body .quran-related-ayahs{background:#e8f2ff!important;padding:12px!important;border-radius:12px;color:#183b68!important}
html[data-design] .qx-page .qx-detail-body .quran-related-ayahs :is(p,small,span,strong,h2,h3,h4){color:#183b68!important}
.siraj-extra-modal.is-panorama{padding:0!important;background:#000!important;inset:0!important;z-index:10000!important}
.is-panorama .siraj-extra-box{width:100%!important;max-width:none!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important;background:#000!important;overflow:hidden!important}
.is-panorama .siraj-extra-head{position:absolute;inset:0 0 auto;z-index:3;background:#0008;color:#fff;padding-top:max(12px,env(safe-area-inset-top))}
.is-panorama .siraj-extra-list{height:100%;padding:0!important;display:block!important}
.is-panorama [data-back-v]{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));right:16px;z-index:3;width:auto;background:#fff!important;color:#17392c!important}
.is-panorama article.siraj-extra-card{height:100%;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
.is-panorama article>.siraj-extra-title{display:none}
.is-panorama .siraj-extra-pano{height:100%!important;border-radius:0!important;direction:ltr;touch-action:none;overflow:hidden}
.is-panorama .siraj-extra-pano img{height:100%!important;width:auto!important;max-width:none!important;min-width:100%;object-fit:cover}
.medar-download-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.medar-download-status{line-height:1.9;font-size:13px}
html[data-design] body .medar-ahl-page[data-medar-stage="people"] .ahlulbayt-content-section,html[data-design] body .medar-ahl-page[data-medar-stage="people"] .ahlulbayt-results-section{display:none!important}
html[data-design] body .medar-ahl-page[data-medar-stage="topics"] .ahlulbayt-person-grid,html[data-design] body .medar-ahl-page[data-medar-stage="topics"] .ax-person-search,html[data-design] body .medar-ahl-page[data-medar-stage="reading"] .ahlulbayt-person-grid,html[data-design] body .medar-ahl-page[data-medar-stage="reading"] .ax-person-search{display:none!important}
html[data-design] body .medar-ahl-page[data-medar-stage="reading"] .ahlulbayt-category-grid,html[data-design] body .medar-ahl-page[data-medar-stage="reading"] .ahlulbayt-results-section:not(:has(.ahlulbayt-reading)){display:none!important}
.medar-ahl-back{margin:12px 0}.madar-prophets-body{white-space:pre-line;line-height:2.2}

html[data-design] body .medar-ahl-page[data-medar-stage="topics"] .ahlulbayt-results-section{display:none!important}
html[data-design] body .medar-ahl-page[data-medar-stage="results"] .ahlulbayt-person-grid,html[data-design] body .medar-ahl-page[data-medar-stage="results"] .ax-person-search,html[data-design] body .medar-ahl-page[data-medar-stage="results"] .ahlulbayt-category-grid{display:none!important}
html[data-design] body .medar-custom-prophet .ahlulbayt-content-section>:not(.medar-prophets-owned){display:none!important}
html[data-design] body .medar-ahl-page[data-medar-stage="people"] .ahlulbayt-person-grid{display:grid!important}
.medar-panorama-ancestor{transform:none!important;filter:none!important;contain:none!important;overflow:visible!important}
.virtual-panorama-viewer.medar-panorama-full{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;border-radius:0!important;z-index:20000!important;background:#000!important;display:block!important}
.medar-panorama-full .virtual-panorama-canvas-wrap{height:100%!important;min-height:0!important;border-radius:0!important;aspect-ratio:auto!important}
.medar-panorama-full .virtual-panorama-caption{position:absolute;top:max(12px,env(safe-area-inset-top));right:16px;left:16px;color:#fff!important;background:#0009;padding:10px;border-radius:12px;pointer-events:none}
.medar-panorama-back{display:none}.medar-panorama-full .medar-panorama-back{display:block;position:absolute;bottom:max(16px,env(safe-area-inset-bottom));right:16px;z-index:5;background:#fff;color:#17392c;border:0;border-radius:12px;padding:12px;font:inherit}
.medar-panorama-full .virtual-panorama-controls{bottom:76px!important}

html[data-design] body .medar-custom-prophet .ahlulbayt-panel-heading,html[data-design] body .medar-custom-prophet .ax-ahl-hero{display:none!important}
html[data-design][data-experience] .medar-ahl-page{display:block!important}
html[data-design][data-experience] .medar-ahl-page>.ahlulbayt-panel{position:static!important;max-height:none!important;overflow:visible!important;width:100%;margin-bottom:18px}
html[data-design] body .medar-ahl-page .ax-ahl-hero,html[data-design] body .medar-ahl-page[data-medar-stage="people"] .ahlulbayt-panel-heading{display:none!important}
html[data-design][data-experience] .medar-ahl-page[data-medar-stage="people"] .ahlulbayt-person-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}
html[data-design] body .medar-ahl-back[hidden],html[data-design] body .medar-prophets-owned[hidden]{display:none!important}
@media(max-width:540px){html[data-design][data-experience] .medar-ahl-page[data-medar-stage="people"] .ahlulbayt-person-grid{grid-template-columns:1fr!important}}

/* Corrected people hierarchy and image-only pilgrimage navigation. */
html[data-design] body .medar-ahl-page[data-medar-stage="prophets"] .ahlulbayt-person-grid,html[data-design] body .medar-ahl-page[data-medar-stage="prophets"] .ax-person-search{display:none!important}
.medar-prophet-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
html[data-design] body .virtual-ziyarat .virtual-ziyarat-layout{display:block!important}
html[data-design] body .virtual-ziyarat:not([data-medar-virtual="image"]) .virtual-panorama-viewer{display:none!important}
html[data-design] body .virtual-ziyarat:not([data-medar-virtual="views"]) .medar-virtual-up{display:none!important}
html[data-design] body .virtual-ziyarat:not([data-medar-virtual="places"]) .virtual-ziyarat-groups,html[data-design] body .virtual-ziyarat[data-medar-virtual="places"] .virtual-ziyarat-content{display:none!important}
html[data-design] body .virtual-ziyarat[data-medar-virtual="views"] .virtual-ziyarat-summary{display:none!important}
html[data-design] body .virtual-ziyarat[data-medar-virtual="image"]{visibility:hidden!important}
html[data-design] body .virtual-ziyarat[data-medar-virtual="image"] .virtual-panorama-viewer{visibility:visible!important}
html[data-design] body .medar-panorama-full .virtual-panorama-caption,html[data-design] body .medar-panorama-full .virtual-panorama-controls,html[data-design] body .medar-panorama-full .virtual-panorama-help,html[data-design] body .medar-panorama-full .virtual-panorama-crosshair,html[data-design] body .medar-panorama-full .virtual-panorama-status:not(.virtual-panorama-status--error),html[data-design] body .medar-panorama-full .medar-panorama-back{display:none!important}
html[data-design] body .medar-panorama-full .virtual-panorama-canvas-wrap{border:0!important;outline:0!important}
.medar-virtual-up{margin:0 0 16px;padding:10px 16px;border-radius:12px}

html[data-design] body .medar-panorama-ancestor{transform:none!important;filter:none!important;contain:none!important}
html[data-design] body .virtual-ziyarat:not([data-medar-virtual]) .virtual-ziyarat-content{display:none!important}
html[data-design] body .is-panorama .siraj-extra-head,html[data-design] body .is-panorama [data-back-v],html[data-design] body .is-panorama .siraj-extra-pano-hint{display:none!important}
