/* Page composition, reading workspaces and five independent editorial systems. */
html[data-design] :is(.quran-arabic,.nahj-arabic-body,.sahifa-arabic-body,.ahlulbayt-reading-arabic,.topical-hadith-arabic,.siraj-audio-arabic,.daily-ethics-arabic){font-family:Amiri,serif!important}
html[data-design]{--rah-rule:1px solid var(--ds-line);--rah-reading-scale:1}
html[data-design] .page-wrap{max-width:1480px}
html[data-design] .page :is(button,input,select){font-size:.82rem}
html[data-design] .page :is(h1,h2,h3,p){overflow-wrap:break-word}
html[data-design] .page :is(.page-intro,.quran-reader-heading,.mafatih-reader-heading,.ziyarat-reader-heading,.sins-reader-heading){position:relative;display:flex;align-items:center;gap:24px;padding:30px 0 26px!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-design] .page :is(.quran-reader-heading,.mafatih-reader-heading,.ziyarat-reader-heading,.sins-reader-heading)>div{flex:1;min-width:0}
html[data-design] .page :is(.page-intro,.quran-reader-heading,.mafatih-reader-heading,.ziyarat-reader-heading,.sins-reader-heading) h1{font-size:clamp(1.7rem,3.2vw,2.8rem);font-weight:850;letter-spacing:-.055em;margin:6px 0;line-height:1.5}
html[data-design] .page :is(.page-intro,.quran-reader-heading,.mafatih-reader-heading,.ziyarat-reader-heading,.sins-reader-heading) p{max-width:65ch;font-size:.84rem;line-height:2;color:var(--ds-muted)!important}
html[data-design] .page :is(.quran-reader-heading-icon,.mafatih-heading-icon,.ziyarat-heading-icon,.sins-heading-icon){width:64px;height:76px;border:var(--rah-rule);border-radius:32px 32px 6px 6px;background:transparent;color:var(--ds-accent);flex-shrink:0;display:grid;place-items:center}
html[data-design] .page .quran-back-button{align-self:flex-start;min-height:40px;border:var(--rah-rule)!important;border-radius:8px!important;padding:10px 14px;background:var(--ds-panel)!important;color:var(--ds-ink)!important;white-space:nowrap}
html[data-design] .page :is(.quran-reader-summary,.mafatih-reader-summary,.nahj-reader-summary,.sahifa-reader-summary,.ziyarat-reader-summary,.sins-reader-summary,.topical-hadiths-summary){padding:20px 24px!important;min-height:100px;border-radius:10px!important;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--ds-soft)!important;border:0!important}
html[data-design] .page :is(.quran-reader-summary,.mafatih-reader-summary,.nahj-reader-summary,.sahifa-reader-summary,.ziyarat-reader-summary,.sins-reader-summary) strong{font-size:1.35rem}
html[data-design] .page :is(.quran-reader-summary-note,.mafatih-summary-note,.ziyarat-reader-summary-note,.sins-summary-note){max-width:38ch;color:var(--ds-muted);font-size:.75rem;line-height:1.9}

/* Quran: real index, a dedicated toolbar and an uncluttered reading surface. */
html[data-design] .page.rah-quran-workspace{display:grid!important;grid-template-columns:232px minmax(0,1fr);grid-template-areas:'heading heading' 'summary miracles' 'index extras' 'index tools' 'index controls' 'index results' 'index reader';align-items:start;gap:18px 24px!important}
html[data-design] .rah-quran-workspace>.quran-reader-heading{grid-area:heading}
html[data-design] .rah-quran-workspace>.quran-reader-summary{grid-area:summary;display:block;min-height:112px;padding:20px!important}
html[data-design] .rah-quran-workspace>.quran-reader-summary .quran-reader-summary-note{display:none}
html[data-design] .rah-quran-workspace>.quran-miracles-entry{grid-area:miracles;min-height:112px;display:flex;align-items:center;padding:20px 26px;gap:18px;background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:10px!important;color:var(--ds-ink)!important;text-align:right}
html[data-design] .rah-quran-workspace .quran-miracles-entry-copy{flex:1;display:grid;gap:8px}
html[data-design] .rah-quran-workspace .quran-miracles-entry-copy small{color:var(--ds-muted)}
html[data-design] .rah-quran-workspace>.quran-reader-controls{grid-area:controls;display:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:24px!important;gap:16px!important;background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:12px!important;margin:0}
html[data-design] .rah-quran-workspace.rah-settings-open>.quran-reader-controls{display:grid!important}
html[data-design] .rah-quran-workspace>.quran-global-results{grid-area:results;min-width:0}
html[data-design] .rah-quran-workspace>.quran-reader-content{grid-area:reader;min-width:0;width:100%;margin:0;padding:0!important;background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:12px!important;overflow:hidden}
html[data-design] .rah-quran-workspace .quran-reader-field{padding:0;border:0!important;background:transparent!important;display:grid;gap:8px}
html[data-design] .rah-quran-workspace .quran-reader-field>span{font-size:.72rem;font-weight:650;color:var(--ds-muted)}
html[data-design] .rah-quran-workspace :is(.quran-reader-search,.quran-search-mode-switch){grid-column:1/-1}
html[data-design] .rah-quran-workspace .quran-reader-search{margin:0;min-height:48px;border:var(--rah-rule)!important;border-radius:8px!important;background:var(--ds-bg)!important;padding:0 12px}
html[data-design] .rah-quran-workspace .quran-reader-search input{border:0!important;background:transparent!important}
html[data-design] .rah-quran-workspace .quran-surah-toolbar{display:flex;justify-content:space-between;align-items:center;padding:30px 36px;border-bottom:var(--rah-rule);background:var(--ds-soft)!important;margin:0}
html[data-design] .rah-quran-workspace .quran-surah-toolbar h2{font-size:1.8rem;font-weight:800;margin:4px 0}
html[data-design] .rah-quran-workspace .quran-surah-toolbar small{color:var(--ds-muted)}
html[data-design] .rah-quran-workspace .quran-ayah-search{margin:20px 28px;padding:0 12px;min-height:46px;border:var(--rah-rule)!important;border-radius:8px!important;background:transparent!important}
html[data-design] .rah-quran-workspace .quran-ayah-search input{background:transparent!important;border:0!important;width:100%}
html[data-design] .rah-quran-workspace .quran-ayah-list{display:block;padding:0 36px 24px;gap:0}
html[data-design] .rah-quran-workspace .quran-ayah-card{padding:28px 0!important;margin:0!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;scroll-margin-top:100px}
html[data-design] .rah-quran-workspace .quran-ayah-card:last-child{border-bottom:0!important}
html[data-design] .rah-quran-workspace .quran-ayah-card--basmala{padding:36px 8px!important;text-align:center;border-bottom:3px double var(--ds-line)!important}
html[data-design] .rah-quran-workspace .quran-ayah-card--basmala .quran-arabic{text-align:center!important;font-size:calc(1.8rem * var(--rah-reading-scale))!important}
html[data-design] .rah-quran-workspace .quran-arabic{font-size:calc(1.65rem * var(--rah-reading-scale))!important;font-weight:500;line-height:2.65!important;letter-spacing:0!important;margin:22px 0;text-align:right;direction:rtl}
html[data-design] .rah-quran-workspace .quran-ayah-toolbar{display:flex;gap:10px;align-items:center;color:var(--ds-muted);font-size:.7rem}
html[data-design] .rah-quran-workspace .quran-ayah-toolbar>div{display:flex;gap:6px;margin-inline-start:auto;flex-wrap:wrap}
html[data-design] .rah-quran-workspace .quran-ayah-number{display:grid;place-items:center;width:36px;height:36px;font-size:.8rem;border:var(--rah-rule);border-radius:50%;background:transparent;color:var(--ds-accent)}
html[data-design] .rah-quran-workspace .quran-ayah-toolbar button{min-width:36px;min-height:36px;padding:6px 10px;border:var(--rah-rule)!important;border-radius:6px!important;background:transparent!important;color:var(--ds-muted)!important;font-size:.65rem}
html[data-design] .rah-quran-workspace .quran-translation{padding:0!important;margin:12px 0 0;border:0!important;border-inline-start:2px solid var(--ds-line)!important;padding-inline-start:18px!important;background:transparent!important;border-radius:0!important}
html[data-design] .rah-quran-workspace .quran-translation>span{font-size:.65rem;color:var(--ds-muted)}
html[data-design] .rah-quran-workspace .quran-translation p{font-size:calc(.91rem * var(--rah-reading-scale));line-height:2.25;margin:7px 0;color:var(--ds-ink)!important}
html[data-design] .rah-quran-workspace .quran-ayah-related-actions{margin-top:22px;display:flex;flex-wrap:wrap;gap:8px}
html[data-design] .rah-quran-workspace .quran-ayah-related-action{flex:0 1 auto;min-height:36px;padding:7px 12px;border:var(--rah-rule)!important;background:transparent!important;color:var(--ds-muted)!important;border-radius:6px!important;font-size:.66rem}
html[data-design] .rah-quran-workspace .quran-ayah-related-action b{font-size:.6rem}
html[data-design] .rah-quran-workspace[data-reading-mode=arabic] :is(.quran-translation,.quran-ayah-related-actions,.quran-commentary,.quran-related-ayahs,.quran-related-hadiths,.quran-word-meanings){display:none!important}
html[data-design] .rah-quran-workspace[data-reading-mode=study] .quran-ayah-related-actions{display:none!important}
html[data-design] .rah-quran-workspace .quran-commentary{margin-top:22px;padding:22px;border:var(--rah-rule)!important;border-radius:8px!important;line-height:2.2;font-size:.9rem}
html[data-design] .rah-quran-workspace .quran-ayah-card.is-target{background:var(--ds-soft)!important;padding-inline:16px!important}
.rah-study-bar{grid-area:tools;display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:var(--rah-rule)}
.rah-reading-modes,.rah-study-actions,.rah-type-size,.rah-catalog-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
html[data-design] :is(.rah-study-bar,.rah-catalog-tools) button{min-height:40px;padding:9px 13px;border:1px solid transparent;border-radius:7px;color:var(--ds-muted);background:transparent;font-size:.73rem;line-height:1.6}
html[data-design] :is(.rah-reading-modes,.rah-catalog-tabs) button[aria-pressed=true]{background:var(--ds-ink)!important;color:var(--ds-bg)!important}
.rah-type-size{border:var(--rah-rule);border-radius:7px;gap:0}
.rah-type-size span{font-size:.65rem;color:var(--ds-muted)}
html[data-design] .rah-type-size button{font-size:1.1rem;min-width:36px;padding:6px}
html[data-design] .rah-study-bar :is(.rah-settings-toggle,.rah-focus-toggle){border:var(--rah-rule)}
.rah-quran-index{grid-area:index;position:sticky;top:24px;min-width:0;border:var(--rah-rule);border-radius:12px;background:var(--ds-panel);overflow:hidden}
.rah-index-heading{display:grid;gap:7px;padding:26px 22px 18px;border-bottom:var(--rah-rule)}
.rah-index-heading>span{font-size:.65rem;color:var(--ds-accent)}
.rah-index-heading strong{font-size:1.2rem}
.rah-index-heading small{font-size:.7rem;color:var(--ds-muted)}
.rah-index-search{display:block;padding:14px}
html[data-design] .rah-index-search input{width:100%;font-size:.72rem;padding:10px 12px;background:var(--ds-bg)!important;border-radius:7px!important}
.rah-surah-list{max-height:57dvh;overflow:auto;padding:0 10px 12px;scrollbar-width:thin;scrollbar-color:var(--ds-line) transparent}
html[data-design] .rah-surah-row{display:flex;align-items:center;gap:12px;width:100%;min-height:49px;padding:9px 10px;border:0;border-bottom:var(--rah-rule);border-radius:0;background:transparent;color:var(--ds-ink);text-align:right}
.rah-surah-row strong{font-size:.8rem;font-weight:550}
.rah-surah-number{font-size:.67rem;width:25px;text-align:center;color:var(--ds-muted);font-variant-numeric:tabular-nums}
.rah-surah-arrow{margin-inline-start:auto;color:var(--ds-muted)}
html[data-design] .rah-surah-row[aria-current=true]{background:var(--ds-soft);border-radius:7px;color:var(--ds-accent)}
.rah-surah-row[aria-current=true] strong{font-weight:800}
html[data-design] .rah-resume{display:block;margin:0 14px 14px;padding:10px;width:calc(100% - 28px);border:var(--rah-rule);border-radius:6px;background:var(--ds-soft);color:var(--ds-ink);font-size:.72rem}
.rah-index-empty{padding:15px;font-size:.8rem;color:var(--ds-muted)}
html[data-design] .rah-resume[hidden],html[data-design] .rah-index-empty[hidden],html[data-design] .page .rah-filtered-out{display:none!important}
html[data-design].rah-focus :is(.sidebar,.desktop-topbar,.mobile-topbar,.mobile-page-title,.bottom-nav,.design-launcher){display:none!important}
html[data-design].rah-focus .app-shell{display:block!important;padding:0!important}
html[data-design].rah-focus .app-main{margin:0!important;width:100%!important}
html[data-design].rah-focus .page.rah-quran-workspace{display:flex!important;flex-direction:column;max-width:920px;margin:auto}
html[data-design].rah-focus .rah-quran-workspace>:is(.rah-quran-index,.quran-reader-heading,.quran-reader-summary,.quran-miracles-entry,.siraj-extra-quran-card){display:none!important}
html[data-design].rah-focus .rah-study-bar{position:sticky;top:0;background:var(--ds-bg);z-index:15;width:100%}

