/* Jood prototype styles. Arabic, right to left, mobile first. */

:root {
  --page: #E9E5DC;
  --bg: #F7F5EF;
  --surface: #FFFDF8;
  --surface-2: #F1F1E9;
  --ink: #23372F;
  --ink-2: #58645B;
  --ink-3: #68726A;
  --line: #E0E2D7;

  --green: #285C4D;
  --green-d: #1D443A;
  --green-l: #E8EEE7;
  --cobalt: #4E667B;
  --cobalt-l: #EBEFF3;
  --brass: #B49A65;
  --brass-d: #806635;
  --brass-l: #F4EEDD;
  --terra: #9C5945;
  --terra-l: #F5E9E3;
  --mang: #26362F;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 26px;

  /* Clear UI text, with the owner's Maghribi font for titles and the wordmark. */
  --naskh: "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  --kufi: var(--naskh);
  --brand-font: "Maghribi Assile", "Geeza Pro", serif;
  --title-font: "Maghribi Assile", var(--naskh);
  --ayah-font: "Amiri Quran", "Geeza Pro", serif;

  --tab-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--naskh);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--title-font); font-weight: 600; line-height: 1.5; margin: 0; }
p { margin: 0; }
.home-ayah { margin: 18px 18px 22px; padding: 12px 14px 18px; text-align: center; color: var(--green-d); border: 1px solid #E6DDC8; border-radius: 22px; background: linear-gradient(145deg, #FFFCF4, #F3EEDC); }
.home-ayah .ayah-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--brass); margin: 0 0 4px; }
.home-ayah .ayah-ornament::before, .home-ayah .ayah-ornament::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .55; }
.home-ayah blockquote { margin: 0 auto 4px; max-width: 26ch; font-family: var(--ayah-font); font-size: 27px; font-weight: 400; line-height: 2.2; text-wrap: balance; font-synthesis: none; }
.home-ayah figcaption { font-size: 10.5px; color: var(--brass-d); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--kufi); font-variant-numeric: tabular-nums; }
.ic { flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Stage: phone on desktop, full screen on phones ---------- */
.stage {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 32px 24px;
}
.side {
  width: 300px;
  max-height: calc(100vh - 64px);
  overflow: auto;
  position: sticky;
  top: 32px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 22px 20px;
  border: 1px solid var(--line);
}
.side h1 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.side .lead { font-size: 14px; color: var(--ink-2); margin: 8px 0 14px; line-height: 1.7; }
.side h2 { font-size: 14px; color: var(--ink-3); font-weight: 500; margin: 18px 0 4px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 5px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14.5px;
}
.side li a:hover { background: var(--surface-2); }
.side li a.on { background: var(--green-l); color: var(--green-d); font-weight: 600; }
.tag-later { font-size: 11.5px; color: var(--brass-d); background: var(--brass-l); padding: 0 7px; border-radius: 99px; white-space: nowrap; }
.side .reset { margin-top: 18px; width: 100%; }

.device {
  width: 392px;
  height: 846px;
  flex: none;
  border-radius: 52px;
  padding: 11px;
  background: var(--mang);
  box-shadow: 0 0 0 2px #463d3e inset, 0 30px 60px -20px rgba(19, 36, 31, .45);
  position: sticky;
  top: 32px;
}
.app {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  padding-top: env(safe-area-inset-top);
}

@media (max-width: 860px) { .side { display: none; } }
@media (max-width: 520px) {
  .stage { padding: 0; display: block; }
  .device { width: 100%; height: 100dvh; border-radius: 0; padding: 0; background: none; box-shadow: none; position: static; }
  .app { border-radius: 0; }
}

/* ---------- Screens ---------- */
#view { position: relative; flex: 1; min-height: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.screen.enter { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.pad { padding: 0 18px; }
.stack > * + * { margin-top: 14px; }
.space { height: 28px; }

/* Top bar */
.topbar {
  flex: none;
  height: 58px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  background: var(--bg);
}
.topbar.solid { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 21px; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .slot { width: 44px; display: flex; justify-content: center; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.iconbtn:hover { background: rgba(19, 36, 31, .06); }
.iconbtn.glass { background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(19, 36, 31, .12); }
.iconbtn .dot { position: absolute; transform: translate(-9px, -9px); width: 9px; height: 9px; border-radius: 50%; background: var(--terra); border: 2px solid var(--green-d); }
.iconbtn { position: relative; }

/* Tab bar */
.tabbar {
  flex: none;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  position: relative;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; line-height: 1.5; color: var(--ink-2); min-width: 0;
}
.tabbar a.on { color: var(--green-d); font-weight: 700; }
.nav-icon { width: 48px; height: 32px; display: grid; place-items: center; border-radius: 14px; transition: background .15s; }
.tabbar a.on .nav-icon { background: var(--green-l); }
.tabbar a.on .ic { stroke-width: 1.9; }
.tabbar .star-tab { position: relative; gap: 0; color: var(--ink-2); font-weight: 500; }
.tabbar .star-tab.on { color: var(--green-d); font-weight: 700; }
.star-btn {
  position: relative;
  width: 32px; height: 32px; display: grid; place-items: center;
}
.star-btn > svg { position: absolute; inset: 0; }
.star-btn .inner { position: relative; display: grid; place-items: center; }
.star-btn .inner svg { display: block; }
.tabbar a > span:last-child { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; height: auto; padding: 10px 22px; border-radius: 14px; line-height: 1.7;
  font-family: var(--kufi); font-weight: 600; font-size: 17px;
  background: var(--green); color: #fff;
  transition: background .15s;
}
.btn:hover { background: var(--green-d); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--green-l); }
.btn.soft { background: var(--green-l); color: var(--green-d); }
.btn.brass { background: var(--brass-d); color: #fff; }
.btn.brass:hover { background: var(--brass-d); }
.btn.danger { background: var(--terra-l); color: var(--terra); }
.btn.sm { min-height: 44px; height: auto; font-size: 15px; padding: 0 16px; border-radius: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--green); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.cta-bar {
  flex: none;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.cta-bar .btn { flex: 1; }
.cta-bar .iconbtn { box-shadow: inset 0 0 0 1.5px var(--line); width: 52px; height: 52px; border-radius: 14px; }

/* Section heading */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 18px 12px; }
.sec-h h2 { font-size: 20px; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: 99px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px; white-space: nowrap;
}
.chip.on { background: var(--green); color: #fff; box-shadow: none; }

/* Cards and surfaces */
.card { background: var(--surface); border-radius: var(--r-md); padding: 16px; }
.card.line { box-shadow: inset 0 0 0 1px var(--line); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.hint { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }

/* Arch-shaped cover */
.arch {
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
  mask: var(--arch-mask) center / 100% 100% no-repeat;
}
.cover { position: relative; display: grid; place-items: center; overflow: hidden; }
.medallion { position: relative; display: inline-grid; place-items: center; }
.medallion > svg { position: absolute; inset: 0; }
.medallion-ic { position: relative; display: grid; place-items: center; }
.logo { position: relative; display: inline-grid; place-items: center; }
.logo svg { position: absolute; inset: 0; }
.logo-word { position: relative; font-family: var(--kufi); font-weight: 700; line-height: 1; margin-top: -2px; }

/* Progress */
.bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); }
.bar i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 99px; background: var(--green); }
.bar b { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(50%, -50%); display: block; }
.bar b svg { display: block; }
.prog-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.prog-meta strong { font-family: var(--kufi); font-size: 16px; color: var(--ink); font-weight: 600; }

/* Featured campaigns: one complete card at a time, with explicit pagination. */
.carousel { display: flex; gap: 12px; overflow-x: auto; margin: 0 18px; padding: 0 0 2px; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.carousel::-webkit-scrollbar { display: none; }
.ccard { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ccard:focus-visible { outline-offset: -3px; }
.campaign-photo { height: 170px; position: relative; overflow: hidden; flex: none; }
.campaign-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campaign-category { position: absolute; bottom: 12px; right: 12px; display: flex; padding: 4px 10px; background: var(--surface); border: 1px solid #ffffff80; border-radius: 8px; }
.campaign-category .cause-tag { font-size: 12px; }
.ccard .body { padding: 16px; display: flex; flex: 1; flex-direction: column; }
.ccard h3 { font-size: 19px; line-height: 1.65; margin: 0; text-wrap: pretty; }
.ccard .title-number { font-family: var(--naskh); font-size: .85em; }
.ccard .org { font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; display: flex; align-items: center; gap: 6px; line-height: 1.7; }
.campaign-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: auto; }
.campaign-amounts > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.campaign-amounts > div:last-child { text-align: left; }
.campaign-amounts span { font-size: 13px; color: var(--ink-2); }
.campaign-amounts strong { display:flex; align-items:baseline; gap:5px; color:var(--green-d); font-family:var(--naskh); font-size:20px; font-weight:600; white-space:nowrap; font-variant-numeric:lining-nums tabular-nums; line-height:1.7; }
.campaign-amounts > div:last-child strong { color:var(--ink-2); font-size:20px; justify-content:flex-end; }
.campaign-amounts small { font-size:12px; font-weight:400; }
.campaign-meter { display: flex; gap: 12px; align-items: center; margin-top: 9px; }
.campaign-meter .bar { flex: 1; height: 5px; }
.campaign-meter > span { font-size: 11px; font-weight: 600; color: var(--green-d); }
.campaign-action { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; color: var(--green); font-size: 13px; font-weight: 600; }
.campaign-pagination { display: flex; justify-content: center; gap: 0; margin: 8px 0 0; }
.campaign-pagination button { width: 36px; height: 32px; display: grid; place-items: center; }
.campaign-pagination button > span { display: block; width: 6px; height: 6px; border-radius: 5px; background: #B9C4B9; transition: width .15s; }
.campaign-pagination button[aria-pressed="true"] > span { width: 22px; background: var(--green); }
@media (max-width: 350px) { .ccard .body { padding: 14px; } .ccard h3 { font-size: 18px; } .campaign-amounts strong { font-size: 17px; } .campaign-amounts > div:last-child strong { font-size:17px; } }
.cause-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }

/* Campaign row (lists) */
.crow { display: flex; gap: 14px; padding: 12px; background: var(--surface); border-radius: var(--r-md); }
.crow .thumb { width: 84px; height: 104px; flex: none; }
.crow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crow h3 { font-size: 16px; margin: 2px 0 2px; }
.crow .org { font-size: 13px; color: var(--ink-2); }
.crow .bar { margin-top: auto; }
.list > * + * { margin-top: 10px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 1px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--green-l); color: var(--green-d); }
.pill.info { background: var(--cobalt-l); color: var(--cobalt); }
.pill.wait { background: var(--brass-l); color: var(--brass-d); }
.pill.bad { background: var(--terra-l); color: var(--terra); }
.pill.mute { background: #E7ECE9; color: var(--ink-2); }

/* Verified line */
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--green-d); }

/* Ornamental divider: brass rule with a star */
.orn { display: flex; align-items: center; gap: 10px; color: var(--brass); margin: 18px 0; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }

/* Authorisation panel */
.auth {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: inset 0 0 0 1.5px #E3CF9F;
}
.auth-h { display: flex; align-items: center; gap: 8px; color: var(--brass-d); }
.auth-h h3 { font-size: 16.5px; color: var(--ink); }
.auth dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14.5px; }
.auth dt { color: var(--ink-3); }
.auth dd { margin: 0; font-weight: 600; }
.auth .foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E3CF9F; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }

