/* Khalad — black & white, one green dot. Layout: a narrow editorial column, big Manrope type, a phone that shows the product. */
:root {
  --bg: #ffffff;
  --fg: #0c0c0c;
  --muted: #5d5d5a;
  --line: #e6e6e3;
  --soft: #f4f4f2;
  --ink: #0c0c0c;        /* the black band */
  --on-ink: #ffffff;
  --on-ink-muted: #b9b9b5;
  --on-ink-line: #2a2a28;
  --dot: #1b7f47;        /* the brand's single green dot */
  --mark-filter: invert(1); /* the خلد mark is white artwork: black on light pages */
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Markazi Text", "Geeza Pro", "Times New Roman", serif;
  --urdu: "Noto Naskh Arabic", "Geeza Pro", serif; /* Urdu stays in Noto Naskh */
  --wrap: 1080px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b; --fg: #f3f3f1; --muted: #a3a3a0; --line: #262625; --soft: #151514;
    --ink: #f3f3f1; --on-ink: #0b0b0b; --on-ink-muted: #4c4c4a; --on-ink-line: #d6d6d2; --dot: #4ade80; --mark-filter: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --fg: #f3f3f1; --muted: #a3a3a0; --line: #262625; --soft: #151514;
  --ink: #f3f3f1; --on-ink: #0b0b0b; --on-ink-muted: #4c4c4a; --on-ink-line: #d6d6d2; --dot: #4ade80; --mark-filter: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Header */
.top { padding-block: 22px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; filter: var(--mark-filter); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.wordmark i { font-style: normal; color: var(--dot); }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav .pill { color: var(--bg); background: var(--fg); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.nav .pill:hover { color: var(--bg); opacity: .85; }

/* Hero */
.hero { padding-block: 48px 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero h1 { font-weight: 800; font-size: clamp(48px, 8.4vw, 104px); line-height: .95; letter-spacing: -0.055em; margin-block: 18px 26px; }
.hero h1 span { display: block; }
.hero h1 .last i { font-style: normal; color: var(--dot); }
.lede { font-size: 19px; color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid var(--fg); }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { opacity: .88; }
.btn.line:hover { background: var(--soft); }
.btn svg { width: 18px; height: 18px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* The phone */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 19; max-width: 100%;
  border-radius: 46px; background: #0c0c0c; padding: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45);
  border: 1px solid var(--line);
}
.screen {
  height: 100%; border-radius: 36px; background: radial-gradient(120% 70% at 50% 0%, #2a2a28 0%, #121211 60%);
  color: #fff; display: flex; flex-direction: column; align-items: center; padding: 46px 18px 22px; gap: 6px; overflow: hidden;
}
.screen .date { font-size: 13px; color: #cfcfcb; }
.screen .clock { font-size: 76px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.note {
  margin-top: 22px; width: 100%; border-radius: 18px; background: rgba(255,255,255,.12); padding: 12px 14px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; backdrop-filter: blur(8px);
}
.note .ar { font-family: var(--arabic); font-weight: 700; font-size: 16px; }
.note b { display: block; font-size: 15px; }
.note small { color: #cfcfcb; font-size: 12px; }
.note .now { font-size: 11px; color: #cfcfcb; }
.widgets { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w { border-radius: 18px; padding: 12px; min-width: 0; }
.w .k { display: block; font-size: 9px; line-height: 1.3; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.w p { font-size: 12px; line-height: 1.35; margin-top: 6px; }
.w.light { background: #fff; color: #0c0c0c; }
.w.light .k { color: #1b7f47; }
.w.dark { background: #000; color: #fff; border: 1px solid #2c2c2a; }
.w.dark .k { color: #4ade80; }
.bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 50%; background: #4ade80; }

/* Hadith band */
.band { background: var(--ink); color: var(--on-ink); }
.band .wrap { padding-block: 84px; display: grid; gap: 20px; }
.band blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.03em; max-width: 22em; text-wrap: balance; }
.band cite { font-style: normal; color: var(--on-ink-muted); font-size: 15px; }

/* Features */
.section { padding-block: 96px; }
.section h2, .promise h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 14em; }
.intro { color: var(--muted); max-width: 34em; margin-top: 16px; font-size: 18px; }
.grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.item { border-top: 1.5px solid var(--fg); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.item h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.item p { color: var(--muted); font-size: 16px; }

/* Promise: second black band */
.promise { background: var(--ink); color: var(--on-ink); }
.promise .intro { color: var(--on-ink-muted); }
.promise .wrap { padding-block: 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.nos { list-style: none; margin: 0; padding: 0; display: grid; }
.nos li { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--on-ink-line); font-size: 18px; font-weight: 600; }
.nos li:first-child { border-top: 1px solid var(--on-ink-line); }
.nos li span { color: var(--on-ink-muted); font-weight: 400; font-size: 15px; text-align: right; }

/* Islamic app page */
.hero-sm { padding-block: 40px 72px; }
.wrap.one { display: block; }
.wrap.one > * { max-width: 860px; }
.h1-sm { font-weight: 800; font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.05em; margin-block: 18px 22px; }
.section.tight { padding-block: 80px; }
.promise .wrap.block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.table-scroll { overflow-x: auto; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--on-ink-line); }
.cmp thead th { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); font-weight: 600; }
.cmp tbody th { font-weight: 700; width: 22%; }
.cmp tbody td:nth-child(2) { font-weight: 600; width: 39%; }
.cmp tbody td:nth-child(3) { color: var(--on-ink-muted); }

@media (max-width: 640px) {
  .table-scroll:has(.cmp) { overflow: visible; }
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { display: grid; gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--on-ink-line); }
  .cmp th, .cmp td { display: block; width: auto !important; padding: 0; border: 0; }
  .cmp tbody th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
  .cmp td::before { content: attr(data-label) ": "; font-weight: 400; color: var(--on-ink-muted); }
}

/* FAQ */
.faq .wrap { padding-block: 96px 24px; display: grid; gap: 32px; }
.faq h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.qs { display: grid; border-top: 1.5px solid var(--fg); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); flex-shrink: 0; }
.qs details[open] summary::after { content: "\2212"; }
.qs details p { color: var(--muted); padding-bottom: 22px; max-width: 46em; }

/* CTA */
.cta .wrap { padding-block: 96px 100px; display: grid; justify-items: start; gap: 24px; }
.cta h2 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.cta .ar { font-family: var(--arabic); font-size: clamp(40px, 6vw, 72px); line-height: 1.2; color: var(--muted); }

/* Footer */
.foot { background: var(--soft); }
.foot .guides { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.foot .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }
.email { user-select: all; color: var(--fg); }

/* Legal pages */
.legal { padding-block: 40px 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.legal .updated { color: var(--muted); font-size: 15px; margin-top: 14px; }
.legal .summary { margin-top: 36px; background: var(--soft); border-radius: 18px; padding: 24px 26px; display: grid; gap: 10px; }
.legal .summary h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal .summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal section { margin-top: 44px; display: grid; gap: 14px; }
.legal section h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.legal section h3 { font-size: 17px; font-weight: 700; margin-top: 6px; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal p, .legal li { color: var(--fg); }
.legal .muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding-block: 24px 64px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section, .band .wrap, .promise .wrap { padding-block: 64px; }
  .nos li { flex-direction: column; gap: 2px; }
  .nos li span { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 span:nth-child(2) { animation-delay: .08s; }
  .hero h1 span:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

.saw { font-family: var(--arabic); font-weight: 400; letter-spacing: 0; }

/* ---------- Guide and tool pages ---------- */
.guide { padding-bottom: 0; }
.g-hero { padding-block: 40px 28px; }
.g-hero h1 { font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin-block: 14px 16px; max-width: 16em; }
.g-hero .lede { max-width: 36em; }
.g-body { padding-block: 20px 72px; }
.prose { max-width: 760px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.prose h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 20px; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose a { text-underline-offset: 3px; }
.muted { color: var(--muted); }
.big { font-size: 22px; line-height: 1.4; }

.hq { margin: 0; padding: 20px 22px; border-left: 3px solid var(--fg); background: var(--soft); border-radius: 0 14px 14px 0; display: grid; gap: 10px; }
.hq blockquote { margin: 0; font-size: 19px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.hq figcaption { color: var(--muted); font-size: 14px; }

.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 24px 32px; }
.cgroup h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cgroup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.cgroup li { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.cgroup li span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }

.qgrid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.dial { margin: 0; display: grid; gap: 10px; justify-items: center; }
.dial svg { width: 100%; max-width: 300px; height: auto; }
.dial .ring { fill: var(--soft); stroke: var(--fg); stroke-width: 2; }
.dial .cardinal { fill: var(--muted); font: 700 14px var(--body); text-anchor: middle; }
.dial .needle { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; }
.dial .tip { fill: var(--dot); }
.dial .hub { fill: var(--fg); }
.dial figcaption { font-weight: 700; font-variant-numeric: tabular-nums; }

.pt { display: grid; gap: 18px; margin-bottom: 32px; }
.pt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); flex-wrap: wrap; }
.seg button { font: 600 14px var(--body); border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pt-today { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pt-today li { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.pt-today li span { color: var(--muted); font-size: 14px; }
.pt-today li b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pt-today li.next { border-color: var(--fg); background: var(--fg); }
.pt-today li.next span, .pt-today li.next b { color: var(--bg); }
.pt-week { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.pt-week th, .pt-week td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt-week thead th { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

.today-card { display: grid; gap: 6px; padding: 28px; border-radius: 20px; background: var(--ink); color: var(--on-ink); }
.today-card b { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.today-card .muted { color: var(--on-ink-muted); }
.today-card .ar { font-family: var(--arabic); font-size: 22px; color: var(--on-ink-muted); }
.months { columns: 2; column-gap: 32px; }

.wd { display: grid; gap: 0; border-top: 1px solid var(--line); }
.wd-row { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.wd-row em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 15px; }

.dhikrs { display: grid; gap: 0; border-top: 1.5px solid var(--fg); }
.dhikr { display: grid; gap: 8px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.dhikr h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.dhikr .when { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dhikr .translit { font-style: italic; font-size: 18px; }
.dhikr .ref { font-size: 14px; color: var(--muted); }

.tb { display: grid; justify-items: center; gap: 22px; padding-block: 12px 48px; }
.tb-tap { width: min(300px, 78vw); aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); display: grid; place-content: center; gap: 4px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .08s; }
.tb-tap:active { transform: scale(.97); }
.tb-count { font-size: 88px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tb-of { font-size: 15px; opacity: .75; }
.tb-hint { text-align: center; }
.linkish { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.app-cta { background: var(--ink); color: var(--on-ink); }
.app-cta .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.app-cta h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.app-cta p { color: var(--on-ink-muted); max-width: 34em; margin-top: 8px; }
.app-cta > .wrap > div { min-width: 0; flex: 1 1 320px; }
.btn.invert { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.invert:hover { opacity: .9; }

.appbar { display: none; }
@media (max-width: 700px) {
  .appbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg); border-top: 1px solid var(--line); font-size: 14px;
  }
  .appbar a { background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 700; padding: 9px 14px; border-radius: 999px; }
  body:has(.appbar) { padding-bottom: 64px; }
  .qgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pt-today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts div, .wd-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .months { columns: 1; }
}

/* Play Store QR code: for computers. Always dark on white so every phone camera can read it. */
.qr { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #ffffff; color: #0c0c0c; border: 1.5px solid var(--line); }
.qr svg { width: 84px; height: 84px; display: block; }
.qr span { font-size: 13px; font-weight: 700; max-width: 8em; line-height: 1.3; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.app-cta .qr { border-color: transparent; }
@media (max-width: 860px), (hover: none) and (pointer: coarse) { .qr { display: none; } }

.hcal { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hcal th, .hcal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.hcal thead th { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* ── Daily reads ── */
.dr-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.dr-crumbs a { color: inherit; }
.dr-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.dr-hero-cta .muted { font-size: 14px; }
.dr-list { max-width: 820px; }
.dr-toc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.dr-toc summary { cursor: pointer; font-weight: 700; }
.dr-toc ol { margin-top: 12px; }
.dr-items { display: grid; border-top: 1.5px solid var(--fg); }
.dr-item { display: grid; gap: 12px; padding-block: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; min-width: 0; }
.dr-item:target { background: var(--soft); box-shadow: 0 0 0 12px var(--soft); border-radius: 4px; }
.dr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dr-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0; flex: 1 1 12em; }
.dr-n { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.dr-count { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); white-space: nowrap; }
.dr-link { font: 600 13px var(--body); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.dr-link:hover { color: var(--fg); border-color: var(--fg); }
.dr-ar { font-family: var(--arabic); font-weight: 400; font-size: clamp(28px, 5.4vw, 35px); line-height: 1.95; text-align: right; overflow-wrap: anywhere; }
.dr-meaning { font-size: 17px; }
.dr-note { font-size: 15px; padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.dr-quran { display: grid; gap: 18px; min-width: 0; }
.dr-bism { font-family: var(--arabic); font-size: 32px; line-height: 2; text-align: center; }
.dr-ayah { display: grid; gap: 8px; min-width: 0; }
.dr-surah .dr-ayah { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dr-qar { font-family: var(--arabic); font-size: clamp(29px, 5.6vw, 37px); line-height: 2; text-align: right; overflow-wrap: anywhere; }
.dr-num { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding-inline: .2em; border: 1px solid var(--line); border-radius: 999px; font-family: var(--arabic); color: var(--muted); font-size: .55em; line-height: 1; vertical-align: middle; }
.dr-tr-en { font-size: 16px; color: var(--muted); }
.dr-tr-ur { font-family: var(--urdu); font-size: 19px; line-height: 2; color: var(--muted); text-align: right; display: none; }
:root[data-tr="ur"] .dr-tr-ur { display: block; }
:root[data-tr="ur"] .dr-tr-en { display: none; }
.dr-tr { justify-self: start; }
.dr-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; margin-block: 8px; border: 1.5px solid var(--fg); border-radius: 16px; }
.dr-nudge p { flex: 1 1 18em; font-weight: 600; margin: 0; }
.dr-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dr-card { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; height: 100%; }
.dr-card:hover { border-color: var(--fg); }
.dr-card b { font-size: 19px; letter-spacing: -0.01em; }

/* Zakat callout under "Why Khalad" */
.zakat-band { margin-top: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 22px; border: 1.5px solid var(--on-ink-line); background: transparent; color: var(--on-ink); }
.zakat-band h3 { color: var(--on-ink); }
.zakat-band .btn.solid { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.zakat-band > div { max-width: 620px; display: flex; flex-direction: column; gap: 8px; }
.zakat-band h3 { font-size: 22px; }
.zakat-band p { margin: 0; color: var(--on-ink-muted); }
.zakat-band .eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #4ade80; }
@media (max-width: 640px) { .zakat-band { padding: 20px; } .zakat-band .btn { width: 100%; justify-content: center; } }

/* /zakat page */
.zk-intro { max-width: 640px; color: var(--muted); font-size: 17px; margin: 10px 0 22px; }
.zk-sum { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.zk-sum > div { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--bg); }
.zk-sum span { font-size: 13px; color: var(--muted); }
.zk-sum b { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.zk-sum .zk-up { color: #B45309; }
.zk-sum i { align-self: center; font-style: normal; font-size: 22px; font-weight: 700; color: var(--muted); }
.zk-sum .zk-total { background: var(--ink); border-color: var(--ink); }
.zk-sum .zk-total span { color: var(--on-ink-muted); }
.zk-sum .zk-total b { color: var(--on-ink); }
.zk-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.zk-delete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding: 26px 28px; border-radius: 22px; background: var(--soft); }
.zk-delete h3 { font-size: 20px; margin-bottom: 8px; }
.zk-delete p { margin: 0; color: var(--muted); font-size: 15px; }
.zk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zk-steps li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.zk-steps li span { color: var(--muted); }
@media (max-width: 760px) {
  .zk-sum { flex-direction: column; }
  .zk-sum > div { flex: none; flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 16px; }
  .zk-sum b { font-size: 18px; }
  .zk-sum i { align-self: flex-start; padding-left: 16px; font-size: 18px; line-height: 1; }
  .zk-delete { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
}

.zk-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.zk-how li { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid var(--on-ink-line); }
.zk-how .zk-n { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #4ade80; }
.zk-how h3 { font-size: 18px; color: var(--on-ink); }
.zk-how p { margin: 0; color: var(--on-ink-muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 980px) { .zk-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zk-how { grid-template-columns: minmax(0, 1fr); } .zk-how li { padding: 18px; } }
/* On the inverted (light) band in dark mode, the bright green is too pale: use the deep one. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zk-how .zk-n, :root:not([data-theme="light"]) .zakat-band .eyebrow { color: #1b7f47; } }
:root[data-theme="dark"] .zk-how .zk-n, :root[data-theme="dark"] .zakat-band .eyebrow { color: #1b7f47; }

/* /sadaqah-jariyah */
.sj-quote { margin: 0 0 22px; padding: 22px 24px; border-left: 4px solid var(--dot); background: var(--soft); border-radius: 0 18px 18px 0; max-width: 760px; }
.sj-quote blockquote { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 600; }
.sj-quote figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.sj-quote.sj-small { margin-top: 26px; }
.sj-quote.sj-small blockquote { font-size: 16px; }
.zk-how.sj-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sj-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.sj-stages li { position: relative; padding: 26px 16px 0 0; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sj-stages li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 7px; background: var(--bg); border: 2px solid var(--fg); }
.sj-stages li:last-child::before { background: var(--dot); border-color: var(--dot); }
.sj-stages b { font-size: 17px; }
.sj-stages span { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .zk-how.sj-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .sj-stages { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sj-stages li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 22px 22px; }
  .sj-stages li::before { top: 2px; left: -8px; }
  .sj-quote blockquote { font-size: 17px; }
}
.zakat-band + .zakat-band { margin-top: 14px; }
