/* ===========================================================================
   Fiqi Group — page-level patterns shared by the sub-pages.
   Loaded after site.css and chrome.css.
   =========================================================================== */

/* Body copy sits at 17px here rather than the 15-16px the old page used:
   this audience reads on budget phones, often outdoors. */
.prose { font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- page hero */

.ph {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 88% -30%, rgba(111, 154, 136, .20), transparent 62%),
    radial-gradient(620px 330px at 2% 8%, rgba(194, 144, 47, .11), transparent 58%);
  pointer-events: none;
}
.ph .wrap { position: relative; }
.ph h1 {
  font-size: clamp(31px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -.016em;
  margin-top: 16px;
}
.ph .lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 62ch;
  margin-top: 18px;
}

/* breadcrumb */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--mint); }
.crumb svg { opacity: .5; }

/* ------------------------------------------------------------ eyebrow */

.eb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mint);
}
.eb::before {
  content: "";
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-fresh);
}

/* -------------------------------------------------------------- sections */

.band { padding: clamp(50px, 6.5vw, 92px) 0; }
.band-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.band-deep { background: var(--grad-deep); color: rgba(255,255,255,.82); }
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep .eb { color: var(--mint-300); }

.sec-title { font-size: clamp(25px, 3.1vw, 38px); line-height: 1.18; letter-spacing: -.012em; margin-top: 14px; }
.sec-lede { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 60ch; margin-top: 14px; }
.sec-head-center { text-align: center; }
.sec-head-center .sec-lede { margin-inline: auto; }
.sec-head-center .eb { justify-content: center; }

/* ----------------------------------------------------------------- cards */

.cards { display: grid; gap: 20px; margin-top: 38px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }

.card2 {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--sh-sm);
  transition: transform .26s cubic-bezier(.22,1,.36,1), box-shadow .26s ease, border-color .26s ease;
}
.card2:hover { transform: translateY(-3px); box-shadow: var(--sh-mint); border-color: var(--mint-200); }
.card2 h3 { font-size: 19.5px; line-height: 1.3; margin-top: 16px; }
.card2 p { font-size: 15px; line-height: 1.68; color: var(--muted); margin-top: 9px; }

.card-ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--mint-50);
  color: var(--mint);
  border: 1px solid var(--mint-100);
}
.card-ic-gold { background: var(--gold-soft); color: #8a5a07; border-color: #f0e0bd; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 14.5px; font-weight: 600;
  color: var(--mint); text-decoration: none;
}
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ stat strip */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 40px;
}
.strip > div { background: var(--surface); padding: 26px 24px; }
.strip .n {
  font-family: Spectral, Georgia, serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.strip .l { font-size: 14px; color: var(--muted); margin-top: 9px; line-height: 1.5; }

/* ------------------------------------------------------------- CTA band */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--grad-mint);
  color: #fff;
  padding: clamp(36px, 5vw, 62px);
  text-align: center;
}
.cta::after {
  content: "";
  position: absolute;
  inset: auto -15% -70% -15%;
  height: 130%;
  background: radial-gradient(50% 58% at 50% 100%, rgba(255,255,255,.2), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(25px, 3.2vw, 38px); line-height: 1.18; color: #fff; }
.cta p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.68; max-width: 56ch; margin: 14px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--mint-800);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
  transition: transform .15s ease;
}
.btn-white:active { transform: translateY(1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  font-weight: 600; font-size: 15.5px;
  padding: 12px 25px; border-radius: 999px; text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ------------------------------------------------------------ split rows */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.split-rev > *:first-child { order: 2; }
.split img, .split image-slot { width: 100%; border-radius: var(--r-xl); }

/* --------------------------------------------------------------- list */

.ticks { display: grid; gap: 13px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--ink-2); list-style: none; }
.ticks svg { flex: none; margin-top: 3px; color: var(--mint); }

/* ------------------------------------------------------------ accordion */

.acc { border-top: 1px solid var(--line); margin-top: 30px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; list-style: none;
  padding: 20px 2px; font-size: 17.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-size: 23px; font-weight: 400; color: var(--mint);
  transition: transform .22s ease;
}
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 2px 22px; font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 72ch; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-rev > *:first-child { order: 0; }
}
@media (max-width: 560px) {
  .ph { padding-top: 38px; }
  .card2 { padding: 22px 20px 24px; }
  .strip > div { padding: 22px 20px; }
  .cta { border-radius: var(--r-xl); }
}

/* --------------------------------------------- captioned header images ---
   Third-party photographs always carry a caption naming the place and the
   source, so on an accountability site nobody mistakes an illustration for
   evidence of the organisation's own work. */
.ph-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
.ph-fig { margin: 0; }
.ph-fig img {
  /* height:auto matters: the height attribute (kept to stop layout shift)
     otherwise pins the box at 800px and aspect-ratio is ignored. */
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--r-xl);
  box-shadow: 0 30px 60px -36px rgba(20, 43, 35, .55);
  filter: saturate(.92);
}
.ph-fig figcaption { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.ph-fig figcaption b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 900px) { .ph-split { grid-template-columns: 1fr; } .ph-fig img { aspect-ratio: 16 / 10; } }

