700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
900&display=swap');

:host{font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;color:#12312f;background:#f5f6f2;font-size:16px}*{box-sizing:border-box}:host{margin:0;min-width:300px}button,input{font:inherit}.topbar{height:68px;padding:0 max(24px,calc((100vw - 1440px)/2));background:#092927;color:#f9f8f0;display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid #bda46d}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:1.15rem}.brand-mark{font-size:1.7rem;color:#dcc78c;line-height:1}.book-label{color:#cfddd8;font-size:.9rem}.shell{max-width:1440px;margin:auto;padding:30px 24px 48px}.intro{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:26px}.eyebrow{color:#8a713e;font-weight:700;margin:0 0 4px}.intro h2{font-family:Amiri,serif;font-size:2.4rem;line-height:1.3;margin:0;color:#0b302e}.intro-copy{margin:7px 0 0;max-width:730px;line-height:1.8;color:#45605a}.stats{display:flex;gap:8px;flex-shrink:0}.stats div{min-width:100px;border:1px solid #d9ded6;background:#fff;padding:10px 13px;border-radius:12px;display:flex;flex-direction:column}.stats strong{font-size:1.35rem;color:#0c453f}.stats span{font-size:.77rem;color:#5d716b}.workspace{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.index-pane,.detail{background:#fff;border:1px solid #dce3dd;border-radius:17px;box-shadow:0 6px 25px rgba(9,41,39,.05)}.index-pane{position:sticky;top:14px;overflow:hidden}.index-controls{padding:20px 18px 14px;border-bottom:1px solid #e5eae5}.index-controls label{display:block;font-weight:700;margin-bottom:7px}.index-controls input{width:100%;border:1px solid #cbd8d0;border-radius:10px;padding:11px 13px;background:#fbfcfa;color:#12312f;outline:none}.index-controls input:focus{border-color:#277267;box-shadow:0 0 0 3px #dcebe7}.filters{display:flex;gap:6px;margin-top:12px}.filters button{border:1px solid #d4dfd8;background:#f7faf7;color:#45605a;border-radius:999px;padding:5px 11px;cursor:pointer;font-size:.88rem}.filters button.active{background:#103f3a;color:white;border-color:#103f3a}.result-count{margin:9px 0 0;color:#60736c;font-size:.82rem}.entry-list{max-height:65vh;overflow:auto;padding:7px}.entry-button{width:100%;text-align:right;display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;background:transparent;border-radius:10px;padding:11px 13px;cursor:pointer;color:#12312f}.entry-button:hover,.entry-button:focus-visible{background:#f0f5f0;outline:none}.entry-button.selected{background:#e5f0ec;color:#063d37;box-shadow:inset 3px 0 #2e756b}.entry-button b{font-family:Amiri,serif;font-size:1.18rem;line-height:1.3}.entry-button small{color:#667971;white-space:nowrap;font-size:.76rem}.empty-list{padding:26px 14px;color:#657870}.detail{min-height:650px;padding:31px 36px}.detail-header{display:flex;align-items:start;justify-content:space-between;gap:15px;border-bottom:1px solid #e1e7e1;padding-bottom:19px}.detail h2{font-family:Amiri,serif;font-size:2.3rem;line-height:1.25;margin:3px 0 0;color:#0b342f}.detail .kicker{font-size:.83rem;color:#8a713e;font-weight:700}.page-badge{white-space:nowrap;border:1px solid #d5e1d8;border-radius:999px;background:#f5f8f4;padding:7px 12px;font-size:.82rem;color:#4b635c}.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0}.compare.one{grid-template-columns:1fr}.form-card{border:1px solid #dce5dd;background:#f9fbf8;border-radius:14px;padding:20px 22px;min-height:130px}.form-card:first-child{border-top:3px solid #b3965e}.form-card:nth-child(2){border-top:3px solid #28756c}.form-label{display:block;font-size:.85rem;color:#5d7068}.form-word{display:block;font-family:'Amiri Quran Local',Amiri,serif;font-size:2.25rem;line-height:1.9;color:#133f38;margin:6px 0 0;overflow-wrap:anywhere;direction:rtl}.form-note{font-size:.85rem;color:#64776f}.form-word em{font-style:normal;color:#a06322;background:#fff1d8;border-radius:4px;padding:0 2px}.detail-section{margin-top:27px}.detail-section h3{font-size:1rem;margin:0 0 8px;color:#163b36}.detail-section p{line-height:1.9;margin:0;color:#334f48}.verse-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}.verse-list li{border:1px solid #dbe5dd;background:#f6f9f6;color:#28574e;padding:5px 10px;border-radius:7px;font-size:.88rem}.note{border-right:3px solid #b3965e;background:#fbf8ef;padding:11px 15px;margin-top:26px;border-radius:7px;color:#5a543f;line-height:1.8;font-size:.9rem}.entry-nav{border-top:1px solid #e3e9e3;margin-top:28px;padding-top:17px;display:flex;justify-content:space-between;gap:10px}.entry-nav button,.share-button{border:1px solid #b8cdc3;background:#fff;color:#15554b;border-radius:9px;padding:7px 13px;cursor:pointer}.entry-nav button:hover,.share-button:hover{background:#edf5ef}.method{max-width:920px;margin:30px auto 0;padding:0 8px;color:#556b62;line-height:1.9}.method h2{color:#153c36;font-size:1.05rem;margin-bottom:5px}.method p{margin:0}footer{text-align:center;padding:24px;background:#e9eee8;color:#60736b;font-size:.85rem}@media(max-width:980px){.workspace{grid-template-columns:300px minmax(0,1fr)}.intro{align-items:start;flex-direction:column}.detail{padding:25px}}@media(max-width:700px){.topbar{padding:0 17px}.book-label{display:none}.shell{padding:22px 14px 34px}.intro h2{font-size:2rem}.stats{width:100%}.stats div{flex:1;min-width:0}.workspace{grid-template-columns:1fr}.index-pane{position:static}.entry-list{max-height:235px}.detail{min-height:0;padding:22px 18px}.compare{grid-template-columns:1fr}.detail h2{font-size:2rem}.detail-header{align-items:center}}
.source-excerpt{margin:18px 0 24px;border:1px solid #e1e6dc;background:#fdfdfb;border-radius:12px;overflow:hidden}.source-excerpt img{display:block;width:100%;height:auto}.source-excerpt figcaption,.book-scan figcaption{font-size:.82rem;color:#61736b;padding:8px 12px;text-align:center}.context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.context-grid>div{background:#f7faf7;border:1px solid #dbe6df;padding:16px;border-radius:11px}.context-grid>div:first-child{border-top:3px solid #b3965e}.context-grid>div:nth-child(2){border-top:3px solid #28756c}.context-grid b{color:#164b42}.context-grid p{margin-top:6px}.book-section{border-top:1px solid #e1e8e1;padding-top:26px;margin-top:30px}.page-picker{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.page-picker button{border:1px solid #cbdcd2;border-radius:8px;background:#f7faf7;padding:6px 11px;cursor:pointer;color:#1b5148}.page-picker button.active{color:white;background:#165349;border-color:#165349}.book-scan{margin:0;border:1px solid #d7e1d9;border-radius:11px;overflow:hidden;background:#f1f2ed;text-align:center}.book-scan img{width:min(100%,850px);height:auto;display:block;margin:auto}.book-scan a{display:block}.book-section>p{color:#526b62}.entry-nav button:disabled{opacity:.4;cursor:default}@media(max-width:700px){.context-grid{grid-template-columns:1fr}.book-scan img{width:100%}}
.ayah-grid{display:grid;gap:12px;margin-top:11px}.ayah-card{background:#fbfcfa;border:1px solid #dfe8df;border-radius:11px;padding:15px 19px}.ayah-ref{font-size:.85rem;color:#956c31;font-weight:700;margin-bottom:6px}.ayah-text{font-family:'Amiri Quran Local',Amiri,serif;font-size:1.7rem;line-height:2.4!important;color:#183b34!important;margin:0;direction:rtl}.more-ayahs{margin-top:13px}.more-ayahs summary{cursor:pointer;color:#14584e;font-weight:700;padding:8px 0}.more-ayahs .ayah-grid{margin-top:8px}.reference-section{border-top:1px solid #e8ece8;padding-top:20px}.license{margin-top:12px!important;font-size:.86rem}.license a{color:#14584e;text-decoration:underline;text-underline-offset:3px}@media(max-width:700px){.ayah-text{font-size:1.45rem}.ayah-card{padding:12px}.form-word{font-size:1.9rem}}
.method p + p{margin-top:12px}
.book-subtitle{color:#68776c;font-size:.85rem;margin-top:4px}.supplemental{display:inline-block;font-size:.76rem;color:#466d63;border:1px solid #cbdcd2;border-radius:99px;padding:1px 7px;margin-right:7px}.form-card:nth-child(n+3){border-top:3px solid #738f82}.form-card .form-label{line-height:1.6}@media(max-width:700px){.filters{flex-wrap:wrap}.book-subtitle{font-size:.8rem}}
.filters{flex-wrap:wrap}.interpretation-note{margin-top:12px!important;padding:9px 12px;border-right:3px solid #b3965e;background:#fbf8ef;border-radius:6px;font-size:.9rem}.page-badge{max-width:230px;line-height:1.6}

/* Calm editorial finish within the original green and gold palette. */
:host{background:linear-gradient(180deg,#f0f4ef 0,#f7f8f4 380px,#f8f9f6 100%)}
.topbar{height:76px;background:linear-gradient(105deg,#082a27,#103c35);border-bottom:1px solid #917b4e;box-shadow:0 6px 24px rgba(9,41,39,.13)}
.brand{color:#f9f8f0;text-decoration:none;width:max-content;border-radius:12px;padding:5px 8px 5px 12px;transition:background .2s ease,color .2s ease}
.brand:hover,.brand:focus-visible{background:rgba(255,255,255,.1);color:#fff;outline:2px solid #cfb879;outline-offset:3px}
.brand-mark{display:grid;place-items:center;width:39px;height:39px;border:1px solid #bca36b;border-radius:11px;background:rgba(219,196,134,.1);font-family:Amiri,serif;font-size:1.6rem;line-height:1}
.book-label{letter-spacing:.01em}
.shell{padding-top:25px}
.intro{position:relative;align-items:center;background:linear-gradient(115deg,#fff,#fbfcf9);border:1px solid #dfe7df;border-radius:18px;padding:24px 29px;margin-bottom:21px;box-shadow:0 10px 32px rgba(17,55,45,.045)}
.intro::before{content:"";position:absolute;right:0;top:20px;bottom:20px;width:3px;border-radius:3px;background:#b59a62}
.eyebrow{font-size:.81rem;letter-spacing:.02em}
.intro h2{font-size:2.45rem}
.intro-copy{line-height:1.75;max-width:650px}
.stats{gap:9px}
.stats div{min-width:105px;border-color:#e0e7de;border-radius:12px;background:#f7faf6;padding:11px 14px}
.stats strong{font-family:Amiri,serif;font-size:1.6rem;line-height:1.2}
.workspace{gap:20px}
.index-pane,.detail{border-color:#dfe7de;box-shadow:0 12px 36px rgba(10,45,39,.065)}
.index-controls{background:#fcfdfb;border-bottom-color:#e5ebe4}
.index-controls input{background:#fff;padding:12px 14px;transition:border-color .2s ease,box-shadow .2s ease}
.filters{gap:7px}
.filters button{background:#fff;padding:6px 12px;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.filters button:hover{border-color:#9bb7aa;background:#eef5ef}
.filters button.active:hover{background:#174f46;color:#fff}
.filters button:focus-visible,.page-picker button:focus-visible,.entry-nav button:focus-visible{outline:2px solid #947a49;outline-offset:2px}
.entry-list{padding:8px 10px}
.entry-button{border-bottom:1px solid #edf0ea;border-radius:7px;padding:11px 13px;transition:background .18s ease}
.entry-button:last-child{border-bottom:0}
.entry-button.selected{background:#e9f2ed;box-shadow:inset 3px 0 #a98d56}
.entry-button b{font-size:1.24rem}
.entry-button small{font-size:.8rem}
.detail{padding:33px 38px}
.detail-header{padding-bottom:21px;border-bottom-color:#e4eae3}
.detail h2{font-size:2.48rem}
.compare{gap:15px;margin:25px 0 29px}
.form-card{background:linear-gradient(150deg,#fff,#f7faf6);border-color:#dfe8df;box-shadow:0 6px 18px rgba(20,61,52,.035)}
.form-word{font-size:2.4rem}
.detail-section{margin-top:29px}
.detail-section h3{font-size:1.04rem;color:#123d35}
.ayah-card{background:#fff;border-color:#e2e9e2;box-shadow:0 3px 12px rgba(18,55,46,.025)}
.method{max-width:100%;margin:23px 0 0;padding:16px 23px 18px;border:1px solid #e2e9e0;border-radius:14px;background:#fcfdfb;line-height:1.75;color:#50665d;box-shadow:0 5px 20px rgba(20,50,40,.025)}
.method h2{font-family:Amiri,serif;font-size:1.3rem;margin:0 0 1px;color:#16463d}
.method>p{max-width:950px;font-size:.92rem}
.sources-details{margin-top:9px;font-size:.85rem}
.sources-details summary{display:list-item;width:max-content;max-width:100%;cursor:pointer;color:#236157;font-weight:600;border-radius:5px}
.sources-details summary:hover{text-decoration:underline;text-underline-offset:4px}
.sources-details summary:focus-visible{outline:2px solid #b3965e;outline-offset:3px}
.sources-details p{max-width:1000px;margin:9px 0 0;line-height:1.8}
.sources-details a{color:#14584e;text-underline-offset:3px}
footer{background:transparent;border-top:1px solid #e0e7df;padding:17px 20px 22px;font-size:.8rem}
footer a{color:#286459;text-underline-offset:3px}
@media(max-width:980px){.intro{align-items:flex-start}.stats{width:100%}.stats div{flex:1}.detail{padding:27px}}
@media(max-width:700px){.topbar{height:68px}.brand-mark{width:34px;height:34px}.shell{padding-top:16px}.intro{padding:18px 21px;gap:17px}.intro h2{font-size:2.1rem}.intro-copy{font-size:.93rem}.stats div{min-width:0;padding:9px}.stats strong{font-size:1.4rem}.workspace{gap:15px}.detail{padding:22px 19px}.detail h2{font-size:2.1rem}.form-word{font-size:2rem}.method{padding:14px 17px}}

/* Refined index header and interactive summary. */
:host{background:radial-gradient(circle at 80% 0,rgba(196,178,128,.11),transparent 36rem),linear-gradient(180deg,#f1f5f0 0,#f7f9f6 36rem,#f8f9f6 100%)}
.topbar{height:92px;padding-inline:max(24px,calc((100vw - 1440px)/2));background:linear-gradient(100deg,#0d3530,#092b29 72%,#062522);border-bottom:1px solid rgba(214,192,139,.6)}
.brand{gap:13px;padding:6px 10px;font-family:Amiri,serif;font-size:1.45rem;line-height:1.2;white-space:nowrap}
.brand-mark{width:49px;height:49px;flex:none;border:1px solid rgba(220,199,143,.52);border-radius:13px;background:rgba(225,202,143,.09);color:#dec68c;box-shadow:inset 0 0 0 3px rgba(255,255,255,.03)}
.brand-mark svg{width:33px;height:33px;display:block}
.amin-brand{display:grid;place-items:center;flex:none;width:140px;height:72px;background:#fff;border:1px solid rgba(218,196,147,.82);border-radius:13px;box-shadow:0 8px 19px rgba(0,0,0,.15);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.amin-brand img{display:block;width:126px;height:64px;object-fit:contain}
.amin-brand:hover,.amin-brand:focus-visible{transform:translateY(-2px);border-color:#e8cf90;box-shadow:0 11px 24px rgba(0,0,0,.23);outline:none}
.shell{padding-top:26px}
.intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding:30px 35px 31px;margin-bottom:22px;border-radius:22px;background:linear-gradient(120deg,#fff 10%,#fbfcf9 85%);box-shadow:0 12px 34px rgba(10,45,39,.055)}
.intro::before{top:27px;bottom:27px;width:3px;background:linear-gradient(#dbca94,#a68145)}
.intro-content{min-width:0;padding-inline-start:2px}
.intro h2{font-family:Amiri,serif;font-size:2.65rem;line-height:1.25;letter-spacing:0;margin:0;color:#113b34}
.intro-copy{max-width:620px;font-size:1rem;line-height:1.85;color:#4b645b;margin:9px 0 0}
.stats{display:grid;grid-template-columns:repeat(3,minmax(112px,1fr));gap:10px;flex:none}
.stats .stat-card{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:116px;min-height:112px;padding:16px 10px;border:1px solid #dce6dc;border-radius:16px;background:#f8faf7;color:#526a61;cursor:pointer;text-align:center;box-shadow:0 3px 10px rgba(12,50,40,.025);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease}
.stats .stat-card::before{content:"";position:absolute;top:0;right:27%;left:27%;height:2px;border-radius:0 0 5px 5px;background:#c4ad75;opacity:.65}
.stats .stat-card strong{display:block;font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:1.75rem;font-weight:700;line-height:1.25;color:#123e37;font-variant-numeric:tabular-nums}
.stats .stat-card span{display:block;font-size:.86rem;font-weight:500;line-height:1.4;color:#61776d}
.stats .stat-card:hover{transform:translateY(-3px);border-color:#a6c2b2;background:#fff;box-shadow:0 11px 23px rgba(12,54,43,.10)}
.stats .stat-card.active{border-color:#b8a16b;background:#fffdf8;box-shadow:0 6px 20px rgba(119,94,47,.08)}
.stats .stat-card.active::before{opacity:1;right:16%;left:16%;background:#a98649}
.stats .stat-card:focus-visible{outline:2px solid #a8864d;outline-offset:3px}
.index-pane,.detail{border-radius:20px}
.index-controls{padding-top:23px}
.detail-header{gap:20px}
.form-card{transition:border-color .2s ease,box-shadow .2s ease}
.form-card:hover{border-color:#bbd0be;box-shadow:0 10px 25px rgba(20,61,52,.07)}
@media(max-width:1100px){.intro{grid-template-columns:1fr;gap:19px}.stats{width:100%}.stats .stat-card{min-width:0}}
@media(max-width:700px){.topbar{height:76px;padding-inline:12px}.brand{gap:8px;font-size:1.15rem;padding:4px}.brand-mark{width:40px;height:40px;border-radius:10px}.brand-mark svg{width:28px;height:28px}.amin-brand{width:105px;height:58px;border-radius:10px}.amin-brand img{width:96px;height:52px}.intro{padding:23px 24px 21px;border-radius:18px}.intro h2{font-size:2.25rem}.intro-copy{font-size:.96rem;margin-top:6px}.stats{gap:7px}.stats .stat-card{min-height:92px;padding:10px 5px;border-radius:12px}.stats .stat-card strong{font-size:1.38rem}.stats .stat-card span{font-size:.74rem}.workspace{gap:15px}}
@media(max-width:380px){.brand{font-size:1.02rem}.amin-brand{width:88px;height:51px}.amin-brand img{width:82px;height:46px}.stats .stat-card span{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.stats .stat-card,.amin-brand,.form-card{transition:none}.stats .stat-card:hover,.amin-brand:hover{transform:none}}

/* Stronger masthead and the original transparent Amin Sabry mark. */
.brand{gap:15px;font-family:Cairo,'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:1.43rem;font-weight:900;line-height:1.35;color:#fff;letter-spacing:0;padding:4px 8px}
.brand>span:last-child{position:relative;padding-bottom:3px;text-shadow:0 1px 1px rgba(0,0,0,.18)}
.brand>span:last-child::after{content:"";position:absolute;right:0;left:42%;bottom:0;height:2px;border-radius:2px;background:#c5a568}
.brand-mark{width:57px;height:57px;border:0;border-radius:0;background:none;box-shadow:none;color:#e3c987}
.brand-mark svg{width:54px;height:54px;filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))}
.amin-brand{width:158px;height:79px;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.amin-brand img{width:150px;height:77px;object-fit:contain;filter:brightness(1.28) saturate(1.1) drop-shadow(0 2px 2px rgba(0,0,0,.2))}
.amin-brand:hover,.amin-brand:focus-visible{background:none;border:0;box-shadow:none;transform:translateY(-2px);outline:2px solid #cbb276;outline-offset:2px;border-radius:5px}
@media(max-width:700px){.brand{gap:7px;font-size:1.06rem;padding:3px}.brand-mark{width:43px;height:43px}.brand-mark svg{width:42px;height:42px}.amin-brand{width:112px;height:62px}.amin-brand img{width:108px;height:61px}}
@media(max-width:380px){.brand{font-size:.94rem}.brand-mark{width:37px;height:37px}.brand-mark svg{width:36px;height:36px}.amin-brand{width:91px;height:54px}.amin-brand img{width:90px;height:52px}}

/* A quiet front page: the two letterforms are the invitation. */
[hidden]{display:none!important}
.home{max-width:1180px;margin:0 auto 18px}
.home-intro{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:236px;overflow:hidden;padding:32px clamp(26px,5vw,68px);border-radius:24px;background:radial-gradient(circle at 82% 115%,rgba(207,183,117,.16),transparent 44%),linear-gradient(120deg,#123f38,#0b302c 70%,#092b29);color:#f7f5ea;box-shadow:0 18px 42px rgba(9,42,36,.15)}
.home-intro::before{content:"";position:absolute;inset:14px;border:1px solid rgba(221,202,151,.24);border-radius:16px;pointer-events:none}
.home-intro-text{position:relative;z-index:1;max-width:670px}
.home-overline{margin:0 0 5px;color:#dcc588;font-size:.88rem;font-weight:700}
.home-intro h2{margin:0;font-family:Cairo,'IBM Plex Sans Arabic',sans-serif;font-size:clamp(1.7rem,3vw,2.65rem);font-weight:900;line-height:1.45;color:#fff}
.home-intro-text>p:not(.home-overline){margin:9px 0 19px;font-size:1.04rem;line-height:1.8;color:#d7e5dc}
.home-index-link{display:inline-flex;align-items:center;gap:13px;padding:9px 16px;border:1px solid rgba(232,209,154,.6);border-radius:999px;color:#f2dc9e;text-decoration:none;font-weight:700;transition:background .2s ease,transform .2s ease}
.home-index-link:hover,.home-index-link:focus-visible{background:rgba(242,220,158,.12);transform:translateX(-3px);outline:none}
.home-intro-ornament{position:absolute;left:8%;top:50%;transform:translateY(-50%);font-family:Amiri,serif;font-size:11rem;line-height:1;color:#d3ba7c;opacity:.12;pointer-events:none}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:30px 4px 16px}
.home-section-heading>div{display:flex;align-items:center;gap:13px}
.home-rule{width:4px;height:28px;border-radius:4px;background:#b99855}
.home-section-heading h2{font-family:Amiri,serif;font-size:1.65rem;line-height:1.35;margin:0;color:#163c35}
.home-heading-aside{font-size:.89rem;color:#6b796f}
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-card{position:relative;display:block;min-width:0;min-height:184px;padding:21px 25px 16px;border:1px solid #dbe5dc;border-radius:18px;background:linear-gradient(135deg,#fff,#fafbf8);box-shadow:0 7px 24px rgba(18,55,44,.045);color:#173e36;text-decoration:none;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.home-card::before{content:"";position:absolute;right:0;top:28px;bottom:28px;width:3px;border-radius:3px 0 0 3px;background:#c0a56c;opacity:.55;transition:opacity .2s ease,height .2s ease}
.home-card:hover,.home-card:focus-visible{transform:translateY(-4px);border-color:#bbcaaf;box-shadow:0 16px 32px rgba(13,54,43,.11);outline:none}
.home-card:focus-visible{outline:3px solid #aa864b;outline-offset:3px}
.home-card:hover::before{opacity:1}
.home-card-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.home-card-title{font-family:Cairo,'IBM Plex Sans Arabic',sans-serif;font-size:1.03rem;font-weight:700;color:#355a4f}
.home-card-number{font:600 .76rem 'IBM Plex Sans Arabic',sans-serif;color:#b79b64;direction:ltr}
.home-card-forms{display:flex;align-items:center;justify-content:center;gap:16px;margin:7px 0 0;min-width:0}
.home-quran{display:block;min-width:0;flex:1;font-family:'Amiri Quran Local',Amiri,serif;font-size:clamp(1.7rem,2.8vw,2.35rem);line-height:2.1;text-align:center;white-space:nowrap;color:#153d35;font-feature-settings:"kern"}
.home-form-divider{width:1px;height:48px;flex:none;background:linear-gradient(transparent,#c5b783,transparent)}
.home-card-cue{position:absolute;bottom:11px;left:19px;font-size:1.2rem;color:#b39a67;opacity:.5;transition:opacity .2s ease,transform .2s ease}
.home-card:hover .home-card-cue{opacity:1;transform:translate(-2px,-2px)}
.home-card-first{background:linear-gradient(140deg,#f9faf4,#f3f7f1);border-color:#cbdacb}
.home-card-first .home-quran{color:#0b4239}
.home-end{display:flex;align-items:center;justify-content:center;gap:21px;margin:28px 0 10px}
.home-end-rule{height:1px;max-width:130px;flex:1;background:#d5ded2}
.home-end a{color:#225d50;text-decoration:none;font-weight:700;padding:9px;border-radius:6px}
.home-end a:hover,.home-end a:focus-visible{color:#0a3e33;text-decoration:underline;text-underline-offset:5px;outline:2px solid #b99d62;outline-offset:2px}
@media(max-width:760px){.home-intro{min-height:0;padding:30px 28px}.home-intro-ornament{left:-2%;font-size:8rem}.home-grid{gap:12px}.home-card{padding:17px 15px;min-height:166px}.home-card-forms{gap:9px}.home-quran{font-size:clamp(1.4rem,3.6vw,1.9rem)}}
@media(max-width:600px){.home-intro{border-radius:18px;padding:27px 26px}.home-intro::before{inset:9px;border-radius:12px}.home-intro h2{font-size:1.7rem}.home-intro-text>p:not(.home-overline){font-size:.96rem}.home-intro-ornament{display:none}.home-section-heading{margin:25px 2px 13px}.home-section-heading h2{font-size:1.45rem}.home-heading-aside{display:none}.home-grid{grid-template-columns:1fr;gap:11px}.home-card{min-height:153px;padding:15px 21px 12px}.home-quran{font-size:clamp(1.65rem,6.5vw,2.15rem);line-height:1.95}.home-form-divider{height:40px}.home-card-cue{bottom:8px}}
@media(prefers-reduced-motion:reduce){.home-card,.home-card-cue,.home-index-link{transition:none}.home-card:hover,.home-index-link:hover{transform:none}}

/* A complete pair of printed Mushaf pages, followed by compact word cards. */
.home-intro{display:flex;min-height:210px;padding-block:24px}
.home-mushaf{max-width:1050px;margin:18px auto 8px;padding:22px 30px 27px;border:1px solid #dccca9;border-radius:19px;background:radial-gradient(circle at 16% 75%,rgba(255,255,255,.78),transparent 40%),linear-gradient(125deg,#f9f4e7,#efe5ce);box-shadow:0 10px 28px rgba(77,67,38,.07)}
.home-mushaf-copy{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:15px}
.home-mushaf-copy p{margin:0 0 4px;font-size:.88rem;font-weight:700;color:#957647}
.home-mushaf-copy h2{margin:0;font-family:Amiri,serif;font-size:clamp(1.75rem,2.5vw,2.3rem);line-height:1.35;color:#22473a}
.home-mushaf-copy a{display:inline-flex;align-items:center;gap:11px;padding:8px 0;border-radius:5px;color:#286052;font-weight:700;text-decoration:none}
.home-mushaf-copy a:hover{text-decoration:underline;text-underline-offset:5px}
.home-mushaf-copy a:focus-visible,.home-mushaf-pages a:focus-visible{outline:2px solid #987647;outline-offset:4px}
.home-mushaf-pages{width:100%;max-width:920px;margin-inline:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.home-mushaf-pages a{display:block;min-width:0;padding:6px 6px 9px;border:1px solid #d4c6a8;border-radius:5px;background:#fffcf3;box-shadow:0 9px 19px rgba(61,53,29,.15);color:#57675a;text-align:center;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.home-mushaf-pages a:first-child{transform:rotate(-1deg)}
.home-mushaf-pages a:last-child{transform:rotate(1deg)}
.home-mushaf-pages a:hover{transform:translateY(-3px);box-shadow:0 13px 25px rgba(61,53,29,.2)}
.home-mushaf-pages .mushaf-image{display:block;position:relative;overflow:hidden;aspect-ratio:3/1;border-radius:3px;background:#f7ead0}
.home-mushaf-pages img{display:block;position:absolute;max-width:none;height:auto;aspect-ratio:auto}
.mushaf-baqarah img{width:421.667%;left:-94.444%;top:-891.667%}
.mushaf-imran img{width:379.5%;left:-62.5%;top:-604.5%}
.mushaf-image .word-spot{position:absolute;display:block;box-sizing:border-box;border-bottom:3px solid #a76f1e;border-radius:3px;background:rgba(239,190,62,.16);pointer-events:none}
.mushaf-baqarah .word-spot{left:5.6%;top:18%;width:49%;height:75%}
.mushaf-imran .word-spot{left:7%;top:16%;width:57%;height:76%}
.home-mushaf-pages .mushaf-caption{display:block;margin-top:7px;font-size:.82rem;font-weight:700;line-height:1.45}
.home-section-heading{margin:23px 4px 12px}
.home-grid{max-width:1050px;margin-inline:auto;gap:10px}
.home-card{min-height:137px;padding:12px 20px 10px;border-radius:14px;box-shadow:0 4px 15px rgba(18,55,44,.045)}
.home-card::before{top:20px;bottom:20px;width:2px}
.home-card-title{font-size:.98rem}
.home-card-forms{gap:12px;margin-top:0}
.home-quran{font-size:clamp(1.65rem,2.4vw,2rem);line-height:1.8;color:#0c3c34}
.home-form-divider{height:36px}
.home-card-cue{bottom:5px;left:14px;font-size:1rem}
.home-end{margin-top:21px}
@media(max-width:980px){.home-mushaf-pages{max-width:800px}.home-card{min-height:132px}.home-quran{font-size:clamp(1.55rem,2.6vw,1.9rem)}}
@media(max-width:650px){.home-intro{padding:24px 24px 20px}.home-mushaf{padding:18px 18px 20px}.home-mushaf-copy{align-items:center;flex-direction:column;text-align:center;gap:1px}.home-mushaf-copy h2{font-size:1.8rem}.home-mushaf-pages{grid-template-columns:1fr;max-width:420px;gap:17px}.home-mushaf-pages a{padding:5px 5px 8px;transform:none!important}.home-mushaf-pages .mushaf-caption{font-size:.8rem}.home-section-heading{margin:21px 2px 10px}.home-grid{gap:8px}.home-card{min-height:127px;padding:10px 17px 8px;border-radius:12px}.home-card-forms{gap:8px}.home-quran{font-size:clamp(1.55rem,6vw,1.9rem);line-height:1.75}.home-form-divider{height:34px}.home-card-cue{bottom:4px;left:12px}}
@media(prefers-reduced-motion:reduce){.home-mushaf-pages a{transition:none}.home-mushaf-pages a:hover{transform:none}}

/* The component inherits the Atlas page width and never styles its shell. */
:host{display:block;min-width:0;background:transparent;font-family:Cairo,Noto,Tahoma,sans-serif;container-type:inline-size;container-name:orthography}
.shell{padding:0 0 28px;max-width:100%;min-width:0}
.workspace{grid-template-columns:minmax(220px,30%) minmax(0,1fr)}
.intro{flex-wrap:wrap}.detail{padding:24px;min-width:0}.page-badge{white-space:normal}
.home-intro{padding-inline:30px}.home-intro h2{font-family:Cairo,Noto,sans-serif}
.stats{flex-wrap:wrap;max-width:100%}.stat-card{min-width:0}.entry-nav{flex-wrap:wrap}
.scan-dialog{width:min(96vw,1100px);max-height:94vh;max-width:96vw;padding:16px;border:1px solid #c4d5ce;border-radius:14px;background:#f7f8f4;overflow:auto}
.scan-dialog::backdrop{background:#102d3dcc}.scan-dialog img{display:block;width:100%;height:auto}
.scan-close{position:sticky;top:0;display:block;margin:0 0 12px auto;background:#123f38;color:#fff;border:0;border-radius:8px;padding:9px 18px;cursor:pointer;font:inherit}
@container orthography (max-width:820px){.workspace{grid-template-columns:1fr}.index-pane{position:static}.entry-list{max-height:235px}.intro{align-items:start;flex-direction:column}.detail{min-height:0}.home-mushaf{padding:18px}.home-mushaf-copy{flex-wrap:wrap}}
@container orthography (max-width:520px){.compare,.context-grid,.home-grid{grid-template-columns:1fr}.detail{padding:18px}.home-intro{padding:24px}.home-intro h2{font-size:1.7rem}.stats{width:100%}.stats button{flex:1;padding:10px 6px}.detail-header{flex-wrap:wrap}.form-word{font-size:1.9rem}}
