body{margin:0;background:#f8f1dc;color:#241d13;font-family:system-ui;padding-bottom:210px}main{max-width:760px;margin:auto}.player{position:fixed;z-index:1000;left:0;right:0;bottom:0;max-width:760px;margin:auto;padding:10px 14px;background:#fffaf0;border-top:1px solid #d9cba7;box-shadow:0 -4px 14px rgba(36,29,19,.12)}.now{display:flex;justify-content:space-between}.controls{display:flex;justify-content:center;gap:18px}.controls button{width:48px;height:48px;border:0;border-radius:50%;font-size:24px}.play{background:#241d13;color:#fff}.progress{display:grid;grid-template-columns:35px 1fr 35px;gap:8px}.progress input{width:100%}header{padding:10px 14px;border-bottom:1px solid #d9cba7}

.haramain-latest{margin:12px auto 18px;max-width:760px;padding:14px;background:#fffdf7;border:1px solid #e5dcc8;border-radius:14px}
.section-head{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}.section-head span{font-size:13px;opacity:.7}
.latest-list{display:grid;gap:5px}.hrec{width:100%;text-align:left;border:1px solid #e5dcc8;background:#fff;padding:7px 9px;border-radius:9px;cursor:pointer}
.hrec-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.madinah-mark{display:inline-block;width:23px;height:20px;vertical-align:-5px;margin-right:2px;background:url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 64%22%3E%3Cpath fill=%22%23b98a32%22 d=%22M30.5 2h3v7h-3z%22/%3E%3Ccircle cx=%2232%22 cy=%2211%22 r=%222.4%22 fill=%22%23b98a32%22/%3E%3Cpath fill=%22%230b6b3a%22 d=%22M10 42c1-15 9-25 22-29 13 4 21 14 22 29H10z%22/%3E%3Cpath fill=%22%2307562f%22 d=%22M15 42c1-12 7-21 17-27-5 8-7 17-7 27H15zm34 0c-1-12-7-21-17-27 5 8 7 17 7 27h10z%22/%3E%3Cpath fill=%22%230b6b3a%22 d=%22M8 42h48v7H8zM12 49h40v9H12z%22/%3E%3C/svg%3E') center/contain no-repeat}.hrec-top b{font-size:15px}.hrec-top small{font-size:12px;opacity:.65;white-space:nowrap}.hrec .hrec-main{display:inline;font-size:13px;line-height:1.4;opacity:.88}.card-ayahs{display:none;margin-top:8px;border-top:1px solid rgba(0,0,0,.08);padding-top:5px}.card-ayahs.open{display:block}.card-ayah{padding:7px 0;border-bottom:1px solid rgba(0,0,0,.06)}.card-ayah>b{font-size:11px;opacity:.65}.card-arabic{font-family:serif;font-size:21px;line-height:1.9;text-align:right}.card-meal{font-size:12px;line-height:1.45;opacity:.78;margin-top:3px}.hrec .hizb-hit{display:inline-block;margin:3px 0 0 7px;padding:2px 6px;border-radius:5px;background:#e8f6e9;border:1px solid #91c99a;color:#155b25;opacity:1;font-size:12px;font-weight:800}.hrec.playing{outline:2px solid currentColor}.wave-panel{display:none;margin-top:7px;padding-top:6px;border-top:1px solid #eee5d3}.wave-panel.open{display:block}.wave-row{display:block;overflow-x:auto;overflow-y:visible;scroll-behavior:smooth}.zoom-controls{display:inline-flex;align-items:center;gap:4px;margin-right:auto}.zoom-controls b{min-width:24px;text-align:center;font-size:11px}.zoom-controls button{padding:3px 8px}.wave-toggle{position:absolute;left:50%;top:-15px;transform:translateX(-50%);width:30px;height:30px;border:1px solid #cfc4aa;border-radius:50%;background:#fffaf0;color:#241d13;padding:0;font-size:13px;line-height:28px;text-align:center;cursor:pointer;pointer-events:auto}.wave-real{position:relative;flex:1;height:38px;display:flex;align-items:center;gap:1px;overflow:visible;font-size:11px;opacity:.9;cursor:pointer}.wave-real i{display:block;flex:1;min-width:1px;background:#806d49;border-radius:1px;opacity:.82}.wave-playhead{position:absolute;z-index:4;top:0;bottom:0;left:0;width:3px;transform:translateX(-50%);background:#e53935;border-radius:99px;box-shadow:0 0 0 1px rgba(255,255,255,.8);pointer-events:none}.card-seek{display:block;width:100%;height:18px;margin:1px 0 0;cursor:pointer}.ab-controls{display:flex;justify-content:flex-end;gap:5px;margin-top:2px}.ab-controls button{border:1px solid #cfc4aa;background:#fffaf0;border-radius:6px;padding:3px 9px;font-weight:700;cursor:pointer}.ab-loop.on{background:#e8f6e9;border-color:#62a970;color:#155b25}.ab-mark{display:none;position:absolute;z-index:3;top:0;bottom:0;width:5px;border-radius:999px;background:#24b36b;box-shadow:0 0 0 2px rgba(255,255,255,.75);pointer-events:none}.ab-mark.b{background:#ef8a2f}.ab-mark::after{position:absolute;top:3px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:900;background:#fffaf0;border:1px solid #d9cba7;border-radius:6px;padding:1px 4px;white-space:nowrap}.ab-mark.a::after{content:'Baş'}.ab-mark.b::after{content:'Son'}.ab-shade{display:none;position:absolute;z-index:1;top:0;bottom:0;background:rgba(255,210,70,.18);border-left:1px solid rgba(36,179,107,.8);border-right:1px solid rgba(239,138,47,.8);pointer-events:none}.wave-real i{position:relative;z-index:2}

/* HBQ waveform viewport/follow */
.wave-row{display:block!important;overflow:visible!important}
.wave-viewport{width:100%;overflow-x:auto;overflow-y:hidden;scroll-behavior:auto;padding-top:16px}
.wave-real{min-width:100%}
.wave-real i.hizb-wave{background:#219653!important;opacity:.96}
.ab-controls{position:relative;z-index:20;background:#fff;align-items:center}
.zoom-controls{flex:0 0 auto}

.haramain-pages{display:flex;justify-content:center;align-items:center;gap:10px;padding-top:8px}.haramain-pages button{border:1px solid #cfc4aa;background:#fffaf0;border-radius:7px;padding:5px 10px;cursor:pointer}.haramain-pages span{font-size:12px;opacity:.7}.download-rec{white-space:nowrap}

/* compact uniform waveform + visible verified ayahs */
.wave-real{display:grid!important;grid-template-columns:repeat(240,minmax(1px,1fr))!important;gap:1px!important;align-items:center!important}
.wave-real i{width:100%!important;min-width:0!important;flex:none!important}
.card-ayahs.open{display:block!important;margin-top:7px;padding:8px 9px;background:#fffaf0;border:1px solid #e5dcc8;border-radius:8px}
@font-face{font-family:'Diyanet Mushaf';src:url('../fonts/shaikh_hamdullah_mushaf.ttf') format('truetype');font-display:swap}
@font-face{font-family:'HBQ Mushaf';src:url('../fonts/MushafFontu.ttf') format('truetype');font-display:swap}
.card-arabic{font-family:'Diyanet Mushaf','HBQ Mushaf','KFGQPC Uthman Taha Naskh','Traditional Arabic',serif!important;font-size:25px!important;line-height:2.15!important;color:#17120c!important}
.card-meal{font-size:13px!important;color:#342b20!important;opacity:1!important}
/* Study mode: selected prayer becomes the working page until another card is selected. */
.hrec{position:relative}.hrec.study{padding:14px 16px;border-radius:12px;background:#fffdf8}.study-close{display:none}.hrec.study .study-close{display:block;position:sticky;float:right;top:10px;z-index:40;width:36px;height:36px;margin:-3px -5px 0 8px;border:1px solid #cfc4aa;border-radius:50%;background:#fffaf0;font-size:25px;line-height:30px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.human-mark,.hrec.study .human-mark{display:none!important}.hrec.study .hrec-top b{font-size:20px}
.hrec.study .hrec-top small{font-size:14px}
.hrec.study .hrec-main{display:block;font-size:16px;line-height:1.6;margin-top:3px}
.hrec.study .hizb-hit{font-size:14px;margin:6px 0 0;padding:4px 8px}
.hrec.study .card-ayahs.open{margin-top:12px;padding:12px 16px}
.hrec.study .card-ayah{padding:14px 0}
.hrec.study .card-ayah>b{display:block;font-size:15px;margin-bottom:5px;opacity:.8}
.hrec.study .card-arabic{font-size:38px!important;line-height:2.18!important;text-align:right}.qword{display:inline-block;border-radius:7px;padding:3px 5px;margin:1px;cursor:pointer;position:relative;z-index:3}.qword:hover,.qword:focus{background:#e8f0ff;box-shadow:0 0 0 3px rgba(68,116,190,.14);outline:none}.qword.reading{background:#ffe58a;box-shadow:0 0 0 2px #ffe58a}.qword.human-anchor{background:transparent;box-shadow:none;text-decoration:underline;text-decoration-color:#3c9b4d;text-decoration-thickness:2px;text-underline-offset:5px}.card-arabic{cursor:default!important}.card-arabic .qword{touch-action:manipulation}
.hrec.study .card-meal{font-size:17px!important;line-height:1.7!important;margin-top:8px}
.hrec.study .wave-panel{margin-top:12px;padding-top:10px}
@media(max-width:600px){.hrec.study .card-arabic{font-size:34px!important}.hrec.study .card-meal{font-size:16px!important}.hrec.study{padding:12px}.hrec.study .card-ayahs.open{padding:10px 12px}.hrec.study .ab-controls{position:sticky;bottom:76px;z-index:35;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding:7px 4px;background:#fffaf0;border:1px solid #e5dcc8;border-radius:10px}.hrec.study .zoom-controls{grid-column:1/-1;justify-content:center;margin:0}.hrec.study .ab-controls button{min-width:0;padding:7px 5px}.hrec.study .download-rec{grid-column:1/-1}.hrec.study .ab-loop{display:block!important}}
.card-ayah{cursor:pointer;user-select:none;-webkit-user-select:none}
.card-ayah.selected{background:#f1ead7;border-radius:9px;padding-left:10px;padding-right:10px;outline:2px solid #c6ad6d}
.card-ayah{cursor:pointer;user-select:none;-webkit-user-select:none}
.card-ayah.selected{background:#f1ead7;border-radius:9px;padding-left:10px;padding-right:10px;outline:2px solid #c6ad6d}
.hrec.study .card-ayah.hizb-ayah{background:#edf8ee;border:1px solid #78b982;border-radius:10px;padding-left:10px;padding-right:10px}
.hrec.study .card-ayah.hizb-ayah>b{color:#176b2d;font-weight:800}

.sync-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 7px;align-items:center}
.sync-tag{display:inline-flex;align-items:center;gap:4px;font-size:10px;line-height:1;padding:4px 6px;border:1px solid rgba(255,255,255,.16);border-radius:999px;opacity:.82;cursor:help}
.sync-tag i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 5px currentColor}
.sync-tag:hover{opacity:1}

.candidate-ayah{opacity:.72}.candidate-ayah b{font-size:11px}.candidate-ayah.no-timing{opacity:.72}
.sync-tag.sync-transcript{color:#00e676;background:#d8ffe7;border-color:#69f0ae;font-weight:700;opacity:1}.sync-tag.sync-transcript i{background:#00e676;box-shadow:0 0 7px #00e676}
.rakah-break{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 8px;padding:8px 10px;border-top:1px dashed #c8a85a;border-bottom:1px dashed #c8a85a;background:#fff9e8;border-radius:8px}.rakah-break span{font-weight:800;font-size:13px}.rakah-jump{border:1px solid #b99032;background:#fff;color:#5d4310;border-radius:999px;padding:6px 10px;font-weight:700;cursor:pointer}.rakah-jump:hover{background:#fff0b8}
.ayah-loop-controls{display:none;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0 5px}.card-ayah.looping .ayah-loop-controls{display:flex}.ayah-loop-state{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;color:#19733a}.ayah-loop-state i{width:8px;height:8px;border-radius:50%;background:#21e86d;box-shadow:0 0 7px #21e86d}.ayah-loop-off,.ayah-next{border:1px solid #c9b36c;background:#fffdf5;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700;cursor:pointer}.ayah-loop-off:hover,.ayah-next:hover{background:#fff0b8}

/* Haremeyn site identity — mushaf, tezhip and mosque architecture */
:root{--ink:#21190f;--paper:#fbf5e5;--paper2:#fffdf7;--gold:#aa7b24;--gold2:#d8bd73;--green:#174f38;--line:#ddcfaa}
body{background:radial-gradient(circle at 50% -80px,rgba(197,163,83,.15),transparent 330px),linear-gradient(180deg,#f5ecd3 0,#fbf7ec 310px,#f8f1dc 100%);color:var(--ink)}
.site-header{max-width:760px;box-sizing:border-box;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:13px 18px 11px;border-bottom:0;background:rgba(255,253,247,.72);backdrop-filter:blur(8px);position:relative;z-index:3}
.brand{display:flex;align-items:center;gap:10px}.brand-seal{display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--gold2);border-radius:50%;color:var(--gold);font-size:25px;background:#fffaf0;box-shadow:inset 0 0 0 4px #f7edd0}.brand small{display:block;color:#735719;font-size:10px;letter-spacing:1.7px}.brand strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:18px;font-weight:600}.site-header>span{font-size:11px;color:#725f3e}
.mosque-skyline{height:78px;max-width:760px;margin:0 auto -28px;position:relative;overflow:hidden;opacity:.92;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(170,123,36,.06));border-top:1px solid rgba(170,123,36,.22)}
.mosque-skyline:after{content:'';position:absolute;left:10%;right:10%;bottom:27px;height:1px;background:linear-gradient(90deg,transparent,var(--gold2),transparent)}
.dome{position:absolute;left:50%;bottom:27px;transform:translateX(-50%);width:112px;height:45px;border:2px solid var(--gold);border-bottom:0;border-radius:70px 70px 0 0;background:linear-gradient(180deg,rgba(255,253,247,.88),rgba(231,213,164,.5))}.dome:before{content:'';position:absolute;left:53px;top:-18px;width:2px;height:18px;background:var(--gold)}.dome:after{content:'☾';position:absolute;left:47px;top:-33px;color:var(--gold);font-size:17px}.dome i{position:absolute;left:-24px;right:-24px;bottom:-5px;height:7px;border:1px solid var(--gold2);background:#f7edd0}
.minaret{position:absolute;bottom:27px;width:9px;height:55px;border:1px solid var(--gold2);background:#fbf5e5}.minaret:before{content:'';position:absolute;left:-5px;top:8px;width:17px;height:4px;border:1px solid var(--gold2);background:#f7edd0}.minaret:after{content:'';position:absolute;left:2px;top:-16px;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:16px solid var(--gold)}.minaret.left{left:24%}.minaret.right{right:24%}
.haramain-latest{position:relative;z-index:2;padding:19px 18px 17px;border:1px solid var(--line);border-radius:4px 4px 14px 14px;background:linear-gradient(#fffdf8,#fffaf0);box-shadow:0 10px 30px rgba(74,53,16,.08)}
.haramain-latest:before,.haramain-latest:after{content:'◆  ۞  ◆';position:absolute;left:50%;transform:translateX(-50%);color:var(--gold);letter-spacing:8px;font-size:9px;background:#fffdf8;padding:0 10px}.haramain-latest:before{top:-6px}.haramain-latest:after{bottom:-6px}
.section-head{align-items:center;text-align:center;margin:4px 0 15px}.section-head b{font-family:Georgia,'Times New Roman',serif;font-size:22px;font-weight:600;color:#2c2112}.section-head span{font-size:12px;color:#766442;opacity:1}.section-head:after{content:'';width:82px;height:1px;margin-top:7px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.hrec{border-color:#e1d4b4;background:rgba(255,255,255,.66);box-shadow:0 1px 0 rgba(170,123,36,.05)}.hrec:hover{border-color:#c9ad66;background:#fffdf8}.hrec-top b{color:#382914}.hizb-hit{font-family:Georgia,serif}
.player{border-top:2px solid var(--gold2);background:rgba(255,250,240,.97)}
@media(max-width:600px){.site-header{padding:11px 12px}.site-header>span{display:none}.mosque-skyline{height:67px}.minaret.left{left:12%}.minaret.right{right:12%}.haramain-latest{margin:10px 8px 18px;padding:16px 11px}.section-head b{font-size:20px}}

/* professional polish */
main{padding:0 12px;box-sizing:border-box}.mushaf-ornament{position:relative;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;max-width:420px;margin:0 auto 7px;color:#9b7227}.mushaf-ornament span{height:1px;background:linear-gradient(90deg,transparent,#c6a45a)}.mushaf-ornament span:last-child{background:linear-gradient(90deg,#c6a45a,transparent)}.mushaf-ornament b{font-size:18px;font-weight:400}
.haramain-latest{overflow:hidden}.haramain-latest:before{content:'✦  ۞  ✦';letter-spacing:10px}.haramain-latest:after{content:'';left:18px;right:18px;bottom:0;transform:none;height:3px;padding:0;background:linear-gradient(90deg,transparent,#b98a32 18%,#e0ca8b 50%,#b98a32 82%,transparent)}
.section-head b{letter-spacing:.15px}.section-head span{letter-spacing:.1px}.latest-list{gap:8px}.hrec{padding:10px 12px;border-radius:10px;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.hrec:hover{box-shadow:0 5px 16px rgba(65,45,13,.08);transform:translateY(-1px)}
.hrec-top{padding-bottom:2px}.hrec-top small{color:#765f37;opacity:.82}.hrec .hrec-main{color:#433722}.card-ayahs.open{box-shadow:inset 0 0 0 1px rgba(170,123,36,.04)}
.player{box-shadow:0 -8px 30px rgba(49,35,12,.11);backdrop-filter:blur(12px)}.controls button{transition:transform .12s ease,background .12s ease}.controls button:hover{transform:translateY(-1px)}.play{background:linear-gradient(180deg,#2c2115,#17110b);box-shadow:0 3px 10px rgba(33,25,15,.2)}
@media(min-width:700px){body:before,body:after{content:'';position:fixed;top:0;bottom:0;width:1px;z-index:-1;background:linear-gradient(transparent,rgba(170,123,36,.18) 15%,rgba(170,123,36,.18) 85%,transparent)}body:before{left:calc(50% - 400px)}body:after{right:calc(50% - 400px)}}
@media(max-width:600px){main{padding:0 7px}.mushaf-ornament{max-width:280px;margin-bottom:4px}.hrec{padding:9px 10px}}

/* richer mushaf / tezhip palette */
:root{--lapis:#173f68;--turquoise:#1d746b;--ruby:#8b3340;--saffron:#c9952f;--leaf:#315d43}
body{background:
 radial-gradient(circle at 12% 9%,rgba(23,63,104,.13),transparent 22%),
 radial-gradient(circle at 88% 16%,rgba(139,51,64,.10),transparent 20%),
 linear-gradient(180deg,#efe0b8 0,#faf2da 180px,#fbf7ec 420px,#f7efd8 100%)}
.site-header{border-top:4px solid transparent;border-image:linear-gradient(90deg,var(--lapis),var(--saffron),var(--ruby),var(--turquoise),var(--saffron),var(--lapis)) 1;background:linear-gradient(90deg,rgba(23,63,104,.08),rgba(255,253,247,.92) 22%,rgba(255,253,247,.92) 78%,rgba(139,51,64,.07))}
.brand-seal{color:#b27a19;border-color:#b27a19;background:radial-gradient(circle,#fff9e8 42%,#d9b95d 44%,#173f68 48%,#173f68 54%,#fff9e8 56%);box-shadow:0 0 0 2px #f8e8b8,0 2px 8px rgba(35,27,13,.14)}
.brand small{color:var(--ruby)}.brand strong{color:#163b34}
.mosque-skyline{background:linear-gradient(180deg,rgba(23,63,104,.09),rgba(29,116,107,.04),rgba(201,149,47,.09));border-top-color:rgba(23,63,104,.22)}
.dome{border-color:#b17b21;background:linear-gradient(180deg,#f8e7ad,#e7c65f 48%,#c99731);box-shadow:inset 0 0 0 3px rgba(255,248,220,.42)}.dome i{background:linear-gradient(90deg,var(--lapis),#e5c46b,var(--turquoise));border-color:#9f7424}.minaret{background:linear-gradient(90deg,#f6e7b7,#d7b45a,#f7ebc6)}
.mushaf-ornament{color:var(--ruby)}.mushaf-ornament span{height:2px;background:linear-gradient(90deg,transparent,var(--lapis),var(--saffron),var(--ruby))}.mushaf-ornament span:last-child{background:linear-gradient(90deg,var(--ruby),var(--saffron),var(--turquoise),transparent)}
.haramain-latest{border:2px solid #c8a34b;background:
 linear-gradient(135deg,rgba(23,63,104,.045) 0 18px,transparent 18px) 0 0/36px 36px,
 linear-gradient(225deg,rgba(139,51,64,.04) 0 18px,transparent 18px) 0 0/36px 36px,
 #fffaf0;box-shadow:0 0 0 5px #f4e6bd,0 0 0 6px rgba(23,63,104,.35),0 13px 34px rgba(70,45,8,.13)}
.haramain-latest:before{color:var(--ruby);background:#fff6df;border-left:1px solid #c69c3e;border-right:1px solid #c69c3e}.haramain-latest:after{background:linear-gradient(90deg,transparent,var(--lapis) 12%,var(--saffron) 30%,var(--ruby) 50%,var(--turquoise) 70%,var(--saffron) 88%,transparent)}
.section-head b{color:var(--lapis)}.section-head span{color:#70412e}.section-head:after{height:3px;width:140px;background:linear-gradient(90deg,transparent,var(--turquoise),var(--saffron),var(--ruby),transparent)}
.hrec{border-left:4px solid var(--turquoise);background:linear-gradient(90deg,rgba(29,116,107,.055),rgba(255,255,255,.78) 22%)}.hrec:nth-child(3n+2){border-left-color:var(--ruby);background:linear-gradient(90deg,rgba(139,51,64,.05),rgba(255,255,255,.78) 22%)}.hrec:nth-child(3n){border-left-color:var(--lapis);background:linear-gradient(90deg,rgba(23,63,104,.055),rgba(255,255,255,.78) 22%)}
.hrec-top b{color:#153f37}.hizb-hit{background:#e3f1df!important;border-color:#65966e!important;color:#194f2b!important}.player{border-top:3px solid transparent;border-image:linear-gradient(90deg,var(--lapis),var(--saffron),var(--ruby),var(--turquoise),var(--lapis)) 1}

/* Haremeyn hero: Kiswah / Kaaba + Madinah */
.mosque-skyline{display:none!important}.haramain-hero{height:112px;max-width:760px;margin:0 auto;position:relative;display:flex;align-items:flex-end;justify-content:space-between;padding:12px 64px 17px;box-sizing:border-box;overflow:hidden;background:radial-gradient(circle at 50% 10%,rgba(214,180,91,.24),transparent 43%),linear-gradient(180deg,#f3e6bd,#ead7a3);border-top:1px solid #d2b45f;border-bottom:1px solid #b88a2d}.haramain-hero:before,.haramain-hero:after{content:'';position:absolute;top:9px;bottom:9px;width:8px;border-top:2px solid #ad7a1c;border-bottom:2px solid #ad7a1c;background:repeating-linear-gradient(180deg,#173f38 0 4px,#c89b38 4px 8px,#8b3340 8px 12px)}.haramain-hero:before{left:18px}.haramain-hero:after{right:18px}.kaaba-mark{position:relative;width:98px;height:70px;background:linear-gradient(135deg,#171510,#030303 58%,#171510);border:1px solid #000;box-shadow:8px 8px 0 rgba(77,53,12,.13)}.kiswah-band{position:absolute;left:0;right:0;top:15px;height:12px;background:linear-gradient(#caa441,#8d681b,#d5b457);border-top:1px solid #f2d77e;border-bottom:1px solid #6f5014}.kiswah-band:after{content:'۞  ۞  ۞  ۞';display:block;text-align:center;color:#19150b;font-size:8px;line-height:12px;letter-spacing:3px}.kaaba-door{position:absolute;right:14px;bottom:0;width:22px;height:38px;background:linear-gradient(90deg,#8e6517,#e1c15f 45%,#9e7521);border:1px solid #f0d67c;box-shadow:inset 0 0 0 2px rgba(70,47,8,.25)}
.hero-ornament{position:absolute;left:50%;top:23px;transform:translateX(-50%);width:180px;text-align:center;color:#8b3340}.hero-ornament:before,.hero-ornament:after{content:'';display:inline-block;width:55px;height:1px;vertical-align:middle;background:linear-gradient(90deg,transparent,#a37b2a)}.hero-ornament:after{background:linear-gradient(90deg,#a37b2a,transparent)}.hero-ornament span{padding:0 9px;color:#1d746b}
.madina-silhouette{position:relative;width:150px;height:76px;border-bottom:7px solid #e5c463}.green-dome{position:absolute;left:49px;bottom:6px;width:58px;height:35px;background:linear-gradient(90deg,#075b38,#118353,#064f31);border-radius:40px 40px 4px 4px;box-shadow:inset 0 2px 0 rgba(255,255,255,.25)}.green-dome:before{content:'';position:absolute;left:28px;top:-19px;width:2px;height:19px;background:#a77820}.green-dome:after{content:'☾';position:absolute;left:23px;top:-34px;color:#9d711d;font-size:16px}.m-minaret{position:absolute;bottom:6px;width:10px;height:64px;background:linear-gradient(90deg,#eee2b8,#fff9e7,#d7bd72);border:1px solid #b79038}.m-minaret:before{content:'';position:absolute;left:-5px;top:17px;width:18px;height:5px;background:#d8b75b;border:1px solid #9d7524}.m-minaret:after{content:'';position:absolute;left:2px;top:-15px;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:15px solid #b58728}.m1{left:12px}.m2{right:10px}
.ayah-banner{max-width:724px;margin:-1px auto 15px;padding:11px 20px 12px;box-sizing:border-box;display:grid;grid-template-columns:26px 1fr 26px;gap:10px;align-items:center;text-align:center;color:#f6e8b6;background:linear-gradient(90deg,#071f1b,#0c3f33 18%,#0d4a3b 50%,#0c3f33 82%,#071f1b);border:1px solid #b88a2d;border-top:3px solid #d1ad4e;box-shadow:inset 0 0 0 3px #0b3028,inset 0 0 0 4px rgba(213,180,87,.55),0 7px 16px rgba(51,34,8,.11)}.ayah-banner:before,.ayah-banner:after{content:'';position:absolute}.ayah-rosette{color:#d9b755;font-size:18px}.ayah-ar{margin:0;font-family:'Diyanet Mushaf','HBQ Mushaf','Traditional Arabic',serif;font-size:24px;line-height:1.65;color:#f4df99}.ayah-tr{margin:2px 0 0;font-size:11px;line-height:1.45;color:#f4ecd3}.ayah-tr b{color:#d9b755;font-weight:700;margin-left:4px}
@media(max-width:600px){.haramain-hero{height:95px;padding:10px 35px 13px}.kaaba-mark{width:78px;height:57px}.kiswah-band{top:12px;height:10px}.kiswah-band:after{font-size:6px;line-height:10px}.kaaba-door{width:18px;height:30px}.madina-silhouette{width:116px;height:62px}.green-dome{left:37px;width:48px;height:29px}.m-minaret{height:51px}.hero-ornament{display:none}.ayah-banner{margin:0 8px 13px;padding:9px 8px;grid-template-columns:15px 1fr 15px}.ayah-ar{font-size:20px}.ayah-tr{font-size:10px}.ayah-rosette{font-size:12px}}
.haramain-hero{display:none!important}.haramain-photo-hero{height:210px;max-width:760px;margin:0 auto;display:grid;grid-template-columns:1.08fr .92fr;gap:3px;padding:7px;background:#071f1b;border-top:4px solid #c99b35;border-bottom:4px solid #c99b35;box-sizing:border-box;box-shadow:inset 0 0 0 1px #e2c66f}.hphoto{position:relative;overflow:hidden;background-position:center;background-size:cover}.hphoto:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.68))}.hphoto span{position:absolute;z-index:2;left:13px;bottom:9px;color:#fff4cf;font:600 12px Georgia,serif;letter-spacing:.2px;text-shadow:0 1px 3px #000}.hphoto.makkah{background-image:url('./assets/haramain/makkah.jpg')}.hphoto.madinah{background-image:url('./assets/haramain/madinah.jpg')}.ayah-banner{margin-top:0}@media(max-width:600px){.haramain-photo-hero{height:155px;padding:4px;grid-template-columns:1fr 1fr}.hphoto span{left:7px;bottom:6px;font-size:9px}}
/* Full-page illuminated mushaf frame */
body{position:relative;border-left:16px solid #082f2a;border-right:16px solid #082f2a;box-sizing:border-box;min-height:100vh}
body:before,body:after{content:'۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞ ◆ ۞';position:fixed!important;z-index:900!important;top:0!important;bottom:0!important;width:15px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;writing-mode:vertical-rl!important;text-orientation:mixed!important;color:#e4bd55!important;font-size:9px!important;letter-spacing:5px!important;background:linear-gradient(90deg,#06241f,#0d4b40 48%,#06241f)!important;border:0!important;box-shadow:inset 0 0 0 1px #b88a2d!important;pointer-events:none}
body:before{left:0!important}body:after{right:0!important}
.site-header,.haramain-photo-hero,.ayah-banner,main{max-width:760px}.site-header{box-shadow:0 -1px 0 #c99b35,inset 0 0 0 1px rgba(201,155,53,.25)}
.site-header:before,.site-header:after{content:'❖';color:#b78628;font-size:17px;position:absolute;top:50%;transform:translateY(-50%)}.site-header:before{left:7px}.site-header:after{right:7px}
.haramain-photo-hero{position:relative;border-left:5px double #d2aa4a;border-right:5px double #d2aa4a}.haramain-photo-hero:before,.haramain-photo-hero:after{content:'۞';position:absolute;z-index:4;top:50%;transform:translateY(-50%);color:#f1ce69;background:#0b3c33;border:1px solid #d2aa4a;border-radius:50%;width:24px;height:24px;text-align:center;line-height:22px}.haramain-photo-hero:before{left:-15px}.haramain-photo-hero:after{right:-15px}
.ayah-banner{position:relative;border-left:5px double #c99b35;border-right:5px double #c99b35}.ayah-banner:before,.ayah-banner:after{content:'◆ ۞ ◆';position:absolute!important;top:50%!important;transform:translateY(-50%)!important;color:#d7b34d;font-size:9px;writing-mode:vertical-rl;letter-spacing:4px}.ayah-banner:before{left:3px}.ayah-banner:after{right:3px}
.haramain-latest{border-width:2px;outline:6px solid #f0dfaa;box-shadow:0 0 0 7px #b98a32,0 0 0 10px #0d4a3b,0 0 0 11px #d1ad4e,0 15px 35px rgba(54,36,7,.16)}
.haramain-latest>.section-head{position:relative;padding:10px 34px 7px}.haramain-latest>.section-head:before,.haramain-latest>.section-head:after{content:'۞';position:absolute;top:13px;color:#9a2838;font-size:20px}.haramain-latest>.section-head:before{left:3px}.haramain-latest>.section-head:after{right:3px}
@media(max-width:600px){body{border-left-width:8px;border-right-width:8px}body:before,body:after{width:8px!important;font-size:5px!important;letter-spacing:3px!important}.haramain-latest{outline-width:3px;box-shadow:0 0 0 4px #b98a32,0 0 0 6px #0d4a3b,0 0 0 7px #d1ad4e,0 10px 25px rgba(54,36,7,.14)}}
/* Thick illuminated side columns requested */
body{border-left:34px solid #073b32!important;border-right:34px solid #073b32!important}
body:before,body:after{width:34px!important;font-size:12px!important;letter-spacing:7px!important;background:linear-gradient(90deg,#041d19 0,#0b493d 18%,#0f5b4b 50%,#0b493d 82%,#041d19 100%)!important;border-left:3px double #d4ad45!important;border-right:3px double #d4ad45!important;box-shadow:inset 0 0 0 2px #062b25,inset 0 0 0 4px rgba(217,181,80,.32)!important;color:#e7c35c!important}
@media(max-width:600px){body{border-left-width:16px!important;border-right-width:16px!important}body:before,body:after{width:16px!important;font-size:7px!important;letter-spacing:4px!important;border-left-width:2px!important;border-right-width:2px!important}}
.generated-haramain{height:auto!important;padding:0!important;background:#082f2a!important;overflow:hidden}.generated-haramain img{display:block;width:100%;height:auto;object-fit:contain}.generated-haramain:before,.generated-haramain:after{display:none!important}
/* 2026-10-03 visual rhythm / balance pass */
:root{--content-w:760px;--gold:#c9a246;--deep:#083b32;--paper:#fbf5e5}
.site-header,.haramain-photo-hero,.ayah-banner,main{width:min(var(--content-w),calc(100% - 24px));margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
.site-header{min-height:72px;padding:10px 26px!important;border-left:1px solid #d3b15a;border-right:1px solid #d3b15a}
.generated-haramain{margin-top:10px!important;border:4px solid var(--deep)!important;outline:2px solid var(--gold);box-shadow:0 8px 20px rgba(46,31,7,.13)!important}
.generated-haramain img{width:100%!important;height:auto!important;aspect-ratio:8/3;object-fit:cover!important;object-position:center!important}
.ayah-banner{margin-top:10px!important;margin-bottom:22px!important;min-height:102px;padding:10px 30px 12px!important;border-width:2px 5px!important}
.ayah-ar{font-size:23px!important;line-height:1.55!important}.ayah-tr{font-size:11px!important;line-height:1.5!important}
main{padding:0 12px 40px!important}.mushaf-ornament{margin:4px auto 14px!important;max-width:690px}
.haramain-latest{margin:0 auto 22px!important;max-width:700px!important;padding:18px 18px 20px!important;box-sizing:border-box;border-radius:2px!important}
.haramain-latest>.section-head{padding:2px 34px 14px!important;margin-bottom:14px!important;text-align:center}.haramain-latest>.section-head b{display:block;font-size:19px;line-height:1.25}.haramain-latest>.section-head span{display:block;margin-top:4px;font-size:11px;letter-spacing:.15px}
.latest-list{gap:12px!important}.latest-card{margin:0!important}
@media(max-width:600px){.site-header,.haramain-photo-hero,.ayah-banner,main{width:calc(100% - 12px)}.site-header{min-height:60px;padding:8px 14px!important}.generated-haramain{margin-top:6px!important;border-width:2px!important}.generated-haramain img{aspect-ratio:8/3}.ayah-banner{margin-top:7px!important;margin-bottom:15px!important;min-height:86px;padding:8px 17px!important;grid-template-columns:16px 1fr 16px!important}.ayah-ar{font-size:18px!important}.ayah-tr{font-size:9px!important}.ayah-rosette{font-size:12px!important}main{padding:0 7px 28px!important}.haramain-latest{padding:13px 10px 15px!important;margin-bottom:15px!important}.haramain-latest>.section-head{padding:1px 25px 10px!important;margin-bottom:10px!important}.haramain-latest>.section-head b{font-size:16px}}
/* mobile hero: force the generated panorama to span as one image */
.generated-haramain{display:block!important;grid-template-columns:none!important}
.generated-haramain img{display:block!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:8/3!important;object-fit:cover!important}
@media(max-width:600px){.generated-haramain{display:block!important;height:auto!important}.generated-haramain img{width:100%!important;height:auto!important;aspect-ratio:8/3!important;object-fit:cover!important}}
/* Mobile typography scale — fit first, preserve hierarchy */
@media(max-width:600px){
 html{font-size:14px!important}
 body{font-size:13px!important}
 .site-header{min-height:54px!important;padding:6px 10px!important}
 .brand small{font-size:8px!important;letter-spacing:.7px!important}
 .brand strong{font-size:13px!important;line-height:1.15!important}
 #partLabel{font-size:8px!important;line-height:1.2!important;max-width:105px!important;text-align:right}
 .ayah-ar{font-size:16px!important;line-height:1.45!important}
 .ayah-tr{font-size:8.5px!important;line-height:1.35!important}
 .ayah-banner{min-height:0!important;padding:7px 12px 8px!important;grid-template-columns:12px minmax(0,1fr) 12px!important;gap:5px!important}
 .haramain-latest>.section-head b{font-size:14px!important;line-height:1.2!important}
 .haramain-latest>.section-head span{font-size:9px!important;line-height:1.3!important}
 .haramain-latest>.section-head{padding:0 18px 8px!important}
 .latest-list,.latest-list *{max-width:100%;box-sizing:border-box}
 .latest-list{font-size:12px!important}
 button,input,select{font-size:12px!important}
}
@media(max-width:380px){
 .brand strong{font-size:12px!important}.ayah-ar{font-size:15px!important}.ayah-tr{font-size:8px!important}
 #partLabel{font-size:7.5px!important;max-width:92px!important}
}
/* compact phone density: all visible UI, not only headings */
@media(max-width:600px){
 body{font-size:11px!important}
 .brand-seal{font-size:18px!important;width:29px!important;height:29px!important;line-height:27px!important}
 .ayah-ar{font-size:14px!important;line-height:1.38!important}
 .haramain-latest{font-size:11px!important;padding:10px 7px 12px!important}
 .haramain-latest *:not(.madinah-mark){font-size:inherit}
 .haramain-latest .section-head b{font-size:13px!important}
 .haramain-latest .section-head span{font-size:8px!important}
 .latest-list{font-size:10px!important;gap:8px!important}
 .latest-list button,.latest-list a,.latest-list span,.latest-list div,.latest-list p,.latest-list small,.latest-list b,.latest-list strong{line-height:1.3}
 .latest-list button{font-size:10px!important;padding-top:5px!important;padding-bottom:5px!important}
 .card-arabic,.qword{font-size:17px!important;line-height:1.7!important}
 .card-translation,.translation,.meal{font-size:9px!important;line-height:1.4!important}
 .status-chip,.tag,.badge,.meta,.card-meta{font-size:8px!important}
}
/* Phone visual correction after real 390x844 screenshot inspection */
@media(max-width:600px){
 body{border-left-width:9px!important;border-right-width:9px!important}
 body:before,body:after{width:9px!important;font-size:4px!important;letter-spacing:3px!important;border-left-width:1px!important;border-right-width:1px!important}
 .site-header,.haramain-photo-hero,.ayah-banner,main{width:calc(100% - 6px)!important}
 .site-header{min-height:50px!important;padding:5px 8px!important}
 .brand{gap:7px!important}.brand-seal{width:27px!important;height:27px!important;font-size:16px!important}
 .brand small{font-size:7px!important}.brand strong{font-size:12px!important}
 #partLabel{font-size:7px!important;max-width:80px!important}
 .generated-haramain{margin-top:4px!important;border-width:2px!important;outline-width:1px!important}
 .ayah-banner{margin-top:5px!important;margin-bottom:9px!important;padding:5px 9px 6px!important;grid-template-columns:9px minmax(0,1fr) 9px!important;gap:3px!important;border-left-width:2px!important;border-right-width:2px!important}
 .ayah-ar{font-size:12.5px!important;line-height:1.3!important}.ayah-tr{font-size:7.5px!important;line-height:1.25!important}.ayah-rosette{font-size:8px!important}
 main{padding:0 3px 72px!important}.mushaf-ornament{margin:1px auto 7px!important;height:20px!important}
 .haramain-latest{width:100%!important;max-width:none!important;margin:0 auto 10px!important;padding:8px 6px 9px!important;outline-width:2px!important;box-shadow:0 0 0 3px #b98a32,0 0 0 4px #0d4a3b,0 7px 16px rgba(54,36,7,.11)!important}
 .haramain-latest>.section-head{padding:0 12px 6px!important;margin-bottom:6px!important;min-height:0!important}
 .haramain-latest>.section-head:before,.haramain-latest>.section-head:after{font-size:12px!important;top:2px!important}
 .haramain-latest>.section-head b{font-size:12px!important}.haramain-latest>.section-head span{font-size:7.5px!important;margin-top:2px!important}
 .latest-list{gap:6px!important;font-size:9px!important}
 .latest-list>*,.latest-card{padding:7px 8px!important;border-radius:9px!important}
 .status-chip,.tag,.badge,.meta,.card-meta{font-size:7px!important}
 .card-arabic,.qword{font-size:15px!important;line-height:1.55!important}
}
/* temporary test-publication pipeline diagnostics */
.pipeline-chain{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:5px 0 7px;padding:5px 7px;border:1px dashed #c9b77d;background:#fffdf5;font-size:9px;line-height:1.25;color:#6b6250}
.pipeline-chain span{white-space:nowrap}.pipeline-chain b{color:#a89a73}.pipeline-chain .ok{color:#08784f;font-weight:700}.pipeline-chain .blocked{color:#a32632;font-weight:700}.pipeline-chain .wait{color:#918a79}.pipeline-chain em{font-style:normal;font-weight:800;color:#08784f}.pipeline-chain em.pending{flex-basis:100%;color:#a32632;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.pipeline-chain{font-size:7px!important;gap:3px;padding:4px 5px;margin:4px 0 5px}.pipeline-chain b{font-size:7px!important}}
/* temporary surah side viewer in study mode */
.surah-peek{display:none;position:sticky;float:right;top:12px;width:220px;max-height:440px;margin:10px -238px 10px 12px;border:2px solid #b98a32;border-radius:10px;background:#fffaf0;box-shadow:0 5px 18px rgba(40,30,8,.15);z-index:4;overflow:hidden}.hrec.study .surah-peek{display:block}.surah-peek-head{padding:7px 9px;background:#0d5949;color:#fff;font-size:10px;font-weight:800;text-align:center}.surah-peek-body{max-height:400px;overflow:auto;padding:7px}.surah-peek-body>b{display:block;font-size:10px;margin-bottom:6px;color:#76591b}.peek-ayah{font-family:'HBQ Mushaf','Diyanet Mushaf',serif;font-size:18px;line-height:1.9;padding:2px 5px;border-radius:5px}.peek-ayah small{font-family:serif;font-size:8px;color:#8b7546}.peek-ayah.active{background:#ffe58a;outline:1px solid #d6ae36}@media(max-width:1100px){.surah-peek{float:none;position:relative;top:auto;width:100%;max-height:220px;margin:8px 0}.surah-peek-body{max-height:180px}.peek-ayah{font-size:15px}}
/* Surah side viewer */
.surah-peek{display:none;position:sticky;float:right;top:12px;width:220px;max-height:440px;margin:10px -238px 10px 12px;border:2px solid #b98a32;border-radius:10px;background:#fffaf0;box-shadow:0 5px 18px rgba(40,30,8,.15);z-index:4;overflow:hidden}.hrec.study .surah-peek{display:block}.surah-peek-head{padding:7px 9px;background:#0d5949;color:#fff;font-size:10px;font-weight:800;text-align:center}.surah-peek-body{max-height:400px;overflow:auto;padding:7px}.surah-peek-body>b{display:block;font-size:10px;margin-bottom:6px;color:#76591b}.peek-ayah{font-family:'HBQ Mushaf','Diyanet Mushaf',serif;font-size:18px;line-height:1.9;padding:2px 5px;border-radius:5px}.peek-ayah small{font-family:serif;font-size:8px;color:#8b7546}.peek-ayah.active{background:#ffe58a;outline:1px solid #d6ae36}@media(max-width:1100px){.surah-peek{float:none;position:relative;top:auto;width:100%;max-height:220px;margin:8px 0}.surah-peek-body{max-height:180px}.peek-ayah{font-size:15px}}
/* keep surah viewer visible beside the study viewport, not down in document flow */
@media(min-width:1101px){.hrec.study .surah-peek{position:fixed!important;float:none!important;right:18px!important;top:110px!important;margin:0!important;width:250px!important;max-height:calc(100vh - 150px)!important}.hrec.study .surah-peek-body{max-height:calc(100vh - 195px)!important}}
/* final: escape clipping container */
.haramain-latest{overflow:visible!important}
@media(min-width:1101px){.hrec.study .surah-peek{position:fixed!important;display:block!important;left:calc(50% + 405px)!important;right:auto!important;top:120px!important;width:245px!important;height:auto!important;max-height:70vh!important;z-index:1200!important;transform:none!important}.hrec.study .surah-peek-body{max-height:calc(70vh - 38px)!important}}
.yt-peek .surah-peek-body{padding:6px!important;overflow:hidden!important}.yt-source-frame{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:6px;background:#111}.yt-source-link{display:block;margin-top:6px;text-align:center;font-size:9px;font-weight:700;color:#0d5949;text-decoration:none}.yt-source-missing{display:block;padding:14px 6px;font-size:9px;text-align:center;color:#876}
@media(min-width:1101px){.hrec.study .yt-peek{height:auto!important;max-height:none!important}.hrec.study .yt-peek .surah-peek-body{height:auto!important;max-height:none!important}}
.yt-peek{display:none!important}.hrec.study .yt-peek{display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important;max-height:none!important}.yt-peek .surah-peek-body:empty{display:none}.yt-open{border:1px solid #b98a32;border-radius:7px;background:#fffaf0;color:#0d5949;font-weight:800;font-size:10px;padding:7px 10px;cursor:pointer}.yt-peek.active{background:#fffaf0!important;border:2px solid #b98a32!important;width:300px!important}.yt-peek.active .surah-peek-body{display:block}
.youtube-source-only{display:none;margin:8px 0 4px auto;width:max-content;font-size:10px;font-weight:800;color:#0d5949;text-decoration:none;border:1px solid #b98a32;border-radius:7px;background:#fffaf0;padding:6px 9px}.hrec.study .youtube-source-only{display:block}.yt-peek{display:none!important}
.youtube-source-only{display:none!important}
.hrec.study .youtube-source-only{display:inline-flex!important;float:right!important;margin:-31px 4px 0 0!important;padding:3px!important;width:22px!important;height:22px!important;box-sizing:border-box!important;border:0!important;background:transparent!important;opacity:.52!important;align-items:center;justify-content:center}
.youtube-source-only:hover{opacity:.82!important}
.youtube-source-only svg{display:block;width:16px;height:16px;fill:currentColor}
.hrec.study .hrec-top .youtube-source-only{display:inline-flex!important;float:none!important;margin:0 0 0 5px!important;vertical-align:middle!important;width:19px!important;height:19px!important;padding:2px!important}
.hrec-top .youtube-source-only svg{width:14px;height:14px}
.hrec.study .hrec-top .youtube-source-only{margin-left:2px!important;width:23px!important;height:23px!important;padding:2px!important;opacity:.72!important}
.hrec-top .youtube-source-only svg{width:18px!important;height:18px!important}
.hrec-top>b{display:inline-flex!important;align-items:center!important}
.hrec.study .hrec-top .youtube-source-only{margin-left:1px!important;width:22px!important;height:20px!important;padding:1px!important;opacity:.9!important;color:#ff0000!important;transform:translateX(-1px)}
.hrec-top .youtube-source-only svg{width:18px!important;height:18px!important;fill:#ff0000!important}
.wave-real{position:relative}
.wave-section{position:absolute;top:-17px;height:14px;z-index:4;overflow:hidden;white-space:nowrap;font-size:8px;font-weight:800;line-height:13px;text-align:center;border-radius:3px;pointer-events:none;opacity:.86}
.wave-section.fatiha{background:#d9b84b;color:#3b2d05}
.wave-section.amin{background:#eee0a1;color:#5c4b13;min-width:3px}
.wave-section.zammisure{background:#8ebaa8;color:#123f33}

/* Education layer phase 1 — ayah meaning and provenance stay available without crowding the mushaf. */
.ayah-study-tools{display:flex;gap:6px;align-items:center;margin-top:8px}
.ayah-study-tools button{border:1px solid #d7c79f;background:#fffaf0;color:#0d5949;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:800;cursor:pointer}
.ayah-study-tools button[aria-expanded="true"]{background:#edf5ee;border-color:#91b79b}
.study-collapsible{margin-top:7px;padding:8px 10px;border-left:3px solid #c99b35;background:rgba(255,250,240,.72);border-radius:0 7px 7px 0}
.study-collapsible[hidden]{display:none!important}
.reading-info{font-size:12px;line-height:1.55;color:#493d2c}
.reading-info b,.reading-info span{display:block}
.hrec.study .ayah-study-tools button{font-size:12px;padding:5px 12px}
.hrec.study .card-meal{font-size:17px!important;line-height:1.7!important}
@media(max-width:600px){.ayah-study-tools{gap:4px;flex-wrap:wrap}.ayah-study-tools button{font-size:10px!important;padding:4px 8px!important}.reading-info{font-size:11px!important}}

/* MELCE_PARENT_NAV_START 2026-10-07 */
.site-header .brand{color:inherit;text-decoration:none;min-width:0}
.melce-nav{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:12px}
.melce-nav a{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border:1px solid rgba(170,123,36,.34);border-radius:999px;background:rgba(255,253,247,.72);color:#24473e;text-decoration:none;font-size:11px;font-weight:750;white-space:nowrap}
.melce-nav a:hover{background:#fff9e8;border-color:#b98a32}
@media(max-width:600px){
 .melce-nav{gap:4px;margin-right:0}
 .melce-nav a{min-height:27px;padding:4px 7px;font-size:9px}
 .site-header .brand strong{font-size:15px}
 .site-header .brand small{font-size:9px}
}
/* MELCE_PARENT_NAV_END */

/* MELCE_DOCKED_WAVE_20261008 */
.player{padding:6px 10px 5px!important}
.player .now{font-size:11px;line-height:1.2;gap:10px;align-items:center}
.player .now b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58%}
.player .now span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;max-width:42%}
.dock-wave-slot:empty{display:none}
.dock-wave-slot{margin:2px 0 1px}
.dock-wave-slot .wave-panel{display:block!important;margin:0!important;padding:12px 0 0!important;border:0!important}
.dock-wave-slot .wave-row{overflow-x:auto!important;overflow-y:visible!important}
.dock-wave-slot .wave-viewport{overflow-x:auto!important;overflow-y:visible!important}
.dock-wave-slot .wave-real{height:30px!important;min-height:30px!important}
.dock-wave-slot .wave-real i{max-height:26px!important}
.dock-wave-slot .wave-section{top:-11px!important;height:11px!important;line-height:10px!important;font-size:7px!important}
.dock-wave-slot .wave-toggle{width:24px!important;height:24px!important;line-height:22px!important;top:-12px!important;font-size:11px!important}
.dock-wave-slot .card-seek{height:12px!important;margin:0!important}
.dock-wave-slot .ab-controls{margin-top:0!important;gap:4px!important;align-items:center}
.dock-wave-slot .ab-controls button{font-size:9px!important;line-height:1.2!important;padding:2px 7px!important;border-radius:5px!important}
.dock-wave-slot .zoom-controls{gap:2px!important}
.dock-wave-slot .zoom-controls b{font-size:9px!important;min-width:18px!important}
.player .controls{gap:14px!important;margin-top:2px}
.player .controls button{width:38px!important;height:38px!important;font-size:18px!important}
.player .progress{grid-template-columns:30px 1fr 30px!important;gap:5px!important;font-size:9px!important;align-items:center}
.player .progress input{height:12px!important}
.hrec .wave-panel.dock-active{display:block!important}
@media(max-width:600px){
 .player{padding:5px 7px 4px!important}
 .player .now{font-size:9px!important}
 .dock-wave-slot .wave-real{height:27px!important;min-height:27px!important}
 .dock-wave-slot .ab-controls button{padding:2px 5px!important;font-size:8px!important}
 .player .controls{gap:11px!important}
 .player .controls button{width:34px!important;height:34px!important;font-size:16px!important}
}

/* MELCE_PLAYER_SAFE_AREA_20261008 */
html{--hbq-player-h:86px}
body{padding-bottom:calc(var(--hbq-player-h) + 16px)!important}
.player{box-sizing:border-box;max-height:48vh;overflow-y:auto}
.player.wave-docked{padding-top:4px!important}
.player.wave-docked .now{min-height:16px}
.player.wave-docked .dock-wave-slot{display:block}
.player.wave-docked .controls{margin-top:1px!important}
.player.wave-docked .progress{margin-top:0!important}
.dock-wave-slot .wave-panel{background:transparent!important}
.dock-wave-slot .ab-controls{flex-wrap:wrap;justify-content:center!important}
@media(max-width:600px){
 body{padding-bottom:calc(var(--hbq-player-h) + 10px)!important}
 .player{max-height:56vh}
 .dock-wave-slot .wave-panel{padding-top:10px!important}
 .dock-wave-slot .wave-real{height:24px!important;min-height:24px!important}
 .dock-wave-slot .wave-real i{max-height:21px!important}
 .player.wave-docked .controls button{width:31px!important;height:31px!important;font-size:15px!important}
}

/* MELCE_PLAYER_DOCK_COMPACT_20261008 */
.player.wave-docked{
  padding:4px 8px 3px!important;
  row-gap:2px!important;
}
.player.wave-docked .now{
  min-height:18px!important;
  margin:0!important;
}
.player.wave-docked .dock-wave-slot{
  margin:0!important;
}
.player.wave-docked .dock-wave-slot .wave-panel{
  padding:10px 0 0!important;
}
.player.wave-docked .dock-wave-slot .wave-real{
  height:26px!important;
  min-height:26px!important;
}
.player.wave-docked .dock-wave-slot .wave-real i{
  max-height:23px!important;
}
.player.wave-docked .dock-wave-slot .card-seek{
  height:10px!important;
}
.player.wave-docked .dock-wave-slot .ab-controls{
  min-height:24px!important;
}
.player.wave-docked .controls{
  margin-top:0!important;
  gap:10px!important;
}
.player.wave-docked .controls button{
  width:34px!important;
  height:34px!important;
  font-size:16px!important;
}
.player.wave-docked .progress{
  margin-top:0!important;
}
@media(max-width:600px){
 .player.wave-docked{padding:3px 5px 2px!important}
 .player.wave-docked .dock-wave-slot .wave-real{height:24px!important;min-height:24px!important}
 .player.wave-docked .dock-wave-slot .wave-real i{max-height:21px!important}
 .player.wave-docked .controls button{width:32px!important;height:32px!important}
}

/* MELCE_PRIVATE_HUMAN_TIMING_20261008 */
.human-mark{display:none!important}
.qword{cursor:text}
.hbq-human-authorized .human-mark{display:inline-flex!important}
.hbq-human-authorized .qword{cursor:pointer}

/* MELCE_HARAMAIN_KIRIK_MEAL_20261008 */
:root{--hbqPencilSize:14px}
.qword.has-kirik{
  margin-bottom:18px!important;
  padding-bottom:12px!important;
}
.hbq-kirik-note{
  position:absolute;
  left:50%;
  top:calc(100% - 3px);
  transform:translateX(-50%) rotate(-7deg);
  transform-origin:50% 0;
  direction:ltr;
  unicode-bidi:isolate;
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
  font-size:var(--hbqPencilSize)!important;
  line-height:1.04!important;
  font-style:italic;
  font-weight:600;
  color:rgba(0,0,0,.76);
  white-space:nowrap;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  text-align:center;
  text-shadow:0 1px 0 rgba(255,255,255,.78);
  pointer-events:none;
  z-index:5;
}
#hbqHaramainKirikCtl{
  position:fixed;
  right:10px;
  top:74px;
  z-index:130;
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border:1px solid rgba(0,0,0,.16);
  border-radius:12px;
  background:rgba(246,241,218,.94);
  box-shadow:0 6px 16px rgba(0,0,0,.10);
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(7px);
}
#hbqHaramainKirikCtl button{
  border:1px solid #35c8d1;
  background:#efffff;
  border-radius:9px;
  padding:3px 8px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
#hbqHaramainKirikCtl span{min-width:34px;text-align:center}
@media(max-width:600px){
 #hbqHaramainKirikCtl{top:62px;right:6px;padding:4px 6px;gap:4px;font-size:11px}
 #hbqHaramainKirikCtl button{padding:2px 6px;font-size:11px}
 .qword.has-kirik{margin-bottom:16px!important;padding-bottom:11px!important}
}

/* MELCE_KIRIK_WORD_ALIGNMENT_20261008 */
.qword.reading .hbq-kirik-note{
  background:#ffe58a!important;
  color:#241d13!important;
  border-radius:6px;
  box-shadow:0 0 0 2px #ffe58a;
  padding:1px 4px;
  text-shadow:none!important;
}

/* MELCE_DIYANET_KURAN_YOLU_TEFSIR_20261008 */
.card-tefsir{
  margin-top:8px;
  padding:12px 14px;
  border-left:3px solid #b88a19;
  border-radius:8px;
  background:#fffdf4;
  color:#2a241b;
  line-height:1.68;
  font-size:15px;
}
.tefsir-source{
  font-weight:900;
  color:#2f6f4e;
  margin-bottom:8px;
}
.tefsir-group-note{
  margin:0 0 8px;
  padding:6px 8px;
  border-radius:7px;
  background:#f5edd1;
  font-size:12px;
  font-weight:800;
  color:#66521f;
}
.tefsir-text{
  white-space:pre-line;
}
.tefsir-ref{
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid rgba(0,0,0,.10);
  font-size:12px;
  color:#6b6255;
  font-style:italic;
}
.tefsir-official{
  display:inline-block;
  margin-top:8px;
  font-size:12px;
  font-weight:800;
  color:#176a6e;
  text-decoration:none;
}
.tefsir-official:hover{text-decoration:underline}
.tefsir-loading,.tefsir-error,.tefsir-empty{font-size:13px;color:#6b6255}
