/* v138: consolidation & precision corrections, built on the complete v137 source. */
.sbs138-page :where(.sbs138-quick-steps,.sbs138-actions,.sbs138-reference-links){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.sbs138-page .sbs138-quick-steps{max-width:1100px;margin:20px auto 22px;padding:12px 16px;border:1px solid #dbcda9;border-radius:17px;background:#faf6ff}
.sbs138-quick-steps a{color:#532e69!important;font-size:.89rem;font-weight:740;text-decoration:none!important;padding:9px 12px;border:1px solid #e5d6ea;border-radius:12px;background:#fff}
.sbs138-quick-steps a:focus-visible,.sbs138-quick-steps a:hover{outline:2px solid #efc87f;outline-offset:2px}
.sbs138-expander{display:block;margin:22px auto;max-width:1140px;padding:0;border:1px solid #dfc5aa;border-radius:18px;background:#fffaf4;box-shadow:0 8px 18px #2011320d;overflow:hidden;color:#251b31}
.sbs138-expander>summary{display:list-item;cursor:pointer;list-style-position:inside;padding:18px 21px;font-weight:760;color:#3c2456;font-size:1.05rem}
.sbs138-expander>summary:hover,.sbs138-expander[open]>summary{background:#f4e9fa}
.sbs138-expander>summary:focus-visible{outline:3px solid #bc8d4d;outline-offset:-3px}
.sbs138-expander-inner{padding:10px clamp(14px,2.8vw,26px) 23px;min-width:0;overflow-wrap:anywhere}
.sbs138-expander-inner img,.sbs138-expander-inner iframe{max-width:100%;height:auto}
.sbs138-expander-inner table{width:100%;border-collapse:collapse;max-width:100%}
.sbs138-expander-inner figure:has(table){max-width:100%;overflow-x:auto}
.sbs138-expander-inner figure{margin:14px 0}
.sbs138-video-choice{padding:24px;border-radius:20px;background:linear-gradient(125deg,#24183c,#343055);color:white;display:flex;align-items:center;gap:20px;justify-content:space-between;margin:20px 0 28px}
.sbs138-video-choice h2{color:#fff;margin:5px 0;font:400 clamp(1.5rem,3vw,2rem)/1.2 Georgia,serif}
.sbs138-video-choice p{color:#f0e7f0;font-size:.94rem;line-height:1.55;max-width:610px;margin:7px 0}
.sbs138-eyebrow{font-size:.73rem;font-weight:850;letter-spacing:.14em;color:#dcb56f}
.sbs138-video-buttons{display:grid;gap:9px;min-width:205px}
.sbs138-video-buttons a,.sbs138-actions a{padding:11px 15px;border:1px solid #d9bd85;border-radius:12px;background:#efd3a4;color:#291836!important;text-decoration:none!important;font-size:.84rem;font-weight:800}
.sbs138-video-buttons a:last-child,.sbs138-actions a:not(.sbs138-primary){background:#ffffff0b;color:white!important}
/* Teaching: the academy should be the featured learning workspace, not a squeezed sidebar. */
.sbs138-learn-how-to-perform-salah main .article-layout{max-width:1200px;width:min(1200px,calc(100% - 30px));display:block;margin:24px auto}
.sbs138-learn-how-to-perform-salah main article.article{width:100%;max-width:none;min-width:0}
.sbs138-learn-how-to-perform-salah main aside.toc{display:none}
.sbs138-learn-how-to-perform-salah .sbs77-academy{width:100%;max-width:none;margin:15px auto}
.sbs138-learn-how-to-perform-salah #salah-foundations-learning{max-width:1100px;margin:25px auto}
.sbs138-learn-how-to-perform-salah #academy-audio{max-width:680px}
/* Daily prayers: show five clear first choices, then make secondary reference readable on demand. */
.sbs138-the-5-daily-prayers #choose-a-prayer{padding-top:24px;padding-bottom:25px}
.sbs138-the-5-daily-prayers .daily-prayer-map-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.sbs138-the-5-daily-prayers .daily-prayer-map-grid>a{min-width:0;min-height:140px;padding:20px 14px}
.sbs138-the-5-daily-prayers .daily-prayer-map-grid .sbs138-witr-support{grid-column:1/-1;min-height:auto;max-width:340px}
.sbs138-the-5-daily-prayers .article-layout{max-width:1120px;width:calc(100% - 28px);display:block;margin:20px auto}
.sbs138-the-5-daily-prayers .article-layout>.article{max-width:none;width:100%;min-width:0}
.sbs138-the-5-daily-prayers .sbs138-reference-article>details{margin:14px 0}
.sbs138-choice{max-width:1110px;margin:5px auto 28px}
.sbs138-choice .rakat-chooser{padding:10px 0;background:transparent}
.sbs138-choice .rakat-chooser .container{width:100%;max-width:none}
.sbs138-the-5-daily-prayers .wp-block-table{overflow-x:auto}
/* Historic prayer-link URL: compact and useful, not another competing article. */
.sbs138-handoff{background:linear-gradient(120deg,#1c0e35,#39234f);padding:clamp(45px,6vw,82px) 18px 95px;color:#fff;min-height:65vh}
.sbs138-handoff-inner{width:min(1050px,100%);margin:auto}
.sbs138-handoff h1{font:400 clamp(2.4rem,5vw,4.5rem)/1.1 Georgia,serif;color:white;margin:12px 0 18px}
.sbs138-handoff p{font-size:1.05rem;line-height:1.7;max-width:740px;color:#e2d5ea}
.sbs138-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:30px 0}
.sbs138-guide-grid a{padding:22px;background:#ffffff12;border:1px solid #e6cb9580;border-radius:18px;text-decoration:none!important;color:#fff!important;font-weight:780}
.sbs138-reference-links a{color:#f6d99f!important;padding:11px;text-underline-offset:3px}
/* Start Here - supporting routes remain accessible but no longer compete with the six-step pathway. */
.sbs138-start-here .sbs138-start-extra,.sbs138-start-here .sbs138-start-extras{width:min(1110px,calc(100% - 30px))}
.sbs138-start-here .sbs138-expander-inner>section{width:100%;max-width:none;margin:0;padding:20px 0}
/* Alphabet: show eight cards first; retain complete 28-letter data and interactive curriculum. */
.sbs138-arabic-alphabet .alphabet-grid .sbs138-alpha-later{display:none}
.sbs138-arabic-alphabet.sbs138-all-letters .alphabet-grid .sbs138-alpha-later{display:block}
.sbs138-arabic-alphabet .alphabet-grid{direction:rtl}
.sbs138-arabic-alphabet .alphabet-grid .alpha-card{direction:ltr;min-width:0}
.sbs138-letter-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(1100px,calc(100% - 28px));margin:18px auto 38px;padding:19px 22px;border:1px solid #dcc5e8;border-radius:18px;background:#fff8f1}
.sbs138-letter-toggle p{margin:0;color:#4b355a;line-height:1.5}
.sbs138-letter-toggle button{flex:none;cursor:pointer;border-radius:12px;padding:13px 19px;border:1px solid #ab7bba;background:#352049;color:#fff;font-weight:800}
.sbs138-arabic-alphabet .sbs138-sound-course{width:min(1130px,calc(100% - 25px));background:#faf3ff}
.sbs138-arabic-alphabet .sbs138-sound-course #arabic-sound-curriculum{max-width:none;margin:0;padding:15px 0}
/* Qur'an Practice & audio controls: secondary tools in details without removing logic. */
.sbs138-quran-practice .sbs138-practice-extra,.sbs138-quran-audio .sbs138-audio-extra{width:min(1140px,calc(100% - 28px))}
.sbs138-quran-practice .sbs138-expander-inner>section,.sbs138-quran-audio .sbs138-expander-inner>section{margin:0;width:100%;max-width:none;padding:18px 0}
/* Site consistency: reading length and responsive teaching tables. */
.sbs138-page :where(.article p,.sbs138-reference-article p){line-height:1.75}
.sbs138-page :where(.article figure table){font-size:clamp(.85rem,1vw,.98rem)}
.sbs138-page :where(.section,article.article) img{max-width:100%}
.sbs138-daily-adhkar .adhkar-section [lang=ar],.sbs138-daily-adhkar .adhkar-section .arabic{line-height:2.1;font-size:clamp(1.45rem,2.3vw,2rem)}
.sbs138-who-is-allah-swt .article-layout,.sbs138-fasting-sawm .article-layout{max-width:1160px;margin-inline:auto}
.sbs138-who-is-allah-swt .article p,.sbs138-fasting-sawm .article p{max-width:75ch;line-height:1.75}
/* Four truly distinct editorial treatments by time of day. */
.sbs138-scene-note{color:#b9a7c9;font-size:.83rem;text-align:center;line-height:1.55;margin:6px 0 15px}
.sbs138-daily-listening .sbs136-moment-art{isolation:isolate}
.sbs138-daily-listening .sbs136-moment-art[data-sbs138-moment=morning] img{filter:saturate(1.14) brightness(1.08)}
.sbs138-daily-listening .sbs136-moment-art[data-sbs138-moment=day] img{filter:saturate(1.06) brightness(1.06)}
.sbs138-daily-listening .sbs136-moment-art[data-sbs138-moment=evening] img{filter:saturate(1.16) brightness(.94)}
.sbs138-daily-listening .sbs136-moment-art[data-sbs138-moment=night] img{filter:hue-rotate(15deg) saturate(1.14) brightness(.56)}
.sbs138-daily-listening .sbs136-moment-art[data-sbs138-moment=night]::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,#070a2980,#080a300c)}
/* Islamic Videos: larger view without an isolated narrow blank black rail; single viewport when theatre active. */
.sbs138-islamic-videos:not(.sbs137-theatre) .sbs135-reels-shell{width:min(1180px,calc(100% - 26px))}
.sbs138-islamic-videos:not(.sbs137-theatre) .sbs135-feed-layout{grid-template-columns:minmax(0,620px) 64px;gap:15px}
.sbs138-islamic-videos .sbs135-rail{scrollbar-width:none;background:#111029;scroll-behavior:smooth}
.sbs138-islamic-videos .sbs135-rail::-webkit-scrollbar{display:none}
.sbs138-islamic-videos .sbs135-reel::before{z-index:0!important;opacity:1!important;filter:none!important;background-image:linear-gradient(180deg,rgba(8,5,24,.28),rgba(6,5,18,.08) 34%,rgba(8,5,24,.94) 91%),var(--sbs138-poster,url('/assets/editorial-v136/celestial-night.webp'))!important;background-size:cover;background-position:center}
.sbs138-islamic-videos .sbs135-video-frame{z-index:2}
.sbs138-islamic-videos .sbs135-reel-copy{z-index:3}
.sbs138-islamic-videos .sbs135-reel-top{z-index:4}
.sbs138-islamic-videos .sbs135-play-video{z-index:4}
.sbs138-islamic-videos .sbs137-reel-fallback{z-index:6}
.sbs138-islamic-videos .sbs137-stage-bar{position:relative;z-index:8}
.sbs138-feed-note{max-width:900px;margin:12px auto 4px;color:#e8d29e;line-height:1.6;font-size:13px}
body.sbs138-islamic-videos.sbs137-theatre .sbs135-reel::before{filter:none!important}
@media(min-width:701px){.sbs138-islamic-videos:not(.sbs137-theatre) .sbs135-rail{min-height:600px;height:min(82vh,810px);width:100%}}
@media(max-width:980px){.sbs138-the-5-daily-prayers .daily-prayer-map-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .sbs138-the-5-daily-prayers .daily-prayer-map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .sbs138-the-5-daily-prayers .daily-prayer-map-grid>a{padding:16px 10px;min-height:118px}
 .sbs138-video-choice{display:block;padding:20px}
 .sbs138-video-buttons{margin-top:16px}
 .sbs138-guide-grid{grid-template-columns:1fr 1fr;gap:9px}
 .sbs138-letter-toggle{display:block}
 .sbs138-letter-toggle button{width:100%;margin-top:13px}
 .sbs138-learn-how-to-perform-salah main .article-layout{width:calc(100% - 18px)}
 .sbs138-page .sbs138-quick-steps{margin:12px 9px;padding:10px}
 .sbs138-quick-steps a{flex:1 1 120px;text-align:center}
 .sbs138-islamic-videos:not(.sbs137-theatre) .sbs135-feed-layout{grid-template-columns:minmax(0,1fr) 44px;gap:6px}
 .sbs138-daily-adhkar .adhkar-section [lang=ar]{font-size:1.5rem}
}

/* v138 release polish: no competing second row of prayer guides; readable non-instructional pages. */
.sbs138-who-is-allah-swt article.article h2,.sbs138-fasting-sawm article.article h2{margin-top:36px!important;margin-bottom:16px!important;padding-bottom:10px;border-bottom:1px solid #e9d6a9;line-height:1.2}
.sbs138-who-is-allah-swt article.article,.sbs138-fasting-sawm article.article{font-size:clamp(1rem,1.2vw,1.095rem);line-height:1.8}
.sbs138-who-is-allah-swt article.article .source-note,.sbs138-fasting-sawm article.article .source-note{margin:20px 0 26px;max-width:76ch}
.sbs138-fasting-sawm .article-layout .article{min-width:0;max-width:900px}
.sbs138-daily-adhkar .adhkar-section{padding-block:clamp(38px,6vw,65px)}
.sbs138-daily-adhkar .adhkar-section-head{margin-bottom:26px;gap:20px}
.sbs138-daily-adhkar .adhkar-grid{gap:18px}
.sbs138-daily-adhkar .adhkar-card{padding:clamp(17px,2.3vw,25px);min-width:0}
.sbs138-daily-adhkar .adhkar-card h3{line-height:1.28;margin-bottom:10px}
.sbs138-daily-adhkar .adhkar-card .adhkar-arabic{font-size:clamp(1.6rem,2.25vw,2rem);line-height:2.15;overflow-wrap:normal;word-break:normal}
.sbs138-daily-adhkar .adhkar-card .translit{line-height:1.75}
.sbs138-quran-practice .sbs138-practice-extra .sbs87{width:100%;max-width:none}
.sbs138-rakat-prayers .sbs138-handoff .sbs138-guide-grid a:hover,.sbs138-rakat-prayers .sbs138-handoff .sbs138-guide-grid a:focus-visible{background:#654d79}
@media(max-width:700px){.sbs138-daily-adhkar .adhkar-section{padding-block:34px}.sbs138-who-is-allah-swt article.article,.sbs138-fasting-sawm article.article{font-size:1rem}.sbs138-page .sbs138-guide-grid{grid-template-columns:1fr}}