/* Library: covers and an actual searchable collection. */
html[data-design] .rah-library-workspace .library-hero{min-height:190px;padding:32px 40px!important;border:0!important;border-radius:12px!important;background:var(--ds-hero)!important;color:var(--ds-onhero)!important;overflow:hidden;position:relative}
html[data-design] .rah-library-workspace .library-hero :is(h1,h2,strong,p,small){color:var(--ds-onhero)!important}
html[data-design] .rah-library-workspace .library-hero h2{font-size:2rem}
html[data-design] .rah-library-workspace .library-hero-art{opacity:.25;transform:rotate(-12deg) scale(1.5)}
.rah-catalog-tools{display:grid;grid-template-columns:1fr minmax(220px,340px);gap:12px 24px;align-items:end;border-bottom:var(--rah-rule);padding-bottom:18px}
.rah-library-search{display:grid;gap:8px;font-size:.68rem;color:var(--ds-muted)}
.rah-library-search input{width:100%;padding:12px 16px}
.rah-catalog-status{grid-column:1/-1;margin:0;font-size:.7rem;color:var(--ds-muted)}
html[data-design] .rah-library-workspace .library-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important}
html[data-design] .rah-library-workspace .library-item{position:relative;display:grid;grid-template-columns:1fr!important;grid-template-rows:140px auto auto;justify-items:start;text-align:right;align-content:start;padding:24px!important;min-height:310px;border-radius:10px!important;box-shadow:none!important;gap:18px!important;grid-column:auto!important;overflow:hidden}
html[data-design] .rah-library-workspace .library-item::before{content:attr(data-book-number);position:absolute;inset:auto auto 24px 24px;font-size:.75rem;color:var(--ds-muted);font-weight:500}
html[data-design] .rah-library-workspace .library-item-icon{position:relative;display:grid;place-items:center;width:88px!important;height:125px!important;border:1px solid var(--ds-line);border-inline-start:5px solid var(--ds-accent);border-radius:3px 8px 8px 3px!important;background:var(--ds-soft)!important;color:var(--ds-accent);box-shadow:5px 6px 0 var(--ds-bg),6px 7px 0 var(--ds-line)!important}
html[data-design] .rah-library-workspace .library-item-icon:after{content:'';position:absolute;inset:12px 10px;border:1px solid currentColor;opacity:.25;pointer-events:none}
html[data-design] .rah-library-workspace .library-item-icon svg{width:29px;height:29px}
html[data-design] .rah-library-workspace .library-item-copy{display:grid;gap:8px;width:100%}
html[data-design] .rah-library-workspace .library-item-copy strong{font-size:1.2rem!important;line-height:1.8}
html[data-design] .rah-library-workspace .library-item-copy small{font-size:.76rem;line-height:2}
html[data-design] .rah-library-workspace .library-item-tag{font-size:.64rem;border:var(--rah-rule);border-radius:4px;padding:5px 10px;background:transparent!important;align-self:end}
html[data-design] .rah-library-workspace .library-item>svg{display:none}

