:root{--ink:#243e35;--muted:#727a70;--green:#234f40;--light-green:#e9efe6;--paper:#f7f6f0;--line:#e0e4d9;--gold:#e2e8f0}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled,select:disabled{cursor:not-allowed;opacity:.5}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e2e8f0;outline-offset:4px}button:hover,a:hover{filter:brightness(.9)}.site-header{max-width:1280px;margin:auto;height:108px;display:flex;align-items:center;justify-content:space-between;padding:0 48px}.brand{display:flex;align-items:center;gap:13px;font-family:Georgia,serif;font-size:33px;line-height:1.1}.brand-icon{font-size:46px;color:var(--green)}.brand small{display:block;font:9px/2.5 -apple-system,sans-serif;letter-spacing:2px}.site-header nav{display:flex;align-items:center;gap:44px;font-size:13px}.site-header nav>a{border-bottom:1px solid var(--green);padding:8px 0}.language{color:var(--muted);display:flex;gap:8px}.hero{max-width:1184px;min-height:350px;margin:8px auto 0;border:1px solid #d7dfd0;border-radius:18px;overflow:hidden;display:flex;justify-content:space-between;background:#eaf0e5}.hero-copy{padding:44px 52px;z-index:1}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;display:flex;align-items:center;gap:9px}.eyebrow>span{width:6px;height:6px;background:var(--gold);border-radius:50%}h1,h2,h3,p{margin-top:0}.hero h1{font:58px/1.07 Georgia,serif;letter-spacing:-2px;margin:24px 0 18px}.hero h1 em{font-weight:400;color:#587855}.hero p{font-size:14px;line-height:1.9;color:#65745f;margin-bottom:0}.hero-art{width:34%;position:relative;display:grid;place-items:center;background:repeating-linear-gradient(45deg,transparent,transparent 35px,#d9e3d540 35px,#d9e3d540 36px),repeating-linear-gradient(-45deg,transparent,transparent 35px,#d9e3d540 35px,#d9e3d540 36px)}.arch{height:280px;width:215px;border:1px solid #bdcdb6;border-radius:115px 115px 0 0;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.arch:before{content:"";position:absolute;inset:12px;border:1px solid #c9d5c1;border-radius:100px 100px 0 0}.arch>span{font:64px/1.9 "Geeza Pro","Traditional Arabic",serif;color:#426342}.arch small{font-size:8px;letter-spacing:3px;color:#728366}.art-rule{color:var(--gold);margin-top:23px}.library-shell{max-width:1184px;margin:48px auto 72px;display:grid;grid-template-columns:254px minmax(0,1fr);gap:47px}.sidebar{border-right:1px solid var(--line);padding-right:27px}.section-label,.filter-group label{font-size:10px;font-weight:650;letter-spacing:1.8px;color:var(--muted)}.sidebar>.section-label{margin-bottom:20px}.collection-button{display:flex;width:100%;text-align:left;align-items:center;gap:10px;padding:14px 12px;background:transparent;border-radius:8px;margin-bottom:7px;font-size:13px;color:var(--ink)}.collection-button.active{background:var(--green);color:white}.collection-button small{display:block;font-family:"Geeza Pro",serif;font-size:14px;opacity:.7;margin-top:4px;text-align:left}.arrow{margin-left:auto;font-size:15px;opacity:.6}.filter-group{margin-top:26px}.filter-group label{display:block;margin-bottom:10px}.filter-group select{width:100%;padding:11px 9px;background:#fbfcf8;border:1px solid var(--line);border-radius:7px;font-size:12px;color:var(--ink)}.sidebar-note{padding:21px 17px;margin-top:32px;background:#eeefe7;border:1px solid #e4e5db;border-radius:9px}.sidebar-note>span{font-size:25px;color:var(--gold)}.sidebar-note h3{font:17px Georgia,serif;margin:9px 0}.sidebar-note p{font-size:12px;color:var(--muted);margin:0}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.results-heading h2{font:30px Georgia,serif;margin:5px 0 0;letter-spacing:-.6px}.language-tag{background:#eeefe8;border-radius:5px;padding:5px 9px;font-size:10px;color:#64745d;white-space:nowrap}.language-tag span{padding:0 5px;color:#a2ad99}.search-form{display:flex;align-items:center;background:white;border:1px solid #d8dfd2;padding:7px;border-radius:9px;gap:12px}.search-icon{font-size:27px;color:#809178;margin-left:9px}.search-form input{background:transparent;border:0;min-width:0;flex:1;padding:10px 0;font-size:13px;color:var(--ink)}.search-form input::placeholder{color:#8b9186}.search-form button,.primary-button{background:var(--green);color:white;border-radius:6px;padding:11px 20px;font-size:12px}.search-form button span{margin-left:16px}.result-meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:59px}.result-meta>span:first-child{color:var(--ink);font-weight:500}.text-button{background:transparent;color:var(--green);font-size:11px;padding:5px 0}.empty-state{border:1px solid var(--line);border-radius:12px;min-height:320px;background:#fcfcf8;display:flex;flex-direction:column;align-items:center;text-align:center;padding:37px 35px}.empty-icon{width:54px;height:54px;display:grid;place-items:center;background:#edf1e7;border:1px solid #dce6d5;border-radius:14px;color:#789064;font-size:29px;margin-bottom:21px}.empty-state>.section-label{font-size:9px;letter-spacing:1.5px}.empty-state h3{font:26px Georgia,serif;margin:13px 0}.empty-state p{font-size:13px;color:var(--muted);max-width:400px;margin-bottom:20px}.status-pill{font-size:10px;color:#637255;border:1px solid #dde5d4;border-radius:20px;padding:5px 12px;display:flex;gap:7px;align-items:center}.status-pill>span{width:5px;height:5px;border-radius:50%;background:#9caa7e}.site-footer{max-width:1184px;margin:0 auto;padding:25px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted)}.footer-brand{font-size:12px}.footer-brand>span{margin:0 8px;color:var(--gold)}.hadith-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;margin-bottom:18px}.card-top,.card-bottom{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:11px;color:var(--muted)}.badge{color:var(--green);background:#edf2e9;padding:4px 8px;border-radius:4px}.hadith-card h3{font:20px/1.5 Georgia,serif;margin:16px 0}.arabic{font-family:"Geeza Pro","Traditional Arabic","Noto Naskh Arabic",serif;font-size:27px;line-height:2.1}.translation{font-size:14px;line-height:1.9;color:#627063}.card-bottom{border-top:1px solid var(--line);padding-top:16px}.card-bottom a{color:var(--green);font-weight:600}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin-top:22px}.pagination button{padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--green)}.loading{font-size:12px;color:var(--green);margin-bottom:10px}.is-loading{opacity:.55}.reader-shell{max-width:850px;margin:28px auto 65px}.back-link{font-size:13px;color:var(--muted)}.reader-heading{margin:35px 0 25px}.reader-heading h1{font:46px Georgia,serif;margin:12px 0}.reader-heading p{color:var(--muted)}.reader-card{background:#fff;border:1px solid var(--line);padding:40px;border-radius:14px}.full-text{white-space:pre-line;overflow-wrap:anywhere;margin:23px 0 0}.swahili{font-size:18px;line-height:2;color:#4d5e51}.reader-card hr{border:0;border-top:1px solid var(--line);margin:34px 0}.source-card{margin-top:24px;background:#edf0e6;border:1px solid var(--line);border-radius:12px;padding:30px}.source-card h2{font:24px Georgia,serif}.source-card dl{margin-bottom:0;font-size:13px}.source-card dl>div{display:grid;grid-template-columns:180px 1fr;gap:15px;padding:9px 0}.source-card dt{color:var(--muted)}.source-card dd{margin:0;overflow-wrap:anywhere}.source-card a{text-decoration:underline;text-underline-offset:4px}.skip-link{position:absolute;top:-100px;left:20px;z-index:5;background:white;padding:12px}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.site-header{height:120px}.hero{min-height:375px}.hero-copy{padding-top:49px}}@media(max-width:1240px){.hero,.library-shell,.site-footer{margin-left:32px;margin-right:32px}.site-header{padding:0 32px}.reader-shell{margin-left:32px;margin-right:32px}}@media(max-width:800px){.site-header{height:90px}.site-header nav{gap:20px}.hero-copy{padding:32px}.hero h1{font-size:48px}.hero-art{width:30%}.arch{width:155px;height:235px}.arch>span{font-size:49px}.arch small{font-size:6px;letter-spacing:2px}.library-shell{grid-template-columns:210px minmax(0,1fr);gap:25px;margin-top:32px}.sidebar{padding-right:18px}.results-heading{align-items:flex-start}.language-tag{display:none}.results-heading h2{font-size:26px}.search-form{gap:5px}.search-form button{padding:11px}.search-form button span{display:none}.empty-state{padding:30px 18px}.empty-state h3{font-size:24px}.site-footer{flex-wrap:wrap}}@media(max-width:600px){.site-header{padding:0 20px;height:83px}.brand{font-size:28px}.brand-icon{font-size:36px}.brand small{font-size:7px}.language{font-size:10px}.site-header nav>a{display:none}.hero,.library-shell,.site-footer{margin-left:18px;margin-right:18px}.hero{min-height:290px;border-radius:12px}.hero-copy{padding:28px 24px}.hero .eyebrow{font-size:8px;letter-spacing:1.4px}.hero h1{font-size:46px;margin:21px 0 17px}.hero p{font-size:12px}.hero-art{display:none}.library-shell{display:block;margin-top:27px;margin-bottom:40px}.sidebar{border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-bottom:28px}.sidebar>.section-label{grid-column:1/-1;margin:0 0 5px}.collection-button{padding:12px 9px;font-size:11px;margin:0}.collection-button:nth-child(2){grid-column:1/-1}.collection-button small{font-size:12px}.filter-group{margin-top:10px;min-width:0}.filter-group label{margin-bottom:7px}.sidebar-note{display:none}.results-heading{margin-bottom:17px}.results-heading h2{font-size:28px}.language-tag{display:block;font-size:9px}.search-form input{font-size:12px}.empty-state{min-height:315px}.site-footer{font-size:9px;padding-top:20px;gap:5px}.site-footer>span{width:100%}.hadith-card{padding:20px}.arabic{font-size:25px}.reader-shell{margin:18px 18px 40px}.reader-heading h1{font-size:38px}.reader-card{padding:24px}.source-card{padding:23px}.source-card dl>div{grid-template-columns:1fr;gap:3px;padding:10px 0}.swahili{font-size:16px}.pagination{font-size:10px}.pagination button{padding:9px 7px}}

/* Reader actions (bookmark, share) and related-hadith list. */
.reader-actions{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin:22px 0 8px}
.reader-actions .text-button{padding:7px 0}
.related-hadith{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px}
.related-hadith h2{font:20px Georgia,serif;margin:0 0 14px}
.related-hadith ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.related-hadith a{font-size:13px;color:var(--green)}

/* Logo mark in the header brand link. */
.brand-logo{height:64px;width:auto;border-radius:8px;display:block}
@media(max-width:800px){.brand-logo{height:52px}}
@media(max-width:600px){.brand-logo{height:44px}}
.related-hadith a:hover{text-decoration:underline}
#bookmarks-list .hadith-card{position:relative}
#bookmarks-list .remove-bookmark{margin-top:14px}
.hero-button-secondary{margin-left:14px;background:transparent;border:1px solid var(--gold);color:var(--ink)}
mark{background:#e2e8f0;color:#0f172a;border-radius:2px;padding:0 1px}
@media(max-width:600px){.hero-button-secondary{margin-left:0;margin-top:10px}}
