@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');
:root{--ivory:#f8f6ef;--paper:#fffdf8;--stone:#e7e4da;--ink:#29332e;--muted:#69736b;--green:#496c56;--green-dark:#35513f;--gold:#b69b5d;--line:#e1dfd5;--danger:#8e3f3b;--shadow:0 12px 36px rgba(35,47,39,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-color:var(--gold)}.container{max-width:1160px;margin:auto;padding:30px 28px 80px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px max(28px,calc((100vw - 1160px)/2));background:rgba(255,253,248,.92);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}.brand{display:flex;gap:12px;align-items:center;font-size:19px;line-height:1.15;white-space:nowrap}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:.02em;margin-top:6px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border:1px solid var(--gold);color:var(--green);font-family:Georgia,serif;border-radius:50%;font-size:14px}.site-header nav{display:flex;align-items:center;gap:18px;font-size:13px;color:#4d5b51}.site-header nav a:hover,.text-link:hover{color:var(--green)}.nav-cta{background:var(--green);color:white!important;padding:10px 14px;border-radius:6px}.nav-form{display:inline;margin:0}.nav-link{border:0;background:none;color:inherit;cursor:pointer;padding:0}.hero{display:grid;grid-template-columns:1.3fr .7fr;gap:50px;align-items:center;padding:62px 0 75px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--green);display:block;margin-bottom:14px}.hero h1,h1,h2{font-family:'Playfair Display',Georgia,serif;font-weight:500;line-height:1.14;letter-spacing:-.025em}.hero h1{font-size:clamp(42px,5.3vw,68px);margin:0 0 20px}.hero h1 em{color:var(--green);font-weight:500}.hero-copy>p{max-width:590px;color:var(--muted);font-size:17px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--green);border-radius:5px;background:var(--green);color:white;padding:12px 19px;font-weight:600;font-size:13px;cursor:pointer;transition:.2s}.button:hover{background:var(--green-dark)}.button.secondary{background:transparent;color:var(--green)}.button.secondary:hover{background:#edf0e9}.hero-card{background:#e9ede4;border:1px solid #d7dfd3;padding:45px 28px;text-align:center;border-radius:2px;box-shadow:var(--shadow);min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center}.ornament{font-size:45px;color:var(--gold)}.arabic{font-size:25px;line-height:1.9}.translation{font-family:'Playfair Display',Georgia,serif;font-style:italic;color:#4c5a50}.hero-card small{color:var(--muted)}.section{padding:45px 0}.section.compact{padding:35px 0}.section h2,.soft-panel h2,.content-section h2{font-size:34px;margin:0 0 14px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature{background:var(--paper);border:1px solid var(--line);padding:27px 26px;min-height:220px;transition:transform .2s,box-shadow .2s}.feature:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.feature-icon{color:var(--gold);font-size:27px}.feature h3{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:23px;margin:12px 0}.feature p{color:var(--muted);font-size:14px}.feature b{color:var(--green);font-size:12px}.soft-panel{background:#e9ede4;border:1px solid #dce3d8;padding:30px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin:30px 0}.soft-panel p,.lead{color:var(--muted)}.search-form{display:flex;gap:8px;min-width:320px}.search-form input{min-width:0;flex:1}.search-form input,input,textarea,select{background:#fffefa;border:1px solid #d9d9ce;border-radius:4px;padding:12px;color:var(--ink);width:100%}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:600;color:#48544b}label input,label textarea,label select{display:block;margin-top:7px;font-weight:400}label small,.stack-form small{font-size:11px;color:var(--muted);font-weight:400}.site-footer{border-top:1px solid var(--line);padding:36px max(28px,calc((100vw - 1160px)/2));display:grid;grid-template-columns:1fr 1fr;gap:15px;background:#f1efe7;color:var(--muted);font-size:13px}.site-footer b{color:var(--ink)}.site-footer p{margin:5px 0}.site-footer small{grid-column:1/-1}.footer-links{display:flex;justify-content:flex-end;gap:18px;flex-wrap:wrap}.page-intro{padding:32px 0 28px}.page-intro h1,.form-panel h1{font-size:clamp(34px,4vw,48px);margin:0 0 12px}.page-intro p{color:var(--muted);max-width:720px}.page-intro .search-form{max-width:620px;margin-top:20px}.narrow{max-width:650px;margin:20px auto}.form-panel{background:var(--paper);border:1px solid var(--line);padding:30px;box-shadow:var(--shadow)}.form-panel.wide{max-width:800px}.form-panel>p{color:var(--muted)}.stack-form{display:grid;gap:17px}.stack-form .button{justify-self:start}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkline{display:flex;align-items:flex-start;gap:10px;font-weight:400}.checkline input{width:auto;margin-top:5px}.notice{padding:13px 16px;border-radius:4px;background:#edf0e9;border:1px solid #dce3d8;margin:15px 0;font-size:13px}.notice.success{background:#e9f3e9;border-color:#c9dfc9}.notice.error{background:#fbefec;border-color:#efd0ca;color:#843f37}.memorial-grid,.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.memorial-card,.resource-card{background:var(--paper);border:1px solid var(--line);overflow:hidden}.memorial-card{transition:transform .2s}.memorial-card:hover{transform:translateY(-3px)}.memorial-card img{width:100%;height:210px;object-fit:cover;display:block}.photo-placeholder{height:210px;background:#e8ece4;display:grid;place-items:center;font-size:48px;color:var(--gold)}.memorial-card-body{padding:20px}.memorial-card h3,.resource-card h3{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:23px;margin:0 0 8px}.memorial-card p,.resource-card p{font-size:13px;color:var(--muted)}.memorial-card small{color:var(--muted)}.empty-state{text-align:center;padding:55px 25px;background:#f0eee6;border:1px dashed #d3d0c5;margin:24px 0}.empty-state h2,.empty-state h3{font-family:'Playfair Display',Georgia,serif;font-weight:500}.memorial-detail{max-width:850px;margin:20px auto}.memorial-portrait{display:block;max-width:230px;max-height:260px;object-fit:cover;margin:10px auto 25px;border:5px solid var(--paper);box-shadow:var(--shadow)}.memorial-title{text-align:center;padding:24px}.memorial-title h1{font-size:clamp(36px,5vw,54px);margin:0 0 12px}.memorial-title p{color:var(--muted);margin:4px}.content-section{padding:28px 0;border-top:1px solid var(--line);margin-top:24px}.content-section h2{font-size:29px}.preserve-lines{white-space:pre-wrap}.tribute{margin:14px 0;padding:20px 22px;background:var(--paper);border-left:3px solid var(--gold)}.tribute p{margin-top:0;white-space:pre-wrap}.tribute cite{font-size:12px;color:var(--muted);font-style:normal}.inset-form{background:var(--paper);border:1px solid var(--line);padding:20px;margin-top:18px}.table-wrap{overflow-x:auto;background:var(--paper);border:1px solid var(--line)}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f0eee6;color:#536056;font-size:11px;text-transform:uppercase;letter-spacing:.06em}td small{display:block;color:var(--muted);margin-top:4px}.status{display:inline-block;border-radius:3px;padding:3px 7px;font-size:10px;background:#ecebe4;color:#555}.status-pending{background:#fbf0d8;color:#795c20}.status-published{background:#e0eee0;color:#315c3c}.status-rejected{background:#f5e4e0;color:#883d34}.status-archived{background:#e7e7e7}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:10px 0 35px}.stat-card{padding:20px;background:var(--paper);border:1px solid var(--line)}.stat-card span{display:block;color:var(--muted);font-size:12px}.stat-card strong{font-family:'Playfair Display',Georgia,serif;font-size:36px;font-weight:500}.admin-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.small-button{background:var(--green);color:white;border:0;border-radius:3px;padding:7px 9px;font-size:11px;cursor:pointer}.danger-button{background:#96534b}.moderation-item,.report-item{padding:18px;background:var(--paper);border:1px solid var(--line);margin:10px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.moderation-item p,.report-item p{white-space:pre-wrap}.moderation-item small,.report-item small,.muted{color:var(--muted)}.filter-links{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0 25px}.filter-links a{padding:8px 12px;border:1px solid var(--line);background:var(--paper);font-size:12px}.filter-links a.active{background:var(--green);color:white}.resource-card{padding:24px}.resource-card .eyebrow{margin-bottom:8px}.text-link{color:var(--green);font-weight:600;font-size:13px}.announcement-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(300px,1.2fr);gap:24px;align-items:start}.preview-wrap{background:#eeece4;border:1px solid var(--line);padding:16px;position:sticky;top:110px}.preview-label{font-size:10px;letter-spacing:.15em;font-weight:700;color:var(--muted);margin-bottom:10px}.preview-wrap canvas{width:100%;height:auto;display:block;box-shadow:var(--shadow)}.preview-wrap p{font-size:12px}.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(max-width:900px){.site-header{align-items:flex-start;flex-direction:column;position:static}.site-header nav{flex-wrap:wrap;gap:12px}.hero{grid-template-columns:1fr;gap:24px;padding-top:35px}.hero-card{min-height:220px}.soft-panel{align-items:flex-start;flex-direction:column}.search-form{width:100%;min-width:0}.memorial-grid,.resource-grid{grid-template-columns:repeat(2,1fr)}.announcement-layout{grid-template-columns:1fr}.preview-wrap{position:static;max-width:650px}.site-footer{grid-template-columns:1fr}.footer-links{justify-content:flex-start}.site-footer small{grid-column:auto}}
@media(max-width:600px){.container{padding:20px 16px 55px}.site-header{padding:16px}.brand{font-size:17px}.site-header nav{font-size:12px}.hero h1{font-size:43px}.feature-grid,.memorial-grid,.resource-grid,.two-col,.stats-grid{grid-template-columns:1fr}.feature{min-height:0}.form-panel{padding:21px}.moderation-item{flex-direction:column}.page-intro{padding-top:20px}.section h2,.soft-panel h2{font-size:29px}.hero-card{padding:25px 15px}.arabic{font-size:21px}.actions .button{width:100%}.site-footer{padding:30px 16px}}

/* Site-wide branding and homepage enhancements */
.brand{flex:0 1 350px;min-width:0;white-space:normal;gap:12px}.brand-logo{width:150px;height:65px;object-fit:contain;flex-shrink:0}.brand-slogan{font-size:12px;line-height:1.4;color:var(--muted);max-width:165px}.site-header{gap:14px}.site-header nav{gap:12px;flex-wrap:wrap;justify-content:flex-end}.hero{position:relative;isolation:isolate}.hero:before{content:"";position:absolute;inset:0;background:url('homepage-banner.png') center/cover no-repeat;opacity:.17;z-index:-1;pointer-events:none}.hero-copy{padding:12px}.hero-card{background:rgba(233,237,228,.9)}.remembrance-carousel{min-width:0}.remembrance-slides{width:100%}.remembrance-slide[hidden]{display:none}.remembrance-slide .arabic{font-family:serif;font-size:clamp(19px,2vw,25px);line-height:1.8;overflow-wrap:anywhere}.remembrance-slide .translation{font-size:15px;line-height:1.55}.remembrance-slide small{font-size:11px}.carousel-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:22px}.carousel-controls button{border:1px solid var(--gold);background:var(--paper);border-radius:4px;color:var(--ink);cursor:pointer;padding:5px 11px}.carousel-controls button:hover{background:#e5e9dd}.carousel-controls span{font-size:11px;color:var(--muted)}.support-actions{display:flex;flex-wrap:wrap;gap:14px 28px}.announcement-layout .stack-form #remove-photo{justify-self:start}
@media(max-width:900px){.site-header nav{justify-content:flex-start}.brand{flex:auto}.hero:before{background-position:35% center}}@media(max-width:600px){.brand-logo{width:125px;height:54px}.brand-slogan{font-size:11px}.hero-copy{padding:8px}.hero h1{font-size:clamp(33px,9vw,43px)}.hero-card{padding:22px 15px}.remembrance-slide .arabic{font-size:20px}.site-header nav{gap:10px}}

/* Refinement 2: compact shared header and legible homepage banner */
.site-header{padding-top:10px;padding-bottom:10px;min-height:72px;align-items:center;gap:16px}
.site-header .brand{display:flex;flex:0 0 auto;align-items:center;gap:10px;min-width:0;max-width:310px;white-space:normal}
.site-header .brand-logo{display:block;width:138px!important;max-width:138px!important;height:48px!important;max-height:48px!important;object-fit:contain;flex:0 0 138px}
.site-header .brand-slogan{font-size:11px;line-height:1.3;max-width:145px;overflow-wrap:normal}
.site-header nav{flex:1 1 auto;min-width:0;gap:10px;justify-content:flex-end}
.hero{border-radius:8px;overflow:hidden;padding-left:24px;padding-right:24px;background:#f7f0e6}
.hero:before{background-image:linear-gradient(rgba(255,253,248,.48),rgba(255,253,248,.48)),url('homepage-banner.png?v=2');background-position:center center;background-size:cover;opacity:1}
.hero-copy{position:relative;z-index:1;background:rgba(255,253,248,.62);border-radius:8px;padding:20px}
.hero-card{position:relative;z-index:1;background:rgba(233,237,228,.94)}
.template-preview{margin-top:12px;border:1px solid var(--line);background:#fffdf8;padding:10px;max-width:240px}
.template-preview img{display:block;width:100%;height:auto;aspect-ratio:2 / 3;object-fit:contain}
.template-preview figcaption{font-size:12px;color:var(--muted);margin-top:6px;text-align:center}
@media(max-width:900px){.site-header{align-items:flex-start;min-height:0}.site-header .brand{max-width:100%}.site-header nav{width:100%;justify-content:flex-start}.hero{padding-left:14px;padding-right:14px}}
@media(max-width:600px){.site-header{padding:10px 16px}.site-header .brand{gap:8px}.site-header .brand-logo{width:112px!important;max-width:112px!important;height:39px!important;max-height:39px!important;flex-basis:112px}.site-header .brand-slogan{font-size:10px;max-width:155px}.hero-copy{padding:12px}.hero:before{background-position:32% center}}

/* V5: refined responsive site-wide branding */
.site-header .brand{gap:20px;max-width:370px}
.site-header .brand-logo{width:166px!important;max-width:166px!important;height:58px!important;max-height:58px!important;flex:0 0 166px;object-fit:contain}
.site-header .brand-slogan{max-width:175px}
.site-header nav a:hover,.site-header nav a:focus-visible,.site-header nav .nav-link:hover,.site-header nav .nav-link:focus-visible{font-weight:700}
@media(max-width:600px){.site-header .brand{gap:14px;max-width:100%}.site-header .brand-logo{width:135px!important;max-width:135px!important;height:47px!important;max-height:47px!important;flex:0 0 135px}.site-header .brand-slogan{max-width:155px}}

/* Version 7 */
.guidance-grid,.v7-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.hadith-panel{margin:24px auto 38px}.hadith-panel img{display:block;width:100%;height:auto;border-radius:15px;box-shadow:0 8px 24px #142a2122}.instagram-nav{display:inline-flex;align-items:center;justify-content:center}.v7-memorial{color:#15342b}.v7-cover{height:260px;background:linear-gradient(120deg,#103e32,#bfa578);background-position:center;background-size:cover;border-radius:18px 18px 0 0;position:relative;display:flex;justify-content:center;align-items:center;text-align:center;color:white}.v7-cover-prayer span{font-size:29px;display:block}.v7-cover-prayer small{display:block;margin-top:12px}.v7-share{position:absolute;right:16px;top:16px;background:#1c3029c7;border:0;border-radius:7px;color:white;padding:9px 15px;cursor:pointer}.v7-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 25px}.v7-intro-main{display:flex;align-items:center;gap:22px}.v7-avatar{width:140px;height:140px;object-fit:cover;border:5px solid white;border-radius:50%;margin-top:-80px;position:relative;box-shadow:0 3px 12px #0002}.v7-intro h1{font-size:clamp(26px,3vw,38px);margin:0}.v7-dua{max-width:290px;background:#f1f0eb;padding:22px;border-radius:12px;text-align:center;font-family:Georgia,serif}.v7-badges span{display:inline-block;background:#e0ede4;border-radius:6px;padding:5px 10px;margin-right:6px;font-size:13px}.v7-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:16px 22px 28px}.v7-facts>div{border-right:1px solid #ddd;padding:5px 12px}.v7-facts p{margin:5px 0;font-size:14px}.v7-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:18px}.v7-main-column,.v7-side-column{display:flex;flex-direction:column;gap:18px;min-width:0}.v7-card{background:#fff;border:1px solid #e3e8e2;border-radius:12px;padding:22px;box-shadow:0 2px 14px #00000008}.v7-card h2{font-size:21px;margin:0 0 16px;color:#153f31}.v7-card .preserve-lines{white-space:pre-wrap;line-height:1.75}.v7-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v7-gallery img,.v7-gallery video{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}.v7-like button{border:0;background:transparent;color:#b74b5e;cursor:pointer;padding:5px}.v7-like button:disabled{opacity:.55;cursor:default}.v7-comment{padding:15px 0;border-bottom:1px solid #e4e8e4}.v7-comment small{margin-left:10px;color:#777}.v7-timeline{border-left:2px solid #2d805b;padding-left:18px}.v7-timeline p{position:relative;margin:0;padding:0 0 20px}.v7-timeline p:before{content:'';position:absolute;left:-24px;top:7px;width:10px;height:10px;border-radius:50%;background:#2d805b}.v7-campaign{display:grid;grid-template-columns:1fr auto;gap:5px;border-bottom:1px solid #eee;padding:13px 0}.v7-campaign small{grid-column:1/-1;color:#666}.v7-campaign span{grid-column:2;grid-row:1;background:#edf2e8;border-radius:5px;padding:3px 7px;font-size:11px}.v7-payment{background:#171717;color:#eee;border-color:#333}.v7-payment h2{color:#e3c788}.v7-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.v7-payment-grid>div{padding:22px 12px;background:#272727;border:1px solid #444;border-radius:8px}.v7-payment small,.v7-muted{color:#aeb6b2;font-size:13px}.v7-payment p{color:#eee}@media(max-width:800px){.v7-grid,.guidance-grid,.v7-two{grid-template-columns:1fr}.v7-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.v7-intro{flex-direction:column;align-items:flex-start}.v7-dua{max-width:none;width:100%}.v7-cover{height:200px}.v7-avatar{width:110px;height:110px;margin-top:-55px}.v7-intro-main{align-items:flex-start}.v7-payment-grid{grid-template-columns:1fr}}@media(max-width:450px){.v7-facts{grid-template-columns:1fr}.v7-intro-main{flex-wrap:wrap}.v7-card{padding:16px}}

/* V8 targeted additions */
.site-header nav .instagram-nav{order:99;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.site-header nav a{position:relative;z-index:3;pointer-events:auto}
.hero:before{background-size:contain;background-repeat:no-repeat;background-color:#eee8db;background-position:center}
.hero{min-height:390px;align-items:center}
.v8-carousel-section{margin:22px auto 32px;max-width:1100px}
.v8-carousel-section .remembrance-carousel{width:100%;min-height:360px;height:390px;overflow:auto}
.v8-carousel-section .remembrance-slides{min-height:270px}
.v8-carousel-section .remembrance-slide{max-height:280px;overflow:auto}
.v8-hadith{text-align:center;background:linear-gradient(135deg,#f6f2e8,#e8eee7);border:1px solid #d9c9a4;border-radius:14px;padding:28px 24px;margin:30px auto;max-width:1050px;color:#203f35}
.v8-hadith-ornament{font-size:30px;color:#a68a4e}
.v8-hadith blockquote{font-family:Georgia,serif;font-size:clamp(18px,2.2vw,25px);line-height:1.55;margin:15px auto;max-width:830px}
.v8-hadith small{color:#695b43}
.v8-relative-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr) auto;gap:10px;align-items:end;margin:10px 0}
.v8-relative-row button{align-self:end}
.v8-report{font-size:13px;margin:18px auto 4px;opacity:.82}
.v8-report summary{cursor:pointer}
.v8-report .stack-form{margin-top:12px}
.v7-dua{font-size:13px!important;line-height:1.45}
.v8-caption{font-size:12px;color:#647268;overflow-wrap:anywhere}
.v8-reply{margin-left:24px;border-left:2px solid #d4c69f;padding-left:14px}
@media(max-width:650px){.v8-relative-row{grid-template-columns:1fr}.v8-carousel-section .remembrance-carousel{height:400px}.hero{min-height:320px}.site-header nav .instagram-nav{margin-left:0}}


/* V8.1 homepage-only adjustment: restore the V7 two-column dua carousel.
   Keep the hero at a stable height regardless of the length of the current dua. */
.hero{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:clamp(18px,3vw,50px);min-height:460px;align-items:center}
.hero .remembrance-carousel{min-width:0;width:100%;height:390px;min-height:390px;max-height:390px;overflow:hidden;justify-content:space-between;padding:20px 18px}
.hero .remembrance-slides{flex:1 1 auto;min-height:0;max-height:none;width:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.hero .remembrance-slide{max-height:none;overflow:visible}
.hero .remembrance-carousel .ornament{flex:0 0 auto;line-height:1.1}
.hero .remembrance-carousel .carousel-controls{flex:0 0 auto;margin-top:10px}
.hero:before{background-image:linear-gradient(rgba(255,253,248,.38),rgba(255,253,248,.38)),url('homepage-banner.png?v=10');background-size:cover;background-position:center center;background-repeat:no-repeat;opacity:1}
@media(max-width:800px){.hero{grid-template-columns:minmax(0,1fr);gap:22px;min-height:0}.hero .remembrance-carousel{height:350px;min-height:350px;max-height:350px}}
@media(max-width:600px){.hero{padding-left:14px;padding-right:14px}.hero .remembrance-carousel{height:350px;min-height:350px;max-height:350px}.hero:before{background-position:35% center}}

/* V8.2: compact relatives and guest sign-in prompts */
.v8-relatives p{font-size:14px;line-height:1.45;margin:6px 0}.v8-relatives h2{margin-bottom:10px}.v8-signin-prompt{font-size:14px;background:#f1f5f0;border:1px solid #dce7dc;border-radius:8px;padding:12px 14px}.v8-signin-prompt a{font-weight:700;color:#15563e}.v8-like-count{font-size:13px;color:#777;padding:5px;display:inline-block}

/* V8.3.1: The mobile announcement preview must scale as a single portrait image.
   Never resize or reposition the text layer independently of its background. */
.announcement-layout,.announcement-layout > *{min-width:0}
.preview-wrap{width:100%;min-width:0;overflow:hidden}
.preview-wrap #announcement-canvas{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:2 / 3;object-fit:contain}
@media(max-width:900px){.announcement-layout{display:grid;grid-template-columns:minmax(0,1fr)}.preview-wrap{position:static;max-width:650px;margin-inline:auto}}
@media(max-width:600px){.announcement-layout{gap:16px}.preview-wrap{padding:10px}.preview-wrap #announcement-canvas{width:100%;height:auto}.announcement-layout .form-panel{min-width:0;padding:16px}}

/* V8.3.3 memorial presentation only */
.dm-comment-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:8px;font-size:13px}.dm-comment-actions form{margin:0}.dm-comment-actions details{position:relative}.dm-comment-actions summary,.dm-action{cursor:pointer;color:var(--green);font-weight:600;list-style:none}.dm-comment-actions summary::-webkit-details-marker{display:none}.dm-comment-actions details[open] .inset-form{position:relative;z-index:2;min-width:220px}.dm-comment-actions .v7-like button{font-size:13px;font-weight:600}
.dm-gallery{gap:9px}.dm-gallery-tile{position:relative;min-width:0;aspect-ratio:1;background:#edf0e9;overflow:visible}.dm-gallery-open{width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer;display:block}.dm-gallery-open img,.dm-gallery-tile>video{width:100%;height:100%;object-fit:cover;display:block;border-radius:7px}.dm-gallery-like{position:absolute;right:5px;top:5px;z-index:2;background:#fffdf8eb;border-radius:16px;padding:3px 7px;font-size:12px;color:#99465a;line-height:1.4}.dm-gallery-like button{border:0;background:none;color:inherit;cursor:pointer;padding:0;font:inherit}.dm-gallery-menu{position:absolute;left:5px;top:5px;z-index:4}.dm-gallery-menu>summary{cursor:pointer;list-style:none;background:#fffdf8eb;border-radius:16px;padding:0 9px;font-size:23px;line-height:27px}.dm-gallery-menu>summary::-webkit-details-marker{display:none}.dm-gallery-menu-content{background:var(--paper);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:5px;padding:9px;min-width:170px}.dm-menu-button{background:none;border:0;color:var(--danger);cursor:pointer;padding:5px}.dm-report-menu>summary{cursor:pointer;color:var(--green)}.dm-report-menu textarea{font-size:12px;min-height:65px}.dm-lightbox[hidden]{display:none}.dm-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;gap:8px;padding:45px 12px}.dm-lightbox figure{margin:0;max-width:min(85vw,1000px);max-height:90vh;display:flex;flex-direction:column;align-items:center;min-width:0}.dm-lightbox img{max-width:100%;max-height:75vh;object-fit:contain}.dm-lightbox figcaption{color:white;text-align:center;padding:12px;overflow-wrap:anywhere}.dm-lightbox button{background:#ffffff22;border:1px solid #ffffff77;color:white;cursor:pointer;border-radius:5px;font-size:30px;flex-shrink:0}.dm-lightbox-close{position:absolute;top:10px;right:16px;padding:0 12px}.dm-lightbox-prev,.dm-lightbox-next{padding:10px}.dm-gallery-tile:has(.dm-gallery-menu[open]){z-index:5}

/* V8.3.4 additions */
.dm-footer-logo{display:block;width:166px;max-width:166px;height:58px;max-height:58px;object-fit:contain}.dm-footer-brand small{display:block}.footer-links a[aria-label="Departed Muslim Instagram"]{display:inline-flex;align-items:center}
@media(min-width:901px){.v7-facts{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important}.v7-facts>div{min-width:0}.v7-facts b{font-size:11px}.v7-facts p{font-size:12px;overflow-wrap:anywhere}}
.dm-charity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px;margin:18px 0}.dm-charity-tile{border:1px solid #d8ddce;background:#fbfaf5;border-radius:9px;padding:15px}.dm-charity-tile h3{font-size:17px;margin:0 0 6px}.dm-charity-tile p{font-size:12px;margin:5px 0}.dm-impact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dm-impact-item{padding:13px;border:1px solid #d8ddce;border-radius:9px;text-align:center;background:#fbfaf5}.dm-impact-item strong{display:block;font-size:22px;color:#33583d}.dm-total{border:1px solid #d8ddce;background:#e9ede4;border-radius:9px;padding:22px;text-align:center;margin:14px 0}.dm-total strong{display:block;font-size:29px;color:#33583d}.dm-donor-line{border-top:1px solid #e3e2d7;padding:12px 0}.dm-payment-pending{font-size:12px;color:#715c35;padding:10px;background:#f8f1df;border:1px solid #ecdfbf;border-radius:6px}.dm-disabled{opacity:.65;cursor:not-allowed}

@media(max-width:600px){.dm-footer-logo{width:135px;max-width:135px;height:47px;max-height:47px}}

/* V8.3.4 memorial charitable campaign progress: larger full-width dashboard. */
.dm-campaign-progress{margin:22px 0 18px;padding:30px 32px;background:#fff;color:#34473c;border:1px solid #dfe6dc;box-shadow:0 2px 14px #00000008}
.dm-campaign-progress h2{font-size:clamp(22px,2.2vw,28px);color:#33583d;margin-bottom:20px}
.dm-campaign-progress h3{font-size:20px;color:#33583d;margin:22px 0 15px}
.dm-campaign-progress .dm-total{padding:32px 22px;margin:0 0 22px;border-radius:12px}
.dm-campaign-progress .dm-total>span{display:block;font-size:17px;font-weight:600;color:#375942}
.dm-campaign-progress .dm-total strong{font-size:clamp(36px,4vw,48px);line-height:1.25;margin:8px 0}
.dm-campaign-progress .dm-total small{font-size:14px;color:#536e58}
.dm-campaign-progress .dm-impact-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.dm-campaign-progress .dm-impact-item{min-height:126px;padding:20px 12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border-radius:12px}
.dm-campaign-progress .dm-impact-item>span{font-size:28px}
.dm-campaign-progress .dm-impact-item strong{font-size:30px}
.dm-campaign-progress .dm-impact-item small{font-size:14px;color:#536e58;text-align:center}
.dm-campaign-progress .v7-muted{color:#64756a;margin-top:18px}
@media(max-width:700px){.dm-campaign-progress{padding:20px 17px}.dm-campaign-progress .dm-impact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dm-campaign-progress .dm-impact-item{min-height:115px;padding:15px 9px}.dm-campaign-progress .dm-impact-item small{font-size:12px}.dm-campaign-progress .dm-total{padding:24px 12px}}

/* V8.3.5: charitable project tiles and Sadaqah Jariyah content; other site styling untouched. */
.dm-impact-grid .dm-impact-tile{background:linear-gradient(145deg,#fffefa,#f3efe3);border:1px solid #e7decb;border-radius:16px;padding:22px 12px;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 5px 20px rgba(50,60,40,.07)}
.dm-impact-tile span{font-size:2rem}.dm-impact-tile strong{font-size:1.7rem}.dm-impact-tile small{text-align:center}
.dm-learn-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:18px;margin:24px 0}.dm-learn-grid details,.dm-faq details{background:#fffdf8;border:1px solid #e5dac1;border-radius:16px;padding:20px;box-shadow:0 4px 16px rgba(45,50,30,.055)}.dm-learn-grid summary,.dm-faq summary{cursor:pointer;font-weight:700;color:#365444}.dm-faq{display:grid;gap:12px;margin:20px 0}.dm-quote{background:linear-gradient(145deg,#f7f1df,#fffdf7);border:1px solid #cbbc96;border-inline-start:4px solid #a78b52;border-radius:15px;padding:18px 22px;margin:17px 0;text-align:center}.dm-quote .arabic{direction:rtl;font-family:serif;font-size:1.6rem;line-height:2.1;color:#354f42}.dm-quote p{margin:.5rem 0}.dm-quote cite{font-size:.85rem;color:#72674d}.dm-learn-grid details[open]{grid-column:1/-1}.dm-learn-grid details p{line-height:1.8}@media(max-width:640px){.dm-learn-grid{grid-template-columns:1fr}.dm-impact-grid .dm-impact-tile{min-height:115px;padding:14px 8px}}