/* Catalogs: each section has a clear hierarchy, index and reading surface. */
html[data-design] .page :is(.mafatih-catalog-section,.nahj-catalog-section,.sahifa-catalog-section,.ziyarat-catalog-section,.sins-catalog-section,.topical-results-section){padding:0;border:0!important;background:transparent!important;border-radius:0!important}
html[data-design] .page :is(.mafatih-section-heading,.nahj-section-heading,.sahifa-section-heading,.ziyarat-section-heading,.sins-section-heading,.topical-section-heading){display:flex;justify-content:space-between;align-items:center;padding:20px 0;margin:0;gap:16px;border-bottom:var(--rah-rule)}
html[data-design] .page :is(.mafatih-section-heading,.nahj-section-heading,.sahifa-section-heading,.ziyarat-section-heading,.sins-section-heading) h2{font-size:1.2rem;margin:3px 0}
html[data-design] .page :is(.mafatih-section-grid,.ziyarat-shrine-grid,.sins-topic-grid,.topical-main-category-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-block:20px}
html[data-design] .page :is(.mafatih-section-card,.ziyarat-shrine-card,.sins-topic-card,.topical-main-category-card){position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) 24px;gap:18px;align-items:center;min-height:140px;padding:24px!important;border:var(--rah-rule)!important;border-radius:10px!important;background:var(--ds-panel)!important;text-align:right}
html[data-design] .page :is(.mafatih-section-copy,.ziyarat-shrine-card-copy,.sins-topic-copy){display:grid;gap:8px}
html[data-design] .page :is(.mafatih-section-copy,.ziyarat-shrine-card-copy,.sins-topic-copy) strong{font-size:1.05rem}
html[data-design] .page :is(.mafatih-section-copy,.ziyarat-shrine-card-copy,.sins-topic-copy) :is(p,small){font-size:.75rem;line-height:1.9;color:var(--ds-muted)!important}
html[data-design] .page :is(.mafatih-section-icon,.ziyarat-shrine-card-icon,.topical-main-category-icon,.sins-topic-number){width:50px;height:60px;display:grid;place-items:center;background:var(--ds-soft)!important;color:var(--ds-accent)!important;border-radius:25px 25px 6px 6px;font-size:1.5rem}
html[data-design] .page :is(.mafatih-entry-list,.nahj-entry-list,.sahifa-entry-list,.sins-entry-list,.ziyarat-file-list){display:grid;grid-template-columns:1fr;gap:0;border:var(--rah-rule);border-radius:10px;overflow:hidden;margin-block:16px}
html[data-design] .page :is(.mafatih-entry-card,.nahj-entry-card,.sahifa-entry-card,.sins-entry-card,.ziyarat-file-card){display:flex;align-items:center;gap:20px;min-height:90px;padding:22px 24px!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:var(--ds-panel)!important;box-shadow:none!important;text-align:right}
html[data-design] .page :is(.mafatih-entry-card,.nahj-entry-card,.sahifa-entry-card,.sins-entry-card,.ziyarat-file-card):last-child{border-bottom:0!important}
html[data-design] .page :is(.mafatih-entry-copy,.nahj-entry-copy,.sahifa-entry-copy,.sins-entry-copy,.ziyarat-file-card-copy){flex:1;display:grid;gap:8px;min-width:0}
html[data-design] .page :is(.mafatih-entry-copy,.nahj-entry-copy,.sahifa-entry-copy,.sins-entry-copy,.ziyarat-file-card-copy) strong{font-size:.98rem;line-height:1.8}
html[data-design] .page :is(.nahj-entry-number,.sahifa-entry-number){width:46px;flex:0 0 46px;background:transparent;color:var(--ds-accent);font-size:1.4rem;font-weight:300;border-inline-end:var(--rah-rule);border-radius:0}
html[data-design] .page :is(.nahj-section-tabs,.nahj-search-scope,.sahifa-search-scope,.ziyarat-search-scope,.sins-search-scope,.topical-subcategory-row,.topical-topic-chip-row){display:flex;gap:8px;flex-wrap:wrap;background:transparent!important;padding:10px 0;border:0!important}
html[data-design] .page :is(.nahj-section-tabs,.nahj-search-scope,.sahifa-search-scope,.ziyarat-search-scope,.sins-search-scope,.topical-subcategory-row,.topical-topic-chip-row) button{min-height:42px;padding:10px 18px;border:var(--rah-rule);border-radius:6px;background:var(--ds-panel);color:var(--ds-muted);font-size:.78rem}
html[data-design] .page :is(.nahj-section-tabs,.nahj-search-scope,.sahifa-search-scope,.ziyarat-search-scope,.sins-search-scope) button.is-active{background:var(--ds-ink)!important;color:var(--ds-bg)!important;border-color:var(--ds-ink)!important}
html[data-design] .page :is(.mafatih-search-panel,.nahj-search-panel,.sahifa-search-panel,.ziyarat-search-panel,.sins-search-panel,.topical-topic-search-section){background:transparent!important;border:0!important;padding:0;border-radius:0!important}
html[data-design] .page :is(.mafatih-search-field,.nahj-reader-search,.sahifa-reader-search,.ziyarat-reader-search,.sins-reader-search,.topical-hadiths-search,.ahlulbayt-search){min-height:54px;padding:4px 16px!important;display:flex;align-items:center;gap:12px;border:var(--rah-rule)!important;border-radius:8px!important;background:var(--ds-panel)!important}
html[data-design] .page :is(.mafatih-search-field,.nahj-reader-search,.sahifa-reader-search,.ziyarat-reader-search,.sins-reader-search,.topical-hadiths-search,.ahlulbayt-search) input{border:0!important;background:transparent!important;width:100%;padding:8px}
html[data-design] .page :is(.nahj-reader-controls,.sahifa-reader-controls){padding:20px!important;background:var(--ds-soft)!important;border:0!important;border-radius:10px!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html[data-design] .page :is(.nahj-reader-field,.sahifa-reader-field){display:grid;gap:8px;background:transparent!important;border:0!important;font-size:.72rem}
html[data-design] .page :is(.nahj-reader-field,.sahifa-reader-field) select{width:100%;padding:12px}
html[data-design] .page :is(.nahj-detail-actions,.sahifa-detail-actions,.mafatih-detail-actions,.ziyarat-detail-actions,.sins-detail-actions){display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0;border-bottom:var(--rah-rule)}
html[data-design] .page :is(.nahj-detail-actions,.sahifa-detail-actions,.mafatih-detail-actions,.ziyarat-detail-actions,.sins-detail-actions) button{min-height:42px;padding:10px 15px;border:var(--rah-rule)!important;border-radius:6px;background:var(--ds-panel)!important;color:var(--ds-ink)!important;font-size:.73rem}
html[data-design] .page :is(.nahj-text-card,.sahifa-text-card,.mafatih-article-card,.ziyarat-file-content-card,.sins-article-card){width:100%;max-width:960px;margin-inline:auto;padding:clamp(22px,4vw,56px)!important;background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:10px!important;box-shadow:none!important}
html[data-design] .page :is(.nahj-text-card-heading,.sahifa-text-card-heading,.mafatih-article-meta,.ziyarat-file-content-heading,.sins-article-meta){padding:0 0 28px;border-bottom:3px double var(--ds-line);margin-bottom:30px;display:flex;align-items:start;justify-content:space-between;gap:20px}
html[data-design] .page :is(.nahj-text-card-heading,.sahifa-text-card-heading,.mafatih-article-meta,.ziyarat-file-content-heading,.sins-article-meta) h2{font-size:1.55rem;line-height:1.8;margin-block:12px}
html[data-design] .page :is(.nahj-arabic-block,.nahj-translation-block,.sahifa-arabic-block,.sahifa-translation-block){border:0!important;border-radius:0!important;background:transparent!important;padding:20px 0!important}
html[data-design] .page :is(.nahj-arabic-body,.sahifa-arabic-body,.ahlulbayt-reading-arabic,.topical-hadith-arabic){background:transparent!important;font-size:1.45rem;line-height:2.5!important;color:var(--ds-ink)!important}
html[data-design] .page :is(.nahj-text-body,.sahifa-translation-body,.mafatih-article-text,.sins-article-text,.ziyarat-file-text){background:transparent!important;font-size:1rem;line-height:2.4!important;color:var(--ds-ink)!important}
html[data-design] .page :is(.nahj-text-body,.sahifa-translation-body,.mafatih-article-text,.sins-article-text,.ziyarat-file-text) p{margin-block:0 22px}
html[data-design] .page :is(.nahj-arabic-heading,.nahj-translation-heading,.sahifa-block-heading){display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:var(--rah-rule);padding-bottom:12px;margin-bottom:20px}
html[data-design] .page :is(.nahj-entry-navigation,.sahifa-entry-navigation,.mafatih-entry-navigation,.ziyarat-file-navigation,.sins-entry-navigation){display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:960px;width:100%;margin:auto}
html[data-design] .page :is(.nahj-entry-navigation,.sahifa-entry-navigation,.mafatih-entry-navigation,.ziyarat-file-navigation,.sins-entry-navigation) button{padding:20px;border:var(--rah-rule);border-radius:8px;background:var(--ds-panel);color:var(--ds-ink);min-height:72px}
html[data-design] .page :is(.topical-hadith-card,.quran-miracle-section,.ahlulbayt-reading-block){padding:28px!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:var(--ds-panel)!important;box-shadow:none!important}
html[data-design] .page .topical-hadith-list{display:grid;gap:20px}
html[data-design] .page :is(.topical-hadith-translation,.topical-detail-block--translation){line-height:2.2;background:transparent!important;padding-block:16px;font-size:.94rem}

/* Ahlulbayt: biography directory, subject navigation and long-form reading. */
html[data-design] .page .ahlulbayt-person-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;counter-reset:people}
html[data-design] .page .ahlulbayt-person-card{counter-increment:people;display:grid;grid-template-columns:48px minmax(0,1fr)!important;text-align:right;justify-items:start;align-items:center;gap:18px;position:relative;min-height:122px;padding:22px!important;border-radius:10px!important;box-shadow:none!important;grid-column:auto!important}
html[data-design] .page .ahlulbayt-person-card:before{content:counter(people,decimal-leading-zero);position:absolute;inset:auto auto 12px 14px;font-size:.6rem;color:var(--ds-muted)}
html[data-design] .page .ahlulbayt-person-icon{width:46px;height:60px;border-radius:26px 26px 6px 6px!important;background:var(--ds-soft)!important}
html[data-design] .page .ahlulbayt-person-copy{display:grid;gap:6px}
html[data-design] .page .ahlulbayt-panel{padding:28px!important;border:var(--rah-rule)!important;border-radius:12px!important}
html[data-design] .page .ahlulbayt-panel-heading{padding-bottom:22px;margin-bottom:22px;border-bottom:var(--rah-rule)}
html[data-design] .page .ahlulbayt-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
html[data-design] .page .ahlulbayt-category-card{display:flex;align-items:center;gap:12px;min-height:85px;border-radius:8px!important;padding:18px!important;box-shadow:none!important}
html[data-design] .page .ahlulbayt-text-list{display:grid;grid-template-columns:1fr;gap:0;border-top:var(--rah-rule)}
html[data-design] .page .ahlulbayt-text-card{padding:22px 8px!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:86px}
html[data-design] .page .ahlulbayt-reading{max-width:900px;margin:auto;padding:clamp(20px,4vw,48px);background:var(--ds-panel);border:var(--rah-rule);border-radius:10px;line-height:2.3}
html[data-design] .page :is(.ahlulbayt-reading-source,.ahlulbayt-reading-reference,.lesson-source){border-top:var(--rah-rule);padding-top:20px;margin-top:24px;color:var(--ds-muted);font-size:.73rem;line-height:2}
html[data-design] .page .virtual-ziyarat-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}
html[data-design] .page .virtual-ziyarat-groups{position:sticky;top:24px;border:var(--rah-rule);border-radius:10px;overflow:hidden;background:var(--ds-panel)}
html[data-design] .page .virtual-ziyarat-content{border:var(--rah-rule);border-radius:12px;background:var(--ds-panel);padding:24px;min-width:0}
html[data-design] .page .virtual-ziyarat-item-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

