/* Masjid Salam — public website styles. Colors come from the masjid logo. */
:root {
  --green-950: #072a21;
  --green-900: #0a382c;
  --green: #0c4939;
  --green-600: #146247;
  --emerald: #1d7a55;
  --navy: #14294a;
  --gold: #b08a45;
  --gold-600: #96733a;
  --gold-200: #e6d3a8;
  --cream: #f6f0e3;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --ink: #17251f;
  --muted: #5c6b64;
  --line: #e4dccb;
  --danger: #a3312a;
  --shadow: 0 1px 2px rgba(10, 40, 30, .06), 0 8px 28px rgba(10, 40, 30, .08);
  --radius: 18px;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Noto Naskh Arabic', serif;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1714; --surface: #13211c; --cream: #17271f; --ink: #ece6d8; --muted: #a3b0a9;
    --line: #26372f; --gold: #cfae6c; --gold-600: #dcbd7f; --green-600: #2f9a6d; --emerald: #3aa77a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1714; --surface: #13211c; --cream: #17271f; --ink: #ece6d8; --muted: #a3b0a9;
  --line: #26372f; --gold: #cfae6c; --gold-600: #dcbd7f; --green-600: #2f9a6d; --emerald: #3aa77a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
svg[aria-hidden] { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
a { color: var(--green-600); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Phones: no double-tap zoom delay or grey flash on taps */
a, button, label, select, summary, [role=button] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.menu-open, html.menu-open body { overflow: hidden; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--arabic); direction: rtl; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- announcements ---------- */
.notices { display: grid; }
.notice { display: flex; gap: 12px; align-items: center; padding: 10px 16px; font-size: 15px; background: var(--green-950); color: #f3ead6; }
.notice .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice strong { font-weight: 700; }
.notice p { margin: 0; flex: 1 1 260px; }
.notice a { color: var(--gold-200); font-weight: 600; }
.notice.urgent { background: #7d231e; color: #fff; }
.notice.urgent a { color: #ffe3b3; }
.notice.celebrate { background: linear-gradient(90deg, #8a6a2f, var(--gold)); color: #fffaf0; }
.notice.celebrate a { color: #fff; }
.notice .x { margin: -8px -10px -8px auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: none; border: 0; color: inherit; opacity: .75; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; }
.notice .x:hover { opacity: 1; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img.mk { height: 46px; width: auto; }
.brand .bn { display: grid; line-height: 1.05; }
.brand .bn b { font: 700 19px/1.1 var(--display); letter-spacing: .04em; color: var(--green); }
.brand .bn span { font-family: var(--arabic); font-size: 15px; color: var(--gold-600); }
:root[data-theme="dark"] .brand .bn b { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .bn b { color: var(--ink); } }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--cream); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-600); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-600); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.nav .btn { margin-left: 6px; padding: 10px 18px; color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 8px; border-radius: 10px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 14px 0 0; border: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 920px) { .top .wrap { height: 68px; } .brand img.mk { height: 42px; } html { scroll-padding-top: 80px; } }
@media (max-width: 360px) { .brand .bn b { font-size: 16px; } }
.hero-logo { width: 230px; margin: 0 0 24px; padding: 14px 14px 10px; border-radius: 24px; background: #fbf8f1; box-shadow: 0 0 0 1px rgba(201,162,77,.5), 0 18px 50px rgba(0,0,0,.35); }
.hero-logo img { width: 100%; height: auto; }
@media (max-width: 920px) { .hero-logo { width: 170px; padding: 10px 10px 8px; border-radius: 20px; margin: 0 auto 16px; } .hero .wrap > div:first-child { text-align: center; } .hero .eyebrow { justify-content: center; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #f6efdf; background: var(--green-950); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-img, none); background-size: cover; background-position: center; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(176,138,69,.28), transparent 60%),
    linear-gradient(180deg, rgba(7,42,33,.55), rgba(7,42,33,.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a24d' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M40 4l10.6 25.4L76 40 50.6 50.6 40 76 29.4 50.6 4 40l25.4-10.6z'/%3E%3Crect x='18' y='18' width='44' height='44' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.hero h1 { font: 600 clamp(34px, 5.4vw, 60px)/1.08 var(--display); letter-spacing: .01em; margin: 0 0 18px; color: #fff; text-wrap: balance; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-200); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-200); }
.hero .lede { font-size: clamp(17px, 2vw, 19px); color: #e5dcc7; max-width: 34em; margin: 0 0 28px; }
.hero .bismillah { font-family: var(--arabic); font-size: 26px; color: var(--gold-200); margin: 0 0 10px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 15px; color: #d6ccb6; }
.hero .meta a { color: inherit; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.hero .meta a:hover { color: #fff; }
.hero .meta svg { width: 18px; height: 18px; color: var(--gold-200); flex: none; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 22px; padding: 26px 0 36px; }
  .hero .bismillah { font-size: 20px; margin-bottom: 4px; }
  .hero .eyebrow { font-size: 11.5px; margin-bottom: 10px; letter-spacing: .12em; }
  .hero .eyebrow::before { display: none; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); margin-bottom: 10px; }
  .hero .lede { font-size: 16px; margin-bottom: 0; }
  .hero .cta, .hero .meta { display: none; }
}

/* ---------- prayer card ---------- */
.side { display: grid; gap: 16px; }
.pcard { background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden; }
.pcard .ph { padding: 18px 20px 16px; background: linear-gradient(135deg, var(--cream), var(--surface)); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pcard .ph .d { font-weight: 700; font-size: 15px; }
.pcard .ph .h { color: var(--gold-600); font-size: 14px; }
.next { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 16px 20px; background: var(--green); color: #fff; }
.next .lbl { grid-column: 1 / -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); font-weight: 600; }
.next .nm { font: 600 26px/1.1 var(--display); }
.next .nm small { font: 400 20px var(--arabic); color: var(--gold-200); margin-left: 8px; }
.next .cd { justify-self: end; text-align: right; font-variant-numeric: tabular-nums; }
.next .cd b { display: block; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.next .cd span { font-size: 13px; color: #cfe3d8; }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 12px 20px 6px; text-align: right; }
.ptable th:first-child { text-align: left; }
.ptable td { padding: 11px 20px; border-top: 1px solid var(--line); text-align: right; font-size: 16px; }
.ptable td:first-child { text-align: left; font-weight: 600; }
.ptable td:first-child .ar { font-weight: 400; color: var(--gold-600); margin-left: 8px; font-size: 17px; }
.ptable td.iq { font-weight: 700; color: var(--green-600); }
.ptable tr.sun td { font-size: 14px; color: var(--muted); padding-top: 7px; padding-bottom: 7px; }
.ptable tr.sun td:first-child { font-weight: 500; }
.ptable tr.now td { background: color-mix(in srgb, var(--gold) 13%, transparent); }
.ptable tr.now td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.ptable tr.past td { color: var(--muted); }
.ptable tr.past td.iq { color: var(--muted); }
.pextra { padding: 14px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.jum { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jum b { font-family: var(--display); color: var(--green-600); }
.jum .t { font-variant-numeric: tabular-nums; }
.jum .t strong { color: var(--green-600); }
.change { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.change b { color: var(--gold-600); }
.ramadan { background: var(--navy); color: #f1e8d4; border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; text-align: center; }
.ramadan div span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-200); }
.ramadan div b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ramadan p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: #cdd5e3; }
.pfoot { display: flex; gap: 8px; padding: 0 20px 18px; flex-wrap: wrap; }
.pfoot a { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--cream); color: var(--green-600); }
.pfoot a:hover { background: var(--line); }
.pnote { font-size: 14px; color: var(--muted); }
.upnext { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 14px 16px; }
.upnext h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); }
.upnext a { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.upnext a:first-of-type { border-top: 0; }
.upnext .dt { width: 46px; text-align: center; flex: none; background: rgba(255,255,255,.1); border-radius: 10px; padding: 4px 0; line-height: 1.1; }
.upnext .dt b { display: block; font-size: 18px; }
.upnext .dt span { font-size: 11px; text-transform: uppercase; color: var(--gold-200); }
.upnext small { display: block; color: #cfc6b1; }

/* ---------- sections ---------- */
section.s { padding: 84px 0; }
section.s.alt { background: var(--cream); }
.sh { max-width: 720px; margin: 0 0 40px; }
.sh.center { margin-inline: auto; text-align: center; }
.sh .k { display: inline-flex; gap: 10px; align-items: center; color: var(--gold-600); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 10px; }
.sh .k::before { content: "✦"; font-size: 11px; }
.sh h2 { font: 600 clamp(28px, 3.6vw, 42px)/1.15 var(--display); margin: 0 0 12px; color: var(--green); text-wrap: balance; }
:root[data-theme="dark"] .sh h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh h2 { color: var(--ink); } }
.sh p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { section.s { padding: 60px 0; } .sh { margin-bottom: 28px; } }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.svc { display: grid; gap: 10px; align-content: start; }
.svc .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 10%, var(--surface)); color: var(--green-600); }
.svc .ic svg { width: 26px; height: 26px; }
.svc h3 { margin: 4px 0 0; font-size: 19px; }
.svc p { margin: 0; color: var(--muted); }

/* events */
.ev { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.ev .img { aspect-ratio: 16 / 9; background: var(--cream) center / cover no-repeat; position: relative; }
.ev .img.has { aspect-ratio: auto; background: var(--green-950); display: grid; place-items: center; min-height: 120px; }
.ev .img.has > img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.ev .img.none { background: linear-gradient(135deg, var(--green), var(--green-950)); display: grid; place-items: center; }
.ev .img.none img { width: 64px; opacity: .9; }
.ev .datechip { position: absolute; left: 14px; top: 14px; background: var(--surface); color: var(--ink); border-radius: 12px; text-align: center; padding: 6px 10px; box-shadow: var(--shadow); line-height: 1.1; min-width: 56px; }
.ev .datechip span { display: block; font-size: 11px; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .1em; }
.ev .datechip b { font-size: 24px; }
.ev .body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.ev h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.ev .when { color: var(--green-600); font-weight: 600; font-size: 15px; }
.ev .where { color: var(--muted); font-size: 14px; }
.ev p { margin: 4px 0 0; color: var(--muted); }
.ev .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--green-600); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.empty { text-align: center; padding: 40px 24px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.subscribe a { display: inline-block; padding: 10px 2px; }
.subscribe { margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); align-items: center; }

/* classes */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 24px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.cls { display: grid; gap: 10px; align-content: start; }
.cls .aud { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold-600); }
.cls h3 { margin: 0; font-size: 19px; }
.cls .sched { display: flex; gap: 6px 16px; flex-wrap: wrap; font-weight: 600; color: var(--green-600); font-size: 15px; }
.cls .sched span { display: inline-flex; gap: 6px; align-items: center; }
.cls .sched svg { width: 16px; height: 16px; }
.cls p { margin: 0; color: var(--muted); }
.cls .who { font-size: 14px; color: var(--muted); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about .pic { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; border: 1px solid var(--line); }
.about .pic img { width: 100%; height: 100%; object-fit: cover; }
.about .pic img.logo { width: 38%; height: auto; object-fit: contain; }
.about .txt p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.about .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.about .facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.about .facts b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* gallery */
/* Masonry columns: every photo keeps its original shape, nothing is cropped */
.gal { columns: 4 220px; column-gap: 10px; }
.gal button { display: block; width: 100%; margin: 0 0 10px; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--cream); break-inside: avoid; }
.gal img { width: 100%; height: auto; transition: transform .4s; }
.gal button:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .gal { columns: 2; column-gap: 6px; } .gal button { border-radius: 10px; margin-bottom: 6px; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4, 14, 11, .94); display: none; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lightbox { touch-action: pan-y; }
.lightbox figcaption { color: #e9e1cf; text-align: center; }
.lightbox .lb { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox .lb:hover { background: rgba(255,255,255,.2); }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox .nextb { right: 12px; top: 50%; translate: 0 -50%; }

/* donate */
.donate { background: var(--green-950); color: #efe6d3; position: relative; overflow: hidden; isolation: isolate; }
.donate::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; background:
  radial-gradient(800px 400px at 0% 100%, rgba(176,138,69,.22), transparent 60%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a24d' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M40 4l10.6 25.4L76 40 50.6 50.6 40 76 29.4 50.6 4 40l25.4-10.6z'/%3E%3C/g%3E%3C/svg%3E"); }
.donate .sh h2 { color: #fff !important; }
.donate .sh p { color: #d4cab4; }
.donate .sh .k { color: var(--gold-200); }
.dgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .dgrid { grid-template-columns: 1fr; } }
.ayah { border-left: 2px solid var(--gold); padding-left: 18px; margin: 24px 0 0; }
.ayah .ar { font-size: 24px; color: var(--gold-200); line-height: 1.9; }
.ayah p { margin: 6px 0 0; color: #cbbfa6; font-style: italic; }
.dbox { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 24px; display: grid; gap: 16px; }
.fund h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin: 10px 0 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e3c483); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.fund .nums { display: flex; justify-content: space-between; font-size: 14px; color: #d4cab4; font-variant-numeric: tabular-nums; }
.fund .nums b { color: #fff; font-size: 17px; }
.methods { display: grid; gap: 10px; }
.methods div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(0,0,0,.18); border-radius: 12px; font-size: 15px; flex-wrap: wrap; }
.methods span { color: #cbbfa6; }
.methods b { color: #fff; font-weight: 600; text-align: right; word-break: break-word; }

/* visit */
.visit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--cream); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.vinfo { display: grid; gap: 14px; align-content: start; }
.vrow { display: flex; gap: 14px; align-items: flex-start; }
.vrow .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 10%, var(--surface)); color: var(--green-600); flex: none; }
.vrow .ic svg { width: 20px; height: 20px; }
.vrow b { display: block; }
.vrow span, .vrow a { color: var(--muted); }
.vrow a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.vbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-out { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-out:hover { border-color: var(--green-600); color: var(--green-600); }

/* contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 24px; } }
form.cf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.cf .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.cf { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.f input, .f select, .f textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 14px; font-size: 16px; font-weight: 400; }
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -5000px; }
.formmsg { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.formmsg.ok { background: color-mix(in srgb, var(--emerald) 14%, var(--surface)); color: var(--green-600); }
.formmsg.err { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.topics { display: grid; gap: 10px; }
.topics div { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.topics b { display: block; }
.topics span { color: var(--muted); font-size: 15px; }

/* footer */
footer.ft { background: var(--green-950); color: #cdc3ad; padding: 56px 0 28px; font-size: 15px; }
.ft .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .ft .cols { grid-template-columns: 1fr; } }
.fbrand { display: flex; align-items: center; gap: 12px; }
.fbrand img { height: 56px; width: auto; }
.fbrand b { display: block; font: 700 20px/1.1 var(--display); letter-spacing: .04em; color: #fff; }
.fbrand span span { font-family: var(--arabic); font-size: 17px; color: var(--gold-200); }
.ft h4 { font: 600 14px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 12px; }
.ft a { color: #efe6d3; text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft .soc { display: flex; gap: 10px; margin-top: 14px; }
.ft .soc a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.ft .soc a:hover { background: rgba(255,255,255,.16); }
.ft .soc svg { width: 20px; height: 20px; }
.ft .base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: #9fa89f; }
.ft .base a { color: #c4cbc2; }

/* mobile sticky prayer bar */
.pbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; display: none; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); text-decoration: none; transform: translateY(140%); transition: transform .3s; }
.pbar.show { transform: none; }
.pbar b { font-family: var(--display); font-size: 17px; }
.pbar span { font-size: 14px; color: #d4e6dc; font-variant-numeric: tabular-nums; }
.pbar .go { margin-left: auto; background: rgba(255,255,255,.15); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
@media (max-width: 920px) {
  .pbar { display: flex; bottom: calc(12px + env(safe-area-inset-bottom)); }
  footer.ft { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }   /* room for the floating prayer bar */
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.preview-badge { position: fixed; bottom: 10px; left: 10px; z-index: 99; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow); pointer-events: none; }
@media (max-width: 640px) {
  .svc { grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px; }
  .svc .ic { grid-row: span 2; width: 44px; height: 44px; }
  .svc h3 { margin: 0; font-size: 17px; }
  .svc p { font-size: 15px; }
  #services .grid { gap: 10px; }
}