/* --------------------------------------------- accountability: statement */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xs-feed { max-width: 760px; margin: 34px auto 0; }
.xs-empty { margin-top: 34px; text-align: center; padding: 40px 26px; }
.xs-empty p { color: var(--muted); font-size: 16px; margin: 0; }
.xs-statement { margin-top: 34px; display: grid; gap: 20px; }
.xs-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.xs-kpis > div { background: var(--surface); padding: 20px 22px; display: grid; gap: 4px; }
.xs-kpis span { font-size: 13px; color: var(--muted); }
.xs-kpis b { font-size: clamp(20px, 3vw, 28px); font-variant-numeric: tabular-nums; }
.xs-funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.xs-fund { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.xs-fund h3 { font-size: 15px; margin: 0 0 10px; }
.xs-zakat { border-color: #c9d9e3; background: #f6f9fb; }
.xs-fund dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; font-size: 14px; }
.xs-fund dt { color: var(--muted); }
.xs-fund dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.xs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.xs-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.xs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.xs-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.xs-k-in, .xs-b-in { background: var(--mint-500); }
.xs-k-out, .xs-b-out { background: var(--gold); }
.xs-csv { font: inherit; font-size: 14px; font-weight: 600; color: var(--mint); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 14px; cursor: pointer; }
.xs-csv:hover { background: var(--mint-tint); }
.xs-tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.xs-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.xs-tbl th, .xs-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: start; }
.xs-tbl thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.xs-tbl tbody tr:last-child th, .xs-tbl tbody tr:last-child td { border-bottom: 0; }
.xs-tbl tbody th { font-weight: 600; }
.xs-tbl .r { text-align: end; }
.xs-tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.xs-viz { width: 28%; }
.xs-viz .xs-b { display: block; height: 7px; border-radius: 0 4px 4px 0; min-width: 0; }
.xs-viz .xs-b + .xs-b { margin-top: 3px; }
.xs-note { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
  .xs-kpis { grid-template-columns: 1fr; }
  .xs-viz, .xs-legend { display: none; }
  .xs-head { justify-content: flex-end; }
  .xs-tbl { min-width: 0; font-size: 13.5px; }
  .xs-tbl th, .xs-tbl td { padding: 11px 10px; }
  .xs-kpis > div { padding: 14px 18px; grid-template-columns: 1fr auto; align-items: baseline; }
  .xs-kpis b { font-size: 20px; }
}

/* ------------------------------------------- get-involved band (taageer) */
.cta .cta-grid { text-align: start; }
.cta .cta-actions { justify-content: flex-start; }
a.way { text-decoration: none; color: inherit; }
a.way:focus-visible { outline: 2px solid #e8c987; outline-offset: 2px; }

/* ------------------------------------------------------ campaigns empty */
.ol-empty { max-width: 640px; margin: 20px auto 0; padding: 36px 32px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.ol-empty h3 { font-size: 22px; margin: 0 0 10px; }
.ol-empty p { color: var(--ink-2); line-height: 1.65; margin: 0 auto; max-width: 52ch; }
.ol-empty ul { list-style: none; padding: 0; margin: 20px auto 0; display: grid; gap: 8px; max-width: 360px; text-align: start; }
.ol-empty li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.ol-empty li::before { content: ""; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-700); font-size: 12px; font-weight: 700; flex: none; }
.ol-empty-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ------------------------------------------------------ zakat calculator */
.zk { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.zk-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 18px; }
.zk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.zk-f { display: grid; gap: 6px; align-content: start; }
.zk-l { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.zk-in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.zk-in:focus-within { outline: 2px solid var(--mint-400); outline-offset: 1px; }
.zk-in i { font-style: normal; padding: 0 0 0 12px; color: var(--muted); font-weight: 600; }
.zk-in input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; padding: 0 12px 0 6px; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; background: transparent; }
.zk-f small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.zk-minus .zk-in { background: #fbf6f4; }
.zk-extra { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.zk-nisab { margin: 0; font-size: 14px; color: var(--ink-2); }
.zk-check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.zk-check input { width: 18px; height: 18px; accent-color: var(--mint); }

.zk-out { position: sticky; top: 96px; background: var(--grad-deep); color: rgba(255,255,255,.85); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 10px; }
.zk-out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.zk-out dt { color: rgba(255,255,255,.65); }
.zk-out dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; color: #fff; }
.zk-due-l { margin: 10px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #e8c987; font-weight: 700; }
.zk-due { font-family: Spectral, Georgia, serif; font-size: clamp(36px, 5vw, 48px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.zk-note { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); }
.zk-give { display: grid; gap: 8px; margin-top: 6px; }
.zk-give:empty { display: none; }
.zk-give-h { margin: 6px 0 0; font-weight: 600; color: #fff; font-size: 14px; }
.zk-camp { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background .16s ease; }
.zk-camp:hover { background: rgba(255,255,255,.14); }
.zk-camp span { display: grid; gap: 2px; min-width: 0; }
.zk-camp b { font-size: 14.5px; }
.zk-camp small { font-size: 12.5px; color: rgba(255,255,255,.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-camp em { font-style: normal; font-weight: 700; color: #e8c987; white-space: nowrap; font-size: 14px; }
.zk-btn { display: inline-flex; justify-content: center; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.zk-btn-sec { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.zk-fine { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.55); }

@media (max-width: 900px) {
  .zk { grid-template-columns: 1fr; }
  .zk-out { position: static; }
}
@media (max-width: 560px) {
  .zk-fields { grid-template-columns: 1fr; }
  .zk-form, .zk-out { padding: 20px 18px; }
}
@media (min-width: 561px) {
  .zk-l { min-height: 2.9em; display: flex; align-items: flex-end; }   /* inputs line up across a row */
}

/* the tick is a line icon (mask) in the text colour, not a character */
.ol-empty li::before { color: inherit; background: currentColor !important; border-radius: 0 !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 10.3 3.6 3.6 7.4-7.6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 10.3 3.6 3.6 7.4-7.6'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* privacy policy details */
.pv-h { font-size: 19px; margin: 30px 0 10px; }
.pv-table { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.pv-table > div { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 14.5px; }
.pv-table > div:last-child { border-bottom: 0; }
.pv-table b { font-weight: 600; }
.pv-table small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .pv-table > div { grid-template-columns: 1fr; gap: 2px; } }
