/* Shared visual theme; original page content and functional scripts stay intact. */
html[lang="ar"]:root{--bg:#f6f8f9!important;--card:#fff!important;--text:#16353d!important;--muted:#677f87!important;--gold:#aa8140!important;--gold-light:#e4c58a!important;--gold-dim:#ac874c!important;--border:#dfe7e9!important;--ink:#123640!important;--ink-text:#16353d!important;--ink-deep:#f6f8f9!important;--ink-mid:#edf3f4!important;--parchment:#16353d!important;--paper:#fff!important;--mist:#536e77!important;--mist-dim:#637e86!important;--f-body-ar:Tajawal,Arial,sans-serif!important;--f-display-ar:Amiri,serif!important;color-scheme:light!important}
body.hawl-themed{margin:0!important;background:#f6f8f9!important;background-image:none!important;color:#16353d!important;font-family:Tajawal,Arial,sans-serif!important;font-size:16px!important;line-height:1.75;overflow-wrap:break-word}body.hawl-themed *{box-sizing:border-box}body.hawl-themed a{color:#325f6a}body.hawl-themed a:hover{color:#977034}body.hawl-themed :is(button,input,select,textarea){font-family:Tajawal,Arial,sans-serif}body.hawl-themed :is(a,button,input,select,textarea):focus-visible{outline:3px solid #b39150!important;outline-offset:4px}body.hawl-themed :is(img,video,iframe){max-width:100%}body.hawl-themed :is(input,select,textarea){max-width:100%;color:#21444e!important}body.hawl-themed :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){border-color:#d9e3e5!important;background-color:#fff!important;border-radius:8px!important}body.hawl-themed :is(h1,h2,h3,h4){color:#163d47!important}body.hawl-themed h1{font-family:Tajawal,Arial,sans-serif!important;font-weight:800!important;line-height:1.5!important}body.hawl-themed :is(.wrap,.container){max-width:1200px}body.hawl-themed>.topbar,body.hawl-themed>header:not(.hw-header),body.hawl-themed>nav.navbar,body.hawl-themed>footer:not(.hw-footer),body.hawl-themed .theme-toggle-btn,body.hawl-themed .theme-picker-fab{display:none!important}
.hw-header{background:#fff!important;border-bottom:1px solid #e0e7e9!important;position:relative!important;padding:0!important;color:#16353d!important;z-index:20}.hw-head-inner{max-width:1256px!important;padding:20px 28px!important;margin:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}.hw-brand{display:flex!important;gap:12px!important;align-items:center!important;text-decoration:none!important;white-space:nowrap!important}.hw-brand img{width:46px!important;height:46px!important}.hw-brand strong{display:block!important;font-size:23px!important;font-weight:800!important;line-height:1.4!important;color:#16353d!important}.hw-brand small{display:block!important;font-size:14px!important;color:#6a7c82!important;font-weight:400!important}.hw-header nav{display:flex!important;align-items:center!important;gap:24px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;width:auto!important}.hw-header nav a{display:block!important;text-decoration:none!important;font-size:15px!important;color:#617780!important;padding:10px 0!important;position:relative!important;font-weight:500!important}.hw-header nav a.is-current{color:#123640!important;font-weight:800!important}.hw-header nav a.is-current:after{content:'';position:absolute;bottom:-21px;left:8px;right:8px;height:3px;background:#b18b48}.hw-home{display:flex!important;gap:16px!important;border:1px solid #d9e2e4!important;border-radius:8px!important;padding:8px 15px!important;font-size:14px!important;text-decoration:none!important;white-space:nowrap!important}.hw-footer{display:block!important;background:#fff!important;border-top:1px solid #dfe7e9!important;margin-top:56px!important;padding:28px!important;text-align:initial!important;font-size:14px!important;color:#6b8188!important}.hw-footer>div{max-width:1200px;margin:auto;display:flex;align-items:center;gap:25px;justify-content:space-between}.hw-footer-brand{font-size:20px;font-weight:800;text-decoration:none}.hw-footer-brand small{display:block;font-size:13px;font-weight:400;color:#70878d}.hw-footer p{font-size:13px;margin:0;max-width:460px}.hw-footer nav{display:flex;gap:22px;background:none!important;padding:0!important}.hw-footer a{text-decoration:none}
body.hawl-themed :is(.hero,.page-head){padding:38px 0 28px!important;background:none!important;border-bottom:none!important;text-align:right!important}body.hawl-themed .hero h1,body.hawl-themed .page-head h1{font-size:36px!important;margin-bottom:10px!important}body.hawl-themed :is(.hero p,.lede,.page-head p){color:#6b8088!important;font-size:17px!important;line-height:1.9!important}body.hawl-themed :is(.hero,.folio-light)>.wrap{max-width:1100px!important}body.hawl-themed .folio-light{background:transparent!important;color:#16353d!important;padding-bottom:30px!important}body.hawl-themed .hero .eyebrow{color:#a48147!important;font-size:14px!important}body.hawl-themed :is(.card,.featured-card,.tile,.tool-card,.modal-box,.panel,.result,.result-box,.content-box,.article-body,.article-content,.picker-item){border-color:#dfe7e9!important;background:#fff!important;background-image:none!important;color:#16353d!important;box-shadow:none!important;border-radius:12px!important}body.hawl-themed :is(.card,.tile,.picker-item,.featured-card){transition:border-color .18s,box-shadow .18s}body.hawl-themed a:is(.card,.tile,.picker-item,.featured-card):hover{border-color:#7497a0!important;box-shadow:0 6px 22px #193c4610!important}body.hawl-themed .picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}body.hawl-themed .picker-item{font-size:20px!important;font-weight:700!important;padding:23px!important;border:1px solid #dfe7e9!important;line-height:1.6;text-decoration:none!important}body.hawl-themed .picker-item::after{content:'←';float:left;color:#a78850;margin-right:15px}body.hawl-themed :is(.modal-box,.panel){padding:26px!important}body.hawl-themed :is(.btn-primary,.btn-gold,.filter-pill.active,.btn.active,.load-more-btn){background:#163f49!important;color:#fff!important;border-color:#163f49!important;border-radius:8px!important}body.hawl-themed :is(.filter-pill,.sort-btn,.btn-outline-secondary,.search-tools,.search-box){background:#fff!important;color:#466a74!important;border-color:#dce6e8!important;border-radius:8px!important}body.hawl-themed .toolbar{padding:20px 0!important;gap:18px!important}body.hawl-themed .filter-pill{font-size:15px!important;padding:8px 20px!important}body.hawl-themed :is(.excerpt,.card-meta,.f-meta,.text-muted,.subtitle){color:#71868e!important}body.hawl-themed :is(.featured-tag,.cat:not(section)){color:#98723b!important}body.hawl-themed .featured-card{display:flex!important;border:1px solid #dfe7e9!important;overflow:hidden;margin-bottom:25px!important}.hawl-themed .featured-card h2{font-size:30px!important;line-height:1.6!important}.hawl-themed .featured-card .f-body{padding:30px!important}.hawl-themed .featured-card .f-thumb{width:30%!important;object-fit:cover}.hawl-themed #articlesGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important}.hawl-themed #articlesGrid .card{border:1px solid #dfe7e9!important;overflow:hidden}.hawl-themed #articlesGrid h3{font-size:21px!important;line-height:1.6!important}.hawl-themed #articlesGrid .body{padding:23px!important}.hawl-themed #articlesGrid .thumb{height:155px!important;object-fit:cover!important;width:100%}.hawl-themed #articlesGrid .excerpt{font-size:15px!important;line-height:1.9!important}.hawl-themed .article-body,.hawl-themed .article-content,.hawl-themed article{font-size:19px!important;line-height:2.1!important}.hawl-themed article h2{margin-top:30px}.hawl-themed .search-tools{padding:15px 19px!important;border:1px solid #dae4e6!important}.hawl-themed section.cat{margin-top:30px!important}.hawl-themed section.cat h2{font-size:23px!important;border-bottom:1px solid #dfe7e9;padding-bottom:13px}.hawl-themed section.cat .grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.hawl-themed section.cat .tile{border:1px solid #dfe7e9!important;padding:24px 18px!important;gap:14px!important;font-size:16px!important}.hawl-themed section.cat .tile svg{color:#60848e!important;stroke:#60848e!important}
/* Mushaf, recitations, and the five commentary views. */
body.hawl-themed .container.well{margin-top:28px!important;background:transparent!important;border:0!important;padding-bottom:20px!important}.hawl-themed .well>.pt-4:has(img[src*="header-banner"]){display:none!important}.hawl-themed .custom-breadcrumb{background:none!important;margin:0 0 23px!important;padding:0!important}.hawl-themed .breadcrumb{background:none!important;color:#71888e!important;display:flex!important;flex-wrap:wrap!important;padding:0!important;font-size:14px!important}.hawl-themed .breadcrumb-item.active{color:#3b5b64!important}.hawl-themed .card-custom{max-width:1040px;margin:0 auto;border:1px solid #dfe7e9!important;overflow:hidden}.hawl-themed .card-custom .card-header{background:#123640!important;color:white!important;border:0!important;padding:24px!important;text-align:center}.hawl-themed .card-custom .card-header :is(h1,h2,h3){color:#fff!important;font-size:29px!important;font-family:Amiri,serif!important}.hawl-themed .card-custom .card-body{padding:30px!important}.hawl-themed .listensora{background:#f1f5f6;border:1px solid #e1e8ea;border-radius:12px;padding:20px;max-width:720px;margin:0 auto 23px!important}.hawl-themed .reader-list{max-width:520px;margin:15px auto!important}.hawl-themed .form-control{min-height:44px;padding:9px 14px}.hawl-themed .changesoraform{padding:19px!important;background:#f6f8f9;border:1px solid #e0e7e9;border-radius:10px}.hawl-themed .seo-intro{border:1px solid #e3e9eb!important;background:#f7f9fa!important;padding:22px!important;border-radius:10px!important}.hawl-themed .surah-text{padding:24px 12px!important;color:#16353d!important;line-height:2.5!important;background:#fff!important}.hawl-themed .ayat{color:#15383f!important;font-size:30px!important;line-height:2.6!important}.hawl-themed .aya-number{color:#9e783f!important}.hawl-themed .share-ayah-btn{font-size:14px!important;opacity:.7}.hawl-themed .surah-pagination a{padding:10px 18px!important}.hawl-themed .powered{color:#7a8e94!important}.hawl-themed .riwayah-switch a{font-size:15px!important;color:#254b54!important}.hawl-themed .riwayah-switch a:first-child{background:#e8d1a7!important}.hawl-themed audio{width:100%;max-width:100%!important}.hawl-themed table{max-width:100%;color:#244a53}.hawl-themed th,.hawl-themed td{border-color:#dfe7e9!important}.hawl-themed th{background:#edf3f4!important}.hawl-themed blockquote{border-right:3px solid #c7a463;background:#f0f5f5;color:#335d67;padding:15px 24px}
@media(max-width:1000px){.hw-head-inner{gap:15px!important;padding:17px 22px!important}.hw-header nav{gap:16px!important}.hw-header nav a{font-size:14px!important}.hw-brand strong{font-size:21px!important}.hw-home{display:none!important}.hawl-themed #articlesGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hawl-themed section.cat .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hw-footer>div{flex-wrap:wrap}.hawl-themed .featured-card h2{font-size:25px!important}}
@media(max-width:700px){.hw-head-inner{flex-wrap:wrap!important;padding:15px 18px!important;gap:15px!important}.hw-brand img{width:40px!important;height:40px!important}.hw-brand strong{font-size:20px!important}.hw-brand small{font-size:13px!important}.hw-header nav{width:100%!important;justify-content:space-between!important;gap:10px!important;overflow:auto!important;white-space:nowrap!important}.hw-header nav a{font-size:13px!important;padding:7px 0!important}.hw-header nav a.is-current:after{bottom:-9px!important}.hw-home{display:flex!important;margin-right:auto!important}.hawl-themed :is(.wrap,.container){width:100%!important;padding-left:18px!important;padding-right:18px!important}.hawl-themed :is(.hero,.page-head){padding:27px 0 20px!important}.hawl-themed :is(.hero,.page-head) h1{font-size:29px!important}.hawl-themed .hero p{font-size:15px!important}.hawl-themed .picker-list{grid-template-columns:1fr!important}.hawl-themed .modal-box{padding:16px!important}.hawl-themed .picker-item{padding:18px!important;font-size:18px!important}.hawl-themed #articlesGrid{grid-template-columns:1fr!important}.hawl-themed .featured-card{flex-direction:column!important}.hawl-themed .featured-card .f-thumb{width:100%!important;height:170px!important}.hawl-themed .featured-card .f-body{padding:23px!important}.hawl-themed section.cat .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hawl-themed section.cat .tile{padding:21px 12px!important;font-size:14px!important}.hawl-themed .card-custom .card-body{padding:16px!important}.hawl-themed .card-custom .card-header{padding:19px!important}.hawl-themed .surah-text{padding:20px 0!important}.hawl-themed .ayat{font-size:26px!important;line-height:2.5!important}.hawl-themed .changesoraform .row{gap:12px;display:flex;flex-direction:column}.hawl-themed .listensora{padding:15px!important}.hawl-themed .article-body,.hawl-themed .article-content,.hawl-themed article{font-size:17px!important}.hw-footer{padding:24px 18px!important;margin-top:35px!important}.hw-footer>div{flex-direction:column;align-items:flex-start;gap:14px}.hw-footer nav{flex-wrap:wrap;gap:20px}.hawl-themed .toolbar{flex-direction:column!important;align-items:stretch!important}.hawl-themed .filters{flex-wrap:wrap!important}.hawl-themed .search-sort{flex-wrap:wrap!important}.hawl-themed .filter-pill{font-size:14px!important;padding:7px 13px!important}}
@media(prefers-reduced-motion:reduce){.hawl-themed *{scroll-behavior:auto!important;transition:none!important}}
/* Resolve legacy body-level dark tokens before styling reading surfaces. */
body.hawl-themed,body.hawl-themed.mode-dark,body.hawl-themed.mode-light,body.hawl-themed[data-theme]{
 --bg:#f6f8f9!important;--surface:#fff!important;--surface-2:#edf3f4!important;
 --text:#16353d!important;--text-muted:#58717a!important;--ink-text:#16353d!important;--ink-muted:#58717a!important;
 --accent:#876326!important;--accent-soft:#325f6a!important;--border-soft:#dfe7e9!important;
}
body.hawl-themed a{color:#325f6a!important}
body.hawl-themed a:hover{color:#79571f!important}
body.hawl-themed .surah-text,body.hawl-themed .surah-text a,body.hawl-themed .surah-text .ayat{background:transparent!important;color:#16353d!important}
body.hawl-themed .surah-text a:hover .ayat{color:#325f6a!important;background:#edf3f4!important;border-radius:4px}
body.hawl-themed .ayat2,body.hawl-themed .ayat4tafseer{background:#edf3f4!important;color:#16353d!important;border:1px solid #dfe7e9!important;border-radius:10px;padding:22px 24px!important;line-height:2.2!important}
body.hawl-themed .ayat4tafseer{padding-left:64px!important}
body.hawl-themed .ayat4tafseer_text{background:#fff!important;color:#16353d!important;font-size:20px!important;line-height:2.1!important;padding:10px 4px!important;text-align:right!important;word-break:normal}
body.hawl-themed .ayat4tafseer_text :is(p,span,div){background:transparent!important;color:inherit!important}
body.hawl-themed .ayat4tafseer_info{font-family:Tajawal,Arial,sans-serif!important;line-height:1.8!important;color:#58717a!important;margin-top:12px}
body.hawl-themed :is(.aya-number,.ayat4tafseer .number){color:#876326!important}
body.hawl-themed .custom-breadcrumb :is(a,a span,.breadcrumb-item){color:#526f79!important}
body.hawl-themed .custom-breadcrumb .breadcrumb-item.active{color:#16353d!important}
body.hawl-themed .share a{color:#476c77!important;font-size:27px!important}
body.hawl-themed .share a:hover{color:#79571f!important}
body.hawl-themed .share-content{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
body.hawl-themed .share-content a{margin:0!important}
body.hawl-themed a:is(.btn-primary,.btn-gold,.gold-button){color:#fff!important}
body.hawl-themed .hw-header a.is-current{color:#16353d!important}
@media(max-width:700px){body.hawl-themed .ayat4tafseer_text{font-size:18px!important;line-height:2!important}body.hawl-themed .ayat4tafseer{padding:18px 16px 18px 55px!important}}
/* Article reading layout and related-content cards. */
body.hawl-themed article.wrap{max-width:1040px!important;padding-top:36px!important;padding-bottom:32px!important}
body.hawl-themed article .content{font-size:1.1875rem;line-height:2.1;color:#25444f!important}
body.hawl-themed article .content> *{opacity:1;transform:none}
body.hawl-themed article :is(.content-network,.related-box,.share-row){border-color:#d5e0e4!important}
body.hawl-themed article :is(.content-network,.related-box)>h3{font-size:22px!important;color:#16353d!important;margin-bottom:18px!important}
body.hawl-themed article .verse-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.hawl-themed article .verse-card{background:#fff!important;border:1px solid #d5e0e4!important;border-radius:12px;padding:20px}
body.hawl-themed article .verse-title{font-family:Tajawal,Arial,sans-serif!important;font-size:18px;line-height:1.7;color:#16353d!important;margin-bottom:16px}
body.hawl-themed article .verse-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;font-size:14px;line-height:1.5}
body.hawl-themed article .verse-links a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 7px;background:#f2f6f7;color:#254f5b!important;border:1px solid #d9e4e7}
body.hawl-themed article .verse-links a:hover{background:#e5eef0;border-color:#78969e}
body.hawl-themed article .topic-pills a{font-size:15px;background:#edf3f4;color:#254f5b!important;border-color:#cfdde1;padding:8px 16px}
body.hawl-themed article .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.hawl-themed article .related-card{background:#fff!important;border:1px solid #d5e0e4!important;padding:20px 22px}
body.hawl-themed article .related-card h4{font-family:Tajawal,Arial,sans-serif!important;font-size:18px;line-height:1.8;color:#16353d!important}
body.hawl-themed article .related-card .cat2{font-size:14px;color:#795b2e!important;margin-bottom:9px}
body.hawl-themed article :is(.rt-btn,.fs-lbl,.toc-list a,.toc-list a.lvl-3,.read-time,.date){font-size:14px!important;color:#47636d!important}
body.hawl-themed article .rt-btn{min-height:42px;background:#fff;border-color:#ccdce0}
body.hawl-themed article .share-row .label{font-size:16px;color:#25444f!important}
body.hawl-themed article .share-btn{width:44px;height:44px;background:#fff;border-color:#cbdbe0;color:#325f6a!important}
body.hawl-themed .hw-footer p{font-size:14px!important;color:#526d78!important}
body.hawl-themed .hw-footer nav a{font-size:14px!important}
body.hawl-themed.focus-mode article.wrap{max-width:820px!important}
body.hawl-themed.focus-mode .hw-header,body.hawl-themed.focus-mode .hw-footer{display:none!important}
@media(max-width:900px){body.hawl-themed article .verse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.hawl-themed article .verse-grid,body.hawl-themed article .related-grid{grid-template-columns:1fr}body.hawl-themed article .content{font-size:1.125rem}body.hawl-themed article .verse-card{padding:18px}body.hawl-themed article :is(.content-network,.related-box)>h3{font-size:20px!important}}

/* ---- إضافات التركيب على الموقع الأصلي ---- */
/* رؤوس صفحات تحتوي عنوان الصفحة ووصفها: تبقى ظاهرة */
body.hawl-themed>header[data-hw-keep]{display:block!important;background:none!important;border:0!important;color:#16353d!important}
body.hawl-themed>header[data-hw-keep] :is(h1,h2,p,a){color:inherit}
body.hawl-themed>header[data-hw-keep] h1{color:#163d47!important}
body.hawl-themed>header[data-hw-keep] p{color:#5d737a!important}
/* شريط التنقل القديم في صفحات الفضائل */
body.hawl-themed>nav[data-hw-hide]{display:none!important}
/* تصحيحات تباين لصفحات مصممة أصلًا على خلفية داكنة */
body.hawl-themed section.folio{background:#fff!important;color:#16353d!important;border:1px solid #dfe7e9;border-radius:12px}
body.hawl-themed .page-card{background:#fff!important;border:1px solid #dfe7e9!important;color:#16353d!important}
body.hawl-themed .page-card :is(p,li){color:#3f5961!important}
body.hawl-themed .stats b{color:#8a6a2c!important}
body.hawl-themed .stats span{color:#56707a!important}
body.hawl-themed .toc strong{color:#8a6a2c!important}
body.hawl-themed .grade{color:#2f7a4a!important}
body.hawl-themed .cat-tag{color:#1f6f66!important}
body.hawl-themed .act-share{background:#1f6f66!important;color:#fff!important}
body.hawl-themed .chip.disabled{color:#6f7b7e!important}
body.hawl-themed .updated-note{color:#56707a!important}
body.hawl-themed .page-card-header{background:#f3f7f7!important;border-bottom:1px solid #dfe7e9!important}
body.hawl-themed .page-card-header :is(h1,h2,p,span){color:#16353d!important}
/* صفحات الفيديو (videos.php و video.php) */
body.hawl-themed.hw-videos{--ink:#f6f8f9;--deep:#fff;--panel:#fff;--panel-2:#f1f5f6;--line:#dfe7e9;--gold:#aa8140;--gold-soft:#8a6a2c;--text:#16353d;--muted:#5d737a;--emerald:#2f7a4a}
body.hawl-themed.hw-videos .head h1{color:#163d47!important}
body.hawl-themed.hw-videos .head p,body.hawl-themed.hw-videos .reel .sub{color:#5d737a!important}
body.hawl-themed.hw-videos .filters a{background:#fff!important;border:1px solid #dfe7e9!important;color:#325f6a!important}
body.hawl-themed.hw-videos .filters a[aria-current="page"]{background:#16353d!important;border-color:#16353d!important;color:#fff!important}
body.hawl-themed.hw-videos .filters a[aria-current="page"] .n{color:#e4c58a!important}
body.hawl-themed.hw-videos .card h3 a{color:#16353d!important}
body.hawl-themed.hw-videos :is(.meta,.tag){color:#8a6a2c!important}
body.hawl-themed.hw-videos :is(.desc,.desc p,.facts dd,.about p){color:#3f5961!important}
body.hawl-themed.hw-videos .btn{background:#fff!important;border:1px solid #d9e2e4!important;color:#16353d!important}
body.hawl-themed.hw-videos .btn.gold{background:#16353d!important;border-color:#16353d!important;color:#fff!important}
body.hawl-themed.hw-videos .verse{background:#fff!important;border-color:#dfe7e9!important;color:#16353d!important}
body.hawl-themed.hw-videos .lite-src{background:rgba(22,53,61,.88)!important;color:#fff!important}
body.hawl-themed.hw-videos .lite-play{background:rgba(22,53,61,.85)!important}

.hw-brand img{border-radius:12px!important;object-fit:cover}
.hw-header nav a{white-space:nowrap}
@media (max-width:700px){.hw-header nav{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;max-width:100%}.hw-header nav::-webkit-scrollbar{display:none}}







/* ===================================================================
   hw-enhance (2026-09-24): وضع المصحف، قائمة الآية، شريط التلاوة،
   شريط الجوال السفلي، الوضع الليلي، شريط التحميل، تحسين التباين
   =================================================================== */
:root{--hw-enh:1}
/* 1) تباين أفضل للنصوص الذهبية والرمادية الفاتحة */
body.hawl-themed .text-muted{color:#5d747c!important}
body.hawl-themed .verse-ref,body.hawl-themed .cat,body.hawl-themed .cat2{color:#8a6a33!important}

/* 2) صفحة السورة: وضع قراءة شبيه بالمصحف */
body.hawl-themed .surah-text{font-family:'Amiri Quran','Amiri',serif!important;font-size:27px!important;line-height:2.35!important;text-align:justify;text-align-last:center;background:#fffdf8!important;border:1px solid #efe4cf;border-radius:18px;padding:28px 30px!important;color:#16353d!important;box-shadow:0 1px 0 #efe4cf,0 10px 30px #193c460a}
body.hawl-themed .surah-text>a:has(.ayat){color:inherit!important;text-decoration:none!important;border-radius:8px;transition:background .15s;scroll-margin-top:90px}
body.hawl-themed .surah-text>a:has(.ayat):hover,body.hawl-themed .surah-text>a:has(.ayat):hover .ayat{background:#f5ecd9!important}
body.hawl-themed .surah-text>a.hw-active,body.hawl-themed .surah-text>a.hw-active .ayat{background:#f1e3c4!important}
body.hawl-themed .surah-text .ayat{color:#16353d!important}
body.hawl-themed .surah-text .aya-number{color:#9a7434!important;font-size:.82em;margin:0 3px}
body.hawl-themed .surah-text .share-ayah-btn{display:none!important}
@media (max-width:640px){body.hawl-themed .surah-text{font-size:23px!important;line-height:2.25!important;padding:18px 14px!important;text-align:right;text-align-last:auto}}

/* قائمة الآية (نافذة سفلية) */
.hw-sheet-bg{position:fixed;inset:0;background:#0a1f2640;z-index:9998;opacity:0;pointer-events:none;transition:opacity .18s}
.hw-sheet-bg.open{opacity:1;pointer-events:auto}
.hw-sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,105%);width:min(560px,100%);background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -10px 40px #0a1f262e;z-index:9999;padding:14px 18px calc(18px + env(safe-area-inset-bottom));transition:transform .22s ease;direction:rtl;font-family:Tajawal,Arial,sans-serif;color:#16353d}
.hw-sheet.open{transform:translate(-50%,0)}
.hw-sheet .hw-grip{width:44px;height:5px;border-radius:9px;background:#dfe7e9;margin:0 auto 12px}
.hw-sheet .hw-sheet-ref{font-weight:800;font-size:15px;margin-bottom:6px}
.hw-sheet .hw-sheet-text{font-family:'Amiri Quran','Amiri',serif;font-size:19px;line-height:2;max-height:120px;overflow:auto;background:#faf6ee;border:1px solid #efe4cf;border-radius:12px;padding:8px 12px;margin-bottom:12px}
.hw-sheet .hw-sheet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.hw-sheet .hw-sheet-grid a,.hw-sheet .hw-sheet-grid button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;border:1px solid #dfe7e9;border-radius:12px;background:#fff;color:#16353d;font:600 14px Tajawal,Arial,sans-serif;text-decoration:none;cursor:pointer}
.hw-sheet .hw-sheet-grid a:hover,.hw-sheet .hw-sheet-grid button:hover{border-color:#aa8140;background:#fffaf0}
.hw-sheet .hw-sheet-grid .hw-primary{grid-column:1/-1;background:#123640!important;color:#fff!important;border-color:#123640!important}
.hw-sheet .hw-sheet-grid a:not(.hw-primary){color:#16353d!important}
.hw-toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#123640;color:#fff;padding:9px 16px;border-radius:999px;font:600 14px Tajawal,Arial,sans-serif;z-index:10000;opacity:0;transition:opacity .2s;pointer-events:none}
.hw-toast.show{opacity:1}

/* شريط التلاوة الثابت */
.hw-player{position:fixed;left:50%;transform:translate(-50%,24px);opacity:0;visibility:hidden;bottom:calc(12px + env(safe-area-inset-bottom));width:min(520px,calc(100% - 24px));background:#123640;color:#fff;border-radius:16px;box-shadow:0 12px 30px #0a1f2640;z-index:900;display:flex;align-items:center;gap:10px;padding:8px 12px;transition:transform .25s,opacity .25s,visibility .25s;direction:rtl;font-family:Tajawal,Arial,sans-serif}
.hw-player.show{transform:translate(-50%,0);opacity:1;visibility:visible}
.hw-player button{width:40px;height:40px;border-radius:50%;border:0;background:#e4c58a;color:#123640;font-size:17px;cursor:pointer;flex:none}
.hw-player .hw-p-info{flex:1;min-width:0;font-size:13px;line-height:1.4}
.hw-player .hw-p-info strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hw-player .hw-p-bar{height:4px;background:#ffffff33;border-radius:4px;margin-top:5px;overflow:hidden}
.hw-player .hw-p-bar i{display:block;height:100%;width:0;background:#e4c58a}
.hw-player .hw-p-close{background:transparent;color:#fff;width:32px;height:32px;font-size:15px}

/* 6) شريط الجوال السفلي + مساحات لمس أكبر */
.hw-tabbar{display:none}
@media (max-width:767px){
  .hw-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:800;background:#fffffff2;backdrop-filter:blur(10px);border-top:1px solid #dfe7e9;padding:6px 6px calc(6px + env(safe-area-inset-bottom));direction:rtl;justify-content:space-around}
  .hw-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;color:#5d747c;text-decoration:none;font:600 11px Tajawal,Arial,sans-serif;border-radius:10px}
  .hw-tabbar a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8}
  .hw-tabbar a{color:#5d747c!important}
  .hw-tabbar a.on{color:#123640!important}
  .hw-tabbar a.on svg{stroke:#9a7434}
  body.hw-has-tabbar{padding-bottom:70px!important}
  body.hw-has-tabbar .hw-player{bottom:calc(76px + env(safe-area-inset-bottom))}
  body.hw-has-tabbar .hw-toast{bottom:150px}
  body.hawl-themed .verse-links a,body.hawl-themed .topic-pills a,body.hawl-themed .share-btn,body.hawl-themed .btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center}
  body.hawl-themed .hw-footer{padding-bottom:20px}
}

/* 7) شريط تحميل ناعم أعلى الصفحة */
.hw-loadbar{position:fixed;top:0;right:0;height:3px;width:0;background:linear-gradient(90deg,#e4c58a,#aa8140);z-index:10001;transition:width .6s ease,opacity .3s;opacity:0}
.hw-loadbar.go{opacity:1;width:75%}

/* زر الوضع الليلي في الهيدر */
.hw-mode-btn{border:1px solid #dfe7e9;background:#fff;color:#16353d;border-radius:999px;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-inline-start:8px;flex:none}
.hw-mode-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}

/* 7) الوضع الليلي (اختياري بزر، يُحفظ في المتصفح) */
html[data-hw-mode=dark] body.hawl-themed{background:#071a1f!important;color:#e6ede9!important;color-scheme:dark}
html[data-hw-mode=dark] body.hawl-themed :is(h1,h2,h3,h4,h5,h6){color:#f1e7cc!important}
html[data-hw-mode=dark] body.hawl-themed{--bg:#071a1f!important;--surface:#0e2a31!important;--surface-2:#0b242b!important;--card:#0e2a31!important;--text:#e6ede9!important;--text-muted:#a9bcb6!important;--muted:#a9bcb6!important;--ink-text:#e6ede9!important;--ink-muted:#a9bcb6!important;--border:#1f3f47!important;--border-soft:#2a4b53!important;--paper:#0e2a31!important;--parchment:#f1e7cc!important;--accent:#e4c58a!important;--accent-soft:#e4c58a!important}
html[data-hw-mode=dark] body.hawl-themed a{color:#e4c58a!important}
html[data-hw-mode=dark] body.hawl-themed .surah-text a,html[data-hw-mode=dark] body.hawl-themed .surah-text .ayat{background:transparent!important}
html[data-hw-mode=dark] body.hawl-themed :is(.hw-header,.hw-footer){background:#0b242b!important;border-color:#1c3a42!important;color:#e6ede9!important}
html[data-hw-mode=dark] body.hawl-themed .hw-header nav a,html[data-hw-mode=dark] body.hawl-themed .hw-brand,html[data-hw-mode=dark] body.hawl-themed .hw-home,html[data-hw-mode=dark] body.hawl-themed .hw-footer :is(a,p){color:#dfe7e3!important}
html[data-hw-mode=dark] body.hawl-themed :is(.card,.card-custom,.card-body,.card-header,.featured-card,.tile,.tool-card,.modal,.modal-box,.panel,.result,.result-box,.content-box,.picker-item,.verse-card,.related-card,.topic-card,.toc-box,.well,.list-group-item,.meta-row,.read-tools,.content-network){background:#0e2a31!important;border-color:#1f3f47!important;color:#e6ede9!important}
html[data-hw-mode=dark] body.hawl-themed :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){background-color:#0e2a31!important;color:#e6ede9!important;border-color:#2a4b53!important}
html[data-hw-mode=dark] body.hawl-themed :is(p,li,span,label,td,th,small,.text-muted){color:inherit}
html[data-hw-mode=dark] body.hawl-themed .text-muted{color:#a9bcb6!important}
html[data-hw-mode=dark] body.hawl-themed .surah-text{background:#0b242b!important;border-color:#23434b!important;color:#f1e7cc!important;box-shadow:none}
html[data-hw-mode=dark] body.hawl-themed .surah-text .ayat{color:#f1e7cc!important}
html[data-hw-mode=dark] body.hawl-themed .surah-text .aya-number{color:#e4c58a!important}
html[data-hw-mode=dark] body.hawl-themed .surah-text>a:has(.ayat):hover,html[data-hw-mode=dark] body.hawl-themed .surah-text>a:has(.ayat):hover .ayat,html[data-hw-mode=dark] body.hawl-themed .surah-text>a.hw-active,html[data-hw-mode=dark] body.hawl-themed .surah-text>a.hw-active .ayat{background:#16353d!important}
html[data-hw-mode=dark] body.hawl-themed :is(.verse-text,.verse-box){background:#0b242b!important;border-color:#23434b!important;color:#f1e7cc!important}
html[data-hw-mode=dark] body.hawl-themed .content{color:#e6ede9!important}
html[data-hw-mode=dark] .hw-sheet,html[data-hw-mode=dark] .hw-sheet .hw-sheet-grid :is(a,button){background:#0e2a31;color:#e6ede9;border-color:#23434b}
html[data-hw-mode=dark] .hw-sheet .hw-sheet-text{background:#0b242b;border-color:#23434b;color:#f1e7cc}
html[data-hw-mode=dark] .hw-sheet .hw-sheet-grid .hw-primary{background:#e4c58a!important;color:#123640!important}
html[data-hw-mode=dark] .hw-sheet .hw-sheet-grid a:not(.hw-primary){color:#e6ede9!important}
html[data-hw-mode=dark] .hw-tabbar{background:#0b242bf2;border-color:#1c3a42}
html[data-hw-mode=dark] .hw-tabbar a{color:#a9bcb6!important}
html[data-hw-mode=dark] .hw-tabbar a.on{color:#f1e7cc!important}
html[data-hw-mode=dark] .hw-mode-btn{background:#0e2a31;color:#e4c58a;border-color:#23434b}

html[data-hw-mode=dark] body.hawl-themed :is(.alert,.alert-light,.listensora,.changesoraform,.seo-intro,.btn-outline-secondary,.btn-light,.reader-list,.breadcrumb,.pagination .page-link,.dropdown-menu,table,thead,tbody,tr){background:#0e2a31!important;border-color:#1f3f47!important;color:#e6ede9!important}
html[data-hw-mode=dark] body.hawl-themed :is(.form-control,.form-select,select.form-control,input.form-control){background-color:#0b242b!important;color:#e6ede9!important;border-color:#2a4b53!important}
html[data-hw-mode=dark] body.hawl-themed :is(.hw-brand strong,.breadcrumb-item.active,.breadcrumb-item a,.breadcrumb-item span){color:#f1e7cc!important}
html[data-hw-mode=dark] body.hawl-themed :is(.hw-brand small,.breadcrumb-item){color:#a9bcb6!important}
html[data-hw-mode=dark] body.hawl-themed .hw-header nav a.is-current{color:#e4c58a!important}

html[data-hw-mode=dark] body.hawl-themed .riwayah-switch a[style*="background"]{color:#123640!important}

/* هيدر مضغوط في الجوال: سطر للشعار وسطر قائمة قابلة للتمرير (الشريط السفلي يغني عن زر الرئيسية) */
@media (max-width:767px){body.hawl-themed .hw-header .hw-head-inner{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px 10px!important;padding-top:10px!important;padding-bottom:6px!important}body.hawl-themed .hw-header .hw-brand{flex:1}body.hawl-themed .hw-header nav{order:3;width:100%;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:18px!important;padding:4px 2px 8px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}body.hawl-themed .hw-header nav::-webkit-scrollbar{display:none}body.hawl-themed .hw-header nav a{white-space:nowrap;flex:none}body.hawl-themed .hw-header .hw-home{display:none!important}}
