/* MDI · Editorial design edition. Self-hosted assets, no animation library. */
.design-edition{--d-paper:#f7f4eb;--d-forest:#123c2f;--d-wood:#d5b77c;--d-muted:#52665c}.design-edition h2{font-size:clamp(2rem,3.5vw,3.5rem);text-wrap:balance}.design-edition h3{text-wrap:balance}.design-edition p{line-height:1.75}.design-edition .r-section{padding:clamp(42px,5.8vw,82px) max(6%,calc((100vw - 1280px)/2));position:relative}.design-edition .r-breadcrumb{background:#f7f4eb;padding-top:14px;padding-bottom:14px}.d-icon{flex:none;vertical-align:middle}.design-edition .r-hero:not(.r-home-hero):not(.r-hero-plain){min-height:520px;padding:66px max(6%,calc((100vw - 1280px)/2));display:grid;grid-template-columns:1.1fr 1fr;gap:7%;background:#123c2f}.design-edition .r-hero:not(.r-home-hero) .r-hero-copy{grid-column:1;grid-row:1}.design-edition .r-hero:not(.r-home-hero) h1{font-size:clamp(2.7rem,4.5vw,4.9rem);max-width:750px}.design-edition .r-hero:not(.r-home-hero) .r-hero-media{position:relative;grid-column:2;grid-row:1;height:400px;z-index:auto;border-radius:150px 18px 18px 18px;overflow:hidden;border:1px solid #d5b77c77;box-shadow:20px 20px 0 -1px #ffffff07,20px 20px 0 0 #d5b77c44}.design-edition .r-hero:not(.r-home-hero) .r-hero-media img{object-position:center;transition:transform 1s}.design-edition .r-hero:not(.r-home-hero) .r-hero-media:hover img{transform:scale(1.025)}.design-edition .r-hero:not(.r-home-hero):after{background:radial-gradient(ellipse at 5% 90%,#477e4e44,transparent 60%);pointer-events:none}.design-edition .r-home-hero{min-height:620px;padding-top:55px;padding-bottom:55px}.design-edition .r-home-hero:after{background:linear-gradient(90deg,#082d29eb,#103a30b0 60%,#082d2970)}.design-edition .r-home-hero .r-hero-copy{max-width:650px}.design-edition .r-hero-gift{backdrop-filter:blur(16px)}.design-edition .r-hero-gift h2{font-size:1.9rem}.design-edition .r-fact-bar{background:#d5b77c;color:#19362b;padding:24px 6%;border:0;gap:0}.design-edition .r-fact-bar>div{padding:0 25px;border-right:1px solid #19362b33}.design-edition .r-fact-bar>div:first-child{padding-left:0}.design-edition .r-fact-bar>div:last-child{border:0}.design-edition .r-fact-bar strong{font-weight:650;font-size:1rem}.design-edition .r-fact-bar span{font-weight:650}
/* Every page alternates readable light and dark surfaces; nested cards stay self-contained. */
.design-edition #page-content>section{--section-bg:#f7f4eb;--section-ink:#183e30;--section-muted:#52675b;background:var(--section-bg);color:var(--section-ink);max-width:none;margin:0}.design-edition #page-content>section:nth-of-type(even){--section-bg:#123c2f;--section-ink:#fff9ec;--section-muted:#d3dfd3}.design-edition #page-content>section:nth-of-type(4n+3){--section-bg:#e9ddc5;--section-ink:#183e30;--section-muted:#495e50}.design-edition #page-content>section:nth-of-type(4n+4){--section-bg:#1c4b3b}.design-edition #page-content>section>p,.design-edition #page-content>section .r-note,.design-edition #page-content>section .eyebrow,.design-edition #page-content>section .r-section-head>p{color:var(--section-muted)}.design-edition #page-content>section h2,.design-edition #page-content>section .r-text-link{color:var(--section-ink)}.design-edition .r-section-head>p{max-width:330px;margin-bottom:16px;font-size:.9rem}.design-edition .r-split{gap:7%}.design-edition .r-split figure img{border-radius:100px 12px 12px 12px;height:390px}.design-edition .r-split figcaption{color:var(--section-muted);line-height:1.6}.design-edition .r-quote{background:#ffffff0b;border:1px solid #73947a66;border-radius:4px 60px 4px 4px;color:var(--section-ink);padding:35px}.design-edition .r-quote>span{color:#ac9d5c}
.d-section-kicker{display:flex;align-items:center;gap:15px}.d-number{font:italic 2.5rem Georgia,serif;color:#9f874c}.d-feature{display:grid;grid-template-columns:1.05fr 1fr;gap:8%;align-items:center}.d-feature-copy>p{max-width:560px;font-size:1rem;color:var(--section-muted)}.d-feature-copy .r-text-link{margin-top:20px}.d-feature-art{position:relative;margin:0;padding:0 16px 16px 0}.d-feature-art:before{content:'';position:absolute;inset:18px 0 0 18px;border:1px solid #ac9d5c;border-radius:12px 80px 12px 12px;pointer-events:none}.d-feature-art>img{position:relative;width:100%;height:370px;object-fit:cover;object-position:center;border-radius:12px 80px 12px 12px}.d-feature-art figcaption{position:relative;font-size:.68rem;line-height:1.6;margin-top:14px;color:var(--section-muted);max-width:85%}.d-feature-reverse .d-feature-copy{grid-column:2;grid-row:1}.d-feature-reverse .d-feature-art{grid-column:1;grid-row:1}.d-image-mark{position:absolute;right:-12px;bottom:55px;display:grid;place-items:center;width:80px;height:80px;border:7px solid var(--section-bg);background:#d5b77c;color:#123c2f;border-radius:50%;animation:d-float 6s ease-in-out infinite}.d-topic-grid{list-style:none;padding:0;margin:24px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.d-topic-grid li{display:flex;align-items:center;gap:12px;padding:18px 15px;background:#ffffff0b;border:1px solid #83997f66;border-radius:12px;font-size:.85rem;line-height:1.5}.d-topic-grid .d-icon{width:26px;height:26px;color:#ac9d5c}
.design-edition .r-card-grid{gap:24px;margin-top:32px}.design-edition .r-card{background:#fffcf5;color:#183e30;border:1px solid #a0ad8d55;box-shadow:0 10px 24px #001c2010;transition:transform .35s,box-shadow .35s;overflow:hidden;border-radius:12px}.design-edition .r-card:hover{transform:translateY(-7px);box-shadow:0 20px 40px #001c2025}.design-edition .r-card h3,.design-edition #page-content .r-card .r-text-link{color:#183e30}.design-edition #page-content .r-card .r-note{color:#52675b}.d-photo-cards>.r-card{padding:0}.d-card-photo{width:100%;height:225px;position:relative;display:block;overflow:hidden}.d-card-photo img{width:100%;height:100%;object-fit:cover;transition:transform .6s}.r-card:hover .d-card-photo img{transform:scale(1.05)}.d-card-badge{position:absolute;bottom:12px;right:16px;display:grid;place-items:center;background:#f9f5e8ed;color:#204a34;border-radius:50%;width:48px;height:48px;box-shadow:0 3px 12px #0002}.d-card-badge .d-icon{width:25px;height:25px}.d-card-body{padding:25px;display:flex;flex-direction:column;flex:1;width:100%}.design-edition .r-card h3{font-size:1.65rem;margin:12px 0}.design-edition .r-card p{font-size:.84rem}.design-edition .r-card-facts{font-size:.75rem}.design-edition .r-card-facts dd{max-width:75%}
.d-pathway-track{list-style:none;margin:35px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;position:relative}.d-pathway-track:before{content:'';position:absolute;top:37px;left:6%;right:6%;border-top:1px dashed #ac9d5c}.d-pathway-track li{position:relative}.d-path-node{display:grid;place-items:center;width:76px;height:76px;border:1px solid #ac9d5c;border-radius:50%;background:var(--section-bg);color:#ac9d5c;margin-bottom:22px;box-shadow:0 0 0 8px var(--section-bg)}.d-step{font-size:.65rem;letter-spacing:.18em;color:var(--section-muted)}.d-pathway-track h3{font-size:1.55rem;margin:10px 0}.d-pathway-track p{font-size:.85rem;color:var(--section-muted)}.d-path-age{display:inline-block;border:1px solid #ac9d5c77;padding:6px 12px;border-radius:30px;font-size:.72rem}.d-caption{font-size:.68rem;line-height:1.6;max-width:740px;margin:28px 0 0;color:var(--section-muted)}
.d-gallery{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:22px;align-items:start}.d-gallery figure{margin:0}.d-gallery figure:nth-child(2){margin-top:40px}.d-gallery figure img{width:100%;height:300px;object-fit:cover;border-radius:12px}.d-gallery figure:first-child img{height:375px;border-radius:90px 12px 12px 12px}.d-gallery figcaption{display:flex;gap:10px;font-size:.7rem;line-height:1.6;color:var(--section-muted);padding-top:13px}.d-gallery figcaption span{color:#ac9d5c;font-family:Georgia,serif}.d-life{isolation:isolate}.d-life-photo{position:absolute;inset:0;z-index:-1;overflow:hidden}.d-life-photo img{width:100%;height:100%;object-fit:cover;opacity:.12}.design-edition .r-event-card{background:#fcfaf3;color:#173c30;border-radius:12px;box-shadow:0 8px 30px #001b1812}.design-edition #page-content .r-event-card .eyebrow,.design-edition #page-content .r-event-card .r-text-link{color:#173c30}.design-edition .r-event-card p{color:#52675b}.design-edition .r-date{color:#735c2b}.design-edition .r-prayer{padding:34px 6%}.design-edition .r-prayer-grid>div{background:#fffaf0;color:#173c30;box-shadow:0 6px 20px #0d302409;border:1px solid #c6b58855}.design-edition .r-prayer-grid>div:last-child{background:#d5b77c}.design-edition .r-impact>div{border-top:1px solid #ac9d5c99}.design-edition .r-impact strong{color:#a48b51}.design-edition #page-content>section:nth-of-type(even) .r-impact strong{color:#e1c48b}.design-edition .r-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.design-edition .r-timeline li{display:block;border-top:2px solid #ac9d5c;padding:20px 0}.design-edition .r-timeline strong{font-size:2.8rem;color:#d5b77c}.design-edition .r-timeline p{font-size:.9rem}.design-edition .r-contact-card{background:#fffcf2;color:#183e30}.design-edition #page-content .r-contact-card .r-note,.design-edition #page-content .r-contact-card .eyebrow{color:#52675b}.design-edition .r-project{position:relative;isolation:isolate;overflow:hidden;background:#123c2f;border:1px solid #b9c7ac55;min-height:360px}.design-edition .r-project:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#123c2ff0,#123c2fb0),url('/assets/client/community-gathering.jpg') center/cover;transition:transform .7s}.design-edition .r-project:hover:before{transform:scale(1.04)}.design-edition .r-project-sage:before{background:linear-gradient(90deg,#173f32ef,#173f32a0),url('/assets/client/study-circle.jpg') center/cover}.design-edition .r-project-sage,.design-edition .r-project-sage p,.design-edition #page-content .r-project .eyebrow{color:#fff6df}.design-edition .r-project h3{font-size:2.5rem}.design-edition .r-expenses dl>div{border-color:#97aa8566}.design-edition .r-map{background:#f5f2e6}.design-edition #page-content .r-map .r-note{color:#52675b}.design-edition .d-leader-portrait{padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;border:1px solid #b59e6d77;background:radial-gradient(ellipse,#d5b77c33,transparent 70%);border-radius:120px 10px 10px 10px}.design-edition .d-leader-portrait img{width:200px;height:200px;object-fit:contain;border-radius:50%;border:5px solid #e0c893;box-shadow:0 0 0 10px #b59e6d22}.design-edition .d-leader-portrait figcaption{text-align:center;max-width:280px;margin-top:24px;font-size:.82rem}.page-imam .r-hero-media img{object-fit:contain!important;max-width:240px;max-height:240px;margin:auto;border-radius:50%}.page-imam .r-hero-media{display:flex;align-items:center;background:radial-gradient(ellipse,#b7a26c55,transparent)}.d-biography{columns:2;column-gap:6%}.d-biography>h2,.d-biography>.eyebrow{column-span:all}.d-biography h3{break-after:avoid;font-size:1.6rem}.d-biography p{font-size:.9rem!important;orphans:3;widows:3}
/* Inline CRM forms: always in document flow, no launch button or overlay. */
.design-edition #page-content>.d-inline-section{background:#123c2f;color:#fff8eb;padding:60px max(6%,calc((100vw - 1280px)/2));display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:6%;align-items:start}.d-form-intro{position:sticky;top:125px;align-self:start;padding-top:15px}.d-form-intro>h2{font-size:2.7rem!important;color:#fff8eb!important}.design-edition #page-content .d-form-intro .eyebrow,.design-edition #page-content .d-form-intro .r-note{color:#d5dfce}.d-form-intro>p{font-size:.9rem;color:#e1e8da}.d-form-symbol{display:grid;place-items:center;background:#d5b77c;color:#123c2f;width:64px;height:64px;border-radius:18px;margin-bottom:25px}.d-form-steps{display:grid;gap:17px;margin:30px 0;font-size:.81rem}.d-form-steps span{display:flex;align-items:center;gap:12px}.d-form-steps b{width:30px;height:30px;border:1px solid #b59e6d88;border-radius:50%;display:grid;place-items:center;font-weight:400;color:#e1c48b;font-size:.7rem}.d-form-shell{min-width:0;background:#fff;border:1px solid #d5b77c66;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px #001d2333}.d-form-label{display:flex;align-items:center;gap:10px;color:#183e30;background:#f5f1e7;padding:18px 24px;font-size:.75rem;border-bottom:1px solid #e4e1d7}.d-status-dot{width:7px;height:7px;background:#356341;border-radius:50%}.d-crm-frame{display:block;width:100%;border:0;background:#fff;min-height:450px}.d-form-help{padding:15px 24px;color:#52675b;font-size:.7rem;margin:0;border-top:1px solid #e9e4d9}.d-form-help a{text-decoration:underline}.d-form-shell .ep-iFrameContainer{width:100%!important}.d-reveal{transition:opacity .65s,transform .65s}.d-reveal:not(.d-visible){opacity:.5;transform:translateY(18px)}@keyframes d-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(min-width:1100px){.page-education .d-photo-cards{grid-template-columns:repeat(6,minmax(0,1fr))}.page-education .d-photo-cards>.r-card{grid-column:span 2}.page-education .d-photo-cards>.r-card:nth-child(n+4){grid-column:span 3}.page-education .d-photo-cards>.r-card:nth-child(n+4) .d-card-photo{height:260px}}
@media(max-width:1000px){.design-edition .r-hero:not(.r-home-hero):not(.r-hero-plain){min-height:420px;gap:5%;padding:45px 5%}.design-edition .r-hero:not(.r-home-hero) .r-hero-media{height:340px}.design-edition .r-hero:not(.r-home-hero) h1{font-size:3rem}.d-pathway-track{grid-template-columns:repeat(2,1fr);gap:30px}.d-pathway-track:before{display:none}.d-gallery{gap:15px}.d-gallery figure img{height:260px}.d-gallery figure:first-child img{height:320px}.d-feature{gap:5%}.d-feature-art>img{height:330px}.design-edition #page-content>.d-inline-section{grid-template-columns:1fr 1.4fr;gap:4%;padding:45px 5%}.d-form-intro>h2{font-size:2rem!important}.d-form-label{padding:15px}}
@media(max-width:700px){.design-edition .r-hero:not(.r-home-hero):not(.r-hero-plain){display:flex;flex-direction:column;align-items:stretch;padding:35px 6% 45px;gap:30px}.design-edition .r-hero:not(.r-home-hero) .r-hero-copy{order:0}.design-edition .r-hero:not(.r-home-hero) .r-hero-media{order:1;height:270px;flex-shrink:0;border-radius:80px 12px 12px 12px;box-shadow:10px 10px 0 #d5b77c33}.design-edition .r-hero:not(.r-home-hero) h1{font-size:clamp(2.6rem,9vw,3.7rem)}.design-edition .r-hero:not(.r-home-hero) .r-hero-copy>p{font-size:.9rem}.design-edition .r-home-hero{padding:40px 6%}.design-edition .r-section{padding:42px 6%}.d-feature{grid-template-columns:1fr;gap:28px}.d-feature-reverse .d-feature-copy,.d-feature-reverse .d-feature-art{grid-column:auto;grid-row:auto}.d-feature-art>img{height:310px}.d-image-mark{right:0;width:65px;height:65px}.d-topic-grid{gap:8px}.d-topic-grid li{font-size:.78rem;padding:12px;gap:8px}.d-topic-grid .d-icon{width:22px}.d-gallery{grid-template-columns:1fr 1fr;gap:18px 14px}.d-gallery figure:first-child{grid-column:1/-1}.d-gallery figure:nth-child(2){margin-top:0}.d-gallery figure:first-child img{height:290px}.d-gallery figure img{height:200px}.d-gallery figcaption{font-size:.64rem}.d-card-photo{height:220px}.design-edition .r-fact-bar>div{border:0;padding:8px 0}.design-edition .r-fact-bar{padding:15px 6%}.design-edition .r-timeline{grid-template-columns:1fr 1fr;gap:20px}.design-edition .r-timeline strong{font-size:2.2rem}.design-edition .r-split figure img{height:310px}.design-edition .d-leader-portrait img{width:200px;height:200px}.d-biography{columns:1}.design-edition #page-content>.d-inline-section{grid-template-columns:1fr;gap:24px;padding:40px 4%}.d-form-intro{position:static;padding:0 2%}.d-form-intro h2{font-size:2.1rem!important}.d-form-steps{margin:20px 0}.d-form-shell{border-radius:12px}.d-form-label{font-size:.7rem}.d-crm-frame{width:100%;min-width:0}.design-edition .r-section-head>p{max-width:100%}.design-edition .r-home-hero h1{font-size:3.2rem}.d-path-node{width:62px;height:62px}.d-pathway-track h3{font-size:1.35rem}.d-pathway-track p{font-size:.77rem}}
@media(prefers-reduced-motion:reduce){.design-edition *, .design-edition *:before,.design-edition *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.d-reveal:not(.d-visible){opacity:1;transform:none}.design-edition .r-card:hover{transform:none}}
.design-edition .header .nav-give{border-radius:50px!important}.design-edition .header.raised{background:#123c2ff5!important;border:1px solid #d5b77c99;box-shadow:0 8px 30px #05281d25}.design-edition .header.raised .brand-lockup strong{color:#fff9ec}.design-edition .d-academic-subjects{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}.d-academic-subjects>div{border:1px solid #a98e5266;border-radius:50px 50px 12px 12px;min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#f8f3e7}.d-academic-subjects strong{font-size:.83rem;font-weight:550}.d-academic-subjects .d-icon{color:#7d683e}.d-card-photo img[data-media-slot="building-together"],.d-card-photo img[data-media-slot="eager-to-learn"],.d-feature-art img[data-media-slot="teacher"]{object-position:center 25%}.design-edition .r-hero-copy .r-actions .button{min-height:44px}
.design-edition #page-content>section{--muted:var(--section-muted)}
@media(max-width:1150px){.design-edition .header .mobile-toggle{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0!important;font-size:0!important;border-radius:50%;line-height:1}.design-edition .header .mobile-toggle span{font-size:19px;line-height:1}.design-edition .header .brand-lockup{max-width:calc(100% - 54px)}}
@media(max-width:700px){.design-edition.form-in-view .donate-widget,.design-edition.form-in-view .social-widget{display:none}}
@media(max-width:1150px){.design-edition:has(#navigation.open) .donate-widget,.design-edition:has(#navigation.open) .social-widget{display:none}}
.design-edition #page-content>.d-inline-section:nth-of-type(odd){background:#e9ddc5;color:#183e30}.design-edition #page-content>.d-inline-section:nth-of-type(odd) .d-form-intro h2{color:#183e30!important}.design-edition #page-content>.d-inline-section:nth-of-type(odd) .d-form-intro p,.design-edition #page-content>.d-inline-section:nth-of-type(odd) .d-form-intro .eyebrow,.design-edition #page-content>.d-inline-section:nth-of-type(odd) .d-form-intro .r-note{color:#495e50}.design-edition #page-content>.d-inline-section:nth-of-type(odd) .d-form-steps b{color:#705d33}.d-vision-panel{border:1px solid #ac9d5c77;padding:28px;border-radius:16px 70px 16px 16px}.d-vision-panel>div{display:grid;grid-template-columns:44px 1fr;gap:0 15px;border-bottom:1px solid #ac9d5c55;padding:20px 0}.d-vision-panel>div:last-child{border:0}.d-vision-panel .d-icon{grid-row:span 2;color:#8b7547}.d-vision-panel h3{font-size:1.7rem;margin:0}.d-vision-panel p{font-size:.85rem;margin:8px 0 0}.d-leadership-mini{display:flex;align-items:center;gap:24px;border-top:1px solid #a18d5b66;padding-top:28px;margin-top:30px}.d-leadership-mini img{width:96px;height:96px;border-radius:50%}.d-leadership-mini>span{display:flex;flex-direction:column;gap:7px}.d-leadership-mini small{font-size:.7rem}.d-leadership-mini strong{font:500 1.7rem Cormorant,Georgia,serif}.d-leadership-mini span span{font-size:.8rem;text-decoration:underline;text-underline-offset:4px}.page-imam .r-hero-media img{max-width:200px;max-height:200px}
/* Preserve faces near the top of portrait originals in landscape card crops. */
.design-edition .d-card-photo img,.design-edition .d-card-photo img[data-media-slot]{object-position:center top}.d-feature-art img[data-media-slot="creative-learning"],.d-feature-art img[data-media-slot="building-together"],.d-feature-art img[data-media-slot="quran-study"],.d-feature-art img[data-media-slot="eager-to-learn"],.d-gallery img[data-media-slot="creative-learning"],.d-gallery img[data-media-slot="building-together"],.d-gallery img[data-media-slot="quran-study"],.d-gallery img[data-media-slot="teacher"]{object-position:center top}

/* Review revision 3: legible social links, full-width mega menus and mobile framing. */
.design-edition .footer-socials{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.design-edition .footer-socials a{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;height:auto;min-height:44px;padding:10px 13px;border:1px solid #d5b77c70;border-radius:50px;color:#f4dfb6;font-size:.75rem;line-height:1.3;text-decoration:none;white-space:nowrap}
.design-edition .footer-socials a span{display:inline;color:inherit}
.design-edition .footer-socials a:hover,.design-edition .footer-socials a:focus-visible{background:#d5b77c;color:#123c2f;transform:translateY(-2px)}
.social-icon{display:block;flex:0 0 22px;width:22px;height:22px;overflow:visible}
.nav-chevron{display:inline-block;vertical-align:middle;margin-left:5px;transition:transform .2s}
.r-nav-group[open] .nav-chevron{transform:rotate(180deg)}
.design-edition .r-nav-panel{padding:0;border:1px solid #d1c3a6;background:#f9f6ee;backdrop-filter:blur(20px)}
.design-edition .r-nav-group[open] .r-nav-panel{display:grid;grid-template-columns:280px minmax(0,1fr)}
.d-mega-intro{padding:30px;background:#123c2f;color:#fff8e9;border-radius:17px 0 0 17px}
.d-mega-intro>.d-icon{width:38px;height:38px;color:#d5b77c;margin-bottom:22px}
.d-mega-intro>.eyebrow{display:block;color:#dec58d}
.design-edition .d-mega-intro h2{font-size:2rem;line-height:1.1;color:#fff8e9;margin:15px 0}
.d-mega-intro p{font-size:.79rem;line-height:1.7;color:#d5e1d5;margin-bottom:0}
.d-mega-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:24px;align-content:start}
.design-edition .header nav .r-nav-panel a{padding:14px 12px;min-height:64px;gap:12px;border:1px solid #ddd4c4;background:#fffdf7;font-size:.82rem;color:#183e2b;line-height:1.4;transition:background .2s,border-color .2s,box-shadow .2s}
.design-edition .header nav .r-nav-panel a:hover,.design-edition .header nav .r-nav-panel a:focus-visible,.design-edition .header nav .r-nav-panel a[aria-current]{background:#e9ddc5;border-color:#ac9d5c;box-shadow:0 4px 14px #123c2f10}
.design-edition .r-nav-icon{width:38px;height:38px;border-radius:12px}
.r-nav-icon .d-icon{width:23px;height:23px}
.d-mega-arrow{margin-left:auto;color:#647953}
@media(min-width:1151px){
 .design-edition .header{position:sticky;overflow:visible}
 .design-edition .header nav,.design-edition .r-nav-group{position:static}
 .design-edition .r-nav-group[open]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30px}
 .design-edition .r-nav-panel{position:absolute;top:calc(100% - 1px);left:50%;transform:translateX(-50%);width:min(1120px,94%);max-height:calc(100dvh - 150px);overflow-y:auto;box-shadow:0 24px 55px #08291e40}
}
@media(max-width:1150px){
 .design-edition .header nav{max-height:calc(100dvh - 110px);overscroll-behavior:contain}
 .design-edition .r-nav-group[open] .r-nav-panel{position:static;grid-template-columns:1fr;width:100%;max-height:none;transform:none;margin:8px 0 16px}
 .d-mega-intro{padding:18px 20px;border-radius:16px 16px 0 0}
 .d-mega-intro>.d-icon,.d-mega-intro>.eyebrow,.d-mega-intro p{display:none}
 .design-edition .d-mega-intro h2{margin:0;font-size:1.5rem}
 .d-mega-links{padding:12px;gap:8px}
 .design-edition .r-nav-group>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px}
 .design-edition .header nav .r-nav-panel a{min-height:56px;padding:10px;font-size:.8rem}
}
@media(max-width:600px){.d-mega-links{grid-template-columns:1fr}.design-edition .footer-socials a{font-size:.72rem;padding:10px 12px}}
/* Native image proportions on tablets and phones: no cover-cropped people. */
@media(max-width:1000px){
 .design-edition .r-hero:not(.r-home-hero):not(.r-donation-hero) .r-hero-media{height:auto;min-height:0;align-self:center;border-radius:16px;overflow:hidden}
 .design-edition .r-hero:not(.r-home-hero):not(.r-donation-hero) .r-hero-media img{display:block;height:auto;width:100%;object-fit:contain;object-position:center;transform:none}
 .design-edition .d-card-photo{height:auto;overflow:visible}
 .design-edition .d-card-photo img{display:block;height:auto;width:100%;object-fit:contain;transform:none}
 .design-edition .d-feature-art>img,.design-edition .r-split figure:not(.d-leader-portrait) img,.design-edition .d-gallery figure img,.design-edition .d-gallery figure:first-child img{display:block;width:100%;height:auto;object-fit:contain;object-position:center;border-radius:14px}
 .design-edition .d-feature-art:before{border-radius:14px}
 .design-edition .d-card-photo .d-card-badge{width:40px;height:40px;bottom:10px;right:10px}
 .design-edition .d-gallery{align-items:start}
}
@media(max-width:700px){
 .design-edition .r-hero:not(.r-home-hero):not(.r-donation-hero) .r-hero-media{align-self:stretch}
 .design-edition .d-gallery{grid-template-columns:1fr;gap:25px}
 .design-edition .d-gallery figure:nth-child(2){margin-top:0}
 .design-edition .d-card-photo .d-card-badge{width:44px;height:44px}
 .design-edition.page-imam .r-hero-media{min-height:240px}
}
/* One primary gift card per giving page, before campaign details and expenses. */
.design-edition .r-hero.r-donation-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);gap:6%;align-items:center;min-height:0;padding:42px max(6%,calc((100vw - 1280px)/2));isolation:isolate}
.design-edition .r-hero.r-donation-hero .r-hero-media{position:absolute;inset:0;z-index:-2;height:100%;border:0;border-radius:0;box-shadow:none;grid-column:auto;grid-row:auto}
.design-edition .r-hero.r-donation-hero .r-hero-media img{width:100%;height:100%;object-fit:cover;transform:none}
.design-edition .r-hero.r-donation-hero:after{background:linear-gradient(90deg,#0b3029f5,#103a30d9 55%,#082d29b8)}
.design-edition .r-donation-hero .r-hero-copy{grid-column:1;grid-row:1}
.design-edition .r-donation-hero h1{font-size:clamp(2.5rem,4.2vw,4.5rem)}
.design-edition .d-hero-gift{grid-column:2;grid-row:1;background:#fcf9f0;color:#173c30;padding:26px;min-width:0;width:100%;scroll-margin-top:130px}
.design-edition .d-hero-gift h2{font-size:2rem;color:#173c30;margin:10px 0 20px}
.design-edition .d-hero-gift .r-note{font-size:.7rem;line-height:1.6;color:#52675b;margin:14px 0 0}
.design-edition .d-hero-gift .r-note a{text-decoration:underline}
@media(max-width:760px){
 .design-edition .r-hero.r-donation-hero{display:flex;flex-direction:column;gap:24px;align-items:stretch;padding:24px 5% 34px}
 .design-edition .r-donation-hero .r-hero-copy{order:0}
 .design-edition .r-donation-hero h1{font-size:clamp(2rem,7.3vw,2.8rem);margin:10px 0 12px}
 .design-edition .r-donation-hero .r-hero-copy>p{font-size:.85rem;line-height:1.6;margin:0}
 .design-edition .r-donation-hero .r-hero-copy .r-actions{display:none}
 .design-edition .d-hero-gift{order:1;padding:20px;border-radius:20px}
 .design-edition .d-hero-gift h2{font-size:1.8rem;margin:8px 0 16px}
 .design-edition .d-hero-gift .mdi-gift-form{margin-top:0}
}

/* Gold 2px frame on images and image cards (client request, 2026-11-14) */
.design-edition .d-photo-cards>.r-card,
.design-edition .r-project,
.design-edition .r-hero:not(.r-home-hero) .r-hero-media,
.design-edition .d-feature-art>img,
.design-edition .r-split figure img,
.design-edition .d-gallery figure img,
.design-edition .d-leader-portrait img,
.design-edition .d-leadership-mini img,
.community-visual{border:2px solid #D5B77C}

/* Other ways to give (Give page) */
.design-edition #page-content>section.d-ways-to-give{--section-bg:#123c2f;--section-ink:#fff6df;--section-muted:#d9e1d3;isolation:isolate;overflow:hidden;color:#fff6df;background:linear-gradient(180deg,#0f3a2ceb,#123c2ff2),url('/assets/exterior.webp') center/cover}
.design-edition #page-content>section.d-ways-to-give .eyebrow{color:#d5b77c}
.design-edition #page-content>section.d-ways-to-give h2{color:#fff6df;margin:14px 0 34px}
.d-ways-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.design-edition .d-way-card{display:flex;flex-direction:column;align-items:flex-start;background:#f6f0e2;color:#173c30;border:2px solid #D5B77C;border-radius:12px;padding:28px 28px 30px;box-shadow:0 14px 34px #00180f40;transition:transform .3s,box-shadow .3s}
.design-edition .d-way-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #00180f55}
.d-way-card>img{width:52px;height:52px;object-fit:contain;margin-bottom:16px}
.design-edition .d-way-card h3{font-size:1.75rem;color:#173c30;margin:0 0 12px}
.design-edition .d-way-card p{font-size:.88rem;line-height:1.65;color:#2f4a3e;margin:0 0 22px;max-width:520px}
.design-edition .d-way-button{margin-top:auto;display:inline-block;padding:13px 20px;border:1px solid #173c30;border-radius:4px;color:#173c30;font-size:.82rem;font-weight:700;text-decoration:none;transition:background .25s,color .25s}
.design-edition .d-way-button:hover,.design-edition .d-way-button:focus-visible{background:#173c30;color:#f6e7bf}
.design-edition #page-content>section>p.d-ways-note{margin:26px 0 0;font-size:.85rem;color:#d9e1d3}
.design-edition .d-ways-note a{color:#e8cf95}
@media(max-width:760px){.d-ways-grid{grid-template-columns:1fr}.design-edition .d-way-card{padding:24px}.design-edition .d-way-card h3{font-size:1.5rem}}

/* Follow the journey — reel-style photo carousel (Give page) */
.design-edition #page-content>section.d-reels-section{--section-bg:#e4ece6;--section-ink:#123c2f;--section-muted:#3f5a4c;background:#e4ece6;color:#123c2f}
.design-edition #page-content>section.d-reels-section .eyebrow{color:#123c2f}
.design-edition #page-content>section.d-reels-section h2{color:#123c2f;margin:12px 0 16px}
.design-edition #page-content>section>p.d-reels-intro{max-width:520px;color:#3f5a4c;margin:0 0 32px;font-size:.95rem}
.d-reels{position:relative}
.d-reels-track{list-style:none;margin:0;padding:0;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none}
.d-reels-track::-webkit-scrollbar{display:none}
.d-reel{flex:0 0 calc((100% - 56px)/5);aspect-ratio:9/16;scroll-snap-align:start;margin:0}
.d-reel>a{position:relative;display:block;height:100%;border-radius:10px;overflow:hidden;border:2px solid #D5B77C;color:#fff;text-decoration:none;background:#123c2f}
.d-reel .d-reel-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
.d-reel>a:hover .d-reel-photo,.d-reel>a:focus-visible .d-reel-photo{transform:scale(1.04)}
.d-reel-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0000 50%,#000000b3)}
.d-reel-badge{position:absolute;top:12px;right:12px}
.d-reel-actions{position:absolute;right:12px;bottom:80px;display:flex;flex-direction:column;gap:14px}
.d-reel-meta{position:absolute;left:10px;right:10px;bottom:12px;display:flex;flex-direction:column;gap:8px}
.d-reel-user{display:flex;align-items:center;gap:7px;font-size:.72rem;min-width:0}
.d-reel-user img{width:26px;height:26px;border-radius:50%;background:#fff;padding:3px;object-fit:contain;flex-shrink:0}
.d-reel-user strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d-reel-follow{border:1px solid #ffffffcc;border-radius:6px;padding:2px 8px;font-size:.66rem;font-weight:700;flex-shrink:0}
.d-reel-caption{font-size:.74rem;line-height:1.4}
.d-reels-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border-radius:50%;background:#fff;color:#123c2f;border:1px solid #D5B77C;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px #00000026;transition:opacity .2s}
.d-reels-prev{left:-18px}.d-reels-next{right:-18px}
.d-reels-arrow[disabled]{opacity:0;pointer-events:none}
.d-reels-cta{text-align:center;margin-top:30px}
.design-edition .d-reels-cta .d-way-button{display:inline-flex;align-items:center;gap:10px}
.d-reels-cta .social-icon{width:18px;height:18px}
@media(max-width:1000px){.d-reel{flex-basis:calc((100% - 28px)/3)}}
@media(max-width:600px){.d-reel{flex-basis:72%}.d-reels-prev{left:-8px}.d-reels-next{right:-8px}}

/* Footer: Stay connected column (sign-up, QR, PCI, payment methods) */
.client-revision .mega-footer .footer-top{grid-template-columns:1.35fr 1fr 1.05fr 1fr 1.35fr;gap:32px}
.client-revision .mega-footer .footer-top>div{display:block;grid-column:auto}
.footer-signup label{display:block;font-size:.76rem;color:#e9e3cc;margin-bottom:9px}
.footer-signup input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #D5B77C;border-radius:4px;background:#fffdf6;color:#173c30;font:inherit;font-size:.8rem}
.footer-signup input:focus-visible{outline:2px solid #D5B77C;outline-offset:2px}
.footer-signup button{width:100%;margin-top:8px;padding:11px 12px;border:1px solid #c3a565;border-radius:4px;background:#D5B77C;color:#123c2f;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;transition:background .2s}
.footer-signup button:hover,.footer-signup button:focus-visible{background:#e6cd97}
.client-revision .footer-top .footer-signup-note{font-size:.7rem;line-height:1.55;color:#c4d1c5;margin:10px 0 0}
.footer-trust{display:flex;gap:14px;align-items:stretch;margin-top:22px}
.footer-qr,.footer-pci{display:grid;place-items:center;background:#fff;border-radius:8px;padding:6px;height:62px;box-sizing:border-box}
.client-revision .mega-footer .footer-top>div>a.footer-qr{padding:6px;transform:none}
.footer-qr img{width:50px;height:50px}
.footer-pci{width:108px}
.footer-pci img{width:100%;height:100%;object-fit:contain}
.footer-payments{display:block;width:100%;max-width:275px;height:auto;margin-top:16px;border-radius:4px}
@media(max-width:1200px){
 .client-revision .mega-footer .footer-top{grid-template-columns:repeat(3,minmax(0,1fr))}
 .client-revision .mega-footer .footer-top>div.footer-connect{grid-column:span 2;max-width:420px}
}
@media(max-width:760px){
 .client-revision .mega-footer .footer-top{grid-template-columns:1fr 1fr}
 .client-revision .mega-footer .footer-top>div.footer-brand,.client-revision .mega-footer .footer-top>div.footer-connect{grid-column:1/-1;max-width:none}
}

/* Leadership portrait fix: stop the split-section arch rule stretching the square photo */
.design-edition .r-split figure.d-leader-portrait img,.design-edition figure.d-leader-portrait img{display:block;width:300px;height:300px;max-width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center top;border-radius:18px;border:2px solid #D5B77C;box-shadow:0 0 0 10px #d5b77c26,0 22px 45px #123c2f2e}
.design-edition .r-split figure.d-leader-portrait{min-height:440px}
.design-edition .r-split figure.d-leader-portrait figcaption{max-width:360px;margin-top:34px;font-size:.9rem}
@media(max-width:760px){
 .design-edition .r-split figure.d-leader-portrait img,.design-edition figure.d-leader-portrait img{width:230px;height:230px}
 .design-edition .r-split figure.d-leader-portrait{min-height:340px}
}

/* Home "Life at MDI": three upcoming gatherings in one row */
.design-edition .d-life .r-event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.design-edition .d-life .r-event-card{grid-template-columns:64px 1fr;gap:18px;padding:24px 22px}
.design-edition .d-life .r-event-card h3{font-size:1.45rem}
.design-edition .d-life .r-event-card .r-text-link{margin-top:6px;display:inline-block}
.design-edition #page-content .r-event-card .r-note{color:#6b7d70}
@media(max-width:1100px){
 .design-edition .d-life .r-event-card{grid-template-columns:1fr;gap:12px}
 .design-edition .d-life .r-date{border-right:0;border-bottom:1px solid #d6dfcd;flex-direction:row;align-items:baseline;gap:10px;padding-bottom:10px}
}
@media(max-width:760px){.design-edition .d-life .r-event-grid{grid-template-columns:1fr}}

/* Footer: smaller wordmark, larger bottom-bar links */
.mega-footer .footer-wordmark{font-size:clamp(34px,5vw,80px);margin:40px 0 28px}
.mega-footer .footer-wordmark span:last-child{margin-top:10px}
.mega-footer .footer-bottom{font-size:.82rem;align-items:center}
.mega-footer .footer-bottom a{font-size:inherit}
@media(max-width:760px){
 .mega-footer .footer-wordmark{font-size:9vw;margin:34px 0 24px}
 .mega-footer .footer-bottom{font-size:.8rem;gap:12px}
}

/* Footer column headings on one line; links +2px */
.client-revision .mega-footer .footer-top h3{font-size:1.15rem;line-height:1.2;white-space:nowrap;margin:8px 0 20px}
.client-revision .mega-footer .footer-top>div>a{font-size:calc(.76rem + 2px)}
@media(max-width:760px){.client-revision .mega-footer .footer-top h3{font-size:1.05rem;white-space:normal}}

/* Home hero gift card: projects link left, privacy policy right */
.r-hero-gift .d-gift-links{display:flex;justify-content:space-between;align-items:baseline;gap:12px 20px;flex-wrap:wrap;margin-top:20px}
.r-hero-gift .d-gift-links .r-text-link{margin-top:0}

/* All CRM embeds: no outer panel — the form or survey sits directly on the section background */
.d-form-shell.d-form-shell-bare{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.d-form-shell-bare .d-form-label{display:none}
.d-form-shell-bare .d-crm-frame{background:transparent}
.d-form-shell-bare .d-form-help{border-top:0;padding:10px 0 0;color:#d5dfce}
.d-form-shell-bare .d-form-help a{color:#e8cf95}
.d-form-shell-bare .d-crm-frame[src*="/widget/form/"]{border-radius:14px;box-shadow:0 18px 45px #00160f40}

/* Footer socials: icon-only round buttons in one row */
.design-edition .mega-footer .footer-socials{flex-wrap:nowrap;gap:12px}
.design-edition .mega-footer .footer-socials a{width:46px;height:46px;min-height:0;padding:0;border-radius:50%;gap:0;flex-shrink:0}
.design-edition .mega-footer .footer-socials a span{display:none}
.design-edition .mega-footer .footer-socials .social-icon{width:20px;height:20px}

/* Footer first column: match link size */
.client-revision .mega-footer .footer-brand .r-address,.client-revision .mega-footer .footer-brand .r-hours{font-size:calc(.76rem + 2px)}
.client-revision .mega-footer .footer-brand>p{font-size:1.2rem}

/* Home hero background video (desktop only; image stays on mobile) */
.r-home-hero .r-hero-media .d-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease;pointer-events:none}
.r-home-hero .r-hero-media .d-hero-video.is-playing{opacity:1}
@media(max-width:760px){.r-home-hero .r-hero-media .d-hero-video{display:none}}
