/* Arabic article reading layout; intentionally scoped away from the home/apps. */
.single-post .site-content,.article-library .site-content{font-family:"Noto Sans Arabic",sans-serif;line-height:1.95;color:#291901}
.single-post .entry-title,.single-post .entry-content h2,.single-post .entry-content h3,.article-library h1,.article-library h2,.article-library h3{font-family:"Noto Kufi Arabic",sans-serif;letter-spacing:0;line-height:1.75;text-wrap:pretty;color:#1A0E00}
.single-post .entry-title{font-size:clamp(1.65rem,3.5vw,2.6rem);text-align:center;margin:1rem auto;max-width:850px}
.single-post .entry-header{text-align:center}
.single-post .entry-meta{display:flex;flex-direction:column;gap:.25rem;align-items:center;font-size:.88rem;color:#6d6254;margin:1rem 0 2rem}
.single-post .entry-meta a{font-weight:700;color:#885C09}
.single-post .post-thumb-img-content img{width:100%;height:auto;max-height:460px;object-fit:contain;border-radius:12px}
.single-post .entry-content{font-size:1.1rem;text-align:start;overflow-wrap:anywhere}
.single-post .entry-content h2{font-size:clamp(1.25rem,2.5vw,1.7rem);margin:2.4rem 0 1rem;padding-bottom:.65rem;border-bottom:1px solid #e8dece;scroll-margin-top:110px}
.single-post .entry-content h3{font-size:1.13rem;margin:1.75rem 0 .75rem;scroll-margin-top:110px}
.single-post .entry-content p{margin-bottom:1.35rem}
.single-post .entry-content img{max-width:100%;height:auto}
.single-post .entry-content a,.article-library main a{color:#885C09;text-underline-offset:.25em}
.article-breadcrumb{font-size:.88rem;color:#716454;padding-bottom:.5rem}
.single-post .entry-content .article-summary{background:#FFF7F0;border:1px solid #e4d3b3;border-inline-start:4px solid #9A690F;border-radius:12px;padding:1.4rem 1.6rem;margin:1.5rem 0}
.single-post .entry-content .article-summary p:last-child{margin:0}
.single-post .entry-content .article-eyebrow{font-weight:700;font-size:.85rem;color:#885C09;margin:0 0 .5rem}
.article-toc{border:1px solid #e8dece;border-radius:12px;margin:1.5rem 0 2rem;padding:1rem 1.3rem;background:#fff}
.article-toc summary{font-weight:700;cursor:pointer;padding:.25rem;min-height:44px}
.article-toc ol{padding-inline-start:1.6rem;margin:1rem 0 .2rem}
.article-toc li{padding:.2rem 0}.article-toc a{display:inline-block;padding:.3rem 0}
.article-sources,.article-related{margin-top:2rem}.article-sources li,.article-related li{margin-bottom:.6rem}
.article-author{background:#faf7ef;border-radius:12px;padding:1.5rem;margin:2.5rem 0 0;border:1px solid #e9dfca}
.article-author p{margin:0 0 .7rem!important}.article-note-text{font-size:.92rem;color:#716454}
.single-post .entry-content .article-book{display:inline-block;color:#fff;background:#9A690F;border-radius:8px;padding:.65rem 1.3rem;text-decoration:none;margin-top:.7rem}
.article-note{background:#fff7e7;border-inline-start:3px solid #9A690F;padding:1rem;margin:1rem 0;font-size:.96rem}
.article-library .site-main{max-width:1120px;margin:auto;padding:1.5rem 1rem 4rem}
.article-library .library-intro{max-width:780px;margin:0 auto 2.5rem;text-align:center;font-size:1.15rem}
.article-library .library-group{margin:2rem 0 3rem}.article-library .library-group>h2{font-size:1.5rem;text-align:center;margin-bottom:1.5rem}
.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.library-card{background:#fff;padding:1.5rem;border:1px solid #e8dece;border-radius:14px;display:flex;flex-direction:column;margin:0!important;min-width:0}
.library-card h3{font-size:1.13rem;margin:0 0 .85rem}.library-card h3 a{text-decoration:none}.library-card p{font-size:1rem;color:#6d6254;margin:0 0 1rem}.library-card .library-read{margin-top:auto;align-self:flex-start;font-weight:700;padding:.5rem 0}
.single-post :focus-visible,.article-library :focus-visible{outline:3px solid #9A690F;outline-offset:4px}
@media(max-width:600px){.single-post .ast-container{padding-inline:12px}.single-post .ast-article-single{padding:1.5rem 1rem!important}.single-post .entry-content{font-size:1rem}.single-post .entry-content .article-summary{padding:1.1rem}.article-breadcrumb{font-size:.78rem}.library-grid{grid-template-columns:1fr}.library-card{padding:1.2rem}.article-library .site-main{padding-inline:.25rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
.article-library .ast-archive-entry-banner{background:#1A0E00!important;padding:110px 20px 45px!important}
.article-library .ast-archive-entry-banner:before{background:none!important}
.article-library .ast-archive-entry-banner h1{color:#fff!important;font-size:clamp(1.8rem,4vw,3rem)!important;line-height:1.8!important}
.article-library .ast-archive-entry-banner p{color:#f4ead9!important;font-family:"Noto Sans Arabic",sans-serif}
.single-post .entry-header .entry-meta,.single-post .entry-header .entry-meta span{color:#6d6254}
.single-post .entry-meta time{unicode-bidi:isolate}

/* Match the main site gold/cream palette. */
.single-post .entry-content .article-book:hover{background:#885C09}
.article-library .ast-archive-entry-banner{border-bottom:3px solid #9A690F}