/* Segmented tabs */
.seg { display: flex; background: var(--green-l); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(19, 36, 31, .12); }

/* Timeline */
.tl { position: relative; padding-right: 22px; }
.tl::before { content: ""; position: absolute; right: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; right: -21px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--green); }
.tl-item.done::before { background: var(--green); }
.tl-item.todo::before { box-shadow: inset 0 0 0 2px var(--line); }
.tl-item .when { font-size: 13px; color: var(--ink-3); }

/* Budget rows */
.brow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.brow:last-child { border-bottom: 0; }
.brow .amt { font-family: var(--kufi); white-space: nowrap; }
.brow.total { font-weight: 700; }
.meter { height: 6px; border-radius: 99px; background: #E4EBE7; margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cobalt); border-radius: 99px; margin-right: 0; margin-left: auto; }

/* Forms */
.field { display: block; }
.field > span { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.input {
  width: 100%; height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--surface); padding: 0 14px; font-size: 16px; outline: none;
}
textarea.input { height: 110px; padding: 12px 14px; resize: none; line-height: 1.7; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
.input.ltr { direction: ltr; text-align: right; }
.input-group { display: flex; gap: 8px; }
.prefix { height: 52px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1.5px solid var(--line); direction: ltr; font-family: var(--kufi); }
.searchbox { position: relative; }
.searchbox .ic { position: absolute; right: 14px; top: 15px; color: var(--ink-3); }
.searchbox .input { padding-right: 44px; height: 50px; }

/* Switch */
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.switch-row .txt { flex: 1; }
.switch-row .txt b { display: block; font-weight: 600; font-size: 15.5px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #CBD5CF; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(-20px); }
.switch input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

/* Radio cards */
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.opt input { accent-color: var(--green); width: 20px; height: 20px; margin: 0; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green); background: #F6FBF9; }

/* Amount picker */
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amt-btn {
  height: 64px; border-radius: var(--r-sm); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--kufi); font-size: 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.amt-btn small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.amt-btn.on { background: var(--green); color: #fff; box-shadow: none; }
.amt-btn.on small { color: #DCEFE9; }
.big-amount { font-family: var(--kufi); font-size: 40px; font-weight: 700; text-align: center; line-height: 1.2; }
.big-amount small { font-size: 18px; font-weight: 500; color: var(--ink-2); }

/* Menu rows */
.menu { background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; width: 100%; text-align: right; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow .mi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--green); flex: none; }
.mrow .mt { flex: 1; font-size: 15.5px; }
.mrow .mt small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.mrow .chev { color: var(--ink-3); }

/* Home header */
.home-head { position: relative; color: #fff; padding: 12px 18px 26px; }
.home-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 68, 58, .80) 0%, rgba(29, 68, 58, .97) 75%); z-index: 0; }
.home-head > * { position: relative; z-index: 1; }
.home-top { display: flex; justify-content: space-between; align-items: center; }
.home-head h1 { font-size: 27px; margin-top: 22px; }
.home-head p { color: #E1E9DA; font-size: 15px; margin-top: 4px; max-width: 30ch; }
.home-head .iconbtn { color: #fff; }
.quick { margin: -70px 14px 0; position: relative; z-index: 2; background: var(--surface); border-radius: var(--r-lg); padding: 18px 16px 16px; box-shadow: 0 12px 30px -14px rgba(29, 68, 58, .45); }
.home-ayah + .quick { margin-top: 0; }
.quick h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.quick .chips { padding: 0; margin: 12px 0; }

/* Cause tiles: the tile sample board */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 18px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.tile .sw { width: 100%; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255,255,255,.65); }
.tile.on .sw { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--green); }
.tile .sw img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.category-image-note { margin: 10px 18px 0; color: var(--ink-2); font-size: 12px; line-height: 1.6; }

/* Quick giving: image-led selection with one consistent content edge. */
.quick-screen { background: var(--bg); }
.quick-screen .topbar { background: var(--bg); border-bottom: 1px solid var(--line); height: 54px; }
.quick-screen .topbar h1 { font-size: 18px; font-weight: 700; }
.quick-content { padding: 18px 20px 0; }
.quick-intro { font-family: var(--title-font); font-size: 21px; line-height: 1.7; font-weight: 700; }
.quick-intro > span { display: block; font-family: var(--naskh); font-size: 12px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.step-number { font-family: var(--naskh); }
.quick-section { margin-top: 22px; }
.quick-heading { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.8; margin: 0 0 12px; }
.step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #E8EEE7; color: var(--green-d); font-size: 12px; font-variant-numeric: tabular-nums; }
.quick-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.quick-heading-row .quick-heading { margin: 0; }
.quick-content > .quick-heading-row { margin-top: 24px; }
.currency-label { font-size: 10.5px; color: var(--ink-2); }
.cause-picker { padding: 0; gap: 14px 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cause-picker .tile { min-width: 0; gap: 7px; font-size: 12px; line-height: 1.7; font-weight: 600; }
.cause-picker .sw { position: relative; aspect-ratio: 1.12; border-radius: 15px; box-shadow: 0 0 0 1px rgba(19,36,31,.08); }
.cause-picker .sw img { position: absolute; inset: 0; }
.cause-picker .tile.on .sw { outline: 2px solid var(--green); outline-offset: 3px; box-shadow: 0 0 0 1px white; }
.cause-picker .tile.on .tile-label { color: var(--green-d); font-weight: 700; }
.tile-label { min-height: 2.8em; display: flex; align-items: flex-start; justify-content: center; }
.selection-mark { display: none; position: absolute; top: 6px; inset-inline-end: 6px; width: 21px; height: 21px; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 0 0 2px white; place-items: center; }
.tile.on .selection-mark { display: grid; }
.quick-screen .category-image-note { margin: 5px 0 0; font-size: 10px; line-height: 1.8; }
.quick-screen .amt-btn.sm { height: 52px; font-size: 20px; line-height: 1; font-weight: 600; border-radius: 12px; font-variant-numeric: tabular-nums; }
.quick-screen .amt-btn.on { box-shadow: 0 4px 10px rgba(29,68,58,.14); }
.quick-screen .suggest { padding: 14px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 16px rgba(19,36,31,.03); }
.suggest-photo { width: 84px; height: 104px; flex: none; object-fit: cover; border-radius: 12px; }
.quick-screen .crow { gap: 12px; }
.quick-screen .crow h3 { font-size: 13px; line-height: 1.7; margin: 3px 0; }
.quick-screen .crow .org { font-size: 11px; line-height: 1.8; margin-bottom: 12px; }
.quick-screen .cause-tag { font-size: 10px; }
.quick-screen .prog-meta { font-size: 10px; gap: 8px; }
.quick-screen .sg-facts { gap: 7px; margin-top: 14px; padding-top: 12px; }
.quick-screen .verified { font-size: 11px; line-height: 1.9; align-items: flex-start; gap: 6px; }
.quick-screen .verified .ic { margin-top: 2px; }
.quick-screen .link { font-size: 11px; }
.quick-footnote { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font-size: 10px; line-height: 1.9; margin-top: 12px; }
.quick-footnote > .ic { margin-top: 3px; }
.quick-cta { padding: 12px 20px; border-top-color: var(--line); }
.quick-cta .btn { width: 100%; min-width: 0; height: 52px; padding: 0 16px; justify-content: space-between; font-size: 14px; border-radius: 14px; }
.cta-amount { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; }
.cta-amount bdi { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 350px) {
  .quick-content { padding-inline: 16px; }
  .cause-picker { column-gap: 8px; }
  .cause-picker .tile { font-size: 10px; }
  .quick-cta { padding-inline: 16px; }
  .quick-cta .btn { font-size: 13px; padding-inline: 12px; }
}

/* Seasonal banner */
.season { margin: 0 18px; border-radius: var(--r-md); overflow: hidden; display: flex; color: #fff; min-height: 128px; }
.season .txt { flex: 1; padding: 16px; background: linear-gradient(90deg, rgba(78,102,123,.88), #3F586C 45%); position: relative; }
.season .art { width: 110px; flex: none; }
.season h3 { font-size: 19px; }
.season p { font-size: 14px; color: #D9E2F4; margin-top: 4px; line-height: 1.6; }

/* Trust trio */
.trust { margin: 0 18px; background: var(--surface); border-radius: var(--r-md); padding: 4px 16px; }
.trust .ti { display: flex; gap: 12px; padding: 14px 0; }
.trust .ti + .ti { border-top: 1px solid var(--line); }
.trust .ti .ic { color: var(--brass); margin-top: 3px; }
.trust b { font-family: var(--kufi); font-weight: 600; font-size: 16px; display: block; }

/* Detail hero */
.hero { position: relative; height: 250px; flex: none; }
.hero .z { position: absolute; inset: 0; }
.hero .fade { position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero .medallion { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); }
.hero-bar { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.hero-bar .grp { display: flex; gap: 8px; }
.detail-title { font-size: 24px; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.stats > div { background: var(--surface); padding: 10px 8px; text-align: center; }
.stats b { display: block; font-family: var(--kufi); font-size: 18px; font-weight: 600; }
.stats span { font-size: 12.5px; color: var(--ink-2); }

/* Payment page simulation (browser) */
.browser-bar { flex: none; background: #F2F2F2; border-bottom: 1px solid #DDD; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.browser-bar .url { flex: 1; background: #fff; border-radius: 10px; height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 13px; direction: ltr; color: #444; font-family: -apple-system, system-ui, sans-serif; }
.paypage { background: #F7F7F8; }
.paybox { background: #fff; border-radius: 14px; border: 1px solid #E3E3E6; padding: 16px; }
.paybox .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 4px 0; }
.sim-note { font-size: 12.5px; background: #FFF6E0; color: #7A5A12; border-radius: 10px; padding: 8px 12px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }

/* OTP boxes */
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp input { width: 46px; height: 56px; text-align: center; font-family: var(--kufi); font-size: 22px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.otp input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }

/* Success */
.success-art { display: grid; place-items: center; padding: 30px 0 10px; }
.success-art .burst { animation: burst .8s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes burst { from { transform: scale(.5) rotate(-45deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Receipt */
.receipt { background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.receipt .band { height: 22px; }
.receipt .in { padding: 18px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-3); white-space: nowrap; }
.kv span:last-child { font-weight: 600; text-align: left; }

/* Gift card */
.giftcard { border-radius: 22px; overflow: hidden; color: #fff; position: relative; }
.giftcard .gz { height: 120px; display: grid; place-items: center; }
.giftcard .gb { padding: 18px; background: var(--green-d); }
.giftcard .gb h3 { font-size: 21px; }
.giftcard .gb p { color: #E1E9DA; font-size: 14.5px; margin-top: 4px; }
.swatches { display: flex; gap: 12px; }
.swatches button { width: 58px; height: 58px; border-radius: 14px; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--green); }

/* Sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 30; background: rgba(19, 36, 31, .45); display: flex; align-items: flex-end; animation: fadein .18s; }
.sheet { width: 100%; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .24s ease-out; max-height: 88%; overflow: auto; }
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 12px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.share-preview { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--green-l); }
.share-preview .thumb { width: 70px; height: 70px; border-radius: 10px; flex: none; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; padding: 12px 4px; border-radius: 14px; background: var(--surface-2); }

/* Toast */
.toast { position: absolute; left: 16px; right: 16px; bottom: 92px; z-index: 40; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; display: flex; gap: 10px; align-items: center; animation: up .2s ease-out; }

/* Onboarding and splash */
.splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 30px; }
.splash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(29, 68, 58, .35), rgba(29, 68, 58, .92) 70%); }
.splash > * { position: relative; z-index: 1; }
.splash .gate { width: 210px; height: 270px; background: var(--green-d); display: grid; place-items: center; box-shadow: none; }
.splash .verse { font-family: var(--ayah-font); font-size: 24px; line-height: 2; margin-top: 26px; color: #F3E7C6; max-width: 28ch; }
.splash .verse small { display: block; font-size: 13px; color: #BFD9D1; }
.ob-art { height: 330px; display: grid; place-items: center; flex: none; }
.ob-art .arch { width: 230px; height: 300px; display: grid; place-items: center; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .2s; }
.dots i.on { width: 24px; background: var(--green); }

/* Map screen */
.map-group h2 { font-size: 16px; margin: 20px 0 8px; color: var(--ink-2); }

/* Accordions */
details.faq { background: var(--surface); border-radius: var(--r-sm); padding: 0 16px; }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .ic { transition: transform .2s; color: var(--ink-3); transform: rotate(-90deg); }
details.faq[open] summary .ic { transform: rotate(90deg); }
details.faq p { padding-bottom: 14px; color: var(--ink-2); font-size: 15px; }

/* Empty state */
.empty { text-align: center; padding: 40px 24px; }
.empty .medallion { margin-bottom: 12px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--ink-2); font-size: 15px; margin: 6px 0 16px; }

/* Steps (true sequences only) */
.steps { counter-reset: s; }
.steps li { list-style: none; position: relative; padding-right: 40px; margin-bottom: 14px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; right: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-l); color: var(--green-d); font-family: var(--kufi); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps { padding: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Components used by the screens ---------- */
.topbar .slot { width: auto; min-width: 44px; }
.topbar .iconbtn .dot { border-color: var(--bg); }
.seg .segb { flex: 1; height: 38px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); display: grid; place-items: center; }
.seg .segb[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(19, 36, 31, .12); }
.amounts.row4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amt-btn.sm { height: 46px; font-size: 18px; }
.chip.sm { height: 32px; font-size: 13px; padding: 0 12px; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grp-t { font-size: 17px; margin: 22px 0 10px; }
.grp-row { display: flex; justify-content: space-between; align-items: baseline; }
.card-t { font-size: 16.5px; margin-bottom: 8px; }
.field-l { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.stack-tight > * + * { margin-top: 8px; }
.pad-x { margin: 0 18px; }
.chev { color: var(--ink-3); flex: none; }
.link.quiet { color: var(--ink-2); font-weight: 500; }
.iconbtn.is-on { background: var(--green); color: #fff; }

.results-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.crow.flat { padding: 0; background: none; }
.crow .row-top { justify-content: flex-start; gap: 8px; }

.mini { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: var(--r-md); }
.mini-th { width: 46px; height: 56px; flex: none; }
.mini b { display: block; font-family: var(--kufi); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.mini small { color: var(--ink-2); font-size: 13px; }

.org-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: var(--r-md); }
.org-link > span:nth-child(2) { flex: 1; }
.org-link b { display: block; font-weight: 600; font-size: 15.5px; }
.org-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); }

.hero.short { height: 190px; }
.hero-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.verify-card { background: var(--green-l); }
.vc-h { display: flex; gap: 10px; color: var(--green-d); }
.vc-h b { display: block; font-family: var(--kufi); font-weight: 600; }
.vc-h small { color: var(--ink-2); font-size: 13px; }
details.checks { margin: 10px 0 6px; }
details.checks summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--green-d); display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
details.checks summary::-webkit-details-marker { display: none; }
details.checks summary .ic { transform: rotate(-90deg); transition: transform .2s; }
details.checks[open] summary .ic { transform: rotate(90deg); }
details.checks ul, .checklist { list-style: none; margin: 8px 0 0; padding: 0; }
details.checks li, .checklist li { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; line-height: 1.7; }
details.checks li .ic, .checklist li .ic { color: var(--green); margin-top: 4px; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist li b { display: block; font-weight: 600; font-size: 15px; }
.checklist li small { display: block; color: var(--ink-2); font-size: 13.5px; }
.dots-list { margin: 4px 0 8px; padding: 0 18px 0 0; font-size: 14.5px; }
.dots-list li { margin: 4px 0; }
.dots-list li::marker { color: var(--brass); }

.outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.outputs > div { background: var(--surface); border-radius: var(--r-sm); padding: 12px 8px; text-align: center; border-top: 3px solid var(--brass); }
.outputs b { display: block; font-family: var(--kufi); font-size: 22px; font-weight: 700; color: var(--green-d); line-height: 1.3; }
.outputs span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; display: block; }
.stackbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 4px 0 10px; background: #E4EBE7; }
.stackbar i { display: block; height: 100%; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--green-l); color: var(--green-d); font-size: 14.5px; line-height: 1.7; }
.note .ic { margin-top: 3px; }
.note.info { background: var(--cobalt-l); color: var(--cobalt); }
.note.warn { background: var(--brass-l); color: #6E4E12; }
.soft-green { background: #F1F7F4; box-shadow: inset 0 0 0 1px #D3E6DF; }
.sim-note.later { background: var(--brass-l); color: var(--brass-d); }

.report-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: var(--r-md); border-right: 4px solid var(--brass); }
.report-card > span:nth-child(2) { flex: 1; }
.report-card b { display: block; font-family: var(--kufi); font-weight: 600; }
.report-card small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.rc-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brass-l); color: var(--brass-d); display: grid; place-items: center; flex: none; }

.suggest { padding: 12px; }
.sg-facts { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }

.center-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.spin svg { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.screen.browser, .screen.browser .scroll { background: #F7F7F8; }
.bank-mark { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid #E3E3E6; color: #333; font-size: 14px; margin: 0 auto; }

.rc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }

.gift-on { display: flex; align-items: center; gap: 10px; }
.gift-on .mi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brass-l); color: var(--brass-d); flex: none; }
.gift-on .mt { flex: 1; }
.gift-on .mt b { display: block; font-weight: 600; }
.gift-on .mt small { color: var(--ink-3); font-size: 13px; }

.sum-card { border-radius: var(--r-lg); overflow: hidden; margin-top: 4px; }
.sum-in { background: linear-gradient(180deg, rgba(29, 68, 58, .7), rgba(29, 68, 58, .95)); color: #fff; padding: 18px; }
.sum-in span { color: #E1E9DA; font-size: 14px; }
.sum-in b { display: block; font-size: 32px; font-weight: 700; line-height: 1.4; }
.sum-in small { color: #E1E9DA; font-size: 13.5px; }
.card-row { background: var(--surface); border-radius: var(--r-md); margin-top: 12px; }

.drow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.drow + .drow { border-top: 1px solid var(--line); }
.dic { width: 38px; height: 46px; flex: none; }
.dt { flex: 1; min-width: 0; }
.dt b { display: block; font-weight: 600; font-size: 15px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt small { color: var(--ink-3); font-size: 13px; }
.da { display: flex; flex-direction: column; align-items: flex-end; text-align: left; line-height: 1.3; }
.da b { font-size: 17px; font-weight: 600; }
.da small { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }

.nrow { align-items: flex-start; }
.nrow .mt b { font-weight: 600; display: block; }
.nrow .mt small { color: var(--ink-2); }
.nrow .mt small.when { color: var(--ink-3); font-size: 12.5px; }
.nrow.unread { background: #F4FAF7; }
.nrow.unread .mi { background: var(--green); color: #fff; }

.profile-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r-md); padding: 14px; }
.profile-card > div { flex: 1; min-width: 0; }
.avatar { position: relative; width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.avatar svg { position: absolute; inset: 0; }
.avatar b { position: relative; color: #fff; font-family: var(--kufi); font-size: 24px; }
.set-card { padding: 4px 16px; }
.set-card .switch-row + .switch-row { border-top: 1px solid var(--line); }
.mrow .tag-later { margin-inline-start: 4px; }

.gate { border-radius: 0; }
.gate-tag { font-family: var(--kufi); color: #E8C877; font-size: 16px; margin-top: 10px; }
.z-out { margin-top: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.z-out span { font-size: 14px; color: var(--ink-2); }
.z-out b { font-family: var(--kufi); font-size: 20px; }
.z-out.due { background: var(--green-l); }
.z-out.due b { color: var(--green-d); font-size: 26px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: 18px 23px, 13px 23px; background-size: 5px 5px; background-repeat: no-repeat; }


.logo-word { font-family: var(--brand-font); font-weight: 700; margin-top: -4px; }
.sheet:focus { outline: none; }

/* Reference feature organization, with Jood's own colours and imagery. */
.reference-tabs { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 18px; scrollbar-width: none; }
.reference-tabs a { flex: none; display: flex; align-items: center; min-height: 56px; padding: 12px 2px 10px; font-size: 17px; color: var(--ink-2); border-bottom: 3px solid transparent; }
.reference-tabs a[aria-current] { color: var(--green); border-color: var(--green); font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-tile { display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 20px 8px 16px; min-height: 156px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--green-l); color: var(--green); box-shadow: inset 0 0 0 1px #285C4D0D; }
.service-tile h3 { font-size: 18px; line-height: 1.5; }
.service-tile small { font-size: 10px; color: var(--ink-2); }
.concept-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; }
.concept-card h2 { font-size: 23px; }
.concept-card p { font-size: 14px; line-height: 1.9; }
.waqf-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; border-radius: 22px; margin-top: 16px; padding: 28px 16px; background: var(--green-l); color: var(--green-d); }
.waqf-hero h2 { font-size: 27px; }
.waqf-hero p { font-size: 12px; }
.suggestion-link { display: flex; gap: 12px; align-items: center; }
.suggestion-link > span { flex: 1; }
.suggestion-link h2 { font-size: 21px; }
.opportunity-list { display: flex; flex-direction: column; gap: 16px; }
.opportunity-card { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.opportunity-image { min-height: 116px; border-radius: 13px; overflow: hidden; }
.opportunity-image img { width: 100%; height: 100%; min-height: 116px; object-fit: cover; display: block; }
.opportunity-content h2 { font-size: 20px; line-height: 1.65; margin: 6px 0; overflow-wrap: anywhere; }
.opportunity-content .hint { font-size: 10px; }
.opportunity-funding { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.opportunity-funding > div { display: flex; flex-direction: column; gap: 3px; }
.opportunity-funding span { color: var(--green); font-size: 11px; }
.opportunity-funding strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.opportunity-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.opportunity-progress .bar { flex: 1; }
.opportunity-progress > span { font-size: 11px; }
.opportunity-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.opportunity-actions .btn { flex: 1; }
.floating-quick { position: absolute; z-index: 4; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px); left: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 28px; color: #fff; background: var(--green-d); box-shadow: 0 4px 15px #1d443a26; font-size: 12px; }
.with-quick-link > .scroll { padding-bottom: 80px; }
.app.easy-read { --title-font: var(--naskh); }
.app.large-text .scroll { font-size: 18px; }
.app.large-text .scroll p, .app.large-text .scroll label { font-size: 16px; }
.app.large-text .hint, .app.large-text .small, .app.large-text .opportunity-funding span { font-size: 14px; }
.app.large-text .opportunity-funding strong { font-size: 15px; }
@media (max-width: 350px) { .opportunity-card { grid-template-columns: 84px minmax(0, 1fr); padding: 12px; gap: 10px; } .opportunity-content h2 { font-size: 18px; } .home-ayah blockquote { font-size: 25px; } }

/* Homepage editorial direction: warm paper, deliberate hierarchy and compact services. */
.home-screen { background: #F8F6F0; }
.home-scroll { padding-bottom: 24px; }
.home-masthead { display: flex; align-items: center; gap: 10px; padding: 18px 20px 10px; }
.home-masthead .logo-word { font-family: var(--brand-font); }
.home-masthead .iconbtn { width: 44px; height: 44px; color: var(--green-d); }
.home-masthead .dot { width: 6px; height: 6px; border: 0; background: var(--brass-d); }
.home-greeting { flex: 1; min-width: 0; }
.home-greeting > span { font-size: 12px; font-weight: 600; color: var(--green-d); }
.home-greeting small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 1px; }
.eyebrow { display: block; font-family: var(--naskh); font-size: 10px; font-weight: 500; color: var(--ink-2); line-height: 1.6; }
.home-editorial { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 8px; margin: 16px 22px 0; min-height: 205px; }
.home-editorial-copy { position: relative; z-index: 1; }
.home-editorial .eyebrow { color: var(--brass-d); font-size: 11px; margin-bottom: 10px; }
.home-editorial h1 { color: var(--green-d); font-size: 34px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.home-editorial h1 em { font-style: normal; color: #7C6947; }
.home-editorial p { margin-top: 8px; color: var(--ink-2); font-size: 12px; line-height: 1.9; }
.editorial-link { display: inline-flex; gap: 7px; align-items: center; color: var(--green-d); font-size: 11px; font-weight: 600; margin-top: 10px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid #B8C5B8; }
.home-editorial-art { position: relative; min-width: 0; width: 100%; padding: 12px 4px 15px; isolation: isolate; }
.home-editorial-art img { display: block; width: 100%; height: 178px; object-fit: cover; object-position: 53% 55%; border: 5px solid var(--surface); border-radius: 75px 75px 16px 16px; transform: rotate(-5deg); box-shadow: 0 14px 25px -15px #1D443A60; }
.editorial-orbit { position: absolute; inset: 0 -8px 3px 5px; border: 1px solid #C8B78F; border-radius: 100% 100% 48% 55%; transform: rotate(11deg); z-index: -1; }
.editorial-stamp { position: absolute; bottom: 3px; left: -8px; width: 51px; height: 51px; display: grid; place-items: center; background: var(--green-d); color: #F3E7C8; border: 4px solid #F8F6F0; border-radius: 50%; transform: rotate(-8deg); }
.editorial-art-label { position: absolute; top: 0; right: 8px; background: #F0E6CF; padding: 3px 9px; color: #725D35; font-size: 9px; border-radius: 4px; transform: rotate(6deg); }
.home-screen .home-ayah { margin: 20px 22px 22px; padding: 10px 0 16px; border: 0; border-bottom: 1px solid #DFD6C4; border-radius: 0; background: none; }
.home-screen .home-ayah blockquote { font-size: 25px; line-height: 2.25; margin-bottom: 0; }
.home-screen .home-ayah figcaption { font-size: 11px; }
.home-screen .home-ayah .ayah-ornament { margin: 0; }
.home-screen .home-ayah .ayah-ornament::before, .home-screen .home-ayah .ayah-ornament::after { width: 22px; }
.home-quick { margin: 0 18px; padding: 17px 16px 16px; background: var(--surface); border: 1px solid #E5E4D9; border-radius: 20px; box-shadow: 0 10px 26px -20px #23372F40; }
.home-quick-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.home-quick-heading > div { flex: 1; }
.quick-symbol { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: var(--green-l); border-radius: 50%; }
.home-quick-heading h2 { font-size: 20px; line-height: 1.5; }
.home-quick-heading p { font-size: 13px; color: var(--ink-2); }
.quiet-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 13px; font-family: var(--naskh); font-weight: 600; color: var(--green); white-space: nowrap; }
.home-cause-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; }
.home-cause-select > span { font-size: 14px; color: var(--ink-2); }
.home-cause-select select { max-width: 57%; border: 0; color: var(--green-d); background: var(--surface-2); font-family: var(--naskh); font-weight: 600; font-size: 14px; min-height: 44px; padding: 6px 8px; border-radius: 8px; }
.home-quick .amounts { gap: 8px; }
.home-quick .amt-btn { height: 58px; font-size: 19px; border-radius: 10px; line-height: 1.4; background: #F7F7F1; box-shadow: inset 0 0 0 1px #E3E5DA; }
.home-quick .amt-btn small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.home-quick .amt-btn.on { background: var(--green); color: white; box-shadow: none; }
.home-quick .amt-btn.on small { color: #E8EEE7; }
.home-quick-cta { min-height: 54px; height: auto; margin-top: 12px; font-size: 17px; font-weight: 600; line-height: 1.6; border-radius: 10px; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.home-section { margin-top: 36px; }
.home-screen .sec-h { margin: 0 20px 15px; align-items: center; gap: 8px; }
.home-screen .sec-h h2 { font-size: 23px; line-height: 1.6; margin-top: 4px; }
.home-screen .sec-h .eyebrow { color: var(--brass-d); font-size: 11px; }
.home-screen .ccard { border-color: #E0E2D7; }
.home-screen .campaign-photo { height: 185px; }
.home-screen .ccard .body { padding: 14px 16px; }
.home-screen .ccard h3 { font-size: 19px; }
.home-screen .campaign-action { font-size: 15px; min-height: 48px; }
.home-screen .campaign-pagination { margin-top: 4px; }
.home-causes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px; }
.home-cause { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px; background: #FFFDF8; border: 1px solid #E5E5DC; border-radius: 13px; }
.home-cause img { width: 43px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.home-cause > span { flex: 1; min-width: 0; color: var(--green-d); font-size: 15px; font-weight: 600; line-height: 1.7; }
.home-cause > .ic { color: #7C8B7E; }
.home-services { margin-top: 34px; padding: 25px 0 20px; background: #EEF0E8; border-block: 1px solid #E3E7DB; }
.home-services-body { margin: 0 18px; }
.giving-studio { display: flex; flex-direction: column; gap: 11px; }
.service-gift { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; min-height: 175px; overflow: hidden; position: relative; background: #F7EDDB; border: 1px solid #EBDDC3; border-radius: 17px; }
.service-gift-copy { padding: 18px 18px 18px 0; position: relative; z-index: 1; }
.service-kicker { display: block; font-family: var(--naskh); font-size: 12px; color: #755F35; }
.service-kicker small { display: inline-block; margin-inline-start: 5px; font-size: 10px; color: #756F61; border: 1px solid #CFC2A6; border-radius: 4px; padding: 0 4px; }
.service-gift h3 { font-size: 25px; color: #58472B; margin: 9px 0 11px; font-weight: 500; line-height: 1.55; }
.service-text-link { display: inline-flex; gap: 7px; align-items: center; font-family: var(--naskh); font-size: 14px; font-weight: 600; }
.service-gift .service-text-link { color: #715A2F; }
.gift-art { position: relative; height: 158px; width: 100%; color: var(--green); }
.gift-art-orbit { position: absolute; width: 122px; height: 122px; border: 1px solid #D2BF95; border-radius: 50%; top: 15px; left: -5px; }
.gift-paper { position: absolute; display: block; width: 80px; height: 105px; border: 1px solid #E2D6BE; border-radius: 8px; }
.gift-paper.back { top: 24px; left: 18px; background: #DBDDCA; transform: rotate(-17deg); }
.gift-paper.front { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 17px; top: 26px; left: 29px; background: #FFFDF6; transform: rotate(8deg); box-shadow: 0 8px 15px -9px #66522B66; }
.gift-paper-mark { display: grid; place-items: center; margin-bottom: 2px; }
.gift-paper.front i { display: block; width: 39px; height: 2px; border-radius: 2px; background: #DAD2BD; }
.gift-paper.front i + i { width: 27px; }
.gift-seal { position: absolute; bottom: -9px; right: -9px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #F5EDD7; background: var(--green); border: 3px solid #F7EDDB; }
.gift-art-spark { position: absolute; }.gift-art-spark.one { top: 9px; right: 18px; }.gift-art-spark.two { bottom: 6px; left: 10px; }
.service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.service-pair > a { position: relative; overflow: hidden; isolation: isolate; padding: 15px; border-radius: 16px; min-height: 153px; }
.service-recurring { color: #FFFDF8; background: #285446; }
.service-zakat { color: #4D5947; background: #E2E8D7; border: 1px solid #D7DFCB; }
.service-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; gap: 6px; }
.service-panel-top small { font-size: 10px; opacity: .85; }
.service-pair h3 { font-size: 20px; line-height: 1.55; position: relative; z-index: 1; }
.service-pair p { font-family: var(--naskh); font-size: 14px; line-height: 1.8; margin: 4px 0 10px; position: relative; z-index: 1; }
.service-pair .service-text-link { font-size: 14px; position: relative; z-index: 1; }
.recurring-orbit { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 1px solid #6C8D6855; bottom: -72px; left: -48px; box-shadow: 0 0 0 12px #6C8D6815, 0 0 0 25px #6C8D6810; z-index: -1; }
.zakat-ornament { position: absolute; bottom: -24px; left: -24px; color: #BAC5A3; opacity: .55; z-index: -1; }
.service-campaigns { display: flex; align-items: center; gap: 12px; background: #FFFDF8; border: 1px solid #DFE4D7; padding: 15px 13px; border-radius: 14px; }
.campaigns-icon { color: var(--green); width: 38px; height: 43px; display: grid; place-items: center; border-inline-end: 1px solid var(--line); padding-inline-end: 10px; }
.service-campaigns > div { flex: 1; }
.service-campaigns .service-kicker { color: var(--ink-2); font-size: 11px; }
.service-campaigns h3 { color: var(--green-d); font-size: 18px; line-height: 1.6; }
.service-campaigns p { font-family: var(--naskh); color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.service-round-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--green); }
.service-disclosure { border-top: 1px solid #D9E0D0; margin-top: 5px; }
.service-disclosure summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 4px; min-height: 48px; cursor: pointer; color: var(--green-d); font-size: 14px; font-weight: 600; list-style: none; }
.service-disclosure summary::-webkit-details-marker { display: none; }
.service-disclosure summary small { font-size: 12px; font-weight: 400; color: var(--ink-2); margin-inline-start: 8px; }
.service-disclosure[open] summary > .ic { transform: rotate(45deg); }
.service-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.service-disclosure .service-mini-grid { margin-top: 10px; }
.service-mini { display: flex; align-items: center; gap: 7px; padding: 13px 0; border-bottom: 1px solid #DCE2D3; }
.service-mini-icon { color: #5B7565; }
.service-mini > span:nth-child(2) { flex: 1; min-width: 0; }
.service-mini h3 { font-size: 17px; line-height: 1.7; }
.service-mini small { color: var(--ink-2); font-size: 12px; }
.service-mini > .ic { color: var(--ink-2); }
.home-report { display: grid; grid-template-columns: .85fr 1.15fr; margin: 0 18px; background: var(--green-d); color: var(--surface); border-radius: 18px; overflow: hidden; min-height: 205px; }
.home-report-image { position: relative; overflow: hidden; }
.home-report-image img { width: 100%; height: 100%; object-fit: cover; }
.home-report-image > span { position: absolute; bottom: 9px; right: 7px; left: 7px; text-align: center; color: var(--green-d); background: #FFFCF1EB; border-radius: 4px; padding: 4px; font-size: 11px; }
.home-report-copy { padding: 20px 14px; }
.home-report .eyebrow { font-size: 11px; color: #D5C49B; }
.home-report h3 { font-size: 23px; font-weight: 500; line-height: 1.65; margin: 6px 0; }
.home-report p { color: #D6DFD2; font-size: 14px; line-height: 1.9; }
.report-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 9px 12px; border: 1px solid #D5C49B66; border-radius: 10px; background: #FFFFFF08; font-size: 15px; font-weight: 600; line-height: 1.7; margin-top: 16px; color: #F0DEB4; }
.home-season { display: flex; gap: 13px; align-items: center; padding: 18px; margin: 20px 18px 0; border: 1px solid #E3D7BC; border-radius: 15px; background: #F3EDDC; }
.season-moon { color: #8B7240; }
.home-season > div { flex: 1; }
.home-season .eyebrow { font-size: 11px; color: #7D6B48; }
.home-season h3 { font-size: 20px; color: #615137; margin: 2px 0; }
.home-season p { font-size: 12px; color: #756C5A; }
.season-next { color: #7D6B48; }
.home-confidence { text-align: center; padding: 28px 20px 24px; margin: 25px 18px 0; border-block: 1px solid var(--line); }
.home-confidence .eyebrow { font-size: 11px; color: var(--brass-d); }
.home-confidence h2 { font-size: 23px; margin: 5px 0 17px; }
.confidence-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 17px; }
.confidence-steps > span { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 11px; color: var(--ink-2); }
.confidence-steps .ic { color: #6A816F; }
.home-feedback { display: flex; align-items: center; gap: 11px; margin: 24px 20px 0; padding: 0 0 20px; }
.home-feedback > span { color: var(--green); }
.home-feedback > div { flex: 1; }
.home-feedback h3 { font-size: 18px; }
.home-feedback p { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.home-footer { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 12px 20px 10px; }
.home-footer > span { font-family: var(--title-font); font-size: 17px; color: var(--green-d); }
.home-footer p { font-size: 11px; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 350px) {
  .home-masthead { padding-inline: 14px; gap: 6px; }.home-masthead .iconbtn { width: 44px; }
  .home-editorial { margin-inline: 18px; gap: 10px; }.home-editorial h1 { font-size: 30px; }.home-editorial-art img { height: 155px; }
  .home-screen .sec-h h2 { font-size: 21px; }.home-quick-heading h2 { font-size: 18px; }.home-quick-heading .quiet-link { font-size: 13px; }
  .home-causes { gap: 8px; }.home-cause { gap: 6px; padding: 7px; }.home-cause img { width: 34px; height: 43px; }.home-cause > span { font-size: 14px; }
  .service-gift h3 { font-size: 23px; }.gift-paper.front { left: 17px; }.gift-paper.back { left: 7px; }.gift-art-orbit { left: -15px; }
  .service-pair > a { padding: 12px; }.service-pair h3 { font-size: 18px; }.service-mini h3 { font-size: 16px; }
  .home-report h3 { font-size: 20px; }.home-report-copy { padding: 17px 11px; }
}
@media (prefers-reduced-motion: reduce) { .home-screen *, .giving-studio * { scroll-behavior: auto; transition: none; animation: none; } }

/* Small controls stay usable without competing with the campaign artwork. */
.featured-controls { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 8px 18px 0; }
.featured-position { display: flex; flex-direction: column; gap: 1px; color: var(--ink-2); font-size: 9px; }
.featured-position bdi { font-size: 12px; font-weight: 600; color: var(--green-d); font-variant-numeric: tabular-nums; }
.home-screen .featured-controls .campaign-pagination { margin: 0; }
.featured-controls .campaign-pagination button { width: 30px; height: 44px; }
.featured-arrows { display: flex; gap: 4px; }
.featured-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: var(--surface); }
.featured-arrows button:disabled { opacity: .35; cursor: default; background: transparent; }
.home-cause, .giving-studio a, .home-report { transition: border-color .2s, box-shadow .2s, transform .2s; }
@media (hover: hover) {
  .home-cause:hover, .giving-studio a:hover { border-color: #A5B29D; box-shadow: 0 6px 18px -12px #1D443A66; transform: translateY(-2px); }
  .home-report:hover { box-shadow: 0 10px 24px -12px #1D443A80; transform: translateY(-2px); }
  .featured-arrows button:not(:disabled):hover { background: var(--green-l); }
}
@media (prefers-reduced-motion: reduce) {
  .home-cause, .giving-studio a, .home-report { transition: none; transform: none; }
}

/* Gift journey: illustrated selection, readable controls and a keepsake card. */
.gift-picker-scroll { padding: 6px 18px 26px; }
.gift-intro { display: grid; grid-template-columns: 1fr 80px; gap: 12px; align-items: center; padding: 22px 0 25px; }
.gift-intro .eyebrow { font-size: 12px; color: var(--brass-d); }
.gift-intro h1 { font-size: 29px; color: var(--green-d); margin: 8px 0; }
.gift-intro p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.gift-intro-art { width: 80px; height: 108px; display: grid; place-items: center; background: #F0E6CF; color: #947843; border-radius: 40px 40px 12px 12px; transform: rotate(-7deg); }
.gift-intro-art > * { grid-area: 1 / 1; }.gift-intro-art > .ic { color: var(--green); }
.gift-steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); padding: 14px 0; margin: 0 0 25px; border-block: 1px solid var(--line); gap: 8px; }
.gift-steps li { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 12px; color: var(--ink-2); }
.gift-steps b { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #C6CDBF; border-radius: 50%; font-family: var(--naskh); font-size: 12px; }
.gift-steps [aria-current] { color: var(--green-d); font-weight: 600; }.gift-steps [aria-current] b { background: var(--green); color: white; border-color: var(--green); }
.gift-picker-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:10px; }
.gift-picker-heading h2 { font-size:24px; }.gift-picker-heading > span { font-size:12px; color:var(--ink-2); }
.gift-campaigns { display:flex; flex-direction:column; gap:13px; }
.gift-campaign { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:stretch; padding:10px; gap:13px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.gift-campaign > img { width:100%; height:100%; min-height:124px; object-fit:cover; border-radius:11px; }
.gift-campaign > div { padding:3px 0; display:flex; flex-direction:column; align-items:flex-start; }
.gift-campaign .cause-tag { font-size:12px; color:var(--ink-2); }.gift-campaign .cause-tag .ic { width:16px; height:16px; }
.gift-campaign h3 { font-size:20px; line-height:1.65; margin:6px 0 8px; }
.gift-campaign-action { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; margin-top:auto; min-height:40px; border-top:1px solid var(--line); padding-top:7px; color:var(--green); font-size:14px; font-weight:600; }
.gift-picker-note { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-2); padding:22px 4px 0; }
.gift-editor-heading { padding:10px 0 14px; }.gift-editor-heading .eyebrow { color:var(--brass-d); font-size:12px; }
.gift-editor-heading h1 { font-size:28px; margin:8px 0; }.gift-editor-heading p { font-size:14px; color:var(--ink-2); }
.gift-stage-label { display:inline-block; font-size:12px; color:var(--brass-d); background:var(--brass-l); padding:3px 10px; border-radius:20px; }
.gift-editor-page .stack-tight { padding:4px 13px; border:1px solid var(--line); background:var(--surface); border-radius:16px; }
.gift-editor-page .opt { padding-block:12px; }.gift-editor-page .opt b { font-size:15px; }.gift-editor-page .opt small { font-size:12px; margin-top:4px; }
.gift-editor-page .field > span, .gift-editor-page .field-l { font-size:15px; font-weight:600; }.gift-editor-page .input { background:var(--surface); border-radius:12px; font-size:16px; }
.gift-editor-page .swatches button { width:82px; height:68px; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.gift-editor-page .swatches button span { display:block; width:100%; background:var(--surface); color:var(--ink); font-size:12px; padding:2px; }
.gift-editor-page .cta-bar .btn, .gift-finished-page .cta-bar .btn { font-size:15px; min-height:52px; }
.gift-finished-page .cta-bar { flex-wrap:wrap; }.gift-finished-page .cta-bar .btn { flex-basis:140px; }
.keepsake { color:var(--ink); background:#FCF8EB; border:1px solid #D8C9A7; padding:14px; border-radius:18px; box-shadow:0 12px 25px -20px #23372F66; }
.keepsake-inner { position:relative; padding:24px 18px; text-align:center; border:1px solid #D8C9A7; border-radius:10px; overflow:hidden; }
.keepsake-mark { display:flex; align-items:center; justify-content:center; gap:12px; color:var(--gift-accent); margin:4px 0 18px; }.keepsake-mark::before,.keepsake-mark::after { content:''; width:35px; height:1px; background:#C9B78F; }
.keepsake-kicker { font-size:12px; color:var(--ink-2); }.keepsake h3 { font-size:26px; color:var(--gift-accent); line-height:1.8; margin:8px 0; overflow-wrap:anywhere; }
.keepsake-message { font-size:16px; line-height:2; white-space:pre-wrap; overflow-wrap:anywhere; }.keepsake-from { font-size:13px; color:var(--ink-2); margin-top:20px; }
.keepsake-campaign { margin-top:18px; padding-top:15px; border-top:1px solid #DDD2BA; font-size:12px; color:var(--ink-2); line-height:1.9; }
.keepsake-brand { display:block; color:var(--gift-accent); font-family:var(--brand-font); font-size:26px; margin-top:12px; }

/* Programme concepts: distinct editorial identities with a shared readable rhythm. */
.program-page { --concept:#285446; --concept-soft:#E5ECE2; --concept-light:#F0E7CA; }
.program-page.theme-slate { --concept:#3D5B6A; --concept-soft:#E5ECEE; --concept-light:#EBE3CF; }
.program-page.theme-sand { --concept:#715933; --concept-soft:#F1E9D8; --concept-light:#E3D2AA; }
.program-page.theme-terra { --concept:#86533F; --concept-soft:#F0E4D9; --concept-light:#E3C7A5; }
.program-page.theme-plum { --concept:#66536B; --concept-soft:#EDE6ED; --concept-light:#E6D6BE; }
.program-scroll { padding-bottom:24px; }.program-page .topbar { border-bottom:1px solid var(--line); }
.program-hero { position:relative; text-align:center; padding:22px 24px 27px; background:var(--concept-soft); border-radius:0 0 30px 30px; }
.program-status { display:table; margin:0 auto; font-size:12px; color:var(--concept); padding:4px 12px; border:1px solid color-mix(in srgb,var(--concept) 25%,transparent); border-radius:20px; background:#FFFFFF66; }
.program-eyebrow { display:block; font-size:12px; color:var(--concept); margin-top:8px; }
.program-hero h1 { font-size:33px; line-height:1.6; margin:8px 0; color:var(--concept); }
.program-hero > p { font-size:15px; color:var(--ink-2); line-height:1.9; max-width:34ch; margin:auto; }
.program-art { position:relative; height:176px; display:grid; place-items:center; margin:15px auto 10px; color:var(--concept); isolation:isolate; }
.program-orbit { position:absolute; width:174px; height:148px; border:1px solid color-mix(in srgb,var(--concept) 25%,transparent); border-radius:50%; transform:rotate(-20deg); z-index:-1; }
.concept-bill { width:114px; height:144px; background:var(--surface); border-radius:10px; padding:14px; transform:rotate(-7deg); box-shadow:10px 10px 0 #FFFFFF55,0 15px 25px -17px #23372F77; }
.concept-bill > span { display:flex; justify-content:space-between; align-items:center; margin-bottom:13px; }.concept-bill > span i { width:24px; height:5px; background:var(--concept-light); }
.concept-bill > b { display:block; width:100%; height:3px; background:#D5DBD6; margin-bottom:9px; }.concept-bill > b:nth-child(3) { width:65%; }
.concept-bill > div { display:flex; align-items:center; gap:5px; margin-top:16px; }.concept-bill small { font-size:9px; }
.concept-door { position:relative; width:115px; height:156px; border:9px solid var(--concept); border-bottom:0; border-radius:60px 60px 0 0; background:linear-gradient(130deg,#FDF9EA,#DDC795); box-shadow:15px 0 0 #FFFFFF55; overflow:hidden; }
.concept-door > span { position:absolute; inset:17px 0 0 46%; background:var(--concept); transform:skewY(-15deg); transform-origin:bottom; opacity:.8; border-right:1px solid #FFFFFF55; }
.concept-door > svg { position:absolute; top:54px; left:18px; color:#FFFDF8; }
.concept-food { width:220px; height:153px; object-fit:cover; border:6px solid var(--surface); border-radius:70px 70px 14px 14px; transform:rotate(-4deg); box-shadow:0 12px 24px -16px #55412088; }
.concept-seal { display:grid; place-items:center; }.concept-seal > * { grid-area:1 / 1; }.concept-seal > span { display:grid; place-items:center; width:100px; height:100px; background:var(--surface); border-radius:50%; }
.concept-network { position:relative; width:190px; height:155px; border:1px dashed #79917D; border-radius:50%; }
.concept-network > span,.concept-network > i { position:absolute; display:grid; place-items:center; border-radius:50%; border:5px solid var(--concept-soft); }
.concept-network > span { width:80px; height:80px; top:37px; left:55px; color:white; background:var(--concept); }
.concept-network > i { width:50px; height:50px; background:var(--surface); }.concept-network > i:nth-child(2) { top:-16px; left:69px; }.concept-network > i:nth-child(3) { bottom:0; left:-12px; }.concept-network > i:nth-child(4) { bottom:0; right:-12px; }
.concept-chart { width:160px; background:var(--surface); padding:13px 18px; border-radius:15px; transform:rotate(-5deg); box-shadow:0 12px 25px -18px #23372F99; }
.concept-chart > div { display:flex; align-items:flex-end; gap:9px; height:62px; direction:ltr; border-bottom:1px solid var(--line); margin:8px 0; }.concept-chart i { width:23px; height:28%; background:var(--concept); border-radius:4px 4px 0 0; opacity:.7; }.concept-chart i:nth-child(2) { height:58%; }.concept-chart i:nth-child(3) { height:43%; }.concept-chart i:nth-child(4) { height:90%; background:var(--brass); }.concept-chart small { font-size:10px; }
.concept-phone { display:flex; flex-direction:column; align-items:center; gap:10px; width:100px; height:160px; padding:9px; background:var(--surface); border:5px solid var(--concept); border-radius:20px; transform:rotate(8deg); box-shadow:9px 9px 0 #FFFFFF77; }.concept-phone > i { width:25px; height:3px; background:var(--concept); border-radius:3px; }.concept-phone > span { margin-top:10px; }.concept-phone b { font-size:13px; }.concept-phone small { font-size:8px; color:var(--ink-2); }
.program-section { padding:26px 20px 0; }.program-section > h2 { font-size:24px; margin-bottom:17px; }
.program-points { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--surface); }
.program-point { display:flex; gap:13px; padding:18px 15px; }.program-point + .program-point { border-top:1px solid var(--line); }
.program-point-icon { display:grid; place-items:center; flex:none; width:43px; height:43px; color:var(--concept); background:var(--concept-soft); border-radius:13px; }
.program-point > div { position:relative; flex:1; }.program-point h3 { font-size:21px; padding-inline-end:28px; line-height:1.7; }.program-point p { font-size:14px; color:var(--ink-2); line-height:1.85; margin-top:5px; }
.program-point-index { position:absolute; left:0; top:5px; color:var(--concept); opacity:.65; font-size:11px; font-variant-numeric:tabular-nums; }
.program-context { display:flex; gap:10px; margin:22px 20px 0; padding:17px 0; border-block:1px solid var(--line); }.program-context > span { color:var(--concept); padding-top:5px; }.program-context h2 { font-size:21px; }.program-context p { font-size:13px; color:var(--ink-2); line-height:1.9; margin-top:8px; }
.program-faq { margin:12px 20px 0; }.program-faq summary { display:flex; align-items:center; justify-content:space-between; gap:14px; font-size:15px; font-weight:600; min-height:54px; cursor:pointer; list-style:none; }.program-faq summary::-webkit-details-marker { display:none; }.program-faq[open] summary > svg { transform:rotate(45deg); }.program-faq p { font-size:14px; color:var(--ink-2); padding:6px 0 14px; line-height:1.9; }
.program-bottom { padding:20px 20px 0; }.program-bottom .btn { background:var(--concept); font-size:16px; min-height:54px; justify-content:space-between; gap:12px; }.program-back { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; font-size:14px; color:var(--ink-2); margin-top:8px; }
@media(max-width:350px) { .gift-intro { grid-template-columns:1fr 65px; }.gift-intro h1 { font-size:26px; }.gift-intro-art { width:65px; }.gift-campaign { grid-template-columns:72px minmax(0,1fr); gap:10px; }.gift-campaign h3 { font-size:18px; }.gift-campaign-action { font-size:13px; }.program-hero { padding-inline:18px; }.program-hero h1 { font-size:29px; } }
@media(hover:hover) { .gift-campaign:hover { border-color:#A5B29D; background:#F9FAF2; }.program-faq summary:hover { color:var(--concept); } }


/* Generated photographic backgrounds replace the oversized concept emblems. */
.program-photo-hero { display:flex; flex-direction:column; justify-content:flex-end; align-items:center; min-height:440px; padding:235px 22px 26px; isolation:isolate; overflow:hidden; background:#142D25; }
.program-photo-hero::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,#0B1B1620 0%,#0B1B1600 25%,#0B1B1666 47%,#0B1B16EB 70%,#0B1B16FA 100%); }
.program-background { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 35%; z-index:-2; }
.program-photo-hero .program-status { position:absolute; top:20px; right:20px; margin:0; background:#FFFDF8F2; border-color:#FFFFFF88; color:var(--concept); }
.program-photo-hero .program-eyebrow { color:#E6D3A9; font-size:13px; }
.program-photo-hero h1 { color:#FFFDF8; font-size:32px; line-height:1.6; margin:7px 0 10px; }
.program-photo-hero > p { color:#F0F1E9; font-size:15px; }
.generated-art-note { margin:20px 20px 0; color:var(--ink-2); font-size:12px; line-height:1.8; text-align:center; }
.ramadan-photo-hero { height:260px; background:var(--green-d); }.ramadan-photo-hero > img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 45%; }
.campaign-row-photo { border-radius:13px; overflow:hidden; }.campaign-row-photo > img { width:100%; height:100%; object-fit:cover; display:block; }
@media(max-width:350px) { .program-photo-hero { padding-inline:18px; }.program-photo-hero h1 { font-size:29px; } }

.jood-brand { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; flex:none; }
.jood-brand .logo-mark { display:block; object-fit:contain; background:var(--surface); border-radius:20%; flex:none; }
.jood-brand .logo-word { font-family:var(--brand-font); font-weight:500; line-height:1; margin:0; padding-bottom:.12em; }
.home-masthead > a:first-child { flex:none; }.home-masthead .home-greeting > span { line-height:1.8; }

/* Consistent generated campaign photography from discovery through donation. */
.campaign-detail-photo { height:265px; overflow:hidden; }
.campaign-detail-photo > img { width:100%; height:100%; display:block; object-fit:cover; object-position:center 42%; }
.campaign-detail-photo .fade { height:65px; }
.campaign-thumb { display:block; object-fit:cover; border-radius:9px; }
.waqf-photo-hero { position:relative; isolation:isolate; overflow:hidden; padding:0; min-height:350px; justify-content:flex-end; }
.waqf-photo-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 38%; z-index:-2; }
.waqf-photo-hero::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,transparent 25%,#102E2488 57%,#102E24F5 100%); }
.waqf-photo-copy { padding:195px 20px 26px; }.waqf-photo-copy .eyebrow { color:#E6D3A9; font-size:13px; }.waqf-photo-copy h2 { color:var(--surface); font-size:30px; margin:9px 0; }.waqf-photo-copy p { color:#EEF1E7; font-size:14px; }

/* One persistent brand header on every prototype screen. */
.app-header { position:relative; z-index:5; flex:none; display:flex; align-items:center; gap:12px; min-height:76px; padding:12px 16px; background:#FFFDF8; border-bottom:1px solid #E6E7DD; }
.app-brand-link { display:flex; align-items:center; flex:none; padding-inline-end:12px; border-inline-end:1px solid #E0E2D7; min-height:44px; }
.app-header .logo-mark { background:transparent; }.app-header .logo-word { letter-spacing:0; }
.app-header-greeting { flex:1; min-width:0; color:var(--green-d); line-height:1.6; }
.app-header-greeting > span { display:block; font-size:12px; color:var(--ink-2); }.app-header-greeting > strong { display:block; font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.app-header-actions { display:flex; gap:5px; flex:none; }.app-header-actions .iconbtn { position:relative; width:44px; height:44px; border-radius:13px; background:#F2F4ED; color:var(--green-d); }
.header-unread { position:absolute; top:9px; right:9px; width:6px; height:6px; background:var(--brass-d); border:1px solid #F2F4ED; border-radius:50%; }
.screen > .splash { top:76px; }.app-header + .topbar { height:52px; }
.home-screen .home-editorial { margin-top:22px; }
.campaign-amounts bdi { font-family:var(--naskh); font-variant-numeric:lining-nums tabular-nums; letter-spacing:.01em; }
.stats b, .brow .amt, .opportunity-funding strong, .prog-meta, .big-amount, .num { font-variant-numeric:lining-nums tabular-nums; }
@media(max-width:350px) { .app-header { gap:8px; padding-inline:12px; }.app-brand-link { padding-inline-end:8px; }.app-header-actions { gap:3px; }.app-header-greeting > strong { font-size:14px; } }

/* Moroccan courtyard: plaster, a brass arch and a narrow zellige frieze. */
.home-screen { --clay: #A9664D; --plaster: #EFE4D3; }
.home-screen .home-editorial {
  position: relative; isolation: isolate; overflow: hidden;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px; margin: 18px 14px 0; padding: 28px 16px 32px;
  border: 1px solid #E4D8C3; border-radius: 24px 24px 10px 10px;
  background: radial-gradient(ellipse at 90% 0%, #FFFCF3 10%, transparent 65%), linear-gradient(130deg, #F6F0E3, #EDE0CB);
}
.heritage-frieze { position: absolute; inset: auto 0 0; height: 10px; border-top: 2px solid #C0A06C; opacity: .8; }
.home-editorial .eyebrow { font-size: 12px; color: #805B37; margin-bottom: 12px; }
.home-editorial h1 { font-size: 29px; line-height: 1.65; text-wrap: balance; }
.home-editorial h1 > span, .home-editorial h1 > em { display: block; }
.home-editorial h1 em { color: #986046; }
.home-editorial p { font-size: 14px; line-height: 1.9; margin-top: 12px; }
.editorial-link { font-size: 14px; line-height: 1.7; gap: 8px; border-color: #ADBAA5; margin-top: 14px; }
.home-editorial-art { padding: 13px 4px 19px; }
.home-editorial-art img { height: 220px; border: 4px solid #FFF9EC; border-radius: 80px 80px 8px 8px; transform: none; object-position: center 48%; }
.editorial-orbit { inset: 4px -3px 11px; border-radius: 90px 90px 12px 12px; transform: none; border-color: #B99B65; box-shadow: 0 0 0 4px #FFF8E966; }
.editorial-stamp { width: 44px; height: 44px; bottom: 2px; left: -4px; border-width: 3px; }
.editorial-art-label { top: auto; bottom: 40px; right: 9px; left: 9px; text-align: center; padding: 5px 3px; background: #FFF8E8EF; font-size: 11px; transform: none; }
.home-screen .home-ayah { margin-top: 24px; margin-bottom: 26px; }
.home-screen .home-ayah figcaption { font-size: 12px; }
.home-quick-heading { flex-wrap: wrap; }
.home-quick-heading > div { min-width: 130px; }
.home-quick-heading > .quiet-link { margin-inline-start: auto; }
.home-cause { min-height: 80px; padding: 10px; border-radius: 14px; border-bottom: 3px solid #D7C7A8; }
.home-cause img { height: 55px; border-radius: 24px 24px 6px 6px; }
.home-cause:nth-child(2n) { border-bottom-color: #B7C9C4; }
.home-services { position: relative; background: linear-gradient(160deg, #EEF1E8, #E5EADC); border-top: 1px solid #CCD6C1; }
.home-services::before { content: ''; position: absolute; top: 5px; left: 18px; right: 18px; border-top: 1px dashed #B7C4A7; }
.service-mini { min-height: 78px; }
.service-campaigns p { font-size: 14px; }
.home-report { grid-template-columns: .85fr 1.15fr; border: 1px solid #476A54; }
.home-report-copy { min-width: 0; }
.report-cta { padding-inline: 8px; }
.home-season { position: relative; isolation: isolate; overflow: hidden; display: block; min-height: 225px; padding: 28px 22px; color: #FFFCF0; border: 1px solid #8B7652; border-radius: 18px; background: #233E34; }
.season-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; z-index: -2; }
.home-season::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, #112E29F5, #112E29D9 45%, #112E2930); }
.season-moon { display: inline-flex; color: #E7CD94; margin-bottom: 12px; }
.home-season .eyebrow { color: #E8D7AE; font-size: 13px; }
.home-season h3 { color: #FFF8E9; font-size: 26px; max-width: 12ch; line-height: 1.65; margin: 6px 0; }
.home-season p { color: #EEF0E5; font-size: 14px; }
.season-next { position: absolute; bottom: 24px; left: 20px; width: 42px; height: 42px; border: 1px solid #F3E2BC80; border-radius: 50%; display: grid; place-items: center; color: #FFF8E9; }
.home-confidence { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #DED8C8; border-radius: 18px; background: #FFFDF8; padding: 28px 18px 24px; }
.confidence-tile { display: block; position: absolute; top: 0; bottom: 0; right: 0; width: 7px; opacity: .65; }
.home-confidence .eyebrow { font-size: 13px; }
.confidence-steps { gap: 8px; }
.confidence-steps > span { font-size: 13px; }
.confidence-steps .ic { box-sizing: content-box; padding: 10px; background: #F0F1E7; border-radius: 18px 18px 6px 6px; }
.home-feedback p { font-size: 14px; }
.featured-position { font-size: 11px; }
.featured-position bdi { font-size: 14px; }
.home-footer { padding-block: 24px 28px; }
@media(max-width:350px) {
  .home-screen .home-editorial { margin-inline: 10px; padding-inline: 12px; gap: 10px; }
  .home-editorial h1 { font-size: 26px; }
  .home-editorial-art img { height: 205px; }
  .home-editorial p, .editorial-link { font-size: 13px; }
  .home-report { grid-template-columns: 1fr; }
  .home-report-image { height: 170px; }
  .home-report-copy { padding: 20px; }
  .home-report h3 { font-size: 25px; }
  .home-cause { padding: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .screen.enter { animation: none; }
  .scroll, .carousel { scroll-behavior: auto; }
  .btn, .nav-icon { transition: none; }
}
