/* The latest publication leads the page; navigation supports reading. */
body.reader-site[data-section=quran] .aside{display:none}
body.reader-site[data-section=quran] .page-grid{display:block;max-width:1060px}
body.reader-site[data-section=quran] .header-row{padding-top:.6rem;padding-bottom:.6rem}
body.reader-site[data-section=quran] .site-header .brand{min-height:0;padding:.7rem 1.5rem}
body.reader-site[data-section=quran] .site-header .brand-type{font-size:2.1rem}
body.reader-site[data-section=quran] .site-header .brand-type small{font-size:.68rem}
body.reader-site[data-section=quran] .site-header .brand-mark{width:40px;height:44px}
body.reader-site[data-section=quran] .quran-heading{background:linear-gradient(120deg,var(--paper),var(--green-soft));border:1px solid var(--gold);border-radius:18px}
.quran-kicker{display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:.76rem;color:var(--muted)}
.quran-title{display:flex;align-items:center;justify-content:center;gap:clamp(1rem,4vw,3rem);text-align:center;margin:.7rem 0 1.4rem}
.quran-title>span{color:var(--gold);font-size:2rem}.quran-title h1{margin:0!important}.quran-title p{font-size:.82rem;margin:.2rem 0 0;color:var(--muted)}
.quran-tools{margin-top:1rem;display:grid;gap:.6rem}.quran-tools>details{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:.7rem .9rem}
.quran-tools summary{cursor:pointer;min-height:28px;font-weight:600;font-size:.9rem}.quran-tools details[open]>summary{margin-bottom:.8rem}
.quran-surah-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;max-height:380px;overflow:auto;padding:.3rem}
.quran-surah-grid a{border:1px solid var(--line);border-radius:6px;padding:.6rem;display:grid;grid-template-columns:1.4rem minmax(0,1fr);gap:.25rem .4rem;align-items:center;min-height:64px}
.quran-surah-grid a>span{grid-row:span 2;color:var(--muted);font-size:.74rem}.quran-surah-grid a>b{font-family:'Qaim Reading',serif;font-size:1.1rem}.quran-surah-grid a>small{font-size:.65rem;color:var(--muted)}
.quran-surah-grid a:hover,.quran-surah-grid a[aria-current=page]{background:var(--green-soft);border-color:var(--gold)}
.quran-search label{font-size:.82rem}.quran-search .search{margin-top:.4rem}.quran-result-list{list-style:none;margin:0;padding:0;max-height:500px;overflow:auto}
.quran-result-list li{border-top:1px solid var(--line);padding:.8rem .3rem}.quran-result-list a>span{font-size:.75rem;text-decoration:underline;text-underline-offset:3px}.quran-result-text{font-family:'Qaim Reading',serif;font-size:1.35rem;line-height:2.25;margin:.5rem 0 0;overflow-wrap:anywhere}
.quran-bookmark-actions{display:flex;flex-wrap:wrap}.quran-bookmark-actions [hidden]{display:none!important}
.quran-reading-bar{position:sticky;top:.5rem;z-index:5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.55rem;padding:.65rem .9rem;background:var(--paper);border:1px solid var(--line);border-radius:10px;margin:.9rem 0;box-shadow:0 3px 12px #0000000b}
.quran-reading-bar button{min-height:42px;padding:.4rem .8rem;font-size:.85rem}.quran-reading-bar>a{font-size:.82rem;text-decoration:underline;text-underline-offset:4px}.quran-font-controls{display:flex;align-items:center;gap:.25rem}.quran-reading-bar button[aria-pressed=true]{background:var(--green-soft);border-color:var(--gold)}
.quran-sheet{--quran-size:1.6rem;--quran-scale:1}.quran-sheet[data-font-size="85"]{--quran-scale:.85}.quran-sheet[data-font-size="115"]{--quran-scale:1.15}.quran-sheet[data-font-size="130"]{--quran-scale:1.3}.quran-sheet[data-font-size="145"]{--quran-scale:1.45}.quran-sheet[data-font-size="160"]{--quran-scale:1.6}
.quran-sheet .quran-verses,.quran-sheet .quran-basmala{font-size:calc(var(--quran-size)*var(--quran-scale))}
.quran-surah-ornament{font-size:1.7rem;color:var(--gold);display:block;line-height:1.5}
.quran-sheet .quran-ayah{scroll-margin-top:6rem}
@media(max-width:700px){.quran-surah-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quran-kicker{font-size:.69rem}.quran-title>span{font-size:1.4rem}.quran-reading-bar{padding:.5rem;gap:.4rem;top:0}.quran-reading-bar>a{width:100%;text-align:center;font-size:.75rem}.quran-sheet{--quran-size:1.4rem}.quran-tools>details{padding:.7rem}.quran-sheet .quran-ayah{scroll-margin-top:8rem}}
body.reader-site[data-section=home] .header-row{display:flex;flex-wrap:nowrap;justify-content:space-between;min-height:0;padding:.7rem 1.5rem;gap:1rem}
body.reader-site[data-section=home] .site-header .brand{flex:1 1 390px;max-width:590px;padding:.7rem 1.4rem;gap:.7rem}
body.reader-site[data-section=home] .site-header .brand:before{border-image-width:25px}
body.reader-site[data-section=home] .site-header .brand-type{font-size:2.35rem;line-height:1.3}
body.reader-site[data-section=home] .site-header .brand-type small{font-size:.69rem;line-height:1.7;margin-top:.2rem}
body.reader-site[data-section=home] .site-header .brand-mark{width:46px;height:50px}
body.reader-site[data-section=home] .header-actions{flex:0 1 auto;gap:.45rem}
body.reader-site[data-section=home] .nav-inner{gap:.2rem;padding:.35rem 1.5rem;justify-content:flex-start}
body.reader-site[data-section=home] .nav-inner a{min-height:40px;padding:.35rem .55rem;font-size:.8rem}
body.reader-site[data-section=home] .nav-inner .icon{width:1.4rem;height:1.4rem}
body.reader-site[data-section=home] .page-grid{margin-top:1.3rem;gap:1.6rem}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem 1rem;flex-wrap:wrap;margin:0 0 1rem}
.home-heading h1{font-family:'Qaim Reading',serif;font-size:1.8rem;line-height:1.6;margin:0;color:var(--ink)}
.home-heading .eyebrow{font-size:.7rem;color:var(--muted)}
.home-search-link{display:inline-flex;gap:.4rem;align-items:center;font-size:.83rem;color:var(--green-dark);text-decoration:underline;text-underline-offset:4px}
.home-post{border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden;min-width:0}
.home-post-copy{padding:1.4rem 1.6rem}
.home-post-featured{position:relative;isolation:isolate;border-color:#a4884f;border-radius:19px 19px 7px 7px;background:linear-gradient(110deg,#f0e3be,#e0d5ad 75%,#cdd5b0);box-shadow:0 6px 22px #6c592b12}
.home-post-featured:before{content:'';position:absolute;inset:0;border:15px solid transparent;border-image:url('/manuscript-frame.svg') 64 / 28px / 0 stretch;z-index:-1;pointer-events:none;opacity:.7}
.home-post-featured .home-post-copy{padding:1.75rem 2rem}
.home-post-meta{display:flex;gap:.5rem .85rem;align-items:center;flex-wrap:wrap;margin-bottom:.7rem}
.home-post-meta .badge{font-size:.7rem;white-space:normal}
.home-post-meta .meta{font-size:.76rem}
.latest-label{font-size:.73rem;font-weight:700;color:#20563a;display:inline-flex;gap:.4rem;align-items:center}
.latest-label:before{content:'';width:.42rem;height:.42rem;border-radius:50%;background:currentColor}
.home-post h2,.home-post h3{color:var(--ink);font-family:'Qaim Reading',serif;line-height:1.7;overflow-wrap:anywhere;margin:0 0 .6rem}
.home-post h2{font-size:2rem}.home-post h3{font-size:1.45rem}
.home-post h2 a:hover,.home-post h3 a:hover{text-decoration:underline;text-underline-offset:6px}
.home-post-excerpt{font-size:1rem;line-height:1.95;margin:0 0 1.1rem;color:var(--ink);overflow-wrap:anywhere}
.home-post .actions{gap:.6rem}.home-post .actions .button,.home-post .share-action{min-height:42px;font-size:.83rem;padding:.55rem .9rem}
.home-post-cover{display:block;background:var(--green-soft)}.home-post-cover img{display:block;width:100%;max-height:260px;object-fit:contain}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;margin:1.8rem 0 .85rem;padding-bottom:.7rem;border-bottom:1px solid var(--line)}
.home-section-heading h2{font-size:1.3rem;margin:0}.home-section-heading>a{font-size:.8rem;display:flex;align-items:center;gap:.3rem;text-decoration:underline;text-underline-offset:3px}
.home-post-list{display:grid;gap:.9rem}.home-post-list .home-post{display:flex;align-items:stretch}.home-post-list .home-post-cover{flex:0 0 160px}.home-post-list .home-post-cover img{height:100%;object-fit:cover}.home-post-list .home-post-copy{flex:1;min-width:0}
.home-browse{margin-top:1.5rem}.home-browse h2{font-size:1.1rem}.home-browse .actions{gap:.6rem}.home-browse .button{font-size:.8rem}
body.reader-site .aside .panel.home-discovery{background:linear-gradient(135deg,#174b36,#103626);color:#f9edce;border:1px solid #a08b53;padding:1.15rem;border-radius:15px 15px 7px 7px;box-shadow:0 7px 20px #28352115}
.home-discovery h2{color:inherit;margin:0 0 .8rem;font-size:1.05rem}
.home-discovery a{color:inherit;min-width:0;min-height:44px}
.discovery-archive{display:flex;align-items:center;gap:.6rem;border:1px solid #d4bd805e;border-radius:9px;padding:.8rem;background:#f6e6b00b}
.discovery-archive>span{flex:1;font-weight:650}.discovery-archive small{display:block;font-size:.69rem;font-weight:400;color:#ded5b7;margin-top:.2rem}
.discovery-secondary{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-top:.65rem}
.discovery-secondary a{display:flex;align-items:center;gap:.4rem;padding:.55rem .45rem;border:1px solid #d4bd803e;border-radius:8px;font-size:.75rem;line-height:1.8}
.home-discovery a:hover{background:#f6e6b01c}.home-discovery .icon{width:1.25rem;height:1.25rem;flex-shrink:0}
body.reader-site.dark .home-post-featured{background:linear-gradient(115deg,#284631,#173e2a 70%,#183528);border-color:#a6925d}
body.reader-site.dark .home-post-featured:before{filter:brightness(1.55);opacity:.6}
body.reader-site.dark .latest-label{color:#e5d09d}
.footer-channels{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.6rem 1.25rem;margin:1rem auto 0;padding-top:.8rem;border-top:1px solid var(--line);max-width:42rem}
body.reader-site .footer-channels a{display:inline-flex;align-items:center;gap:.35rem;font-size:.78rem;color:var(--muted);padding:.35rem 0;background:transparent;border:0;box-shadow:none;min-height:40px}
.footer-channels .icon,.footer-channels .section-custom-icon{width:1.1rem;height:1.1rem;filter:none;animation:none}
body.reader-site .footer-channels a:hover{text-decoration:underline;color:var(--ink)}
.catalogue-intro h1{font-size:1.9rem}.catalogue-intro .search{margin:1rem 0}.catalogue-filters{gap:.5rem}.catalogue-filters .button{font-size:.81rem;min-height:42px}
.catalogue-count{font-variant-numeric:tabular-nums;opacity:.85;margin-inline-start:.2rem}
.catalogue-result-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:.8rem}.catalogue-result-heading h2{margin:0;font-size:1.2rem}.catalogue-result-heading a{font-size:.83rem;text-decoration:underline}
.catalogue-list{list-style:none;margin:0;padding:0}.catalogue-list>li{display:flex;justify-content:space-between;align-items:center;gap:.8rem 1.4rem;border-bottom:1px solid var(--line);padding:1.05rem 0;min-width:0}.catalogue-list>li:last-child{border-bottom:0}
.catalogue-entry{min-width:0}.catalogue-entry h3{font-size:1.1rem;line-height:1.8;overflow-wrap:anywhere;margin:.3rem 0}.catalogue-entry h3 a:hover{text-decoration:underline}.catalogue-entry .badge{font-size:.68rem}.catalogue-entry .meta{margin:0;font-size:.76rem}.catalogue-list .actions{flex-shrink:0;gap:.4rem;flex-wrap:wrap}.catalogue-list .button{font-size:.78rem;min-height:42px}.catalogue-pagination{justify-content:center;margin-top:1rem;gap:.8rem}
.library-imports{margin-top:1.5rem}.library-imports h3{font-size:1.25rem}.library-imports .catalogue-entry h3{font-size:1.05rem}.quran-library-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-color:var(--section-line,var(--line));background:var(--section-soft,var(--green-soft))}.quran-library-card h3{margin:.3rem 0;font-size:1.6rem}.quran-library-card .muted{margin-bottom:0}.quran-library-card>.button{flex-shrink:0}
.quran-heading h1{font-family:'Qaim Ruqaa',serif;font-size:2.7rem;line-height:1.6;margin:.5rem 0 0}.quran-heading .library-back{font-size:.83rem;text-decoration:underline}.quran-navigation{display:flex;align-items:end;gap:.7rem;max-width:38rem}.quran-navigation>div{flex:1;min-width:0}.quran-navigation select{width:100%;min-height:46px}.quran-navigation button{min-height:46px;flex-shrink:0}.quran-bookmark-actions{margin-top:.85rem;align-items:center;gap:.7rem}.quran-bookmark-actions .button{font-size:.8rem}
body.reader-site .quran-sheet{padding:2rem clamp(1.1rem,4vw,3rem);background:var(--paper);border:3px double var(--gold);border-radius:16px;color:var(--ink)}
.quran-sheet>header{text-align:center;padding-bottom:.8rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}.quran-sheet h2{font-family:'Qaim Reading',serif;font-size:2rem;margin:0}.quran-sheet header .meta{margin:.5rem 0 0}.quran-basmala{font-family:'Qaim Reading',serif;font-size:1.65rem;line-height:2.3;text-align:center;margin:.8rem 0 1.5rem}
.quran-verses{font-family:'Qaim Reading','Traditional Arabic',serif;font-size:1.6rem;line-height:2.5;text-align:justify;text-align-last:center;word-spacing:.04em;margin:0;padding:.3rem 0 .7rem;overflow-wrap:normal}
.quran-ayah{display:inline;margin:0;padding:0;border:0;scroll-margin-block-start:6rem;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.quran-ayah:target{background:var(--green-soft);border-radius:.15em}
body.reader-site .quran-sheet .quran-ayah-number{position:relative;display:inline-flex;align-items:center;justify-content:center;font-family:'Qaim Reading',serif;font-size:inherit;font-weight:400;width:1.55em;height:1.55em;min-width:44px;min-height:44px;margin:0 .04em;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);vertical-align:middle;line-height:1;box-shadow:none;gap:0;isolation:isolate}
.quran-ayah-ornament{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);fill:none;stroke:var(--gold);stroke-width:1.5;pointer-events:none}
.quran-ayah-index{position:relative;z-index:1;font-size:.6em;line-height:1;transform:translateY(.03em)}
body.reader-site .quran-sheet .quran-ayah-number:hover,body.reader-site .quran-sheet .quran-ayah-number[aria-pressed=true]{background:var(--green-soft);color:var(--ink)}
body.reader-site .quran-sheet .quran-ayah-number[aria-pressed=true]{box-shadow:0 0 0 1px var(--gold)}
body.reader-site[data-section=quran] .quran-sheet,body.reader-site[data-section=quran] .quran-reading-bar{max-width:46rem;margin-inline:auto}
.quran-chapter-pages{justify-content:center;gap:.75rem;margin:1.2rem 0}.quran-source{font-size:.8rem}.quran-source pre{font-size:.72rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;max-width:100%}.quran-source summary{cursor:pointer;min-height:40px}.quran-source a{text-decoration:underline}
@media(max-width:1100px) and (min-width:701px){body.reader-site[data-section=home] .site-header .brand{flex-basis:360px;padding:.7rem 1.2rem}body.reader-site[data-section=home] .header-row{align-items:center;gap:.7rem}body.reader-site[data-section=home] .site-header .brand-type{font-size:2.1rem}body.reader-site[data-section=home] .site-header .brand-type small{font-size:.64rem}body.reader-site[data-section=home] .header-actions{max-width:46%;justify-content:flex-start}}
@media(max-width:1000px){body.reader-site[data-section=home] .aside{display:grid;grid-template-columns:1fr 1fr;gap:1rem}body.reader-site[data-section=home] .aside .home-discovery{grid-column:1/-1}body.reader-site[data-section=home] .page-grid{gap:1rem}.discovery-secondary{grid-template-columns:1fr 1fr}.home-discovery .discovery-archive{max-width:none}}
@media(max-width:700px){body.reader-site[data-section=home] .header-row{display:grid;grid-template-columns:minmax(0,1fr);gap:.45rem;padding:.55rem .7rem}body.reader-site[data-section=home] .site-header .brand{width:100%;max-width:none;min-height:90px;gap:.55rem;padding:.55rem 1rem}body.reader-site[data-section=home] .site-header .brand-type{font-size:2.1rem}body.reader-site[data-section=home] .site-header .brand-type small{font-size:.64rem;line-height:1.7;margin-top:.15rem}body.reader-site[data-section=home] .site-header .brand-mark{width:39px;height:45px}body.reader-site[data-section=home] .mobile-tools{margin:0;gap:.4rem}body.reader-site[data-section=home] .mobile-tools button{min-height:40px;min-width:88px;padding:.3rem .5rem}body.reader-site[data-section=home] .header-actions{max-width:none;width:100%}body.reader-site[data-section=home] .page-grid{margin-top:.9rem}body.reader-site[data-section=home] .aside{grid-template-columns:1fr}body.reader-site[data-section=home] .aside .home-discovery{grid-column:auto}.home-heading{gap:.4rem;margin-bottom:.8rem}.home-heading h1{font-size:1.5rem}.home-heading .eyebrow{display:none}.home-search-link{font-size:.72rem}.home-post-featured .home-post-copy{padding:1.15rem 1.2rem}.home-post-copy{padding:1rem 1.1rem}.home-post h2{font-size:1.6rem}.home-post h3{font-size:1.3rem}.home-post-excerpt{font-size:.93rem;margin-bottom:.9rem}.home-post-meta{gap:.4rem .6rem;margin-bottom:.55rem}.home-post-list .home-post{display:block}.home-post-list .home-post-cover img{max-height:180px;object-fit:contain}.home-section-heading{margin-top:1.35rem}.home-section-heading h2{font-size:1.15rem}.home-section-heading>a{font-size:.72rem}.catalogue-list>li{align-items:flex-start;flex-direction:column;gap:.65rem}.catalogue-list .actions{flex-shrink:1}.catalogue-intro h1{font-size:1.65rem}.catalogue-filters .button{font-size:.75rem;padding:.5rem .6rem}.quran-library-card{flex-wrap:wrap}.quran-heading h1{font-size:2.2rem}.quran-navigation{gap:.5rem}.quran-verses{font-size:1.4rem}.quran-basmala{font-size:1.4rem}.quran-sheet h2{font-size:1.6rem}}

.quran-sheet #quran-chapter-heading{scroll-margin-top:6rem}