/* Worship: a useful dashboard, structured forms and readable counters. */
html[data-design] .page :is(.prayer-timeline,.ritual-grid){gap:16px}
html[data-design] .page .prayer-card{padding:24px 20px;border-radius:10px!important;box-shadow:none!important;border-top:3px solid var(--ds-accent)!important}
html[data-design] .page .prayer-time{font-size:1.6rem;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:.02em}
html[data-design] .page .next-prayer-card{padding:32px;background:var(--ds-hero)!important;border-radius:12px;border:var(--rah-rule);color:var(--ds-onhero)!important}
html[data-design] .page .next-prayer-card :is(strong,p,small){color:inherit!important}
html[data-design] .page .ritual-card{min-height:135px;padding:24px!important;border-radius:10px!important;box-shadow:none!important;display:flex;align-items:center;gap:20px}
html[data-design] .siraj-worship-tools .siraj-worship-dashboard{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
html[data-design] .siraj-worship-tools .siraj-worship-card{min-height:160px;padding:26px!important;border-radius:12px!important;box-shadow:none!important;border:var(--rah-rule)!important;display:flex;flex-direction:column;justify-content:space-between;align-items:start;gap:16px}
html[data-design] .siraj-worship-tools .siraj-worship-category{padding:26px!important;border-radius:10px!important;box-shadow:none!important;border:var(--rah-rule)!important;min-height:160px}
html[data-design] .siraj-worship-tools .siraj-worship-category-icon{width:46px;height:46px;border-radius:12px;background:var(--ds-soft);display:grid;place-items:center;color:var(--ds-accent)}
html[data-design] .siraj-worship-sheet{width:min(840px,calc(100vw - 32px))!important;border-radius:16px!important;padding:0!important;box-shadow:0 30px 100px #0004!important}
html[data-design] .siraj-worship-head{padding:24px 28px!important;background:var(--ds-panel)!important;border-bottom:var(--rah-rule);position:sticky;top:0;z-index:2}
html[data-design] .siraj-worship-body{padding:28px!important}
html[data-design] .siraj-worship-item{padding:20px!important;margin-bottom:12px;background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:8px!important}
html[data-design] .siraj-worship-count{font-size:clamp(2.5rem,7vw,4.5rem)!important;font-weight:300!important;font-variant-numeric:tabular-nums;line-height:1.4}
html[data-design] .siraj-worship-input{padding:12px 15px!important;border-radius:8px!important;min-height:48px}
html[data-design] .siraj-worship-actions button{padding:12px 20px;min-height:46px;border-radius:8px!important}

/* Sheets, audio, learning, extra content and utilities. */
html[data-design] .siraj-worship-tools{padding:28px 0!important;margin:20px 0!important;background:transparent!important;border:0!important;border-top:var(--rah-rule)!important;border-radius:0!important;box-shadow:none!important}
html[data-design] .siraj-worship-tools:before{display:none}
html[data-design] .siraj-worship-hub{background:transparent!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-design] .siraj-worship-hub .siraj-worship-hub-button{background:var(--ds-panel)!important;color:var(--ds-ink)!important;border:var(--rah-rule)!important;padding:22px;border-radius:8px;min-height:112px}
html[data-design] .siraj-worship-hub .siraj-worship-hub-button strong{color:var(--ds-ink)!important;font-size:.95rem;line-height:1.8}
html[data-design] .siraj-worship-hub .siraj-worship-hub-button span{color:var(--ds-muted)!important;line-height:2}
html[data-design] .siraj-worship-body>p{font-size:.86rem;line-height:2.1;color:var(--ds-muted);margin:0 0 24px}
html[data-design] .siraj-worship-row .siraj-worship-count{font-size:1.45rem!important;gap:12px}
html[data-design] .siraj-worship-row .siraj-worship-count b{color:var(--ds-ink)!important;font-weight:500}
html[data-design] .siraj-worship-row .siraj-worship-count button{min-width:44px;min-height:44px;background:var(--ds-soft)!important;color:var(--ds-ink)!important}
html[data-design] .siraj-worship-row input[type=checkbox]{min-height:24px!important;width:24px!important;flex:0 0 24px;margin:0}
html[data-design] .siraj-worship-modal{align-items:center;padding:24px;background:#09151bb3;backdrop-filter:blur(5px)}
html[data-design] .siraj-polish-box{background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:14px!important;color:var(--ds-ink)!important;padding:30px!important}
html[data-design] .siraj-polish-box :is(h3,strong,p){color:var(--ds-ink)!important}
html[data-design] :is(.siraj-istikhara-result,.siraj-istikhara-opinion,.siraj-istikhara-result header){background:var(--ds-soft)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
html[data-design] .siraj-istikhara-verse{font-family:Amiri,serif!important;font-size:1.5rem;line-height:2.5}
html[data-design] :is(.siraj-istikhara-primary,.detail-primary-button){background:var(--ds-ink)!important;color:var(--ds-bg)!important;border-radius:8px!important;min-height:46px;padding:12px 22px}
html[data-design] :is(.siraj-istikhara-secondary,.detail-secondary-button){background:var(--ds-soft)!important;color:var(--ds-ink)!important;border:var(--rah-rule)!important;border-radius:8px!important;min-height:44px}
html[data-design] :is(.qibla-preview,.khatm-today-card,.khatm-progress-card,.khatm-complete-card,.khatm-plan-option){background:var(--ds-soft)!important;color:var(--ds-ink)!important;border:var(--rah-rule)!important;border-radius:10px!important;padding:24px}
html[data-design] .qibla-compass{background:var(--ds-panel)!important;border:1px solid var(--ds-accent)!important;box-shadow:inset 0 0 0 12px var(--ds-panel),inset 0 0 0 13px var(--ds-line)!important;color:var(--ds-ink)!important}
html[data-design] .tasbih-counter{background:var(--ds-hero)!important;color:var(--ds-onhero)!important;border:var(--rah-rule)!important;box-shadow:none!important;width:min(260px,70vw);height:min(260px,70vw);font-size:4rem;font-weight:300}
html[data-design] .khatm-progress-track{height:8px;background:var(--ds-line)!important;border-radius:8px;overflow:hidden}
html[data-design] .khatm-progress-track>span{background:var(--ds-accent)!important}
html[data-design] :is(.search-panel,.search-panel-header,.search-panel-input){background:var(--ds-panel)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
html[data-design] .search-panel{border-radius:16px!important;box-shadow:0 30px 90px #0004!important}
html[data-design] .search-result{background:var(--ds-panel)!important;color:var(--ds-ink)!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;padding:22px!important}
html[data-design] .search-result-icon{background:var(--ds-soft)!important;color:var(--ds-accent)!important;border-radius:8px}
html[data-design] .search-filter{background:var(--ds-bg)!important;color:var(--ds-ink)!important;border:var(--rah-rule)!important;min-height:40px}
html[data-design] .search-filter.is-active{background:var(--ds-ink)!important;color:var(--ds-bg)!important}
html[data-design] .siraj-dream-page-inline{border:0!important;background:transparent!important;border-radius:0!important;max-height:none;overflow:visible;box-shadow:none!important;padding:0}
html[data-design] .siraj-dream-page .library-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
html[data-design] .siraj-dream-page .library-item{display:flex!important;flex-direction:row;align-items:center;justify-content:start;min-height:86px!important;grid-column:auto!important;border-radius:8px!important;padding:20px!important;text-align:right;gap:16px;box-shadow:none!important}
html[data-design] .siraj-dream-page .library-item:before{display:none}
html[data-design] .siraj-dream-search-wrap{background:var(--ds-panel)!important;border:var(--rah-rule)!important;border-radius:8px!important;box-shadow:none!important}
html[data-design] .siraj-dream-article{padding:30px!important;font-size:1rem;line-height:2.4;border-radius:10px!important;box-shadow:none!important}
html[data-design] .madar-prophets-body{background:var(--ds-panel)!important;color:var(--ds-ink)!important;border:var(--rah-rule)!important;border-radius:10px!important;padding:30px;line-height:2.3}
html[data-design] .siraj-extra-quran-card{padding:20px!important;box-shadow:none!important;border-radius:8px!important;background:var(--ds-panel)!important}
html[data-design] .siraj-extra-quran-card span{color:var(--ds-muted)!important}
/* Added Quran content entries are part of the index column, never implicit grid cells. */
html[data-design] .rah-quran-workspace>.siraj-extra-quran-card{grid-area:extras;margin:0;min-height:65px}
@media(max-width:600px){html[data-design] .siraj-worship-hub{grid-template-columns:1fr}html[data-design] .siraj-worship-modal{align-items:flex-end;padding:10px}html[data-design] .siraj-dream-page .library-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-design] .siraj-dream-page .library-item{padding:16px!important}html[data-design] .siraj-dream-article{padding:20px!important}}
html[data-design] :is(.detail-sheet,.siraj-extra-box,.siraj-dream-page,.siraj-audio-sheet){background:var(--ds-panel)!important;color:var(--ds-ink)!important;border:var(--rah-rule)!important;border-radius:18px!important;max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #0004!important}
html[data-design] :is(.detail-sheet-header,.siraj-extra-head,.siraj-audio-head){padding:26px 28px!important;border-bottom:var(--rah-rule);background:var(--ds-panel)!important}
html[data-design] .detail-sheet-body{padding:28px!important}
html[data-design] :is(.detail-option,.detail-step,.detail-source-card,.siraj-extra-option,.siraj-dream-article){padding:20px!important;background:var(--ds-bg)!important;border:var(--rah-rule)!important;border-radius:8px!important;color:var(--ds-ink)!important;line-height:2}
html[data-design] :is(.detail-lead,.detail-footnote,.siraj-extra-small,.siraj-audio-status){font-size:.83rem;line-height:2;color:var(--ds-muted)!important}
html[data-design] :is(.siraj-audio-arabic,.daily-detail-arabic){font-size:1.5rem;line-height:2.5;color:var(--ds-ink)!important}
html[data-design] :is(.siraj-audio-ayah,.siraj-audio-player){background:var(--ds-soft)!important;padding:24px;border-radius:10px;border:0!important}
html[data-design] .siraj-audio-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-design] .siraj-audio-actions :is(a,button){padding:12px;border:var(--rah-rule)!important;border-radius:7px;background:var(--ds-soft)!important;color:var(--ds-ink)!important;line-height:1.8;min-height:44px}
html[data-design] .siraj-audio-actions .play{background:var(--ds-ink)!important;color:var(--ds-bg)!important}
html[data-design] .page :is(.learning-highlight,.feature-card){padding:30px;border:var(--rah-rule)!important;border-radius:12px!important;background:var(--ds-panel)!important}
html[data-design] .page .lesson-reading{max-width:850px;margin:auto;padding:40px;background:var(--ds-panel);border:var(--rah-rule);line-height:2.3;border-radius:10px}
html[data-design] .page .more-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
html[data-design] .page .more-link{grid-column:auto!important;min-height:100px!important;padding:24px!important;border-radius:10px!important;box-shadow:none!important;display:flex;align-items:center;gap:20px}
html[data-design] .page .more-link:before{display:none}
html[data-design] .page .settings-card{padding:28px;border-radius:12px!important;box-shadow:none!important}
html[data-design] .page .settings-row{padding:22px 0;border-bottom:var(--rah-rule);gap:20px}
html[data-design] .page .settings-card-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:20px}
html[data-design] .page .settings-action-button{min-height:46px;padding:12px 18px;border:var(--rah-rule);border-radius:8px;background:var(--ds-bg);color:var(--ds-ink)}

/* SAHN — an architectural manuscript, index right and an inset reading folio. */
html:not([data-experience=sanctuary])[data-design=sahn] .rah-quran-workspace .quran-reader-content{border:1px solid #b9b093!important;outline:1px solid var(--ds-line);outline-offset:5px;border-radius:3px!important}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-quran-workspace .quran-surah-toolbar{background:var(--ds-panel)!important;border-bottom:3px double var(--ds-gold);margin:14px 20px 0;padding:22px 16px}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-quran-workspace .quran-surah-toolbar h2{color:var(--ds-accent)!important}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-quran-index{border-radius:80px 80px 10px 10px;padding-top:18px}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-index-heading{text-align:center}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child{grid-row:span 2;grid-template-rows:220px auto auto;background:var(--ds-hero)!important;color:var(--ds-onhero)!important;padding:32px!important;align-content:center}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child .library-item-icon{width:130px!important;height:190px!important;background:transparent!important;color:var(--ds-onhero);border-color:var(--ds-onhero);box-shadow:none!important}
html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child :is(strong,small,.library-item-tag){color:var(--ds-onhero)!important}
html:not([data-experience=sanctuary])[data-design=sahn] .page :is(.mafatih-section-card,.ziyarat-shrine-card){border-top:3px solid var(--ds-gold)!important}

/* DAFTAR — a horizontal index and typeset journal with marginal notes. */
html:not([data-experience=sanctuary])[data-design=daftar] .page.rah-quran-workspace{grid-template-columns:1fr 1fr;grid-template-areas:'heading heading' 'summary miracles' 'index index' 'extras extras' 'tools tools' 'controls controls' 'results results' 'reader reader';max-width:1120px;margin:auto}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-index{position:static;border:0;border-block:var(--rah-rule);border-radius:0;display:grid;grid-template-columns:180px 1fr;align-items:center;background:transparent;padding:12px 0}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-index-heading{display:none}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-surah-list{display:flex;overflow:auto;max-height:none;padding:8px;gap:8px}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-surah-row{width:auto;min-width:125px;flex-shrink:0;border:var(--rah-rule);padding:10px;border-radius:0}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-surah-arrow{display:none}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-reader-content{max-width:980px;margin:auto;background:transparent!important;border:0!important;overflow:visible}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-surah-toolbar{background:transparent!important;border-top:4px solid var(--ds-ink);border-bottom:var(--rah-rule);padding:26px 0}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-surah-toolbar h2{font-size:2.5rem}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-list{padding:0}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-card:not(.quran-ayah-card--basmala){display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px 30px}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-toolbar{grid-column:1;grid-row:1/span 5;align-content:start;align-items:start;flex-direction:column;border-inline-end:var(--rah-rule);padding-inline-end:12px}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-toolbar>div{margin:10px 0;gap:5px}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-card>:not(.quran-ayah-toolbar){grid-column:2;margin-block:8px}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-card--basmala>*{grid-column:auto}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-library-workspace .library-list{grid-template-columns:1fr!important;gap:0!important;border-top:3px solid var(--ds-ink)}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-library-workspace .library-item{grid-template-columns:90px minmax(0,1fr) 130px!important;grid-template-rows:auto;min-height:160px;background:transparent!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;align-items:center;padding:26px 10px!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-library-workspace .library-item-icon{width:65px!important;height:95px!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-library-workspace .library-item-tag{align-self:center}
html:not([data-experience=sanctuary])[data-design=daftar] .page :is(.mafatih-section-grid,.ziyarat-shrine-grid,.sins-topic-grid,.topical-main-category-grid,.ahlulbayt-person-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border-top:3px solid var(--ds-ink)}
html:not([data-experience=sanctuary])[data-design=daftar] .page :is(.mafatih-section-card,.ziyarat-shrine-card,.sins-topic-card,.topical-main-category-card,.ahlulbayt-person-card){border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:transparent!important}
html:not([data-experience=sanctuary])[data-design=daftar] .page :is(.nahj-text-card,.sahifa-text-card,.mafatih-article-card,.ziyarat-file-content-card,.sins-article-card){background:transparent!important;border:0!important;border-top:4px solid var(--ds-ink)!important;border-radius:0!important;padding-inline:20px!important}
html:not([data-experience=sanctuary])[data-design=daftar] .siraj-worship-tools .siraj-worship-dashboard{grid-template-columns:1fr!important;gap:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .siraj-worship-tools .siraj-worship-card{min-height:90px;flex-direction:row;align-items:center;background:transparent!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important}

/* ORBIT — a compact command workspace with a navigation rail and study panels. */
html:not([data-experience=sanctuary])[data-design=orbit] .page.rah-quran-workspace{grid-template-columns:200px minmax(0,1fr);gap:14px 18px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-index{border-radius:10px}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-index-heading{padding:20px 16px;background:var(--ds-soft)}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-study-bar{padding:12px;background:var(--ds-panel);border:var(--rah-rule);border-radius:10px}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace .quran-surah-toolbar{background:var(--ds-bg)!important;border-bottom:1px solid var(--ds-accent)}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace .quran-ayah-list{padding:12px 20px 20px}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace .quran-ayah-card{padding:24px!important;margin:14px 0!important;background:var(--ds-bg)!important;border:var(--rah-rule)!important;border-inline-start:2px solid var(--ds-accent)!important;border-radius:8px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace .quran-translation{background:var(--ds-panel)!important;padding:16px!important;border:0!important;border-radius:6px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-item{grid-template-columns:96px minmax(0,1fr)!important;grid-template-rows:auto auto;min-height:195px;border:var(--rah-rule)!important;align-items:center}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-item-icon{grid-row:span 2}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-item-tag{grid-column:2;justify-self:start}
html:not([data-experience=sanctuary])[data-design=orbit] .page :is(.nahj-text-card,.sahifa-text-card,.mafatih-article-card,.ziyarat-file-content-card,.sins-article-card){border-inline-start:3px solid var(--ds-accent)!important;border-radius:6px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .page :is(.ahlulbayt-person-card,.mafatih-section-card,.ziyarat-shrine-card){background:linear-gradient(125deg,var(--ds-panel),var(--ds-bg))!important;border-radius:8px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .siraj-worship-tools .siraj-worship-card{border-top:2px solid var(--ds-accent)!important;border-radius:8px!important;background:var(--ds-bg)!important}

/* GARDEN — a quiet single-column reading room with a horizontal chapter shelf. */
html:not([data-experience=sanctuary])[data-design=garden] .page.rah-quran-workspace{grid-template-columns:1fr 1fr;grid-template-areas:'heading heading' 'summary miracles' 'index index' 'extras extras' 'tools tools' 'controls controls' 'results results' 'reader reader';max-width:1080px;margin:auto}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-index{position:static;border:0;border-radius:20px;display:grid;grid-template-columns:200px minmax(0,1fr);padding:16px;background:var(--ds-soft)}
html:not([data-experience=sanctuary])[data-design=garden] .rah-index-heading{grid-column:1;padding:10px;border:0}
html:not([data-experience=sanctuary])[data-design=garden] .rah-index-heading>span,html:not([data-experience=sanctuary])[data-design=garden] .rah-index-heading small{display:none}
html:not([data-experience=sanctuary])[data-design=garden] .rah-index-search{grid-column:1;grid-row:2;padding:6px}
html:not([data-experience=sanctuary])[data-design=garden] .rah-surah-list{grid-column:2;grid-row:1/span 3;display:flex;gap:8px;max-height:130px;overflow:auto;padding:8px}
html:not([data-experience=sanctuary])[data-design=garden] .rah-surah-row{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:100px;width:100px;border:0;border-radius:14px;background:var(--ds-panel)}
html:not([data-experience=sanctuary])[data-design=garden] .rah-surah-row[aria-current=true]{background:var(--ds-ink);color:var(--ds-bg)}
html:not([data-experience=sanctuary])[data-design=garden] .rah-surah-row[aria-current=true] .rah-surah-number{color:inherit}
html:not([data-experience=sanctuary])[data-design=garden] .rah-surah-arrow{display:none}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-reader-content{border:0!important;border-radius:30px!important;box-shadow:0 16px 60px #2541230a!important;padding:10px 30px!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-surah-toolbar{position:relative;justify-content:center;text-align:center;padding:40px 20px;background:transparent!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-surah-navigation{position:absolute;inset-inline-end:0}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-surah-toolbar h2{font-size:2.3rem}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-arabic{text-align:center}
html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-translation{border:0!important;text-align:center;max-width:640px;margin:18px auto;padding:0!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-item{grid-template-columns:110px 1fr!important;grid-template-rows:auto auto;align-items:center;min-height:230px;padding:30px!important;border:0!important;border-radius:24px!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-item-icon{grid-row:span 2}
html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-item-tag{grid-column:2;justify-self:start}
html:not([data-experience=sanctuary])[data-design=garden] .page :is(.mafatih-section-card,.ziyarat-shrine-card,.sins-topic-card,.topical-main-category-card){border:0!important;border-radius:20px!important;padding:30px!important}
html:not([data-experience=sanctuary])[data-design=garden] .page .ahlulbayt-person-card{grid-template-columns:1fr!important;text-align:center;justify-items:center;padding:30px 20px!important;min-height:200px;border:0!important;border-radius:24px!important}
html:not([data-experience=sanctuary])[data-design=garden] .page .ahlulbayt-person-icon{border-radius:50%!important;width:60px;height:60px}
html:not([data-experience=sanctuary])[data-design=garden] .page :is(.nahj-text-card,.sahifa-text-card,.mafatih-article-card,.ziyarat-file-content-card,.sins-article-card){border:0!important;border-radius:28px!important}
html:not([data-experience=sanctuary])[data-design=garden] .siraj-worship-tools .siraj-worship-card{border:0!important;border-radius:24px!important;min-height:200px;align-items:center;text-align:center}

/* ATLAS — numbered columns, asymmetric collection and parallel Arabic/translation. */
html:not([data-experience=sanctuary])[data-design=atlas] .page.rah-quran-workspace{grid-template-columns:190px minmax(0,1fr);gap:0 28px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace>*{margin-bottom:22px}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-index{border:0;border-top:5px solid var(--ds-ink);border-radius:0;background:transparent}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-index-heading{padding-inline:0}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-index-heading strong{font-size:1.5rem}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-surah-list{padding-inline:0}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-surah-row[aria-current=true]{border-radius:0;background:var(--ds-ink);color:var(--ds-bg)}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-surah-row[aria-current=true] .rah-surah-number{color:inherit}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-reader-content{border:0!important;border-radius:0!important;background:transparent!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-surah-toolbar{background:var(--ds-hero)!important;border:1px solid var(--ds-ink);padding:30px}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-surah-toolbar h2{font-size:2.6rem;color:var(--ds-onhero)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-ayah-list{padding:0}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-ayah-card{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:28px 0!important;border-bottom:2px solid var(--ds-line)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-ayah-toolbar{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-arabic{grid-column:1;margin:0}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-translation{grid-column:2;grid-row:2;margin:0;align-self:start;padding:10px 20px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-ayah-card>:not(.quran-ayah-toolbar,.quran-arabic,.quran-translation){grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace :is(.quran-ayah-card--basmala,[data-reading-mode=arabic]) .quran-arabic{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace[data-reading-mode=arabic] .quran-arabic{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item{border:1px solid var(--ds-ink)!important;border-radius:0!important;grid-template-rows:110px auto auto;min-height:290px;padding:28px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item:first-child{grid-column:span 2!important;grid-template-columns:140px 1fr!important;grid-template-rows:1fr auto;background:var(--ds-hero)!important;align-items:center}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item:first-child .library-item-copy strong{font-size:2.1rem!important;color:var(--ds-onhero)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item-icon{width:75px!important;height:105px!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item:first-child .library-item-icon{grid-row:span 2;width:100px!important;height:155px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item:first-child .library-item-tag{grid-column:2;justify-self:start}
html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.mafatih-section-card,.ziyarat-shrine-card,.sins-topic-card,.topical-main-category-card,.ahlulbayt-person-card){border:1px solid var(--ds-ink)!important;border-radius:0!important;border-top-width:5px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-text-card,.sahifa-text-card,.mafatih-article-card,.ziyarat-file-content-card,.sins-article-card){border:0!important;border-top:5px solid var(--ds-ink)!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=atlas] .siraj-worship-tools .siraj-worship-card{border:1px solid var(--ds-ink)!important;border-radius:0!important;min-height:170px}
html:not([data-experience=sanctuary])[data-design=atlas] .siraj-worship-tools .siraj-worship-card:first-child{grid-column:span 2;background:var(--ds-hero)!important;color:var(--ds-onhero)!important}

/* Responsive layouts are explicit; reading tools stay available at every width. */
/* Home has its own composition rather than inheriting catalog card styling. */
/* Ahlulbayt directory: people navigation stays alongside the selected content. */
html[data-design] .page.rah-ahlulbayt-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-areas:'intro intro' 'people content' 'people results';align-items:start;gap:24px}
html[data-design] .rah-ahlulbayt-workspace>.page-intro{grid-area:intro}
html[data-design] .rah-ahlulbayt-workspace>.ahlulbayt-panel{grid-area:people;position:sticky;top:22px;padding:18px!important;max-height:86dvh;overflow:auto;scrollbar-width:thin}
html[data-design] .rah-ahlulbayt-workspace>.ahlulbayt-content-section{grid-area:content;min-width:0}
html[data-design] .rah-ahlulbayt-workspace>.ahlulbayt-results-section{grid-area:results;min-width:0}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-card{grid-template-columns:34px minmax(0,1fr)!important;min-height:68px!important;padding:14px 8px!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:transparent!important;gap:12px}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-card:before{display:none}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-icon{width:32px;height:38px;border-radius:6px!important}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-icon svg{width:18px;height:18px}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-card strong{font-size:.78rem}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-card.is-selected{background:var(--ds-soft)!important;border-radius:8px!important;color:var(--ds-accent)!important}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-panel-heading{margin-bottom:12px;padding-bottom:16px}
html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-results-heading{padding:24px 0;display:grid;gap:18px;border-top:var(--rah-rule)}
html:not([data-experience=sanctuary])[data-design=daftar] .page.rah-ahlulbayt-workspace{grid-template-columns:1fr;grid-template-areas:'intro' 'people' 'content' 'results'}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-ahlulbayt-workspace>.ahlulbayt-panel{position:static;max-height:none;border:0!important;border-block:var(--rah-rule)!important;background:transparent!important;padding:12px 0!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-ahlulbayt-workspace .ahlulbayt-panel-heading{display:none}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-ahlulbayt-workspace .ahlulbayt-person-grid{display:flex!important;overflow:auto;border:0;gap:8px!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-ahlulbayt-workspace .ahlulbayt-person-card{flex:0 0 180px;min-height:60px!important;border:var(--rah-rule)!important;padding:12px!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-ahlulbayt-workspace .ahlulbayt-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html:not([data-experience=sanctuary])[data-design=orbit] .page.rah-ahlulbayt-workspace{grid-template-columns:210px minmax(0,1fr);gap:18px}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-ahlulbayt-workspace>.ahlulbayt-panel{background:var(--ds-bg)!important;border-radius:8px!important;padding:14px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-ahlulbayt-workspace .ahlulbayt-person-card.is-selected{border-inline-start:3px solid var(--ds-accent)!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=garden] .page.rah-ahlulbayt-workspace{grid-template-columns:1fr;grid-template-areas:'intro' 'people' 'content' 'results'}
html:not([data-experience=sanctuary])[data-design=garden] .rah-ahlulbayt-workspace>.ahlulbayt-panel{position:static;max-height:none;background:var(--ds-soft)!important;border:0!important;border-radius:22px!important;padding:22px!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-ahlulbayt-workspace .ahlulbayt-person-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-ahlulbayt-workspace .ahlulbayt-person-card{grid-template-columns:1fr!important;justify-items:center;text-align:center;padding:20px 8px!important;border:0!important;border-radius:12px!important;background:var(--ds-panel)!important;min-height:120px!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-ahlulbayt-workspace .ahlulbayt-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-ahlulbayt-workspace>.ahlulbayt-panel{border:0!important;border-top:5px solid var(--ds-ink)!important;border-radius:0!important;padding:18px 0!important;background:transparent!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-ahlulbayt-workspace .ahlulbayt-person-card{grid-template-columns:1fr!important;min-height:62px!important;border-bottom:var(--rah-rule)!important;padding-inline:15px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-ahlulbayt-workspace .ahlulbayt-person-icon{display:none}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-ahlulbayt-workspace .ahlulbayt-person-card.is-selected{background:var(--ds-ink)!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-ahlulbayt-workspace .ahlulbayt-person-card.is-selected strong{color:var(--ds-bg)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-ahlulbayt-workspace .ahlulbayt-category-card{border-radius:0!important;border:1px solid var(--ds-ink)!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-worship-workspace .ritual-grid{grid-template-columns:1fr!important;gap:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .rah-worship-workspace .ritual-card{min-height:90px;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;background:transparent!important;padding:20px 0!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-worship-workspace .ritual-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .rah-worship-workspace .ritual-card{display:flex;flex-direction:column;align-items:start;min-height:165px;padding:24px!important;border-radius:8px!important;border-top:2px solid var(--ds-accent)!important}
html:not([data-experience=sanctuary])[data-design=garden] .rah-worship-workspace .ritual-card{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:175px;border:0!important;border-radius:24px!important;background:var(--ds-soft)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-worship-workspace .ritual-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-worship-workspace .ritual-card{border:1px solid var(--ds-ink)!important;border-radius:0!important;min-height:150px;flex-direction:column;align-items:start}
html:not([data-experience=sanctuary])[data-design=atlas] .rah-worship-workspace .ritual-card:first-child{grid-column:span 2;background:var(--ds-hero)!important;flex-direction:row}
@media(max-width:900px){html[data-design] .page.rah-ahlulbayt-workspace{grid-template-columns:1fr!important;grid-template-areas:'intro' 'people' 'content' 'results'}html[data-design] .rah-ahlulbayt-workspace>.ahlulbayt-panel{position:static;max-height:none;padding:12px!important}html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-panel-heading{display:none}html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-grid{display:flex!important;overflow:auto;gap:8px!important}html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-card{flex:0 0 160px;min-height:64px!important;grid-template-columns:1fr!important;text-align:center;justify-items:center;padding:14px 10px!important;border:var(--rah-rule)!important;border-radius:8px!important}html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-person-icon{display:none}html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-design] .rah-worship-workspace .ritual-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){html[data-design] .rah-worship-workspace .ritual-grid{grid-template-columns:1fr!important}html[data-design] .rah-worship-workspace .ritual-card{grid-column:auto!important;flex-direction:row;align-items:center;text-align:right;min-height:110px}html[data-design] .rah-ahlulbayt-workspace .ahlulbayt-category-grid{grid-template-columns:1fr!important}}
html[data-design] .page-home .quick-action{box-shadow:none!important;border-radius:10px!important;min-height:104px;padding:22px;gap:18px}
html[data-design] .page-home .quick-action strong{font-size:.97rem}
html[data-design] .page-home .quick-action small{font-size:.73rem;margin-top:7px}
html[data-design] .page-home .quick-action-icon{background:transparent!important;border:var(--rah-rule);border-radius:8px!important;width:46px;height:48px}
html[data-design] .page-home .section-heading{padding-bottom:16px;margin-bottom:18px;border-bottom:var(--rah-rule)}
html[data-design] .page-home .section-heading h2{font-size:1.25rem}
html[data-design] .page-home .daily-ethics-card{border-radius:12px!important;padding:30px!important;box-shadow:none!important;min-height:250px;text-align:right}
html[data-design] .page-home .daily-ethics-card-header{padding-bottom:18px;border-bottom:var(--rah-rule);margin-bottom:20px}
html[data-design] .page-home .daily-ethics-arabic{font-size:1.6rem!important;line-height:2.2!important;margin:20px 0}
html[data-design] .page-home .daily-ethics-note{border-top:var(--rah-rule);padding-top:16px;font-size:.8rem;line-height:2}
html[data-design] .page-home .hero-main h2{font-weight:700;letter-spacing:-.05em}
html[data-design] .page-home .hero-countdown strong{font-variant-numeric:tabular-nums;font-weight:350}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:28px;align-items:start}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .welcome-row{grid-column:1/-1;padding-bottom:20px;border-bottom:var(--rah-rule)}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .hero-card{min-height:426px;border-radius:12px!important}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .hero-main{padding:38px 30px 100px}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .hero-orbit{width:160px;height:240px;top:100px;left:-20px;opacity:.3}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .quick-actions-grid{grid-template-columns:1fr!important;gap:10px!important}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .quick-action{min-height:85px;padding:16px 18px}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .daily-ethics-section{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=sahn] .page-home .daily-ethics-card--quran{border-top:3px solid var(--ds-gold)!important}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .hero-card{background:transparent!important;border-top:4px solid var(--ds-ink)!important;border-bottom:var(--rah-rule)!important;min-height:330px}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .hero-main{padding:30px 0 90px}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .hero-main h2{font-size:3.2rem}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .quick-action{background:transparent!important;border:0!important;border-bottom:var(--rah-rule)!important;border-radius:0!important;padding:18px 4px}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .quick-action-icon{border:0;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .daily-ethics-grid{grid-template-columns:1.25fr 1fr;gap:40px}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home .daily-ethics-card{padding:24px 0!important;border:0!important;border-bottom:3px double var(--ds-line)!important;border-radius:0!important;background:transparent!important}
html:not([data-experience=sanctuary])[data-design=orbit] .page-home .hero-card{background:linear-gradient(145deg,var(--ds-hero),var(--ds-panel))!important;border-radius:12px!important;min-height:440px}
html:not([data-experience=sanctuary])[data-design=orbit] .page-home .hero-main{padding-top:45px}
html:not([data-experience=sanctuary])[data-design=orbit] .page-home .hero-countdown strong{font-size:3.2rem}
html:not([data-experience=sanctuary])[data-design=orbit] .page-home .quick-action{border-radius:8px!important;min-height:87px;background:var(--ds-panel)!important}
html:not([data-experience=sanctuary])[data-design=orbit] .page-home .daily-ethics-card{background:var(--ds-panel)!important;border-top:2px solid var(--ds-accent)!important;border-radius:8px!important}
html:not([data-experience=sanctuary])[data-design=garden] .page-home{max-width:1100px;margin:auto}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .welcome-row{min-height:125px}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .welcome-row h1{font-size:2.8rem;font-weight:500}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .hero-card{border-radius:24px!important;min-height:310px;border:0!important;background:linear-gradient(115deg,var(--ds-hero),var(--ds-soft))!important}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .hero-orbit{display:none}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .hero-main{padding-top:36px}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .hero-main h2{font-size:2.6rem;font-weight:500}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .quick-actions-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .quick-action{border:0!important;border-radius:18px!important;padding:25px 16px;min-height:165px}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .quick-action-icon{width:50px;height:50px;border:0;border-radius:50%!important;background:var(--ds-soft)!important}
html:not([data-experience=sanctuary])[data-design=garden] .page-home .daily-ethics-card{border:0!important;border-radius:20px!important;padding:36px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .hero-card{border-radius:0!important;min-height:420px;box-shadow:none!important;border:0!important;border-bottom:6px solid var(--ds-ink)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .hero-main{padding:35px 32px 100px}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .hero-main h2{font-size:3.7rem}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .quick-action{border-radius:0!important;box-shadow:none!important;padding:20px;min-height:90px;border:0!important;border-bottom:var(--rah-rule)!important;background:transparent!important}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .quick-action-icon{border-radius:0!important;border:0}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .daily-ethics-grid{grid-template-columns:1.4fr 1fr;gap:0;border:1px solid var(--ds-ink)}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .daily-ethics-card{border:0!important;border-radius:0!important;background:var(--ds-panel)!important;padding:32px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home .daily-ethics-card+.daily-ethics-card{border-inline-start:1px solid var(--ds-ink)!important}
/* Preserve existing reader font controls; only the default family is replaced. */
html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-text-card,.sahifa-text-card){display:grid;grid-template-columns:1fr 1fr;gap:24px}
html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-text-card,.sahifa-text-card)>*{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-arabic-block,.sahifa-arabic-block){grid-column:1}
html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-translation-block,.sahifa-translation-block){grid-column:2;grid-row:3;border-inline-start:var(--rah-rule)!important;padding-inline-start:24px!important}
html:not([data-experience=sanctuary])[data-design=daftar] .page :is(.nahj-text-card-heading,.sahifa-text-card-heading,.mafatih-article-meta){padding-bottom:30px;border-bottom:4px double var(--ds-ink)}
html:not([data-experience=sanctuary])[data-design=garden] .page :is(.nahj-text-card-heading,.sahifa-text-card-heading,.mafatih-article-meta){justify-content:center;text-align:center}
html:not([data-experience=sanctuary])[data-design=orbit] .page :is(.nahj-arabic-block,.sahifa-arabic-block){padding:24px!important;background:var(--ds-bg)!important;border-radius:8px!important}
/* Worship category composition is intentionally different in each theme. */
html:not([data-experience=sanctuary])[data-design=daftar] .siraj-worship-tools .siraj-worship-category{display:grid;grid-template-columns:200px 1fr;align-items:center;gap:24px;min-height:100px;border:0!important;border-bottom:var(--rah-rule)!important;background:transparent!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .siraj-worship-tools .siraj-worship-category-top{margin:0}
html:not([data-experience=sanctuary])[data-design=orbit] .siraj-worship-tools .siraj-worship-category{border-inline-start:3px solid var(--ds-accent)!important;background:var(--ds-bg)!important;border-radius:8px!important}
html:not([data-experience=sanctuary])[data-design=garden] .siraj-worship-tools .siraj-worship-category{min-height:220px;border:0!important;border-radius:22px!important;padding:30px!important}
html:not([data-experience=sanctuary])[data-design=garden] .siraj-worship-tools .siraj-worship-category-icon{width:60px;height:60px;border-radius:50%}
html:not([data-experience=sanctuary])[data-design=atlas] .siraj-worship-tools .siraj-worship-category{border:1px solid var(--ds-ink)!important;border-radius:0!important;min-height:190px;padding:28px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .siraj-worship-tools .siraj-worship-category:first-child{grid-column:span 2;background:var(--ds-hero)!important}
@media(max-width:1000px){html:not([data-experience=sanctuary])[data-design=sahn] .page-home{grid-template-columns:1fr!important}html:not([data-experience=sanctuary])[data-design=sahn] .page-home .quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not([data-experience=sanctuary])[data-design=sahn] .page-home .hero-card{min-height:340px}html:not([data-experience=sanctuary])[data-design=garden] .page-home .quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){html[data-design] .page-home{grid-template-columns:1fr!important}html[data-design] .page-home .daily-ethics-grid{grid-template-columns:1fr!important;gap:16px;border:0}html[data-design] .page-home .daily-ethics-card{padding:24px!important}html:not([data-experience=sanctuary])[data-design=atlas] .page-home .daily-ethics-card+.daily-ethics-card{border:0!important}html[data-design] .page-home .hero-card{min-height:320px!important}html[data-design] .page-home .hero-main{padding:28px 24px 90px!important}html[data-design] .page-home .hero-main h2{font-size:2.5rem!important}html[data-design] .page-home .hero-countdown strong{font-size:2rem!important}html[data-design] .page-home .quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-design] .page-home .quick-action{min-height:130px;padding:16px;display:flex;flex-direction:column;align-items:start;text-align:right;gap:12px}html[data-design] .page-home .quick-action strong{font-size:.84rem}html[data-design] .page-home .quick-action small{font-size:.68rem}html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-text-card,.sahifa-text-card){display:block}html:not([data-experience=sanctuary])[data-design=atlas] .page :is(.nahj-translation-block,.sahifa-translation-block){border:0!important;padding-inline:0!important}html:not([data-experience=sanctuary])[data-design=daftar] .siraj-worship-tools .siraj-worship-category{grid-template-columns:1fr;gap:10px}html:not([data-experience=sanctuary])[data-design=atlas] .siraj-worship-tools .siraj-worship-category:first-child{grid-column:auto}}
@media(min-width:1400px){html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace[data-reading-mode=research] .quran-ayah-card{display:grid;grid-template-columns:1fr 1fr;gap:20px}html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace[data-reading-mode=research] .quran-ayah-toolbar{grid-column:1/-1}html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace[data-reading-mode=research] .quran-ayah-card>:not(.quran-ayah-toolbar,.quran-arabic,.quran-translation){grid-column:1/-1}}
@media(max-width:1100px){html[data-design] .page-wrap{padding-inline:24px}html[data-design] .page.rah-quran-workspace{grid-template-columns:190px minmax(0,1fr)}html:not([data-experience=sanctuary])[data-design=daftar] .page.rah-quran-workspace,html:not([data-experience=sanctuary])[data-design=garden] .page.rah-quran-workspace{grid-template-columns:1fr 1fr}html[data-design] .rah-library-workspace .library-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not([data-experience=sanctuary])[data-design=daftar] .rah-library-workspace .library-list{grid-template-columns:1fr!important}html[data-design] .page .ahlulbayt-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-design] .siraj-worship-tools .siraj-worship-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not([data-experience=sanctuary])[data-design=daftar] .siraj-worship-tools .siraj-worship-dashboard{grid-template-columns:1fr!important}html[data-design] .rah-quran-workspace .quran-ayah-list{padding-inline:22px}html[data-design] .rah-quran-workspace .quran-surah-toolbar{padding-inline:22px}html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-item,html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-item{grid-template-columns:1fr!important;grid-template-rows:130px auto auto}html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-item-icon,html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-item-icon{grid-row:auto}html:not([data-experience=sanctuary])[data-design=garden] .rah-library-workspace .library-item-tag,html:not([data-experience=sanctuary])[data-design=orbit] .rah-library-workspace .library-item-tag{grid-column:auto}}
@media(max-width:760px){html[data-design] .page-wrap{padding:18px 16px}html[data-design] .page.rah-quran-workspace{grid-template-columns:1fr 1fr!important;grid-template-areas:'heading heading' 'summary miracles' 'index index' 'extras extras' 'tools tools' 'controls controls' 'results results' 'reader reader';gap:16px!important}html[data-design] .page :is(.quran-reader-heading,.mafatih-reader-heading,.ziyarat-reader-heading,.sins-reader-heading){flex-wrap:wrap;gap:16px;padding:12px 0 20px!important}html[data-design] .page .quran-back-button{font-size:.7rem}html[data-design] .page :is(.quran-reader-heading-icon,.mafatih-heading-icon,.ziyarat-heading-icon,.sins-heading-icon){display:none}html[data-design] .page :is(.quran-reader-heading,.mafatih-reader-heading,.ziyarat-reader-heading,.sins-reader-heading)>div{min-width:55%}html[data-design] .rah-quran-index{position:static;display:grid;grid-template-columns:1fr;border-radius:10px;padding:0}html[data-design] .rah-index-heading{display:none}html[data-design] .rah-index-search{grid-column:1;grid-row:auto;padding:12px}html[data-design] .rah-surah-list{grid-column:1;grid-row:auto;display:flex;max-height:none;padding:0 12px 12px;gap:7px;overflow:auto}html[data-design] .rah-surah-row{width:auto;min-width:120px;min-height:46px;flex-shrink:0;display:flex;flex-direction:row;gap:8px;justify-content:start;border:var(--rah-rule);border-radius:6px;padding:10px}html[data-design] .rah-surah-arrow{display:none}html[data-design] .rah-resume{grid-row:auto;grid-column:1}html[data-design] .rah-study-bar{padding:0 0 14px;gap:10px;margin:0}html[data-design] .rah-reading-modes{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}html[data-design] .rah-reading-modes button{font-size:.68rem;padding-inline:7px}html[data-design] .rah-study-actions{gap:6px}html[data-design] .rah-study-actions button{font-size:.65rem}html[data-design] .rah-quran-workspace>.quran-reader-summary{min-height:100px;padding:16px!important}html[data-design] .rah-quran-workspace>.quran-reader-summary strong{font-size:1.1rem}html[data-design] .rah-quran-workspace>.quran-reader-summary small{font-size:.63rem;line-height:1.9}html[data-design] .rah-quran-workspace>.quran-miracles-entry{min-height:100px;padding:16px;gap:8px;font-size:.75rem}html[data-design] .rah-quran-workspace .quran-miracles-entry-icon{display:none}html[data-design] .rah-quran-workspace .quran-miracles-entry-copy small{font-size:.63rem}html[data-design] .rah-quran-workspace>.quran-reader-content{padding:0!important;border-radius:8px!important;outline:none}html[data-design] .rah-quran-workspace .quran-surah-toolbar{padding:22px 18px;margin:0}html[data-design] .rah-quran-workspace .quran-surah-toolbar h2{font-size:1.6rem}html[data-design] .rah-quran-workspace .quran-ayah-list{padding:0 18px 20px}html[data-design] .rah-quran-workspace .quran-ayah-search{margin:16px}html[data-design] .rah-quran-workspace .quran-arabic{font-size:calc(1.45rem * var(--rah-reading-scale))!important;line-height:2.5!important}html[data-design] .rah-quran-workspace .quran-translation p{font-size:calc(.85rem * var(--rah-reading-scale))}html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-ayah-card{grid-template-columns:1fr;gap:12px}html:not([data-experience=sanctuary])[data-design=atlas] .rah-quran-workspace .quran-translation{grid-column:1;grid-row:auto}html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-card:not(.quran-ayah-card--basmala){grid-template-columns:1fr;gap:12px}html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-toolbar{grid-column:1;grid-row:auto;flex-direction:row;border:0;padding:0;align-items:center}html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-toolbar>div{margin:0;margin-inline-start:auto}html:not([data-experience=sanctuary])[data-design=daftar] .rah-quran-workspace .quran-ayah-card>:not(.quran-ayah-toolbar){grid-column:1}html:not([data-experience=sanctuary])[data-design=orbit] .rah-quran-workspace .quran-ayah-card{padding:18px 14px!important}html:not([data-experience=sanctuary])[data-design=garden] .rah-quran-workspace .quran-surah-navigation{position:static;margin-inline-start:auto}html[data-design] .rah-catalog-tools{grid-template-columns:1fr;gap:16px}html[data-design] .rah-library-workspace .library-hero{padding:26px!important;min-height:170px}html[data-design] .rah-library-workspace .library-item{padding:20px!important;min-height:290px}html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child{grid-row:auto;grid-template-rows:140px auto auto;padding:20px!important}html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child .library-item-icon{width:88px!important;height:125px!important}html[data-design] .page :is(.ahlulbayt-person-grid,.mafatih-section-grid,.ziyarat-shrine-grid,.sins-topic-grid,.topical-main-category-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-design] .page .ahlulbayt-person-card{grid-template-columns:1fr!important;gap:12px;min-height:145px}html[data-design] .page :is(.mafatih-section-card,.ziyarat-shrine-card,.sins-topic-card,.topical-main-category-card){grid-template-columns:1fr;gap:12px;padding:20px!important}html[data-design] .page :is(.mafatih-section-card,.ziyarat-shrine-card,.sins-topic-card,.topical-main-category-card)>svg{display:none}html[data-design] .page .virtual-ziyarat-layout{grid-template-columns:1fr}html[data-design] .page .virtual-ziyarat-groups{position:static}html[data-design] .page :is(.nahj-reader-controls,.sahifa-reader-controls){grid-template-columns:1fr!important}html[data-design] .page :is(.mafatih-reader-summary,.nahj-reader-summary,.sahifa-reader-summary,.ziyarat-reader-summary,.sins-reader-summary){align-items:start;flex-direction:column}html[data-design] .siraj-worship-body{padding:18px!important}html[data-design] .siraj-worship-head{padding:20px!important}html[data-design] .page .lesson-reading{padding:24px}html[data-design] .page .more-links{grid-template-columns:1fr!important}html[data-design] .page .settings-card{padding:20px}html[data-design] .page :is(.nahj-text-card,.sahifa-text-card,.mafatih-article-card,.ziyarat-file-content-card,.sins-article-card){padding:24px 20px!important}}
@media(max-width:480px){html[data-design] .rah-library-workspace .library-list{grid-template-columns:1fr!important;gap:16px!important}html[data-design] .rah-library-workspace .library-item{grid-template-columns:84px 1fr!important;grid-template-rows:auto auto;min-height:180px!important;gap:16px!important;grid-column:auto!important}html[data-design] .rah-library-workspace .library-item-icon{grid-row:span 2!important;width:65px!important;height:100px!important}html[data-design] .rah-library-workspace .library-item-copy strong{font-size:1.04rem!important}html[data-design] .rah-library-workspace .library-item-tag{grid-column:2!important;justify-self:start}html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child{grid-template-rows:auto auto}html:not([data-experience=sanctuary])[data-design=sahn] .rah-library-workspace .library-item:first-child .library-item-icon{width:65px!important;height:100px!important}html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item:first-child .library-item-copy strong{font-size:1.3rem!important}html:not([data-experience=sanctuary])[data-design=atlas] .rah-library-workspace .library-item:first-child .library-item-icon{width:65px!important;height:100px!important}html[data-design] .rah-quran-workspace>.quran-reader-controls{grid-template-columns:1fr!important;padding:16px!important}html[data-design] .page .ahlulbayt-category-grid{grid-template-columns:1fr!important}html[data-design] .page .ahlulbayt-panel{padding:18px!important}html[data-design] .siraj-worship-tools .siraj-worship-dashboard{grid-template-columns:1fr!important}html:not([data-experience=sanctuary])[data-design=atlas] .siraj-worship-tools .siraj-worship-card:first-child{grid-column:auto}html[data-design] .page :is(.mafatih-entry-card,.nahj-entry-card,.sahifa-entry-card,.sins-entry-card,.ziyarat-file-card){padding:18px 14px!important;gap:12px}html[data-design] .page :is(.nahj-entry-navigation,.sahifa-entry-navigation,.mafatih-entry-navigation,.ziyarat-file-navigation,.sins-entry-navigation){gap:10px}html[data-design] .page :is(.nahj-entry-navigation,.sahifa-entry-navigation,.mafatih-entry-navigation,.ziyarat-file-navigation,.sins-entry-navigation) button{padding:14px;font-size:.72rem}html[data-design] .siraj-audio-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html[data-design] *{scroll-behavior:auto!important}}
