:root{color-scheme:light;--ink:#17372c;--muted:#536a60;--line:#dbe7df;--paper:#fffdf8;--green:#17694b;--soft:#f4f8f4;--gold:#caa85b;--cream:#fbf8ef}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font:17px/1.75 system-ui,-apple-system,"Noto Sans Bengali",sans-serif}a{color:var(--green)}.shell{width:min(1000px,100%);min-height:100vh;margin:auto;padding:20px 22px 48px;display:flex;flex-direction:column}.breadcrumbs{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:.93rem}.breadcrumbs a{text-decoration:none}.page-head,.surah-head{margin:24px 0;padding:clamp(24px,5vw,46px) clamp(18px,4vw,44px);border:1px solid #d9c999;border-radius:22px;background:linear-gradient(135deg,#fffdf8,#f2f8f1);box-shadow:0 8px 28px #153c2710}.page-head h1,.surah-head h1{font-size:clamp(1.8rem,6vw,3rem);line-height:1.25;margin:.15em 0}.page-head p,.subtitle{color:var(--muted);margin:.4em 0}.eyebrow{font-size:.9rem;font-weight:700;letter-spacing:.04em;color:#6a5830;margin:0}.search-label{display:block;font-weight:700;margin:20px 0 6px}input[type=search]{width:100%;padding:13px 15px;border:1px solid #b8c9be;border-radius:12px;font:inherit;background:white;color:var(--ink)}#list-status,#load-status{color:var(--muted)}.surah-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.surah-card{display:flex;align-items:center;gap:13px;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);text-decoration:none;box-shadow:0 3px 12px #12320c0a}.surah-card:hover,.surah-card:focus-visible{border-color:#95bba1;outline:2px solid #b4d4bd;outline-offset:1px}.surah-number{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#edf5ed;font-weight:700}.surah-card strong{display:block;overflow-wrap:anywhere}.surah-card small{display:block;color:var(--muted)}.context{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}.context h2,.source-footer h2{font-size:1.15rem;margin:0 0 10px}.context details{margin-top:12px}.context summary{cursor:pointer;font-weight:700;color:var(--green)}.source-note{padding-top:12px;white-space:normal;font-size:.96rem}.source-note p{margin:.55em 0}.reading-tools{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.control{display:inline-flex;gap:8px;align-items:center;margin:4px 12px 4px 0}.control input{accent-color:var(--green);width:18px;height:18px}.pronunciation-status{margin:.8em 0 0;padding:10px 12px;background:#fff6e6;border-radius:10px;color:#5c4b25}.verses{display:grid;gap:12px}.ayah{padding:clamp(15px,4vw,24px);border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 15px #153c2708}.ayah-number{font-size:.9rem;color:var(--muted);font-weight:700;margin-bottom:12px}.arabic{font-family:"Noto Naskh Arabic","Amiri",serif;font-size:clamp(1.7rem,6vw,2.45rem);line-height:2.15;text-align:right;direction:rtl;unicode-bidi:plaintext;color:#143c2c;overflow-wrap:anywhere}.translation{border-top:1px solid #edf1ed;margin:14px 0 0;padding-top:12px;font-size:1.05rem}.ayah-note{margin-top:12px;padding-top:10px;border-top:1px dashed #d5e3d8;font-size:.94rem;white-space:normal}.source-footer{margin-top:18px;padding:8px 0;border-top:1px solid #ccd9d0;color:var(--muted);font-size:.82rem}.source-footer p{margin:0}.empty-state{padding:18px;border:1px dashed var(--line);border-radius:12px;background:white}@media(max-width:620px){body{font-size:16px}.shell{padding:15px 13px 34px}.surah-grid{grid-template-columns:1fr;gap:9px}.page-head,.surah-head{margin:18px 0;padding:19px 16px;border-radius:16px}.context{padding:16px}.arabic{line-height:2.1}.reading-tools{padding:13px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.story-list{display:grid;gap:14px}.story-card{padding:clamp(16px,4vw,24px);border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 15px #153c2708}.story-card h2{font-size:1.25rem;line-height:1.4;margin:0 0 10px}.story-card p{margin:.55em 0}.story-refs{padding-top:9px;border-top:1px solid #edf1ed;color:#435e50;font-size:.94rem}.basmala{background:#fbf9f2;border-color:#e6d8b5}
.story-note{margin-top:12px;padding:10px 12px;border-left:3px solid #b9cba7;background:#f6f8f3;border-radius:0 10px 10px 0}.story-limits{border-left-color:#d5c38c;background:#fbf8ef}
.surah-pager{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.surah-step{display:grid;gap:3px;flex:1;min-width:0;padding:12px 15px;border:1px solid var(--line);border-radius:13px;background:#fff;text-decoration:none}.surah-step span{color:var(--muted);font-size:.9rem}.surah-step strong{overflow-wrap:anywhere}.surah-step.align-end{text-align:right}.surah-step.disabled{background:#f2f5f2;color:#78867e}.surah-step.disabled strong{color:#536a60}@media(max-width:420px){.surah-pager{gap:8px}.surah-step{padding:10px;font-size:.9rem}}

/* Shared Walid AI site chrome: use the approved assets and real semantic markup. */
body{isolation:isolate}body::before{content:"";position:fixed;z-index:-1;left:50%;top:50%;width:min(68vw,760px);height:auto;aspect-ratio:1;transform:translate(-50%,-50%);background:url("/walid-ai-approved-flower.png") center/contain no-repeat;opacity:.06;pointer-events:none;filter:drop-shadow(0 8px 18px #8a641f30) saturate(1.08);animation:walid-approved-flower-turn 10s linear infinite}@keyframes walid-approved-flower-turn{from{rotate:0deg}to{rotate:360deg}}
.islam-brand{display:block;width:132px!important;height:44px!important;max-width:132px!important;margin:0 0 12px;object-fit:contain;filter:none;animation:none;transform:none}.source-footer{font-family:"Times New Roman",Times,serif;text-align:center;margin-top:auto;padding:18px 20px 16px;border-top:1px solid #e5e7eb;color:#6b7280;font-size:13px;line-height:1.6;background:transparent;position:relative;z-index:1}.source-footer nav{display:flex;justify-content:center;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px}.source-footer nav a{color:inherit;text-decoration:none}.source-footer nav a:hover{text-decoration:underline;color:#176b50}.source-footer .copyright{margin:4px 0 0}
@media(max-width:650px){.islam-brand{width:112px!important;height:38px!important;max-width:112px!important;margin-bottom:12px}.source-footer{margin-top:auto;padding:16px 14px}.source-footer nav{gap:6px}}

.ayah-note-toggle{margin-top:10px;padding:6px 10px;border:1px solid #b8cdbd;border-radius:8px;background:#f4f8f4;color:var(--green);font:inherit;font-size:.9rem;cursor:pointer}.ayah-note-toggle:hover,.ayah-note-toggle:focus-visible{background:#e8f2e9;outline:2px solid #b4d4bd;outline-offset:1px}

.pronunciation{margin:14px 0 0;padding:10px 12px;border-left:3px solid var(--gold);background:#fbf8ef;color:#5c4b25;font-size:1.02rem}.pronunciation::before{content:none}

/* Quran reading surface: cream paper, green ink, and restrained verse ornaments. */
.surah-head{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(255,253,248,.96),rgba(242,248,241,.94))}.surah-head h1{font-family:"Noto Sans Bengali",system-ui,sans-serif;color:#174f3a;letter-spacing:-.02em}.surah-head .subtitle{font-size:1.08rem}.surah-head::after{content:'۞';position:absolute;inset:auto 24px 8px auto;color:#caa85b;font-size:4rem;opacity:.22;line-height:1}.ayah{background:rgba(255,253,248,.94);border-color:#e5dcc7}.ayah-number{display:flex;align-items:center;gap:9px;color:#806b37}.ayah-number::before{content:'۞';display:inline-grid;place-items:center;width:1.8rem;height:1.8rem;border:1px solid #caa85b;border-radius:50%;color:#a8873f;font-size:.9rem;line-height:1}.ayah-number::after{content:'';flex:0 1 44px;height:1px;background:#dccb9f}.pronunciation{font-size:1.1rem;line-height:1.8;background:#fbf8ef;border-left-color:#caa85b}.translation{color:#334d42}.context,.reading-tools{background:rgba(255,253,248,.9)}


/* Final desktop Quran reading composition. Keep the shared Walid AI chrome untouched. */
@media (min-width: 900px){
  .shell{width:min(1120px,100%);padding:28px 38px 56px}
  .breadcrumbs{max-width:920px;margin-inline:auto;width:100%}
  .surah-head{max-width:920px;margin:30px auto 24px;width:100%;padding:42px 56px;text-align:center}
  .surah-head h1{font-size:3.15rem;letter-spacing:-.035em}
  .surah-head .subtitle{font-size:1.2rem}
  .surah-head::after{right:38px;bottom:12px;font-size:5rem}
  .reading-tools{max-width:920px;margin:0 auto 26px;width:100%;padding:18px 24px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}
  .reading-tools .pronunciation-status{flex:1 1 100%;margin:0;padding:11px 14px}
  .control{margin:0 18px 0 0}
  .verses{max-width:920px;margin:0 auto;gap:18px;width:100%}
  .ayah{padding:30px 38px;border-radius:20px;box-shadow:0 8px 24px #153c270b}
  .ayah-number{font-size:1rem;margin-bottom:16px}
  .ayah-number::before{width:2rem;height:2rem}
  .arabic{font-size:2.85rem;line-height:2.2;padding-left:12%;}
  .pronunciation{max-width:78ch;margin:20px 0 0;font-size:1.16rem}
  .translation{max-width:78ch;margin-top:18px;padding-top:16px;font-size:1.12rem;line-height:1.95}
  .ayah-note-toggle{margin-top:16px}
  .context{max-width:920px;margin:26px auto;width:100%;padding:24px 30px}
  .surah-pager{max-width:920px;margin:26px auto;width:100%}
}

@media (min-width:900px){
  .quran-sidebar .side-list{display:flex!important;flex-direction:column!important;gap:4px!important;max-height:none!important;overflow:visible!important;padding:10px 0 16px!important;}
  .quran-sidebar .side-list>a:not(.side-all){display:flex!important;align-items:center!important;gap:12px!important;min-height:66px!important;padding:8px 14px!important;border-radius:12px!important;color:#172d25!important;text-decoration:none!important;}
  .quran-sidebar .side-list>a.current{background:#116b4d!important;color:#fff!important;box-shadow:0 5px 12px #0e5a4028!important;}
  .quran-sidebar .side-num{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border:1px solid #d6a632!important;border-radius:50%!important;flex:0 0 38px!important;font-family:"Noto Sans Bengali",sans-serif!important;font-size:1.05rem!important;}
  .quran-sidebar .side-copy{display:grid!important;gap:2px!important;min-width:0!important;}
  .quran-sidebar .side-copy strong{font-family:"Noto Serif Bengali",serif!important;font-size:1.05rem!important;line-height:1.25!important;}
  .quran-sidebar .side-copy small{font-size:.78rem!important;line-height:1.25!important;color:#456357!important;white-space:nowrap!important;}
  .quran-sidebar a.current .side-num{border-color:#f3d278!important;background:#0b5b42!important;color:#fff!important;}
  .quran-sidebar a.current .side-copy small{color:#e9f5e9!important;}
  .quran-sidebar .side-all{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:12px 14px 0!important;padding:13px 18px!important;border:1px solid #d4a536!important;border-radius:24px!important;color:#145d45!important;font-family:"Noto Serif Bengali",serif!important;font-weight:700!important;text-decoration:none!important;background:#fffaf0!important;}
  .quran-sidebar .side-all span{font-size:1.35rem!important;line-height:1!important;}
  .surah-head{height:220px!important;min-height:220px!important;border-radius:30px!important;background:linear-gradient(90deg,#093e2d 0%,#07543d 52%,#06422f 100%)!important;overflow:hidden!important;}
  .hero-art{left:0!important;bottom:0!important;width:39%!important;height:100%!important;background-size:auto 100%!important;background-position:left bottom!important;z-index:1!important;}
  .surah-head h1{position:relative!important;z-index:3!important;max-width:680px!important;font-size:3.2rem!important;white-space:nowrap!important;margin:0 auto!important;}
  .surah-head .subtitle{position:relative!important;z-index:3!important;margin:4px auto 0!important;}
  .hero-arabic{right:42px!important;top:50%!important;transform:translateY(-50%)!important;font-size:2.65rem!important;z-index:4!important;}
  .surah-head:after{content:""!important;display:block!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:14px!important;background:linear-gradient(180deg,#f6dc8b,#b67f1e 55%,#f5d98a)!important;z-index:5!important;opacity:1!important;}
  .ayah{position:relative!important;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;column-gap:24px!important;min-height:206px!important;padding:22px 30px 22px 24px!important;border:2px solid #d4a332!important;border-radius:22px!important;background:linear-gradient(135deg,#fffdf7,#fff8e8)!important;box-shadow:0 4px 14px #8b66151a!important;overflow:hidden!important;}
  .ayah:before{content:""!important;position:absolute!important;left:112px!important;top:32px!important;bottom:32px!important;width:3px!important;background:#d7a62f!important;}
  .ayah-number{position:static!important;grid-column:1!important;grid-row:1 / span 3!important;align-self:start!important;justify-self:center!important;width:68px!important;height:68px!important;margin-top:20px!important;display:grid!important;place-items:center!important;border:3px solid #d5a62f!important;border-radius:50%!important;color:#145a42!important;background:#fff7dc!important;font-family:"Noto Serif Bengali",serif!important;font-size:1.55rem!important;box-shadow:0 0 0 7px #fff8e3,0 0 0 9px #c99527!important;}
  .ayah .arabic{grid-column:2!important;grid-row:1!important;margin:0!important;text-align:center!important;font-size:2.5rem!important;line-height:1.7!important;}
  .ayah .pronunciation,.ayah .translation{grid-column:2!important;margin-top:10px!important;padding:9px 14px!important;border:0!important;border-radius:10px!important;background:#fff0cf!important;font-size:1rem!important;}
  .ayah .translation{background:transparent!important;padding:0 14px!important;margin-top:2px!important;color:#1b3f31!important;}
  .ayah .ayah-note{grid-column:2!important;}
}

@media (min-width:900px){
  .surah-head{height:220px!important;min-height:220px!important;margin:24px 0 18px!important;padding:28px 210px 34px 175px!important;border:3px solid #bd8c27!important;border-radius:34px 24px 34px 24px!important;background:linear-gradient(115deg,#063b2b 0%,#07543d 48%,#063b2d 100%)!important;box-shadow:inset 0 0 0 3px #ead17b,inset 0 0 0 7px #4c732c,0 10px 26px #163a251f!important;}
  .surah-head:before{content:""!important;position:absolute!important;inset:9px!important;display:block!important;width:auto!important;height:auto!important;border:1px solid #e7c96a!important;border-radius:27px 18px 27px 18px!important;background:radial-gradient(ellipse at 12% 50%,#b9913430,transparent 23%),radial-gradient(ellipse at 88% 50%,#082c201f,transparent 30%)!important;pointer-events:none!important;z-index:0!important;}
  .surah-head:after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;height:15px!important;border-top:2px solid #f4d989!important;background:linear-gradient(180deg,#f0d27b,#a8751d 55%,#f3d787)!important;z-index:5!important;opacity:1!important;}
  .surah-head h1,.surah-head .subtitle,.surah-head .eyebrow{position:relative!important;z-index:3!important;}
}

@media (min-width:900px){
  .surah-head:before{inset:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;}
  .surah-head{border:3px solid #bd8c27!important;box-shadow:inset 0 0 0 3px #ead17b,inset 0 0 0 7px #4c732c,0 10px 26px #163a251f!important;}
  .surah-head:after{height:13px!important;border-top:2px solid #f4d989!important;background:linear-gradient(180deg,#f0d27b,#a8751d 55%,#f3d787)!important;}
}

@media (min-width:900px){
  .surah-head{background:radial-gradient(circle at 1.5% 18%,transparent 0 19px,#c29532 20px 22px,transparent 23px),radial-gradient(circle at 98.5% 18%,transparent 0 19px,#c29532 20px 22px,transparent 23px),radial-gradient(circle at 1.5% 82%,transparent 0 19px,#c29532 20px 22px,transparent 23px),radial-gradient(circle at 98.5% 82%,transparent 0 19px,#c29532 20px 22px,transparent 23px),linear-gradient(115deg,#063b2b,#07543d 48%,#063b2d)!important;}
  .surah-head h1{font-size:3.35rem!important;text-shadow:0 3px 1px #06251b!important;}
  .hero-arabic{font-size:2.75rem!important;color:#f3d477!important;text-shadow:0 2px 0 #6f4d16!important;}
}

@media (min-width:900px){
  .surah-head{height:220px!important;min-height:220px!important;margin:24px 0 18px!important;padding:28px 210px 34px 175px!important;border:3px solid #bd8c27!important;border-radius:34px 24px 34px 24px!important;background:linear-gradient(115deg,#063b2b 0%,#07543d 48%,#063b2d 100%)!important;box-shadow:inset 0 0 0 3px #ead17b,inset 0 0 0 7px #4c732c,0 10px 26px #163a251f!important;}
  .surah-head:before{content:""!important;position:absolute!important;inset:9px!important;display:block!important;width:auto!important;height:auto!important;border:1px solid #e7c96a!important;border-radius:27px 18px 27px 18px!important;background:radial-gradient(ellipse at 12% 50%,#b9913430,transparent 23%),radial-gradient(ellipse at 88% 50%,#082c201f,transparent 30%)!important;pointer-events:none!important;z-index:0!important;}
  .surah-head:after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;height:15px!important;border-top:2px solid #f4d989!important;background:linear-gradient(180deg,#f0d27b,#a8751d 55%,#f3d787)!important;z-index:5!important;opacity:1!important;}
  .surah-head h1,.surah-head .subtitle,.surah-head .eyebrow{position:relative!important;z-index:3!important;}
}

/* Final lock: eliminate earlier banner pseudo layers and keep the reference composition deterministic. */
@media (min-width:900px){
  .surah-head{
    min-height:210px!important;
    padding:28px 210px 34px 175px!important;
    border-radius:38px 24px 38px 24px!important;
  }
  .surah-head:before{
    content:""!important;
    inset:auto 0 0 0!important;
    width:100%!important;
    height:16px!important;
    display:block!important;
    background:linear-gradient(180deg,#f1d27b,#b27d1d 55%,#f5d98a)!important;
    opacity:.95!important;
  }
  .surah-head:after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:auto!important;
    right:0!important;
    top:0!important;
    bottom:auto!important;
    width:31%!important;
    height:100%!important;
    transform:none!important;
    background:radial-gradient(ellipse at 65% 48%,#082a201d,transparent 62%)!important;
    pointer-events:none!important;
  }
  .hero-art{
    left:0!important;
    bottom:0!important;
    width:42%!important;
    height:100%!important;
    background-size:auto 100%!important;
    background-position:left bottom!important;
    z-index:1!important;
  }
  .surah-head h1{
    max-width:650px!important;
    font-size:3.25rem!important;
    white-space:nowrap!important;
    margin:0 auto!important;
    z-index:3!important;
  }
  .surah-head .subtitle{z-index:3!important;margin:4px auto 0!important}
  .hero-arabic{
    right:44px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    font-size:2.45rem!important;
    z-index:4!important;
  }
}

/* Desktop refinement: compact, elegant reading composition. */
@media (min-width: 900px){
  .surah-head{
    max-width: 920px;
    margin: 16px auto 12px;
    padding: 20px 30px 18px;
    text-align: left;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    align-items: end;
  }
  .surah-head .eyebrow{grid-column:1/-1;margin-bottom:2px}
  .surah-head h1{font-size:2.35rem;line-height:1.15;margin:0}
  .surah-head .subtitle{font-size:1rem;margin:0 0 2px}
  .surah-head::after{right:24px;bottom:7px;font-size:3rem}
  .context{
    max-width: 920px;
    margin: 0 auto 10px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    gap:16px;
  }
  .context h2{font-size:1rem;margin:0;white-space:nowrap}
  .context details{margin:0;flex:1}
  .context summary{font-size:.94rem}
  .source-note{padding-top:8px;font-size:.9rem}
  .reading-tools{
    max-width: 920px;
    margin: 0 auto 12px;
    width:100%;
    padding: 10px 16px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:16px;
  }
  .reading-tools #load-status{margin:0;font-size:.9rem}
  .reading-tools .control{margin:0;font-size:.92rem}
  .reading-tools .pronunciation-status{
    flex:0 1 auto;
    margin:0 0 0 auto;
    padding:6px 10px;
    font-size:.88rem;
  }
  .verses{gap:12px}
  .ayah{
    padding:20px 28px 22px;
    border-radius:17px;
  }
  .ayah-number{margin-bottom:8px;font-size:.95rem}
  .ayah-number::before{
    width:2.45rem;
    height:2.45rem;
    border-width:2px;
    font-size:1rem;
    background:linear-gradient(135deg,#fffaf0,#f5ebcb);
    box-shadow:0 1px 0 #fff inset,0 2px 5px #806b3722;
  }
  .ayah-number::after{flex-basis:72px;background:#caa85b}
  .arabic{
    font-size:3.05rem;
    line-height:1.95;
    padding-left:8%;
  }
  .pronunciation{
    margin-top:12px;
    font-size:1.08rem;
    line-height:1.65;
  }
  .translation{
    margin-top:12px;
    padding-top:12px;
    font-size:1.08rem;
    line-height:1.75;
  }
  .ayah-note-toggle{margin-top:10px}
}


/* Ornate Quran desktop reading composition — built from verified page content, never reference copy. */
@media (min-width: 900px){
  body{background:#fff;}
  .shell{width:min(1240px,100%);padding:0 28px 54px;}
  .islam-brand{width:150px!important;height:50px!important;margin:13px 0 0;}
  .walid-nav{height:74px;margin:0 -28px;padding:0 34px;display:flex;align-items:center;gap:26px;border-bottom:1px solid #eadfc1;background:rgba(255,255,255,.96);box-shadow:0 2px 8px rgba(92,73,24,.08);}
  .walid-nav a{display:inline-flex;align-items:center;gap:8px;color:#322d21;text-decoration:none;font-weight:700;white-space:nowrap;}
  .walid-nav a.active{padding:10px 18px;border-radius:999px;background:#17694b;color:#fff;box-shadow:0 5px 12px rgba(23,105,75,.2);}
  .walid-nav .nav-icon{font-size:1.2rem;color:#a9822e;}
  .walid-nav .active .nav-icon{color:#f9e8ad;}
  .walid-nav .nav-search{margin-left:auto;font-size:1.3rem;}
  .breadcrumbs{max-width:1180px;margin:24px auto 10px;padding:0 6px;font-size:.94rem;}
  .surah-head{max-width:1180px;margin:0 auto 18px!important;min-height:188px;padding:28px 48px!important;border:2px solid #c9a64f;border-radius:32px!important;text-align:center!important;display:block!important;background:radial-gradient(circle at 14% 50%,rgba(202,168,91,.24),transparent 22%),linear-gradient(115deg,#0d4835 0%,#17694b 48%,#063d31 100%)!important;box-shadow:0 10px 25px rgba(39,65,39,.18),inset 0 0 0 6px rgba(202,168,91,.13);color:#fff;}
  .surah-head:before,.surah-head:after{content:'✦';position:absolute;color:#f3d77d;font-size:2.2rem;opacity:.9;}
  .surah-head:before{left:26px;top:50%;}.surah-head:after{right:26px;bottom:50%;font-size:2.2rem;}
  .surah-head .eyebrow{display:inline-block;padding:7px 22px;border-radius:999px;background:#fff3d2;color:#2c3320;margin:0 0 8px;font-size:.92rem;}
  .surah-head h1{color:#fff!important;text-shadow:0 2px 0 rgba(0,0,0,.2);font-size:3.15rem!important;margin:0!important;}
  .surah-head .subtitle{color:#f5f2dc!important;font-size:1.12rem!important;margin:3px 0 0!important;}
  .quran-reading-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:258px minmax(0,1fr);gap:22px;align-items:start;}
  .quran-sidebar{grid-column:1;grid-row:1 / span 4;padding:18px 12px;border:1px solid #eadfc5;border-radius:16px;background:linear-gradient(#fffdf8,#fbf8ef);box-shadow:0 4px 14px rgba(100,75,28,.07);position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;}
  .quran-sidebar h2{font-size:1.18rem;margin:0 8px 14px;color:#174f3a;}
  .quran-sidebar a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:#30382f;text-decoration:none;font-size:.91rem;}
  .quran-sidebar a:hover{background:#eef6e9;}.quran-sidebar a.current{background:#17694b;color:#fff;box-shadow:0 4px 10px rgba(23,105,75,.18);}
  .quran-sidebar .side-num{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d6b75f;border-radius:50%;color:#8e6c25;font-weight:700;flex:none;}.quran-sidebar a.current .side-num{border-color:#f5df9e;color:#fff;}
  .quran-main{grid-column:2;min-width:0;}.quran-main>.context{margin:0 0 12px;padding:14px 18px;}.quran-main>.context h2{font-size:1rem;margin:0;}.quran-main>.context details{margin-top:4px;}
  .reading-tools{margin:0 0 14px!important;padding:12px 16px!important;border-radius:12px!important;background:#f3f8df!important;border-color:#dceac0!important;display:flex!important;align-items:center;gap:16px;flex-wrap:wrap;}
  .reading-tools #load-status{margin:0;font-weight:700;color:#174f3a;}.reading-tools .pronunciation-status{order:5;flex-basis:100%;margin:0!important;padding:6px 10px!important;background:#fff8e7;border-radius:8px;font-size:.86rem;}
  .control{margin:0!important;font-size:.93rem;}.control input{accent-color:#17694b;}
  .verses{gap:16px!important;}.ayah{position:relative;padding:24px 28px!important;border:2px solid #d6b75f!important;border-radius:18px!important;background:linear-gradient(110deg,#fffdf7,#fff9ec)!important;box-shadow:0 5px 16px rgba(100,75,28,.08)!important;overflow:hidden;}
  .ayah:before,.ayah:after{content:'❧';position:absolute;color:#caa85b;font-size:1.5rem;opacity:.85;}.ayah:before{left:8px;top:4px;}.ayah:after{right:8px;bottom:4px;transform:rotate(180deg);}
  .ayah-number{position:absolute;left:25px;top:24px;display:grid!important;place-items:center;width:48px;height:48px;border:3px solid #caa85b;border-radius:50%;background:#fff3cf;color:#15543e;font-size:1.1rem!important;font-family:"Noto Sans Bengali",sans-serif;z-index:1;}.ayah-number:before,.ayah-number:after{display:none!important;}
  .arabic{padding:0 0 0 78px!important;text-align:right;font-size:2.55rem!important;line-height:1.75!important;color:#0c5a3f!important;min-height:76px;display:flex;align-items:center;justify-content:flex-end;}
  .pronunciation,.translation{margin-left:78px!important;max-width:none!important;}.pronunciation{padding:8px 12px!important;margin-top:12px!important;border-left:0!important;border-radius:8px;background:#fff1d3!important;font-size:1rem!important;}.pronunciation::before{color:#6a5830;}.translation{border-top:0!important;margin-top:5px!important;padding:5px 0 0!important;font-size:1rem!important;line-height:1.75;}
  .ayah-note-toggle{margin-left:78px;margin-top:10px;}.surah-pager{grid-column:2;max-width:none;margin:14px 0!important;}.source-footer{margin-left:-28px;margin-right:-28px;}
}
@media (max-width: 899px){.walid-nav{display:none}.quran-sidebar{display:none}.quran-main{display:block}}


/* Reference-match pass: align the desktop reading shell with the supplied composition. */
@media (min-width:900px){
  .shell{width:min(1210px,100%);padding:0 18px 48px;}
  .walid-topbar{height:74px;margin:0 -18px;padding:0 42px;display:flex;align-items:center;gap:26px;border-bottom:1px solid #e7dcc0;background:rgba(255,255,255,.97);box-shadow:0 2px 8px #8e74230f;}
  .walid-topbar>.brand-link{display:flex;align-items:center;flex:none}.walid-topbar .islam-brand{margin:0!important;width:156px!important;height:52px!important;}
  .walid-topbar .walid-nav{height:auto;margin:0;padding:0;border:0;box-shadow:none;background:transparent;gap:24px;flex:1;}
  .walid-topbar .walid-nav a{font-size:1rem;}.walid-topbar .walid-nav a.active{padding:10px 20px;}
  .breadcrumbs{max-width:1140px;margin:24px auto 14px;padding:0;}
  .surah-head{max-width:1140px;min-height:212px;margin:0 auto 16px!important;padding:34px 80px!important;border-radius:30px!important;}
  .surah-head h1{font-size:3.35rem!important;line-height:1.18!important;}.surah-head:before{left:44px;top:42%;content:'☾';font-size:3rem}.surah-head:after{right:44px;bottom:42%;content:'۞';font-size:3.5rem}
  .surah-head .subtitle{font-size:1.2rem!important;}
  .design-tabs{max-width:1140px;margin:0 auto 12px;display:flex;gap:12px;}.design-tabs a{min-width:180px;text-align:center;padding:12px 20px;border:1px solid #e4cf95;border-radius:12px;background:#fff7e5;color:#3b3321;text-decoration:none;font-weight:700}.design-tabs a.active{background:#17694b;color:#fff;border-color:#17694b;box-shadow:0 5px 12px #17694b2b;}
  .info-strip{max-width:1140px;margin:0 auto 16px;padding:14px 26px;display:flex;align-items:center;gap:58px;border:1px solid #eee4cf;border-radius:14px;background:#fffdf8;color:#302e26;font-weight:600;}.info-strip span{display:inline-flex;gap:9px;align-items:center}.info-strip b{color:#ad8428;font-size:1.35rem;}
  .quran-reading-grid{max-width:1140px;grid-template-columns:258px minmax(0,1fr);gap:18px;}
  .quran-sidebar{padding:16px 10px;border-radius:14px;}.quran-sidebar h2{padding:0 8px 12px;margin:0;border-bottom:1px solid #eee4cf;}.quran-sidebar a{padding:8px 9px;font-size:.9rem;}.quran-sidebar .side-list{max-height:430px;overflow:hidden;}
  .quran-main>.context{display:none;}
  .reading-tools{margin:0 0 16px!important;padding:13px 18px!important;min-height:56px;}.reading-tools .pronunciation-status{display:none;}
  .verses{gap:14px!important;}.ayah{padding:24px 28px 20px!important;border-radius:19px!important;}.arabic{font-size:2.65rem!important;min-height:82px;}.pronunciation{font-size:1rem!important;}.translation{font-size:1.03rem!important;}
  .source-footer{margin-left:-18px;margin-right:-18px;}
}

/* Complete banner composition: one coherent hero layer, matching the supplied reference. */
@media (min-width:900px){
  .surah-head{
    min-height:220px!important;
    padding:32px 190px 30px 170px!important;
    border:3px solid #d0a844!important;
    border-radius:42px 30px 42px 30px!important;
    background:
      radial-gradient(ellipse at 49% 85%,#d7b85b2b 0 14%,transparent 35%),
      linear-gradient(105deg,#063b2c 0%,#0b5b3f 52%,#05372a 100%)!important;
    box-shadow:0 0 0 5px #c9a44b36,0 12px 25px #143f2a2b,inset 0 0 0 2px #f7db8466!important;
  }
  .surah-head:before{
    content:"";
    display:block!important;
    position:absolute;
    inset:auto 0 0;
    height:18px;
    background:
      linear-gradient(135deg,transparent 13px,#e5c36c 14px,#6d4a16 16px,transparent 17px) 0 0/34px 18px repeat-x,
      linear-gradient(#d1a645,#f0d27b 48%,#9f711d);
    opacity:.95;
    z-index:2;
  }
  .surah-head:after{
    content:"";
    display:block!important;
    position:absolute;
    right:0;
    top:0;
    width:35%;
    height:100%;
    background:radial-gradient(ellipse at 80% 48%,#0a2d221f,transparent 58%);
    pointer-events:none;
  }
  .hero-art{
    width:43%!important;
    height:100%!important;
    background-image:url('/assets/quran-banner-ornament.png')!important;
    background-repeat:no-repeat!important;
    background-position:left bottom!important;
    background-size:auto 100%!important;
    filter:saturate(.98) contrast(1.04)!important;
    z-index:1!important;
  }
  .hero-art svg{display:none!important}
  .surah-head h1{
    position:relative;
    z-index:3;
    margin:0 auto!important;
    white-space:nowrap;
    font-size:3.45rem!important;
    line-height:1.15!important;
    text-align:center;
    text-shadow:0 3px 1px #05271d;
  }
  .surah-head .eyebrow,.surah-head .subtitle{position:relative;z-index:3}
  .surah-head .subtitle{margin:4px auto 0!important}
  .hero-arabic{
    position:absolute;
    right:62px;
    top:50%;
    transform:translateY(-50%);
    z-index:3;
    color:#f4d477;
    font-family:"Noto Naskh Arabic","Amiri",serif;
    font-size:2.55rem;
    white-space:nowrap;
    text-shadow:0 2px 0 #765316;
  }
  .hero-arabic:before,.hero-arabic:after{
    content:"";
    position:absolute;
    left:50%;
    width:110px;
    height:2px;
    background:linear-gradient(90deg,transparent,#f2d274,transparent);
    transform:translateX(-50%);
  }
  .hero-arabic:before{top:-22px}.hero-arabic:after{bottom:-22px}
}

/* Banner-only correction: reserve a clean centered title zone like the supplied reference. */
@media (min-width:900px){
  .surah-head{padding-left:80px!important;padding-right:190px!important;min-height:206px!important;border-radius:34px 22px 34px 22px!important;}
  .hero-art{width:39%!important;background-size:118% auto!important;background-position:left bottom!important;}
  .surah-head h1{font-size:3.35rem!important;max-width:640px;margin:0 auto!important;white-space:nowrap;}
  .surah-head .subtitle{max-width:520px;margin:4px auto 0!important;}
  .hero-arabic{position:absolute;right:42px;top:50%;transform:translateY(-36%);z-index:2;color:#f4d477;font-family:"Noto Naskh Arabic","Amiri",serif;font-size:2.2rem;white-space:nowrap;text-shadow:0 1px 0 #7e5d1a;}
  .hero-arabic:before,.hero-arabic:after{content:"";position:absolute;left:50%;width:86px;height:2px;background:#e5c35f;transform:translateX(-50%);}
  .hero-arabic:before{top:-18px;}.hero-arabic:after{bottom:-18px;}
}
@media(max-width:899px){.walid-topbar{display:block}.info-strip,.design-tabs{display:none}}


/* Final reference alignment: stronger hero illustration cues, full-width density, and clean verse medallions. */
@media (min-width:900px){
  .surah-head{min-height:230px!important;padding:38px 150px!important;background:radial-gradient(ellipse at 16% 66%,rgba(212,179,88,.28),transparent 17%),radial-gradient(ellipse at 82% 50%,rgba(0,35,26,.34),transparent 23%),linear-gradient(115deg,#0b3f2e 0%,#17694b 48%,#063729 100%)!important;}
  .surah-head:before{content:'🏮  📖';left:52px;top:50%;transform:translateY(-50%);font-size:3.3rem;letter-spacing:-.3rem;filter:drop-shadow(0 3px 3px #0006);}
  .surah-head:after{content:'سُورَةُ الْفَاتِحَة';right:48px;bottom:50%;transform:translateY(50%);font-family:'Noto Naskh Arabic','Amiri',serif;font-size:2.15rem;letter-spacing:.04em;color:#f5d77a;opacity:1;}
  .surah-head h1{font-size:3.8rem!important;font-family:'Noto Sans Bengali',system-ui,sans-serif!important;}
  .surah-head:global{border-image:linear-gradient(90deg,#e3bd58,#fff0ad,#c29a3e) 1;}
  .design-tabs a{min-width:205px;padding:14px 22px;font-size:1.02rem;}.design-tabs{gap:12px;}
  .info-strip{padding:16px 34px;gap:74px;font-size:1.02rem;}
  .reading-tools{padding:15px 24px!important;font-size:1rem;}.reading-tools:before{content:'প্রদর্শন:';font-size:1.12rem;font-weight:800;color:#174f3a;margin-right:6px;}
  .quran-sidebar{background:linear-gradient(180deg,#fffdf8,#fbf7ea);}.quran-sidebar h2{font-size:1.35rem;}.quran-sidebar .side-list{max-height:430px;}
  .ayah{min-height:180px;padding:28px 34px 24px!important;}.ayah-number{left:26px;top:38px;width:58px;height:58px;font-size:1.35rem!important;background:radial-gradient(circle,#fff9e7 55%,#f0d684 56%,#fff3bd 67%,#caa85b 68%,#fff9e7 72%);}.arabic{padding-left:98px!important;font-size:3.05rem!important;line-height:1.7!important;}.pronunciation,.translation,.ayah-note-toggle{margin-left:98px!important;}.pronunciation{padding:10px 16px!important;font-size:1.05rem!important;}.translation{font-size:1.1rem!important;}
}


@media (min-width:900px){.surah-head{position:relative;overflow:hidden!important;padding-left:250px!important;padding-right:250px!important;background:linear-gradient(110deg,#082e24 0%,#0b4a36 45%,#06362a 100%)!important}.surah-head:before,.surah-head:after{display:none!important}.hero-art{position:absolute;inset:auto auto 0 0;width:46%;height:100%;pointer-events:none;z-index:0}.hero-art svg{width:100%;height:100%;display:block}.surah-head>*:not(.hero-art){position:relative;z-index:1}.surah-head h1{font-size:3.55rem!important;text-shadow:0 3px 1px #06251b}.surah-head .subtitle{font-size:1.15rem!important}.surah-head:focus-within{outline:0}}

/* Use the finished banner artwork as the hero illustration; HTML remains responsible for all text. */
@media (min-width:900px){
  .surah-head{
    border:3px solid #d1aa4d!important;
    border-radius:34px 34px 28px 28px!important;
    box-shadow:0 0 0 5px #d8b76633,0 12px 26px #123d2a2b,inset 0 0 0 2px #f2d98766!important;
    background:linear-gradient(110deg,#083d2d 0%,#0d523a 48%,#073729 100%)!important;
  }
  .hero-art{
    width:58%;
    height:100%;
    background:url('/assets/quran-banner-ornament.png') left bottom/contain no-repeat;
    filter:saturate(.96) contrast(1.03);
  }
  .hero-art svg{display:none!important}
  .surah-head:after{
    content:'۞';
    display:block!important;
    position:absolute;
    right:46px;
    bottom:50%;
    transform:translateY(50%);
    color:#f3d477;
    font-family:'Noto Naskh Arabic','Amiri',serif;
    font-size:3.8rem;
    opacity:.9;
  }
}

/* Final lock applied last so no earlier banner rule can override it. */
@media (min-width:900px){
  .surah-head{min-height:210px!important;padding:28px 210px 34px 175px!important;border-radius:38px 24px 38px 24px!important;}
  .surah-head:before{content:""!important;inset:auto 0 0 0!important;width:100%!important;height:16px!important;display:block!important;background:linear-gradient(180deg,#f1d27b,#b27d1d 55%,#f5d98a)!important;opacity:.95!important;}
  .surah-head:after{content:""!important;display:block!important;position:absolute!important;left:auto!important;right:0!important;top:0!important;bottom:auto!important;width:31%!important;height:100%!important;transform:none!important;background:radial-gradient(ellipse at 65% 48%,#082a201d,transparent 62%)!important;pointer-events:none!important;}
  .hero-art{left:0!important;bottom:0!important;width:42%!important;height:100%!important;background-size:auto 100%!important;background-position:left bottom!important;z-index:1!important;}
  .hero-art svg{display:none!important}
  .surah-head h1{max-width:650px!important;font-size:3.25rem!important;white-space:nowrap!important;margin:0 auto!important;z-index:3!important;}
  .surah-head .subtitle{z-index:3!important;margin:4px auto 0!important}
  .hero-arabic{right:44px!important;top:50%!important;transform:translateY(-50%)!important;font-size:2.45rem!important;z-index:4!important;}
}

@media (min-width:900px){
  .surah-head:after{content:""!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;height:16px!important;background:linear-gradient(180deg,#f1d27b,#b27d1d 55%,#f5d98a)!important;transform:none!important;opacity:1!important;}
  .surah-head:before{content:""!important;display:block!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;background:radial-gradient(ellipse at 85% 45%,#143e2c77,transparent 32%)!important;opacity:1!important;pointer-events:none!important;}
}

@media (min-width:900px){
  .quran-sidebar .side-list{display:flex!important;flex-direction:column!important;gap:4px!important;max-height:none!important;overflow:visible!important;padding:10px 0 16px!important;}
  .quran-sidebar .side-list>a:not(.side-all){display:flex!important;align-items:center!important;gap:12px!important;min-height:66px!important;padding:8px 14px!important;border-radius:12px!important;color:#172d25!important;text-decoration:none!important;}
  .quran-sidebar .side-list>a.current{background:#116b4d!important;color:#fff!important;box-shadow:0 5px 12px #0e5a4028!important;}
  .quran-sidebar .side-num{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border:1px solid #d6a632!important;border-radius:50%!important;flex:0 0 38px!important;font-family:"Noto Sans Bengali",sans-serif!important;font-size:1.05rem!important;}
  .quran-sidebar .side-copy{display:grid!important;gap:2px!important;min-width:0!important;}
  .quran-sidebar .side-copy strong{font-family:"Noto Serif Bengali",serif!important;font-size:1.05rem!important;line-height:1.25!important;}
  .quran-sidebar .side-copy small{font-size:.78rem!important;line-height:1.25!important;color:#456357!important;white-space:nowrap!important;}
  .quran-sidebar a.current .side-num{border-color:#f3d278!important;background:#0b5b42!important;color:#fff!important;}
  .quran-sidebar a.current .side-copy small{color:#e9f5e9!important;}
  .quran-sidebar .side-all{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:12px 14px 0!important;padding:13px 18px!important;border:1px solid #d4a536!important;border-radius:24px!important;color:#145d45!important;font-family:"Noto Serif Bengali",serif!important;font-weight:700!important;text-decoration:none!important;background:#fffaf0!important;}
  .quran-sidebar .side-all span{font-size:1.35rem!important;line-height:1!important;}
  .surah-head{height:220px!important;min-height:220px!important;border-radius:30px!important;background:linear-gradient(90deg,#093e2d 0%,#07543d 52%,#06422f 100%)!important;overflow:hidden!important;}
  .hero-art{left:0!important;bottom:0!important;width:39%!important;height:100%!important;background-size:auto 100%!important;background-position:left bottom!important;z-index:1!important;}
  .surah-head h1{position:relative!important;z-index:3!important;max-width:680px!important;font-size:3.2rem!important;white-space:nowrap!important;margin:0 auto!important;}
  .surah-head .subtitle{position:relative!important;z-index:3!important;margin:4px auto 0!important;}
  .hero-arabic{right:42px!important;top:50%!important;transform:translateY(-50%)!important;font-size:2.65rem!important;z-index:4!important;}
  .surah-head:after{content:""!important;display:block!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:14px!important;background:linear-gradient(180deg,#f6dc8b,#b67f1e 55%,#f5d98a)!important;z-index:5!important;opacity:1!important;}
}

@media (min-width:900px){
  .ayah{position:relative!important;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;column-gap:24px!important;min-height:206px!important;padding:22px 30px 22px 24px!important;border:2px solid #d4a332!important;border-radius:22px!important;background:linear-gradient(135deg,#fffdf7,#fff8e8)!important;box-shadow:0 4px 14px #8b66151a!important;overflow:hidden!important;}
  .ayah:before{content:""!important;position:absolute!important;left:112px!important;top:32px!important;bottom:32px!important;width:3px!important;background:#d7a62f!important;}
  .ayah-number{position:static!important;grid-column:1!important;grid-row:1 / span 3!important;align-self:start!important;justify-self:center!important;width:68px!important;height:68px!important;margin-top:20px!important;display:grid!important;place-items:center!important;border:3px solid #d5a62f!important;border-radius:50%!important;color:#145a42!important;background:#fff7dc!important;font-family:"Noto Serif Bengali",serif!important;font-size:1.55rem!important;box-shadow:0 0 0 7px #fff8e3,0 0 0 9px #c99527!important;}
  .ayah .arabic{grid-column:2!important;grid-row:1!important;margin:0!important;text-align:center!important;font-size:2.5rem!important;line-height:1.7!important;}
  .ayah .pronunciation,.ayah .translation{grid-column:2!important;margin-top:10px!important;padding:9px 14px!important;border:0!important;border-radius:10px!important;background:#fff0cf!important;font-size:1rem!important;}
  .ayah .translation{background:transparent!important;padding:0 14px!important;margin-top:2px!important;color:#1b3f31!important;}
  .ayah .ayah-note{grid-column:2!important;}
}


/* Final desktop reference implementation: one deterministic ornate Quran reading composition. */
@media (min-width:900px){
  :root{--quran-deep:#063d2c;--quran-green:#0b6245;--quran-gold:#d2aa4b;--quran-cream:#fffaf0}
  body{background:#fff}
  .shell{width:min(1240px,100%);padding:0 26px 52px}
  .walid-topbar{height:76px;margin:0 -26px;padding:0 44px;display:flex;align-items:center;gap:28px;border-bottom:1px solid #e9e0ca;background:rgba(255,255,255,.98);box-shadow:0 2px 9px rgba(92,74,28,.08)}
  .walid-topbar>.brand-link{display:flex;align-items:center}.walid-topbar .islam-brand{width:158px!important;height:52px!important;margin:0!important}
  .walid-topbar .walid-nav{flex:1;height:auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none;gap:24px}
  .walid-topbar .walid-nav a{font-size:1rem}.walid-topbar .walid-nav a.active{padding:10px 18px;border-radius:22px}
  .breadcrumbs{max-width:1140px;width:100%;margin:22px auto 14px}
  .surah-head{
    position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;
    max-width:1140px;width:100%;min-height:226px;margin:0 auto 15px!important;padding:34px 250px!important;
    border:3px solid var(--quran-gold)!important;border-radius:34px 26px 42px 24px!important;
    background:linear-gradient(108deg,#073a2b 0%,#0b6044 50%,#063629 100%)!important;
    box-shadow:0 0 0 5px rgba(210,170,75,.2),0 12px 28px rgba(17,61,42,.18),inset 0 0 0 2px rgba(255,238,166,.45)!important;
  }
  .surah-head:before{
    content:"";position:absolute;inset:auto 0 0;width:100%;height:17px;z-index:2;
    background:
      linear-gradient(135deg,transparent 12px,var(--quran-gold) 13px,var(--quran-deep) 15px,transparent 16px) 0 0/34px 17px repeat-x,
      linear-gradient(180deg,#f1d67f,#aa771f 56%,#f4d98c);
    opacity:.98;pointer-events:none;
  }
  .surah-head:after{
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
    background:radial-gradient(ellipse at 86% 45%,rgba(3,28,21,.45),transparent 27%),radial-gradient(ellipse at 17% 66%,rgba(221,186,86,.2),transparent 20%);
  }
  .hero-art{position:absolute!important;inset:auto auto 0 0!important;width:45%!important;height:100%!important;z-index:1!important;background:url("/assets/quran-banner-ornament.png") left bottom/auto 100% no-repeat!important;filter:saturate(.96) contrast(1.04)!important;pointer-events:none}
  .hero-art svg{display:none!important}
  .surah-head>*:not(.hero-art){position:relative;z-index:3}
  .surah-head .eyebrow{color:#f1d37b}.surah-head h1{margin:0!important;max-width:660px;font-size:3.35rem!important;line-height:1.15!important;color:#fff8dc!important;text-shadow:0 3px 1px #05271d!important;white-space:nowrap}
  .surah-head .subtitle{margin:5px auto 0!important;color:#f7e8ae!important;font-size:1.18rem!important}
  .hero-arabic{right:46px!important;top:50%!important;transform:translateY(-50%)!important;color:#f4d477!important;font-family:"Noto Naskh Arabic","Amiri",serif;font-size:2.55rem!important;text-shadow:0 2px 0 #6d4c15!important;z-index:4!important}
  .hero-arabic:before,.hero-arabic:after{content:"";position:absolute;left:50%;width:105px;height:2px;background:linear-gradient(90deg,transparent,#f4d477,transparent);transform:translateX(-50%)}
  .hero-arabic:before{top:-22px}.hero-arabic:after{bottom:-22px}
  .design-tabs{max-width:1140px;width:100%;margin:0 auto 12px;display:flex;gap:10px}
  .design-tabs a{flex:0 0 auto;min-width:190px;padding:10px 20px;border:1px solid #e4cf95;border-radius:11px;background:#fff8e9;color:#3d3524;text-decoration:none;text-align:center;font-weight:700}
  .design-tabs a.active{background:var(--quran-green);border-color:var(--quran-green);color:#fff;box-shadow:0 5px 12px rgba(23,105,75,.2)}
  .info-strip{max-width:1140px;width:100%;margin:0 auto 16px;padding:13px 25px;display:flex;align-items:center;gap:52px;border:1px solid #eee4cf;border-radius:13px;background:#fffdf8;color:#353025;font-weight:600}
  .info-strip span{display:inline-flex;align-items:center;gap:8px}.info-strip b{color:#ad8428;font-size:1.2rem}
  .quran-reading-grid{max-width:1140px;width:100%;margin:0 auto;grid-template-columns:252px minmax(0,1fr);gap:18px}
  .quran-sidebar{padding:15px 10px;border:1px solid #e8ddc2;border-radius:14px;background:linear-gradient(180deg,#fffdf8,#fbf7ea)}
  .quran-sidebar h2{padding:0 8px 11px;margin:0;border-bottom:1px solid #eee4cf;font-size:1.28rem}
  .quran-sidebar .side-list{padding:9px 0 12px!important;gap:3px!important}
  .quran-sidebar .side-list>a:not(.side-all){min-height:52px!important;padding:7px 10px!important;border-radius:10px!important}
  .quran-sidebar .side-num{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:.98rem!important}
  .quran-sidebar .side-copy strong{font-size:1rem!important}.quran-sidebar .side-copy small{font-size:.72rem!important}
  .quran-main>.context{display:none}
  .reading-tools{margin:0 0 14px!important;padding:12px 18px!important;min-height:54px;display:flex!important;align-items:center;gap:18px;background:#f3f8df!important;border-color:#dceac0!important}
  .reading-tools:before{content:"প্রদর্শন:";font-weight:800;color:#174f3a}.reading-tools .pronunciation-status{display:none}
  .control{margin:0!important;font-size:.93rem}
  .verses{gap:14px!important}
  .ayah{
    position:relative!important;display:grid!important;grid-template-columns:106px minmax(0,1fr)!important;column-gap:22px!important;
    min-height:184px;padding:25px 30px 21px 22px!important;border:2px solid #d2aa4b!important;border-radius:19px!important;
    background:linear-gradient(135deg,#fffdf7,#fff8e9)!important;box-shadow:0 5px 16px rgba(100,75,28,.08)!important;overflow:hidden!important;
  }
  .ayah:before,.ayah:after{content:"❧";position:absolute;color:#caa85b;font-size:1.45rem;opacity:.9}.ayah:before{left:8px;top:2px}.ayah:after{right:8px;bottom:2px;transform:rotate(180deg)}
  .ayah-number{position:static!important;grid-column:1!important;grid-row:1/span 3!important;align-self:start!important;justify-self:center!important;width:62px!important;height:62px!important;margin-top:18px!important;display:grid!important;place-items:center!important;border:3px solid #d2aa4b!important;border-radius:50%!important;background:radial-gradient(circle,#fff9e7 55%,#f0d684 56%,#fff3bd 67%,#caa85b 68%,#fff9e7 72%)!important;color:#145a42!important;font-family:"Noto Serif Bengali",serif!important;font-size:1.35rem!important;box-shadow:none!important}
  .ayah-number:before,.ayah-number:after{display:none!important}
  .ayah .arabic{grid-column:2!important;grid-row:1!important;min-height:76px;margin:0!important;padding:0 6px!important;display:flex;align-items:center;justify-content:flex-end;text-align:right;font-size:2.65rem!important;line-height:1.72!important;color:#0c5a3f!important}
  .ayah .pronunciation,.ayah .translation,.ayah-note-toggle{grid-column:2!important;margin-left:0!important}
  .ayah .pronunciation{margin-top:8px!important;padding:8px 13px!important;border:0!important;border-radius:8px;background:#fff0cf!important;font-size:1rem!important}
  .ayah .translation{margin-top:3px!important;padding:4px 13px 0!important;border:0!important;background:transparent!important;color:#1b3f31!important;font-size:1.03rem!important;line-height:1.78}
  .ayah-note-toggle{justify-self:start;margin-top:9px!important}
  .surah-pager{grid-column:2;max-width:none;margin:14px 0!important}
  .source-footer{margin-left:-26px;margin-right:-26px}
}
@media (max-width:899px){.walid-topbar{display:block}.info-strip,.design-tabs{display:none}}

/* Reference finish: sculpt the desktop plaque and cards with CSS/SVG-like ornaments,
   keeping all copy and data in the existing HTML/JS. */
@media (min-width:900px){
  .surah-head{
    border:0!important;
    border-radius:0!important;
    clip-path:polygon(2.2% 0,8% 0,8.7% 4%,91.3% 4%,92% 0,97.8% 0,98.5% 7%,100% 10%,100% 90%,98.5% 93%,97.8% 100%,92% 100%,91.3% 96%,8.7% 96%,8% 100%,2.2% 100%,1.5% 93%,0 90%,0 10%,1.5% 7%);
    background:linear-gradient(115deg,#063a2b 0%,#07543d 48%,#063629 100%)!important;
    box-shadow:inset 0 0 0 3px #d2aa4b,inset 0 0 0 6px #f0d989,inset 0 0 0 8px #63823d,0 10px 26px #163a252b!important;
  }
  .surah-head:before{
    content:""!important;display:block!important;position:absolute!important;inset:10px!important;width:auto!important;height:auto!important;
    clip-path:inherit;border:1px solid #f5dc8b;background:radial-gradient(ellipse at 12% 54%,#e2bd5840,transparent 23%),radial-gradient(ellipse at 88% 45%,#001d1438,transparent 30%);opacity:1!important;z-index:0!important;pointer-events:none;
  }
  .surah-head:after{
    content:""!important;left:3%!important;right:3%!important;bottom:10px!important;top:auto!important;width:auto!important;height:3px!important;transform:none!important;border-radius:50%;background:linear-gradient(90deg,transparent,#f5dc8b 12%,#a9751e 50%,#f5dc8b 88%,transparent)!important;z-index:4!important;opacity:1!important;
  }
  .surah-head h1{font-size:3.25rem!important;letter-spacing:-.035em!important}
  .hero-arabic:before,.hero-arabic:after{height:2px!important;background:linear-gradient(90deg,transparent,#f4d477 18%,#f4d477 82%,transparent)!important}
  .ayah{
    min-height:190px!important;border:0!important;border-radius:0!important;clip-path:polygon(2.2% 0,5% 0,6% 4%,94% 4%,95% 0,97.8% 0,98.6% 8%,100% 12%,100% 88%,98.6% 92%,97.8% 100%,95% 100%,94% 96%,6% 96%,5% 100%,2.2% 100%,1.4% 92%,0 88%,0 12%,1.4% 8%);
    background:linear-gradient(135deg,#fffdf7,#fff8e9)!important;box-shadow:inset 0 0 0 2px #d2aa4b,inset 0 0 0 5px #f6e5a6,0 5px 16px rgba(100,75,28,.08)!important;
  }
  .ayah:before{left:106px!important;top:35px!important;bottom:35px!important;width:2px!important;background:#d2aa4b!important}
  .ayah:after{content:"❧"!important;right:12px!important;bottom:4px!important;color:#caa85b!important;font-size:1.35rem!important;opacity:.95!important}
  .ayah-number{width:60px!important;height:60px!important;border:3px solid #d2aa4b!important;box-shadow:0 0 0 3px #fff8e3,0 0 0 5px #c99527!important}
  .ayah .arabic{font-size:2.55rem!important;line-height:1.62!important;min-height:70px!important}
  .ayah .pronunciation{margin-top:5px!important;background:#fff0cf!important}
  .design-tabs a.active{position:relative!important}
  .design-tabs a.active:after{content:"";position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--quran-green)}
}

/* The Quran page header should keep only the original Walid AI logo. */
@media (min-width:900px){
  .walid-topbar{justify-content:flex-start!important}
  .walid-topbar .walid-nav{display:none!important}
}



/* Final header-box removal: the Quran page keeps only the natural logo above breadcrumbs. */
.shell > a:first-child,
.shell > a:first-child:hover,
.shell > a:first-child:focus-visible,
.shell > .brand-link,
.shell > .brand-link:hover,
.shell > .brand-link:focus-visible,
.shell > .walid-topbar,
.shell > .walid-topbar:hover,
.shell > .walid-topbar:focus-visible,
.walid-topbar,
.walid-topbar:hover,
.walid-topbar:focus-visible {
  display: block !important;
  width: max-content !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.walid-topbar {
  align-items: initial !important;
  gap: 0 !important;
}
.walid-topbar > .brand-link,
.walid-topbar .brand-link,
.walid-topbar .islam-brand {
  display: block !important;
  width: max-content !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.walid-topbar .islam-brand,
.shell > a:first-child .islam-brand {
  width: 132px !important;
  height: auto !important;
  max-width: 132px !important;
  object-fit: contain !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}
.walid-topbar .walid-nav,
.walid-topbar .account,
.walid-nav {
  display: none !important;
}
@media (max-width: 650px) {
  .walid-topbar .islam-brand,
  .shell > a:first-child .islam-brand {
    width: 112px !important;
    max-width: 112px !important;
  }
}

/* Final Quran readability pass */
body,button,input{font-family:"SolaimanLipi","Noto Sans Bengali",system-ui,sans-serif}.surah-head{isolation:isolate}.surah-head>*{position:relative;z-index:3}.surah-head::before,.surah-head::after,.hero-art{pointer-events:none}.info-strip{flex-wrap:wrap;gap:18px 42px}.surah-meaning{margin:.35rem 0 0;color:#f7e6aa;font-size:1rem;line-height:1.6;position:relative;z-index:3}.ayah{min-width:0;overflow:visible!important}.ayah::before,.ayah::after{pointer-events:none;z-index:0}.ayah>*{min-width:0;position:relative;z-index:1}.ayah .arabic,.ayah .pronunciation,.ayah .translation,.ayah .ayah-note,.ayah .ayah-note-toggle{overflow-wrap:anywhere;word-break:normal}.ayah .ayah-note{position:static!important;display:block!important;grid-column:2!important;grid-row:auto!important;width:auto!important;max-width:100%!important;min-height:0!important;height:auto!important;margin-top:12px!important;padding:12px 0 0!important;border-top:1px dashed #d5e3d8!important;background:transparent!important;color:#17372c!important;white-space:normal!important;overflow:visible!important;opacity:1!important;transform:none!important;clip-path:none!important;z-index:2!important;line-height:1.85}.basmala{display:block!important;min-height:0!important;overflow:visible!important;padding:18px 24px!important;text-align:center}.basmala .basmala-label{display:none!important}.basmala .arabic{display:block!important;min-height:0!important;padding:0!important;margin:0!important;text-align:center!important;white-space:normal!important}@media (min-width:900px){.surah-head{overflow:hidden!important}.surah-head h1{white-space:normal!important}.ayah{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;align-items:start!important}.ayah .ayah-note{grid-column:2!important}.basmala{display:block!important;grid-column:1 / -1!important}.basmala .arabic{font-size:2.35rem!important;line-height:1.7!important}}@media (max-width:899px){.ayah{display:block!important}.ayah .ayah-note{margin-left:0!important}.surah-meaning{color:var(--muted)}}
/* Keep native hidden semantics authoritative. */
[hidden]{display:none!important}.reading-tools #show-notes{display:none!important}.reading-tools #show-notes+*{display:none!important}.reading-tools #load-status{display:none!important}.surah-head .eyebrow,.surah-head #surah-subtitle{display:none!important}.surah-head .hero-art{display:block!important;background:url("/assets/quran-banner-ornament.png") left bottom/auto 100% no-repeat!important;opacity:1!important}.surah-head .hero-arabic{display:block!important}

/* Restore legible Quran heading and verse-loading feedback on every screen. */
.surah-head{display:flex!important;align-items:center!important;justify-content:center!important;min-height:150px!important;padding:28px 24px!important;position:relative!important}
.surah-head #surah-title{position:relative!important;z-index:5!important;max-width:100%!important;margin:0!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;line-height:1.4!important}
.surah-head .hero-arabic{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;transform:none!important;z-index:5!important;white-space:normal!important;text-align:center!important;line-height:1.5!important;text-shadow:none!important}
.surah-head .hero-arabic:before,.surah-head .hero-arabic:after{display:none!important}
.reading-tools #load-status{display:block!important;flex-basis:100%;margin:0!important;line-height:1.5}
@media(max-width:899px){.surah-head{flex-direction:column!important;gap:4px!important;padding:20px 16px!important;min-height:130px!important}.surah-head #surah-title{font-size:clamp(1.5rem,5.5vw,2.3rem)!important;color:#174f3a!important;text-shadow:none!important}.surah-head .hero-arabic{font-size:clamp(1.5rem,5.5vw,2.1rem)!important;color:#9b751e!important}.surah-head .hero-art{opacity:.16!important}.reading-tools{display:flex!important;flex-wrap:wrap!important}}
@media(min-width:900px){.surah-head{gap:30px!important}.surah-head #surah-title{font-size:clamp(2rem,3vw,3.15rem)!important;flex:1!important;color:#fff8dc!important}.surah-head .hero-arabic{flex:0 0 27%!important;color:#f4d477!important;font-size:2.5rem!important}.surah-head .hero-art{opacity:.65!important}}

/* Stable surah header: keep Arabic name below Bengali on small screens. */
@media(max-width:899px){
 .surah-head{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:0!important;overflow:hidden!important}
 .surah-head #surah-title{position:relative!important;display:block!important;width:100%!important;max-width:100%!important;font-size:clamp(1.35rem,5vw,2rem)!important;line-height:1.5!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .surah-head .hero-arabic{position:relative!important;display:block!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;font-size:clamp(1.4rem,5vw,2rem)!important;line-height:1.6!important;text-align:center!important;white-space:normal!important}
 .surah-head .hero-art{opacity:.12!important}
}

/* Remove the highlighted source callout box; keep translation control usable. */
.reading-tools .pronunciation-status{display:none!important}
.reading-tools{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important;min-height:0!important;border-radius:0!important}
.reading-tools:before{display:none!important}

/* Surah meaning belongs inside the banner. */
.surah-head .banner-meaning{position:relative!important;z-index:5!important;margin:0!important;text-align:center!important;font-size:clamp(.9rem,2.6vw,1.1rem)!important;line-height:1.45!important;color:#81671d!important}
@media(max-width:899px){.surah-head{flex-direction:column!important}.surah-head .banner-meaning{width:100%!important}}
@media(min-width:900px){.surah-head .banner-meaning{flex:0 0 100%!important;color:#f5dc8b!important}.surah-head{flex-wrap:wrap!important;row-gap:0!important}}


/* Quran verse visibility repair: prevent blank cards and clipped long verses. */
#verses .ayah:not(.basmala){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;clip-path:none!important;padding:20px 22px!important;contain:none!important}
#verses .ayah:not(.basmala)>.ayah-number{position:relative!important;inset:auto!important;display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;align-self:flex-start!important;grid-area:auto!important;margin:0 0 4px!important}
#verses .ayah:not(.basmala)>.arabic{position:relative!important;display:block!important;grid-area:auto!important;align-self:stretch!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;text-align:right!important;direction:rtl!important;white-space:normal!important;word-break:normal!important;line-height:1.95!important}
#verses .ayah:not(.basmala)>.translation,#verses .ayah:not(.basmala)>.pronunciation{position:relative!important;display:block!important;grid-area:auto!important;align-self:stretch!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;margin:0!important;padding:4px 0!important;line-height:1.85!important}
#verses .ayah:not(.basmala)>.pronunciation:empty{display:none!important}
#verses .ayah:not(.basmala)>[hidden]{display:none!important}
#verses .ayah:not(.basmala)>.ayah-note-toggle{grid-area:auto!important;align-self:flex-start!important;margin:4px 0!important}
#verses .ayah:not(.basmala)>.ayah-note{grid-area:auto!important;align-self:stretch!important}
#verses .ayah:not(.basmala)::before{display:none!important}
@media(max-width:600px){#verses .ayah:not(.basmala){padding:18px 16px!important}#verses .ayah:not(.basmala)>.arabic{font-size:clamp(1.65rem,6vw,2.2rem)!important}}

/* Arabic-first mobile reading: override conflicting legacy verse layout rules. */
#verses{display:flex!important;flex-direction:column!important;gap:16px!important;contain:none!important}
#verses>.ayah{box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:12px!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;clip-path:none!important;transform:none!important;filter:none!important;opacity:1!important;visibility:visible!important;contain:none!important;padding:20px!important}
#verses>.ayah>*{position:relative!important;grid-area:auto!important;flex-shrink:0!important;opacity:1!important;visibility:visible!important;transform:none!important;filter:none!important;max-height:none!important}
#verses>.ayah>.ayah-number{position:relative!important;inset:auto!important;display:flex!important;align-self:flex-start!important;justify-content:center!important;align-items:center!important;width:52px!important;height:52px!important;margin:0!important}
#verses>.ayah>.arabic{display:block!important;position:relative!important;direction:rtl!important;unicode-bidi:plaintext!important;text-align:right!important;align-self:stretch!important;width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;font-family:"Noto Naskh Arabic","Amiri",serif!important;font-size:clamp(1.8rem,5.6vw,2.6rem)!important;line-height:2!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;color:#14513c!important}
#verses>.ayah>.translation,#verses>.ayah>.pronunciation{display:block!important;align-self:stretch!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;line-height:1.85!important;white-space:normal!important;overflow:visible!important;color:#234336!important}
#verses>.ayah>[hidden]{display:none!important}
#verses>.ayah::before,#verses>.ayah::after{display:none!important}
#verses>.ayah.basmala{display:flex!important;text-align:center!important;align-items:stretch!important}
#verses>.ayah.basmala>.arabic{text-align:center!important;direction:rtl!important}
#verses>.ayah.basmala>.pronunciation,#verses>.ayah.basmala>.translation{text-align:center!important}

/* Content-sized ayah cards: no fixed whitespace for short verses. */
#verses{align-items:stretch!important;grid-auto-rows:auto!important}
#verses>.ayah:not(.basmala){display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-content:normal!important;align-items:stretch!important;min-height:0!important;height:max-content!important;max-height:none!important;grid-template-rows:none!important;grid-auto-rows:auto!important;row-gap:8px!important;padding:14px 18px!important}
#verses>.ayah:not(.basmala)>.ayah-number{flex:0 0 auto!important;width:36px!important;height:36px!important;min-height:0!important;margin:0!important}
#verses>.ayah:not(.basmala)>.arabic{flex:0 0 auto!important;min-height:0!important;height:auto!important;line-height:1.65!important;margin:0!important;padding:0!important}
#verses>.ayah:not(.basmala)>.pronunciation,#verses>.ayah:not(.basmala)>.translation{flex:0 0 auto!important;min-height:0!important;height:auto!important;line-height:1.6!important;margin:0!important;padding:0!important}
#verses .pronunciation::before{content:none!important}


/* Approved Quran banner artwork: exact supplied emerald/gold reference image. */
.surah-head .hero-art{background-image:url("/assets/quran-banner-approved.png")!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;opacity:1!important;}
@media(max-width:899px){.surah-head{min-height:180px!important;padding:18px 14px!important;background-image:url("/assets/quran-banner-approved.png")!important;background-position:center!important;background-size:cover!important;}.surah-head .hero-art{opacity:.28!important;background-size:cover!important;}.surah-head #surah-title,.surah-head .hero-arabic,.surah-head .banner-meaning{color:#fff8dc!important;text-shadow:0 2px 3px #06291dcc!important;}}
@media(min-width:900px){.surah-head{height:260px!important;min-height:260px!important;background-image:url("/assets/quran-banner-approved.png")!important;background-position:center!important;background-size:cover!important;}.surah-head .hero-art{display:none!important;}.surah-head #surah-title{color:#fff!important;text-shadow:0 3px 3px #06291dcc!important;}.surah-head .hero-arabic{color:#f4d477!important;text-shadow:0 2px 3px #06291dcc!important;}}


/* Dynamic Quran banner: keep the approved emerald/gold artwork as a text-free backdrop and render metadata in HTML. */
.surah-head{height:clamp(180px,26vw,300px)!important;min-height:180px!important;padding:clamp(22px,4vw,48px)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(12px,4vw,48px)!important;flex-wrap:wrap!important;position:relative!important;overflow:hidden!important;clip-path:none!important;border:0!important;border-radius:22px!important;background-color:#06422f!important;background-image:url("/assets/quran-banner-text-free.jpg")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:100% 100%!important;box-shadow:0 8px 28px #153c2740!important;}
.surah-head::before,.surah-head::after{display:none!important;content:none!important;}
.surah-head .hero-art{display:none!important;}
.surah-head #surah-title,.surah-head .hero-arabic,.surah-head .banner-meaning{display:block!important;position:relative!important;z-index:2!important;text-align:center!important;text-shadow:0 2px 3px #06291dcc!important;}
.surah-head #surah-title{margin:0!important;color:#fff8dc!important;font-size:clamp(1.7rem,4.2vw,3.2rem)!important;line-height:1.25!important;flex:1 1 45%!important;}
.surah-head .hero-arabic{color:#f4d477!important;font-family:"Noto Naskh Arabic","Amiri",serif!important;font-size:clamp(1.8rem,4vw,3rem)!important;line-height:1.4!important;flex:0 1 30%!important;}
.surah-head .banner-meaning{flex-basis:100%!important;margin:0!important;color:#f5dc8b!important;font-size:clamp(.9rem,2vw,1.1rem)!important;line-height:1.45!important;}
@media(max-width:899px){.surah-head{min-height:180px!important;height:auto!important;padding:28px 16px!important;flex-direction:column!important;gap:2px!important;border-radius:16px!important;background-size:cover!important}.surah-head #surah-title,.surah-head .hero-arabic{flex:none!important;width:100%!important}.surah-head #surah-title{font-size:clamp(1.5rem,7vw,2.25rem)!important}.surah-head .hero-arabic{font-size:clamp(1.65rem,7vw,2.3rem)!important}.surah-head .banner-meaning{font-size:.95rem!important}}

/* Final banner placement correction: Bengali title, metadata badge, meaning and Arabic name each occupy their intended design area. */
.surah-head{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,.72fr)!important;grid-template-rows:auto 1fr auto!important;align-items:center!important;gap:0 24px!important;padding:34px clamp(22px,5vw,64px) 30px!important;}
.surah-head .banner-meta{grid-column:1 / -1!important;grid-row:1!important;justify-self:center!important;margin:0!important;padding:7px 28px!important;border:2px solid #c99b35!important;border-radius:999px!important;background:#fff6d9!important;color:#1a2418!important;font-size:clamp(.85rem,1.7vw,1.15rem)!important;font-weight:700!important;text-shadow:none!important;white-space:nowrap!important;}
.surah-head #surah-title{grid-column:1!important;grid-row:2!important;justify-self:center!important;align-self:center!important;width:100%!important;font-size:clamp(2rem,4.4vw,3.7rem)!important;text-align:center!important;}
.surah-head .hero-arabic{grid-column:2!important;grid-row:2!important;justify-self:center!important;width:100%!important;font-size:clamp(2rem,4vw,3.4rem)!important;}
.surah-head .banner-meaning{grid-column:1 / -1!important;grid-row:3!important;justify-self:center!important;margin:0!important;font-size:clamp(1rem,2vw,1.25rem)!important;}
@media(max-width:899px){.surah-head{display:flex!important;flex-direction:column!important;gap:5px!important;padding:20px 14px!important}.surah-head .banner-meta{order:0!important;font-size:.8rem!important;padding:5px 14px!important}.surah-head #surah-title{order:1!important;font-size:clamp(1.6rem,7vw,2.4rem)!important}.surah-head .hero-arabic{order:2!important;font-size:clamp(1.8rem,7vw,2.6rem)!important}.surah-head .banner-meaning{order:3!important;font-size:.9rem!important}}

/* Exact approved banner composition. */
.surah-head{grid-template-columns:minmax(0,1fr) minmax(230px,.72fr)!important;grid-template-rows:auto 1fr auto!important;}
.surah-head #surah-title{grid-column:1 / -1!important;grid-row:2!important;justify-self:center!important;text-align:center!important;}
.surah-head .hero-arabic{grid-column:2!important;grid-row:2!important;justify-self:center!important;}
.surah-head .hero-arabic:before,.surah-head .hero-arabic:after{content:"";display:block!important;width:150px!important;height:2px!important;margin:8px auto!important;background:linear-gradient(90deg,transparent,#f4d477,transparent)!important;opacity:1!important;}
.surah-head .banner-meaning{grid-column:1 / -1!important;grid-row:3!important;text-align:center!important;color:#f5dc8b!important;}
@media(max-width:899px){.surah-head{display:flex!important}.surah-head #surah-title,.surah-head .hero-arabic,.surah-head .banner-meaning{width:100%!important}.surah-head .hero-arabic:before,.surah-head .hero-arabic:after{width:120px!important}}

/* Final visual alignment: Arabic inside the right gold ornaments, Bengali meaning above the lower frame. */
.surah-head .hero-arabic{grid-column:2!important;grid-row:2!important;justify-self:center!important;transform:translate(22%, -8px)!important;z-index:4!important;}
.surah-head .hero-arabic:before,.surah-head .hero-arabic:after{width:190px!important;margin:5px auto!important;}
.surah-head .banner-meaning{grid-column:1 / -1!important;grid-row:3!important;transform:translateY(-22px)!important;z-index:4!important;}
@media(max-width:899px){.surah-head .hero-arabic{transform:translate(0,-4px)!important}.surah-head .banner-meaning{transform:translateY(-10px)!important}}


/* Keep the Bengali banner subtitle aligned with the approved composition. */
.surah-head .subtitle{transform:translateY(-4px)}

/* Quran approved tabbed reader layout */
.quran-section-tabs{display:flex;gap:0;flex-wrap:wrap;margin:0 auto;border-bottom:1px solid var(--line);max-width:1120px}
.quran-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:12px 16px;font:inherit;cursor:pointer}
.quran-tab[aria-selected="true"]{border-bottom-color:var(--gold);color:var(--green);font-weight:700}
.quran-section-panel{max-width:1120px;margin:0 auto;width:100%}
.quran-section-panel>h2{font-size:1.35rem;margin:20px 0 10px}
.section-note{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:10px 0;background:var(--paper)}
.section-note h3{margin:0 0 6px;font-size:1rem}
.quran-sidebar{display:block;width:100%;margin:0 auto 16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,253,248,.94)}
.quran-sidebar h2{font-size:1.15rem;margin:0 0 8px}
.quran-sidebar .side-list{display:flex;gap:4px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:thin}
.quran-sidebar .side-list>a{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:6px 9px;border-radius:9px;text-decoration:none;color:var(--ink)}
.quran-sidebar .side-list>a.current{background:var(--green);color:white}
.quran-sidebar .side-num{font-weight:700}.quran-sidebar .side-copy small{display:block;font-size:.72rem;opacity:.8}
@media(min-width:900px){.shell{display:grid;grid-template-columns:240px minmax(0,1fr);column-gap:18px}.shell>.islam-brand,.shell>.breadcrumbs,.shell>.surah-head,.shell>.quran-section-tabs,.shell>.quran-section-panel,.shell>.surah-pager,.shell>.source-footer{grid-column:2}.quran-sidebar{grid-column:1;grid-row:3 / span 4;position:sticky;top:12px;align-self:start;max-height:calc(100vh - 24px);margin:0}.quran-sidebar .side-list{display:flex;flex-direction:column;max-height:calc(100vh - 105px);overflow-y:auto;overflow-x:hidden}.quran-sidebar .side-list>a{min-height:44px}.quran-sidebar .side-list>a.current{box-shadow:0 4px 10px #0e5a4028}.quran-tab{padding-inline:14px}}
@media(max-width:899px){.quran-sidebar{order:3}.quran-section-tabs{order:4}.quran-section-panel{order:5}}


/* Reader-only layout overrides: keep the approved banner, and make all 114 links scrollable. */
body.quran-reader-page .surah-head{margin-bottom:8px!important}
body.quran-reader-page .quran-section-tabs{margin-top:0!important;margin-bottom:0!important;gap:2px!important}
body.quran-reader-page .quran-tab{color:var(--ink)!important;border-radius:8px 8px 0 0!important}
body.quran-reader-page .quran-tab[aria-selected="true"]{background:rgba(216,183,102,.16)!important;border-bottom-color:#bb8b29!important;color:#11543c!important}
body.quran-reader-page .quran-tab:focus-visible{outline:2px solid #bb8b29;outline-offset:-2px}
body.quran-reader-page .quran-section-panel{min-width:0;max-width:100%!important}
body.quran-reader-page .quran-section-panel .reading-tools{margin-top:4px!important;margin-bottom:10px!important;max-width:100%!important}
body.quran-reader-page .quran-section-panel .verses{max-width:100%!important}
body.quran-reader-page .pronunciation-availability{flex:1 1 100%;font-size:.9rem;color:#6c5222}
body.quran-reader-page .pronunciation-availability[hidden]{display:none!important}
body.quran-reader-page .quran-source-note{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
body.quran-reader-page .quran-source-credit{font-size:.85rem;color:#546455}
body.quran-reader-page .quran-more-notes{padding:10px 18px;border:1px solid #caa44c;border-radius:9px;background:#fff7e3;color:#224d37;cursor:pointer}
body.quran-reader-page .quran-more-notes[hidden]{display:none}
body.quran-reader-page .section-note summary{cursor:pointer;font-weight:600}
body.quran-reader-page .quran-sidebar{border-color:#c8aa62!important;box-shadow:0 4px 14px #143f2912!important}
body.quran-reader-page .quran-sidebar .side-list>a.current{background:#0a563e!important;color:#fff!important}
@media(min-width:900px){
  body.quran-reader-page .shell{display:grid!important;grid-template-columns:minmax(195px,240px) minmax(0,1fr)!important;column-gap:18px!important;align-items:start!important}
  body.quran-reader-page .shell>:not(.quran-sidebar){grid-column:2!important;min-width:0}
  body.quran-reader-page .shell>.quran-sidebar{grid-column:1!important;grid-row:3 / span 3!important;position:sticky!important;top:12px!important;align-self:start!important;margin:0!important;width:100%!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important}
  body.quran-reader-page .quran-sidebar .side-list{display:flex!important;flex-direction:column!important;gap:3px!important;max-height:calc(100dvh - 115px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin}
  body.quran-reader-page .quran-sidebar .side-list>a{flex:0 0 auto!important;min-height:44px!important;white-space:normal!important}
}
@media(max-width:899px){
  body.quran-reader-page .quran-sidebar{margin:0 0 8px!important;padding:9px 11px!important}
  body.quran-reader-page .quran-sidebar h2{margin-bottom:4px!important;font-size:1rem!important}
  body.quran-reader-page .quran-sidebar .side-list{display:flex!important;flex-direction:row!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin}
  body.quran-reader-page .quran-sidebar .side-list>a{flex:0 0 auto!important;min-width:115px!important}
  body.quran-reader-page .quran-section-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin;white-space:nowrap}
  body.quran-reader-page .quran-tab{flex:0 0 auto!important;padding:10px!important;font-size:.95rem!important}
  body.quran-reader-page .quran-section-panel .reading-tools{padding-top:8px!important}
}

/* Continuous explanation layout: keep each verse identifiable without collapsed controls. */
body.quran-reader-page .quran-section-panel{margin-top:0!important;padding-top:0!important}
body.quran-reader-page .quran-section-panel>h2{margin-top:10px!important}
body.quran-reader-page .quran-explanation{padding:14px 16px;margin:12px 0;background:var(--paper)}
body.quran-reader-page .quran-explanation h3{margin:0 0 8px;color:var(--green);font-size:1.05rem}
body.quran-reader-page .explanation-verse{padding:8px 0 12px;border-bottom:1px solid var(--line);margin-bottom:10px;font-size:1.35rem;line-height:2}
body.quran-reader-page .quran-explanation .quran-source-note{line-height:1.9}


/* Layout repair 2026-11-18: the shared Quran stylesheet must not turn landing pages into two-column readers. */
@media (min-width:900px){
  body:not(.quran-reader-page) .shell{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    grid-template-columns:none!important;width:min(1240px,100%)!important;
  }
  body:not(.quran-reader-page) .shell > *{grid-column:auto!important;grid-row:auto!important;min-width:0!important}
  body:not(.quran-reader-page) .surah-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.quran-reader-page .shell{
    display:grid!important;
    grid-template-columns:minmax(195px,240px) minmax(0,1fr)!important;
    grid-template-rows:max-content max-content max-content max-content max-content minmax(0,1fr)!important;
    column-gap:18px!important;row-gap:0!important;align-content:start!important;align-items:start!important;
  }
  body.quran-reader-page .shell > a:first-child{grid-column:1!important;grid-row:1!important;justify-self:start!important;align-self:start!important}
  body.quran-reader-page .shell > .breadcrumbs{grid-column:2!important;grid-row:1!important;align-self:center!important}
  body.quran-reader-page .shell > .surah-head{grid-column:2!important;grid-row:2!important;margin-top:0!important;margin-bottom:0!important}
  body.quran-reader-page .shell > .quran-section-tabs{grid-column:2!important;grid-row:3!important;width:100%!important;justify-content:flex-start!important;margin:0!important}
  body.quran-reader-page .shell > .quran-section-panel{grid-column:2!important;grid-row:4!important;width:100%!important;margin:0!important;padding:0!important}
  body.quran-reader-page .shell > .surah-pager{grid-column:2!important;grid-row:5!important}
  body.quran-reader-page .shell > .source-footer{grid-column:2!important;grid-row:6!important;width:100%!important}
  body.quran-reader-page .shell > .quran-sidebar{
    grid-column:1!important;grid-row:2 / 7!important;
    position:sticky!important;top:12px!important;align-self:start!important;
    margin:0!important;max-height:calc(100dvh - 24px)!important;
  }
}
@media(max-width:899px){
  body.quran-reader-page .shell{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  body.quran-reader-page .shell > .quran-sidebar{order:3!important}
  body.quran-reader-page .shell > .quran-section-tabs{order:4!important;width:100%!important;margin:0!important}
  body.quran-reader-page .shell > .quran-section-panel{order:5!important;width:100%!important}
  body.quran-reader-page .shell > .surah-pager{order:6!important}
  body.quran-reader-page .shell > .source-footer{order:7!important}
}
body.quran-reader-page .quran-section-tabs{max-width:none!important;width:100%!important}
body.quran-reader-page .quran-section-panel{max-width:none!important}
body.quran-reader-page .quran-section-panel>h2{margin-top:8px!important}


/* Correct the revelation tab's large vertical displacement: the 114-surah
   sidebar must not contribute intrinsic height to the banner/tab grid rows. */
@media(min-width:900px){
  body.quran-reader-page .shell{position:relative!important;align-content:start!important;grid-template-rows:repeat(5,max-content) minmax(0,1fr)!important}
  body.quran-reader-page .shell>.quran-sidebar{
    position:absolute!important;grid-column:1!important;grid-row:auto!important;
    top:76px!important;left:0!important;width:240px!important;
    height:min(760px,calc(100dvh - 100px))!important;
    max-height:calc(100dvh - 100px)!important;
    min-height:0!important;overflow:hidden!important;
  }
  body.quran-reader-page .shell>.quran-sidebar .side-list{
    max-height:calc(100dvh - 185px)!important;overflow-y:auto!important;
  }
  body.quran-reader-page .shell>.surah-head{margin-bottom:0!important}
  body.quran-reader-page .shell>.quran-section-tabs{margin-top:0!important;margin-bottom:0!important}
  body.quran-reader-page .shell>.quran-section-panel{margin-top:0!important;align-self:start!important}
}


/* Standalone basmala: visually distinct from numbered Quran ayat. */
body.quran-reader-page #verses>.ayah.basmala{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;gap:7px!important;
  padding:25px 18px!important;margin:8px 0 16px!important;
}
body.quran-reader-page #verses>.ayah.basmala::before,
body.quran-reader-page #verses>.ayah.basmala::after{display:none!important}
body.quran-reader-page #verses>.ayah.basmala>.arabic{
  display:block!important;min-height:0!important;width:100%!important;
  padding:0!important;margin:0!important;text-align:center!important;
  line-height:1.9!important;justify-content:center!important;
}
body.quran-reader-page .basmala-pronunciation,
body.quran-reader-page .basmala-meaning{
  display:block!important;margin:0!important;padding:0!important;
  max-width:100%!important;text-align:center!important;line-height:1.8!important;
  font-size:1rem!important;color:#27513e!important;
}
body.quran-reader-page .basmala-meaning{color:#526253!important}
body.quran-reader-page #verses>.ayah.fatiha-basmala{
  text-align:center!important;
}
body.quran-reader-page #verses>.ayah.fatiha-basmala>.arabic{
  padding:0 54px!important;text-align:center!important;
  justify-content:center!important;
}
body.quran-reader-page #verses>.ayah.fatiha-basmala>.basmala-pronunciation{
  margin:0 0 8px!important;
}
body.quran-reader-page #verses>.ayah.fatiha-basmala>.translation{
  margin:0!important;text-align:center!important;
}

/* Hidden must override the centered basmala display declarations. */
body.quran-reader-page .basmala-pronunciation[hidden],
body.quran-reader-page .basmala-meaning[hidden]{display:none!important}

/* Bengali reading-aid readability: preserve Arabic and translation layout. */
.pronunciation{display:block!important;visibility:visible!important;white-space:normal;overflow-wrap:anywhere;font-size:clamp(1.12rem,2vw,1.34rem)!important;line-height:2.05!important;letter-spacing:.01em;padding:12px 16px!important}
@media (max-width:620px){.pronunciation{font-size:1.12rem!important;line-height:2.05!important;padding:11px 13px!important}}


/* Mobile Quran reader: retain the approved 3:1 artwork without stretching,
   position Arabic between the existing right-side gold lines, and use a slim drawer. */
body.quran-reader-page .quran-sidebar-toggle,
body.quran-reader-page .quran-sidebar-close,
body.quran-reader-page .quran-sidebar-backdrop{display:none!important}
body.quran-reader-page .quran-sidebar .side-ayah-count{display:none!important}
@media(max-width:899px){
  body.quran-reader-page .shell{min-width:0!important}
  body.quran-reader-page .shell>.quran-sidebar-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    order:0!important;align-self:flex-start!important;max-width:100%!important;
    margin:7px 0 4px!important;padding:7px 12px!important;
    border:1px solid #bd973e!important;border-radius:10px!important;
    background:#fff8e8!important;color:#14543e!important;
    font:700 .95rem/1.45 "SolaimanLipi","Noto Sans Bengali",system-ui,sans-serif!important;
    cursor:pointer!important;white-space:normal!important;
  }
  body.quran-reader-page .quran-sidebar-toggle:focus-visible,
  body.quran-reader-page .quran-sidebar-close:focus-visible{
    outline:3px solid #c99b35!important;outline-offset:2px!important;
  }
  /* The approved backdrop is 2172x724. Absolutely position the text inside
     its frame so long titles cannot stretch the image or cross the gold trim. */
  body.quran-reader-page .shell>.surah-head{
    order:0!important;width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;aspect-ratio:3/1!important;
    margin:6px 0 10px!important;padding:0!important;
    display:block!important;position:relative!important;overflow:hidden!important;
    border:0!important;border-radius:10px!important;
    background-color:#06422f!important;
    background-image:url("/assets/quran-banner-text-free.jpg")!important;
    background-repeat:no-repeat!important;background-position:center!important;
    background-size:contain!important;
  }
  body.quran-reader-page .surah-head .banner-meta{
    display:block!important;position:absolute!important;inset:auto!important;
    top:18%!important;left:30%!important;right:auto!important;bottom:auto!important;
    width:40%!important;max-width:40%!important;
    margin:0!important;padding:1px 2px!important;
    border:1px solid #c99b35!important;border-radius:999px!important;
    background:#fff6d9!important;color:#1a2418!important;
    font-size:clamp(.56rem,2.3vw,.78rem)!important;line-height:1.22!important;
    font-weight:700!important;text-align:center!important;white-space:normal!important;
    transform:none!important;text-shadow:none!important;
  }
  body.quran-reader-page .surah-head #surah-title{
    display:block!important;position:absolute!important;inset:auto!important;
    top:49%!important;left:29%!important;right:auto!important;bottom:auto!important;
    width:42%!important;max-width:42%!important;
    margin:0!important;padding:0 2px!important;
    transform:translateY(-50%)!important;
    font-size:clamp(.86rem,3.75vw,1.72rem)!important;line-height:1.15!important;
    font-weight:700!important;color:#fff8dc!important;
    text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
    text-shadow:0 2px 3px #06291dcc!important;
  }
  body.quran-reader-page .surah-head .hero-arabic{
    display:block!important;position:absolute!important;inset:auto!important;
    top:49%!important;left:72%!important;right:auto!important;bottom:auto!important;
    width:24%!important;max-width:24%!important;
    margin:0!important;padding:0!important;
    transform:translateY(-50%)!important;
    font-size:clamp(1rem,4.25vw,1.95rem)!important;line-height:1.25!important;
    color:#f4d477!important;text-align:center!important;white-space:normal!important;
    overflow-wrap:anywhere!important;text-shadow:0 2px 3px #06291dcc!important;
  }
  /* The right-hand gold rules are part of the original banner image. */
  body.quran-reader-page .surah-head .hero-arabic::before,
  body.quran-reader-page .surah-head .hero-arabic::after{
    display:none!important;content:none!important;
  }
  body.quran-reader-page .surah-head .banner-meaning{
    display:block!important;position:absolute!important;inset:auto!important;
    left:29%!important;right:auto!important;top:auto!important;bottom:23%!important;
    width:42%!important;max-width:42%!important;
    margin:0!important;padding:0!important;transform:none!important;
    font-size:clamp(.7rem,2.8vw,.98rem)!important;line-height:1.16!important;
    color:#f5dc8b!important;text-align:center!important;white-space:normal!important;
    overflow-wrap:anywhere!important;text-shadow:0 2px 3px #06291dcc!important;
  }
  /* Slim drawer sized for the actual name and ayat-count content. */
  body.quran-reader-page .shell>.quran-sidebar{
    display:flex!important;flex-direction:column!important;
    position:fixed!important;top:0!important;left:0!important;right:auto!important;bottom:0!important;
    z-index:1002!important;order:3!important;
    width:min(253px,78vw)!important;height:100vh!important;height:100dvh!important;
    max-height:none!important;min-height:0!important;
    margin:0!important;padding:12px 8px 12px!important;
    border:1px solid #c8aa62!important;border-left:0!important;
    border-radius:0 12px 12px 0!important;
    background:#fffdf8!important;box-shadow:6px 0 30px #0c2d2390!important;
    transform:translateX(-105%)!important;visibility:hidden!important;pointer-events:none!important;
    overflow:hidden!important;transition:transform .22s ease,visibility .22s!important;
  }
  body.quran-reader-page.quran-drawer-open .shell>.quran-sidebar{
    transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;
  }
  body.quran-reader-page .quran-sidebar-header{
    display:flex!important;justify-content:space-between!important;align-items:center!important;
    flex:0 0 auto!important;gap:8px!important;padding:0 3px 7px!important;
    border-bottom:1px solid #e5d7af!important;
  }
  body.quran-reader-page .quran-sidebar-header h2{
    margin:0!important;padding:0!important;border:0!important;font-size:1.06rem!important;
  }
  body.quran-reader-page .quran-sidebar-close{
    display:inline-flex!important;justify-content:center!important;align-items:center!important;
    flex:0 0 32px!important;width:32px!important;height:32px!important;
    border:1px solid #c8aa62!important;border-radius:8px!important;
    background:#fff7df!important;color:#14543e!important;font-size:1rem!important;cursor:pointer!important;
  }
  body.quran-reader-page .quran-sidebar .side-list{
    display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
    min-height:0!important;max-height:none!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
    padding:6px 1px 10px!important;gap:2px!important;scrollbar-width:thin!important;
  }
  body.quran-reader-page .quran-sidebar .side-list>a{
    display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;
    min-height:42px!important;margin:0!important;padding:6px 7px!important;
    gap:8px!important;white-space:normal!important;overflow-wrap:anywhere!important;
  }
  body.quran-reader-page .quran-sidebar .side-num{
    width:30px!important;height:30px!important;flex:0 0 30px!important;
    font-size:.88rem!important;
  }
  body.quran-reader-page .quran-sidebar .side-copy{
    display:grid!important;gap:1px!important;min-width:0!important;
  }
  body.quran-reader-page .quran-sidebar .side-copy strong{
    font-size:.94rem!important;line-height:1.24!important;
  }
  body.quran-reader-page .quran-sidebar .side-copy small[lang="ar"]{display:none!important}
  body.quran-reader-page .quran-sidebar .side-copy .side-ayah-count{
    display:block!important;font-size:.76rem!important;line-height:1.32!important;
    color:#5b6c5e!important;opacity:1!important;
  }
  body.quran-reader-page .quran-sidebar .side-list>a.current .side-ayah-count{
    color:#e6f2e9!important;
  }
  body.quran-reader-page .quran-sidebar-backdrop{
    display:block!important;position:fixed!important;inset:0!important;z-index:1001!important;
    width:100%!important;height:100vh!important;height:100dvh!important;
    padding:0!important;border:0!important;background:#082a21aa!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transition:opacity .22s ease,visibility .22s!important;
  }
  body.quran-reader-page.quran-drawer-open .quran-sidebar-backdrop{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
  body.quran-reader-page.quran-drawer-open{overflow:hidden!important}
  /* Keep the number beside the Arabic: short ayat get one compact row.
     Extra translation/pronunciation rows are added only when enabled. */
  body.quran-reader-page #verses{gap:9px!important}
  body.quran-reader-page #verses>.ayah:not(.basmala){
    display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;
    grid-template-rows:auto!important;align-items:center!important;
    align-content:start!important;justify-content:stretch!important;
    min-height:0!important;height:auto!important;max-height:none!important;
    padding:8px 11px!important;gap:3px 10px!important;
  }
  body.quran-reader-page #verses>.ayah:not(.basmala)>.ayah-number{
    /* Prevent older absolute positioning and ornamental pseudo-elements from
       displacing the ayat number outside its card. */
    display:grid!important;position:static!important;inset:auto!important;
    grid-column:1!important;grid-row:1!important;
    align-self:center!important;justify-self:center!important;place-items:center!important;
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
    padding:0!important;margin:0!important;transform:none!important;
    font-size:.85rem!important;line-height:1!important;white-space:nowrap!important;
    box-shadow:none!important;
  }
  body.quran-reader-page #verses>.ayah:not(.basmala)>.ayah-number::before,
  body.quran-reader-page #verses>.ayah:not(.basmala)>.ayah-number::after{
    display:none!important;content:none!important;
  }
  body.quran-reader-page #verses>.ayah:not(.basmala)>.arabic{
    display:block!important;grid-column:2!important;grid-row:1!important;
    align-self:center!important;justify-self:stretch!important;
    min-height:0!important;height:auto!important;
    font-size:clamp(1.48rem,5.3vw,2rem)!important;line-height:1.5!important;
    margin:0!important;padding:0!important;text-align:right!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  body.quran-reader-page #verses>.ayah:not(.basmala)>.translation,
  body.quran-reader-page #verses>.ayah:not(.basmala)>.pronunciation,
  body.quran-reader-page #verses>.ayah:not(.basmala)>.ayah-note,
  body.quran-reader-page #verses>.ayah:not(.basmala)>.ayah-note-toggle{
    grid-column:1/-1!important;grid-row:auto!important;
    min-height:0!important;height:auto!important;max-height:none!important;
    margin:0!important;line-height:1.65!important;
  }
  body.quran-reader-page #verses>.ayah.basmala{
    min-height:0!important;height:auto!important;padding:10px 11px!important;
    margin:3px 0 7px!important;gap:2px!important;
  }
  body.quran-reader-page #verses>.ayah.basmala>.arabic{
    min-height:0!important;line-height:1.55!important;margin:0!important;
  }

}
@media(max-width:899px) and (prefers-reduced-motion:reduce){
  body.quran-reader-page .shell>.quran-sidebar,
  body.quran-reader-page .quran-sidebar-backdrop{transition:none!important}
}

/* Bengali surah titles use the requested SolaimanLipi webfont; Arabic keeps its own script font. */
.surah-card strong{font-family:"SolaimanLipi","Noto Sans Bengali",sans-serif;line-height:1.5}


/* Quran index only: professional two-up mobile surah catalog.
   Keep text readable; on extra-narrow screens fall back to one column. */
@media (min-width: 341px) and (max-width: 620px) {
  body:not(.quran-reader-page) #surah-list.surah-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  body:not(.quran-reader-page) #surah-list .surah-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: minmax(35px,auto) auto;
    gap: 5px 7px;
    align-content: start;
    align-items: center;
    min-height: 100px;
    padding: 11px 10px;
    border-radius: 12px;
  }
  body:not(.quran-reader-page) #surah-list .surah-card > span:last-child {
    display: contents;
  }
  body:not(.quran-reader-page) #surah-list .surah-number {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    align-self: start;
  }
  body:not(.quran-reader-page) #surah-list .surah-card strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  body:not(.quran-reader-page) #surah-list .surah-card small {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    font-size: .81rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
@media (max-width: 340px) {
  body:not(.quran-reader-page) #surah-list.surah-grid {
    grid-template-columns: minmax(0,1fr);
  }
}


/* Quran index: quiet compact introduction and opt-in magnifier search.
   Scoped so individual surah readers, stories and the site chrome stay intact. */
body:not(.quran-reader-page) .quran-index-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: auto;
  margin: 17px 0 12px;
  padding: 16px 24px 17px;
  border-radius: 15px;
  border-color: #e0d6b9;
  box-shadow: 0 4px 16px #153c2709;
  background: linear-gradient(120deg,rgba(255,253,248,.96),rgba(245,249,244,.93));
}
body:not(.quran-reader-page) .quran-index-heading h1 {
  margin: 0;
  font-family: "SolaimanLipi","Noto Sans Bengali",system-ui,sans-serif;
  font-size: clamp(2rem,3.2vw,2.55rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: #164a36;
}
body:not(.quran-reader-page) .quran-index-heading p {
  margin: 2px 0 0;
  line-height: 1.5;
  font-size: 1.04rem;
  color: #577165;
}
body:not(.quran-reader-page) .quran-index-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 4px 0 12px;
  min-width: 0;
}
body:not(.quran-reader-page) .quran-index-toolbar #list-status {
  margin: 0;
  font-size: .94rem;
  line-height: 1.5;
}
body:not(.quran-reader-page) .quran-index-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  margin-left: auto;
}
body:not(.quran-reader-page) #surah-search-panel[hidden] {
  display: none !important;
}
body:not(.quran-reader-page) #surah-search-panel {
  min-width: 0;
  width: min(310px,calc(100vw - 160px));
}
body:not(.quran-reader-page) #surah-search-panel .quran-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:not(.quran-reader-page) #surah-search-panel #surah-search {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #b8cdbd;
  font-size: 1rem;
  line-height: 1.5;
}
body:not(.quran-reader-page) .quran-search-toggle {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fffdf8;
  color: #17694b;
  border: 1px solid #bacdbf;
  border-radius: 11px;
  box-shadow: 0 2px 8px #12320c0b;
  cursor: pointer;
}
body:not(.quran-reader-page) .quran-search-toggle:hover,
body:not(.quran-reader-page) .quran-index-search.is-open .quran-search-toggle {
  background: #ecf5ec;
  border-color: #8bad96;
}
body:not(.quran-reader-page) .quran-search-toggle:focus-visible,
body:not(.quran-reader-page) #surah-search:focus-visible {
  outline: 2px solid #247555;
  outline-offset: 3px;
}
@media(max-width:620px) {
  body:not(.quran-reader-page) .quran-index-heading {
    margin: 12px 0 9px;
    padding: 14px 17px 15px;
    border-radius: 13px;
  }
  body:not(.quran-reader-page) .quran-index-heading h1 {
    font-size: clamp(1.85rem,6.4vw,2.15rem);
  }
  body:not(.quran-reader-page) .quran-index-heading p {
    font-size: 1rem;
  }
  body:not(.quran-reader-page) .quran-index-toolbar {
    margin-bottom: 11px;
  }
  body:not(.quran-reader-page) .quran-index-search.is-open {
    flex: 1 1 100%;
    width: 100%;
  }
  body:not(.quran-reader-page) .quran-index-search.is-open #surah-search-panel {
    flex: 1 1 auto;
    width: auto;
  }
}


/* Desktop Quran ayah alignment fix: keep the ayah number alongside the
   first Arabic line, not stacked above the entire verse. Mobile is untouched.
   This deliberately overrides older universal flex-column reading rules. */
@media (min-width: 900px) {
  body.quran-reader-page #verses > .ayah:not(.basmala) {
    display: grid !important;
    grid-template-columns: 60px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 16px !important;
    row-gap: 8px !important;
    align-content: start !important;
    align-items: start !important;
    justify-items: stretch !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 17px 22px !important;
  }
  body.quran-reader-page #verses > .ayah:not(.basmala) > .ayah-number {
    display: grid !important;
    grid-area: 1 / 1 / 2 / 2 !important;
    position: static !important;
    inset: auto !important;
    align-self: start !important;
    justify-self: center !important;
    place-items: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
  }
  body.quran-reader-page #verses > .ayah:not(.basmala) > .arabic {
    display: block !important;
    grid-area: 1 / 2 / 2 / 3 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    font-size: clamp(2rem, 3vw, 2.55rem) !important;
    line-height: 1.65 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  body.quran-reader-page #verses > .ayah:not(.basmala) > :is(
    .translation, .pronunciation, .ayah-note, .ayah-note-toggle
  ) {
    grid-area: auto !important;
    grid-column: 2 !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
}
