/* ToTrueIslam.com — shared styles */
:root {
  --emerald: #1F5C4A;
  --emerald-deep: #17463A;
  --emerald-mid: #2E6E5A;
  --sage: #8FB9A8;
  --sage-light: #CFE0D6;
  --mint: #E6F0EA;
  --ivory: #FAF8F2;
  --white: #FFFFFF;
  --gold: #C9A961;
  --gold-light: #E2CF9E;
  --gold-tint: #F3EAD3;
  --gold-ink: #5E4A17;
  --ink: #1E2B26;
  --ink-soft: #33443D;
  --muted: #4A5A53;
  --muted-2: #5B6B64;
  --line: #E1E8E2;
  --serif: 'Amiri SAW', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Amiri SAW', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Scheherazade New', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); }
a:hover { color: var(--emerald-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--emerald-deep); line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--emerald); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 104px; padding-bottom: 104px; }
.section-sm { padding-top: 72px; padding-bottom: 72px; }
.bg-ivory { background: var(--ivory); }
.bg-mint { background: var(--mint); }
.bg-emerald { background: var(--emerald); color: var(--ivory); }
.bg-emerald h1, .bg-emerald h2, .bg-emerald h3 { color: var(--ivory); }
.center { text-align: center; }

.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--emerald); margin-bottom: 12px; }
.bg-emerald .eyebrow { color: var(--gold-light); }
.h-xl { font-size: clamp(44px, 6vw, 72px); line-height: 1.08; }
.h-lg { font-size: clamp(36px, 4.5vw, 52px); }
.h-md { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; }
.lede { font-size: 20px; color: var(--ink-soft); }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 16px; }
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 28px; border-radius: 999px; font-family: var(--sans); font-size: 17px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.btn-primary:hover { background: var(--emerald-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: var(--white); }
.btn-gold { background: var(--gold); color: #17291F; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); color: #17291F; }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: var(--sage-light); }
.btn-ghost-light:hover { background: rgba(250,248,242,.12); color: var(--ivory); }
.btn-soft { background: var(--mint); color: var(--emerald-deep); }
.btn-soft:hover { background: var(--sage-light); color: var(--emerald-deep); }
.btn-sm { min-height: 44px; padding: 9px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); padding: 4px 0; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,242,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--emerald); }
.brand span { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink); padding: 10px 0; }
.nav-links a:hover { color: var(--emerald); }
.nav-links a[aria-current="page"] { color: var(--emerald); font-weight: 600; border-bottom: 2px solid var(--gold); }
.nav-links .btn { color: var(--white); padding: 10px 20px; min-height: 44px; font-size: 16px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--sage-light); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--emerald); }
@media (max-width: 1339px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 12px; text-align: center; }
}

/* Pattern background */
.pattern { position: relative; overflow: hidden; background: var(--mint); }
.pattern > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.pattern > .container, .pattern > .narrow { position: relative; }

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 104px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { max-width: 580px; margin-bottom: 36px; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.arch { width: 100%; max-width: 380px; border-radius: 999px 999px 28px 28px; background: var(--emerald); padding: 14px; box-shadow: 0 30px 60px rgba(23,70,58,.18); }
.arch-inner { border-radius: 999px 999px 18px 18px; border: 1.5px solid var(--gold); padding: 8px; overflow: hidden; }
.arch-inner img { width: 100%; aspect-ratio: 783 / 1174; object-fit: cover; border-radius: 999px 999px 12px 12px; }
.arch-emblem { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 40px 28px; color: var(--mint); }
.arch-emblem p { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; }
.arch-emblem .arabic { font-family: var(--arabic); font-style: normal; font-size: 30px; color: var(--gold-light); }

.page-hero { padding-top: 80px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.1; margin-bottom: 18px; max-width: 860px; }
.page-hero.center h1 { margin-left: auto; margin-right: auto; }
.page-hero .lede { max-width: 680px; }
.page-hero.center .lede { margin: 0 auto; }

/* Verse band */
.verse { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.verse .arabic { font-family: var(--arabic); font-size: clamp(30px, 4vw, 42px); line-height: 1.9; }
.verse .translation { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.5; color: var(--mint); }
.verse .ref { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-paths { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.path-card { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid #DCE7DF; border-radius: 20px; padding: 32px 24px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.path-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,70,58,.10); border-color: var(--sage); color: var(--ink); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.path-card .title { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--emerald-deep); line-height: 1.2; }
.path-card .desc { font-size: 16px; color: var(--muted); line-height: 1.6; }
.path-card .go { font-size: 15px; font-weight: 600; color: var(--emerald); margin-top: auto; }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split.middle { align-items: center; }
.split-narrow { flex: 1 1 340px; min-width: 0; }
.split-wide { flex: 999 1 560px; min-width: 0; }

.author-card { background: var(--ivory); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; box-shadow: 0 12px 32px rgba(23,70,58,.08); }
.author-card .photo { flex: 1 1 220px; max-width: 280px; border-radius: 999px 999px 20px 20px; background: var(--emerald); padding: 8px; }
.author-card .photo img { width: 100%; aspect-ratio: 783 / 1174; object-fit: cover; border-radius: 999px 999px 14px 14px; }
.author-card .body { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.author-card h3 { font-size: 34px; }
.meta { font-size: 15px; font-weight: 600; letter-spacing: 1px; color: var(--muted-2); }

/* Book cover */
.cover { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 6px 16px 16px 6px; background: var(--emerald-deep); padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.25); text-decoration: none; }
.cover-inner { height: 100%; border: 1.5px solid var(--gold); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 18px; text-align: center; color: var(--ivory); }
.cover .t1 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.cover .t2 { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold-light); }
.cover .by { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage-light); line-height: 1.5; }
.cover .bar { width: 36px; height: 1px; background: var(--gold); }
.book-stack { display: flex; justify-content: center; }
.book-stack .b { width: 120px; aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px; padding: 12px; box-shadow: 0 14px 28px rgba(23,70,58,.18); }
.book-stack .b > div { height: 100%; border: 1px solid var(--gold); border-radius: 3px; }
.book-stack .b1 { background: var(--emerald-deep); transform: rotate(-6deg) translateX(24px); }
.book-stack .b2 { width: 140px; background: var(--emerald); position: relative; z-index: 1; box-shadow: 0 18px 36px rgba(23,70,58,.22); }
.book-stack .b3 { background: var(--emerald-mid); transform: rotate(6deg) translateX(-24px); }

.quote-italic { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; }

/* CTA band */
.cta { background: var(--emerald); color: var(--ivory); border-radius: 32px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: var(--ivory); font-size: clamp(30px, 3.6vw, 40px); line-height: 1.2; margin-bottom: 10px; }
.cta p { color: #DCE9E1; }
.cta .copy { flex: 1 1 420px; min-width: 0; }
@media (max-width: 600px) { .cta { padding: 40px 28px; border-radius: 24px; } }

/* Contact form */
.form-card { background: var(--ivory); color: var(--ink); border-radius: 28px; padding: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--emerald-deep); }
.field input, .field select, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1.5px solid var(--sage-light); border-radius: 14px; padding: 12px 16px; min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,92,74,.15); }
.form-note { font-size: 14px; color: var(--muted-2); }
.hidden { display: none; }
@media (max-width: 600px) { .form-card { padding: 28px 22px; } }

/* About page */
.facts { margin: 0; width: 100%; max-width: 400px; background: var(--mint); border-radius: 20px; padding: 24px 28px; display: grid; gap: 14px; font-size: 16px; line-height: 1.5; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--emerald); }
.facts dd { margin: 2px 0 0; }
.bio p + p { margin-top: 22px; }
.pullquote { margin: 40px 0; padding: 32px 36px; background: var(--mint); border-radius: 24px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.45; color: var(--emerald-deep); }
.signature { margin-top: 36px !important; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--emerald); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { background: var(--ivory); border-radius: 18px; padding: 18px 26px; min-width: 150px; }
.stat .n { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--emerald); line-height: 1.1; }
.stat .l { font-size: 15px; color: var(--muted); }

/* Publications */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip { font-family: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; background: var(--white); color: var(--emerald-deep); border: 2px solid var(--sage-light); }
.chip:hover { border-color: var(--sage); }
.chip[aria-pressed="true"] { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.chip .count { opacity: .75; font-weight: 500; }
.decade { margin-bottom: 56px; }
.decade-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.decade-head h2 { font-size: 40px; }
.decade-head .line { flex: 1 1 auto; height: 1px; background: var(--gold); opacity: .6; }
.work { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.work .year { flex: 0 0 104px; font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--emerald); line-height: 1.2; }
.work .info { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.work h3 { font-size: 27px; line-height: 1.25; }
.work .sub { font-size: 17px; color: var(--muted); line-height: 1.6; }
.work .by { font-size: 15px; color: var(--muted-2); }
.work .actions { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: flex-end; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--mint); color: var(--emerald-deep); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.tag-gold { background: var(--gold-tint); color: var(--gold-ink); }
@media (max-width: 700px) { .work .actions { justify-content: flex-start; } }

/* Book page */
.chapter { background: var(--ivory); border-radius: 22px; padding: 30px 28px; display: flex; gap: 20px; }
.chapter .num { flex: 0 0 auto; font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--emerald); line-height: 1; }
.chapter h3 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.chapter p { font-size: 16px; color: var(--muted); line-height: 1.65; }
.term { background: var(--ivory); border-radius: 20px; padding: 26px; }
.term dt { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--emerald-deep); }
.term dd { margin: 6px 0 0; font-size: 16px; color: var(--muted); line-height: 1.65; }
.aside-quote { background: var(--emerald); color: var(--ivory); border-radius: 28px; padding: 40px 36px; align-self: flex-start; }
.aside-quote p.q { margin: 16px 0 20px; font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.4; }
.aside-quote .src { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); }

/* Learn page */
.learn-path { scroll-margin-top: 96px; }
.learn-path + .learn-path { border-top: 1px solid var(--line); }
.learn-path .split-narrow h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 16px; }
.learn-path p + p { margin-top: 18px; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.subnav a { background: var(--ivory); color: var(--emerald-deep); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.subnav a:hover { background: var(--white); }

/* Footer */
.site-footer { background: var(--emerald-deep); color: var(--sage-light); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ivory); margin-bottom: 8px; }
.footer-top p { font-size: 16px; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; font-size: 16px; }
.footer-links a { color: var(--mint); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--emerald-mid); font-size: 14px; color: #B7CEC2; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
}

/* Bismillah banner — slim band across the top of the home page */
.bismillah { background: var(--emerald-deep); color: var(--gold-light); display: flex; align-items: center; justify-content: center; gap: 24px; padding: 6px 24px; }
.bismillah .arabic { font-family: var(--arabic); font-size: 26px; line-height: 1.6; white-space: nowrap; }
.bismillah .line { flex: 1 1 0; max-width: 360px; height: 1px; background: linear-gradient(to right, transparent, var(--gold)); }
.bismillah .line:last-child { background: linear-gradient(to left, transparent, var(--gold)); }
@media (max-width: 600px) { .bismillah { gap: 14px; padding: 4px 16px; } .bismillah .arabic { font-size: 21px; } }

/* Verse inside the hero arch */
.arch-emblem { gap: 18px; padding: 48px 28px 36px; }
.arch-emblem .arabic { font-size: 25px; line-height: 1.9; }
.arch-emblem p:not(.arabic):not(.arch-ref) { font-size: 19px; line-height: 1.45; }
.arch-ref { font-family: var(--sans); font-style: normal !important; font-size: 13px !important; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

/* Legacy section */
.legacy-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: center; }
.legacy-text { display: flex; flex-direction: column; gap: 18px; color: var(--ink-soft); }
.legacy-text h2 { margin-bottom: 6px; }
.legacy-text .text-link { align-self: flex-start; }
.legacy-split .author-card { flex-wrap: nowrap; }
.legacy-split .author-card .photo { flex: 0 0 220px; max-width: 220px; }
.legacy-split .author-card .desc { font-size: 17px; color: var(--ink-soft); }
@media (max-width: 960px) { .legacy-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .legacy-split .author-card { flex-wrap: wrap; justify-content: center; }
  .legacy-split .author-card .photo { flex: 0 1 240px; max-width: 240px; }
}

/* Verse card */
.verse-card { margin: 0; padding: 36px 32px 30px; background: var(--emerald); color: var(--ivory); border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; box-shadow: 0 12px 32px rgba(23,70,58,.14); }
.verse-card .arabic { font-family: var(--arabic); font-size: 24px; line-height: 2; color: var(--gold-light); }
.verse-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--mint); max-width: 420px; }
.verse-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.verse-card figcaption span:first-child { color: var(--gold-light); font-weight: 600; }
.verse-card figcaption span:last-child { color: var(--sage-light); }

/* Verse card beside the biography (About page) */
.verse-card-side { width: 100%; max-width: 400px; padding: 32px 26px 26px; }
.verse-card-side .arabic { font-size: 22px; }
.verse-card-side blockquote { font-size: 19px; }

/* Who is Allah page */
.callig { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.callig img { width: 100%; max-width: 440px; border-radius: 8px; box-shadow: 0 24px 50px rgba(23,70,58,.16); border: 10px solid var(--white); }
.callig figcaption { font-size: 14px; color: var(--muted-2); text-align: center; max-width: 400px; }
.who-list { display: flex; flex-direction: column; gap: 24px; max-width: 920px; margin: 0 auto; }
.who-verse { background: var(--ivory); border-radius: 28px; padding: 40px 44px; display: flex; flex-direction: column; gap: 22px; }
.who-verse .text-link { align-self: flex-start; font-size: 16px; }
.who-head { display: flex; flex-direction: column; gap: 4px; }
.who-ref { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--emerald); }
.who-head h3 { font-size: clamp(26px, 3vw, 32px); }
.who-head h3 span { font-style: italic; font-weight: 500; color: var(--muted-2); }
.quran { font-family: 'Amiri Quran', var(--arabic); font-size: clamp(24px, 3vw, 31px); line-height: 2.3; color: var(--emerald-deep); text-align: center; }
.ayah-num { color: var(--gold); font-size: .8em; white-space: nowrap; }
.clear-quran { font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--ink); text-align: center; }
.who-meaning { background: var(--mint); border-radius: 18px; padding: 20px 24px; color: var(--ink-soft); }
.who-label { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--emerald); margin-bottom: 6px !important; }
.verse-feature { background: var(--emerald); color: var(--ivory); padding: 52px 52px 44px; }
.verse-feature .who-ref, .verse-feature .text-link { color: var(--gold-light); }
.verse-feature .who-head h3 { color: var(--ivory); }
.verse-feature .who-head h3 span { color: var(--sage-light); }
.verse-feature .quran { color: var(--ivory); font-size: clamp(26px, 3.2vw, 34px); }
.verse-feature .who-meaning { background: rgba(250,248,242,.08); color: var(--mint); }
.verse-feature .who-label { color: var(--gold-light); }
@media (max-width: 600px) { .who-verse, .verse-feature { padding: 28px 22px; border-radius: 22px; } }
.translation-en { font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--ink); text-align: center; max-width: 760px; margin: 0 auto !important; }
.translation-en sup { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--emerald); margin: 0 2px 0 4px; }
.verse-feature .translation-en { color: var(--mint); font-size: 23px; }
.verse-feature .translation-en sup { color: var(--gold-light); }
.who-verse { border-top: 0; }

/* Who is Muhammad page */
.callig-name { margin: 0; display: flex; justify-content: center; }
.callig-name img { width: 100%; max-width: 440px; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 131px; top: 12px; bottom: 12px; width: 2px; background: var(--sage); opacity: .6; }
.tl-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 125px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--mint); }
.tl-date { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--emerald); text-align: right; padding-top: 14px; line-height: 1.2; }
.tl-item > div { background: var(--ivory); border-radius: 18px; padding: 18px 24px; margin-left: 20px; }
.tl-item h3 { font-size: 24px; margin-bottom: 4px; }
.tl-item p { font-size: 16px; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 30px; }
  .tl-item::before { left: 1px; top: 4px; }
  .tl-date { text-align: left; padding-top: 0; }
  .tl-item > div { margin-left: 0; }
}

.tree { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.tree-root { display: flex; justify-content: center; padding-bottom: 28px; position: relative; }
.tree-root::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 2px; height: 28px; background: var(--gold); }
.tree-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: 100%; position: relative; padding-top: 28px; }
.tree-branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--gold); }
.branch { display: flex; flex-direction: column; align-items: center; gap: 0; position: relative; }
.branch::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--gold); }
.branch > * + *, .tree-pair { margin-top: 26px; position: relative; }
.branch > * + *::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--sage); }
.tree-node { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--white); border: 1.5px solid var(--sage-light); border-radius: 16px; padding: 12px 20px; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--emerald-deep); line-height: 1.2; min-width: 180px; }
.tree-node small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.tree-node.root { background: var(--emerald); border-color: var(--emerald); color: var(--ivory); font-size: 28px; padding: 14px 32px; }
.tree-node.root small { color: var(--gold-light); }
.tree-node.prophet { background: var(--mint); border: 2px solid var(--gold); }
.tree-step { font-size: 15px; font-weight: 600; letter-spacing: .5px; color: var(--muted); background: var(--ivory); padding: 4px 12px; border-radius: 999px; text-align: center; }
.tree-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tree-pair .tree-node { min-width: 140px; }
@media (max-width: 600px) {
  .tree-branches { gap: 12px; }
  .tree-node { min-width: 0; font-size: 19px; padding: 10px 12px; width: 100%; }
  .tree-node.root { width: auto; font-size: 24px; }
  .tree-node small { font-size: 12px; }
  .tree-step { font-size: 13px; }
  .tree-pair { flex-direction: column; width: 100%; gap: 10px; }
}

.teach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.teach { background: var(--mint); border-radius: 22px; padding: 28px 26px; }
.teach h3 { font-size: 24px; margin-bottom: 8px; line-height: 1.25; }
.teach p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; }


.nav-links a { white-space: nowrap; }
@media (min-width: 1340px) { .nav-links { gap: 20px; font-size: 15px; } }
@media (min-width: 1340px) and (max-width: 1560px) { .brand span { font-size: 23px; } .nav-links { gap: 16px; } }

/* Subhanahu wa ta'ala calligraphy after the name Allah */
.swt { display: inline-block; width: 1.15em; height: 1.3em; margin-left: .15em; vertical-align: -.3em; background: currentColor; -webkit-mask: url(../images/swt.png) center / contain no-repeat; mask: url(../images/swt.png) center / contain no-repeat; }

/* Lineage and Family Heritage (About page) */
.heritage .split { align-items: flex-start; }
.heritage-text { display: flex; flex-direction: column; gap: 18px; max-width: 720px; color: var(--ink-soft); }
.heritage-text h2 { margin-bottom: 6px; }
.heritage-text h3 { font-size: clamp(26px, 3vw, 32px); margin-top: 4px; }
.heritage-rule { margin: 18px 0 4px; }
.heritage-band { height: 96px; border-radius: 18px; background-color: var(--ivory); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%238FB9A8' stroke-width='1' opacity='.6'%3E%3Crect x='20' y='20' width='32' height='32'/%3E%3Crect x='20' y='20' width='32' height='32' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M0 36 H14 M58 36 H72 M36 0 V14 M36 58 V72'/%3E%3C/g%3E%3C/svg%3E"); border: 1px solid var(--line); }
.heritage-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.heritage-list strong { color: var(--emerald-deep); }
.heritage-verse { margin: 8px 0 0; background: var(--em, #1F5C4A); background: var(--emerald); color: var(--ivory); border-radius: 26px; padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.heritage-verse .quran { color: var(--gold-light); font-size: clamp(26px, 3vw, 32px); }
.heritage-verse .translation-en { color: var(--mint); }
.heritage-verse figcaption { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

.family-tree { margin: 0; background: var(--ivory); border-radius: 28px; padding: 36px 24px 28px; align-self: flex-start; }
.ft { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; }
.ft-node { width: 100%; max-width: 320px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ft-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--emerald-deep); line-height: 1.2; }
.ft-cap { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ft-self { background: var(--emerald); border-color: var(--emerald); }
.ft-self .ft-name { color: var(--ivory); }
.ft-link { width: 0; height: 22px; border-left: 2px solid var(--gold); }
.ft-gap { height: 52px; border-left: 2px dotted var(--gold); position: relative; }
.ft-gap span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; font-style: italic; color: var(--muted-2); }
.family-tree figcaption { margin-top: 20px; font-size: 14px; font-style: italic; color: var(--muted-2); text-align: center; }
@media (min-width: 961px) { .family-tree { position: sticky; top: 96px; } }

/* Store buttons (books available now) */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 14px; background: var(--emerald-deep); color: var(--ivory); text-decoration: none; border: 1.5px solid var(--emerald-deep); transition: transform .2s ease, background .2s ease; }
.store-btn:hover { background: var(--emerald); color: var(--ivory); transform: translateY(-1px); }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-label { font-size: 15px; font-weight: 600; }
.store-sub { font-size: 12px; opacity: .8; }
.store-btn.is-soon { background: transparent; color: var(--muted-2); border: 1.5px dashed var(--sage); cursor: default; }
.store-btn.is-soon:hover { transform: none; }
.bg-emerald .store-btn, .cta .store-btn { background: var(--ivory); color: var(--emerald-deep); border-color: var(--ivory); }
.bg-emerald .store-btn:hover, .cta .store-btn:hover { background: var(--white); color: var(--emerald-deep); }
.bg-emerald .store-btn.is-soon, .cta .store-btn.is-soon { background: transparent; color: var(--line); border-color: rgba(207,224,214,.5); }
.stores-note { font-size: 14px; color: var(--muted-2); margin-top: 10px; }
.bg-emerald .stores-note { color: var(--line); }

/* Available Now (Publications page) */
.available { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; margin-bottom: 72px; }
.avail-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; box-shadow: 0 12px 32px rgba(23,70,58,.08); }
.avail-card .cover { flex: 0 0 170px; max-width: 170px; padding: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.avail-card .cover .t1 { font-size: 15px; } .avail-card .cover .t2 { font-size: 13px; } .avail-card .cover .by { font-size: 9px; }
.avail-card .info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.avail-card h3 { font-size: 26px; line-height: 1.2; }
.avail-card h3 a { color: inherit; text-decoration: none; }
.avail-card h3 a:hover { color: var(--emerald); }
.avail-card .sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--emerald); line-height: 1.3; }
.avail-card .meta2 { font-size: 14px; color: var(--muted-2); }
.tag-avail { background: var(--emerald); color: var(--white); }
.tag-soon { background: var(--gold-tint); color: var(--gold-ink); }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.list-head h2 { font-size: clamp(30px, 3.6vw, 40px); }
.pending-copy { background: var(--gold-tint); color: var(--gold-ink); border: 1.5px dashed var(--gold); border-radius: 16px; padding: 18px 22px; font-weight: 600; }
.work .info { flex: 999 1 520px; }

.cta-stack { flex-direction: column; align-items: flex-start; }
.cta-stack .copy { flex: none; }
.book-desc { display: flex; flex-direction: column; gap: 20px; color: var(--ink-soft); }

/* Real book covers */
.cover-photo { display: block; flex: 0 0 170px; max-width: 170px; }
.cover-photo-lg { flex: none; width: 100%; max-width: 340px; }
.cover-img { width: 100%; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: 0 18px 40px rgba(23,70,58,.22); }

/* Two real covers, fanned (Home page publications section) */
.cover-pair { display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.cover-pair .cp { display: block; width: 46%; max-width: 210px; transition: transform .25s ease; }
.cover-pair .cp1 { transform: rotate(-5deg) translateX(14px); position: relative; z-index: 1; }
.cover-pair .cp2 { transform: rotate(5deg) translateX(-14px); }
.cover-pair .cp:hover { transform: rotate(0) translateY(-6px); z-index: 2; }
@media (prefers-reduced-motion: reduce) { .cover-pair .cp { transition: none; } }

/* Seal logo and two-tone wordmark */
:root { --gold-deep: #9A7A33; } /* darker brand gold: 3.8:1 on ivory, for large text */
.brand { gap: 12px; }
.brand-seal { height: 56px; width: auto; flex: none; }
.brand .wordmark { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: .3px; line-height: 1; }
.wm-to { color: var(--emerald); }
.wm-islam { color: var(--gold-deep); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-seal { height: 64px; width: auto; flex: none; }
.footer-brand .wm-to { color: var(--ivory); }
.footer-brand .wm-islam { color: var(--gold-light); }
@media (min-width: 1340px) and (max-width: 1560px) { .brand .wordmark { font-size: 24px; } .brand-seal { height: 50px; } }
@media (max-width: 600px) { .brand-seal { height: 48px; } .brand .wordmark { font-size: 24px; } }
.site-footer .footer-brand { font-size: 28px; max-width: none; }

/* The Faith of Abraham page */
.abraham-hero .arabic { font-size: clamp(30px, 4vw, 42px); line-height: 2.1; color: var(--gold-light); }
.hero-verse { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; color: var(--ivory); }
.hero-note { font-size: 18px; color: var(--line); max-width: 640px; }
.abr-text { display: flex; flex-direction: column; gap: 18px; color: var(--ink-soft); }
.abr-text .who-verse { margin-top: 6px; }
.bib { margin: 0 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.bib blockquote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--emerald-deep); }
.bib figcaption { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }
.bib-note { margin-top: 8px !important; font-size: 15px; color: var(--muted); line-height: 1.55; }
.argument { display: flex; flex-direction: column; gap: 48px; max-width: 920px; margin: 0 auto; }
.arg-step { display: flex; flex-direction: column; gap: 18px; }
.arg-head { display: flex; align-items: center; gap: 16px; }
.arg-num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--emerald); color: var(--ivory); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.arg-head h3 { font-size: clamp(26px, 3vw, 32px); }
.arg-text { color: var(--ink-soft); font-size: 18px; max-width: 760px; }
.conclusion { max-width: 920px; margin: 64px auto 0; background: var(--ivory); border: 2px solid var(--gold); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.concl-text { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 30px); line-height: 1.45; color: var(--emerald-deep); font-weight: 600; }
.full-passage, .sources { max-width: 920px; margin: 40px auto 0; background: var(--ivory); border-radius: 22px; border: 1px solid var(--line); }
.full-passage summary, .sources summary { cursor: pointer; padding: 20px 26px; font-weight: 600; color: var(--emerald); list-style: none; min-height: 48px; }
.full-passage summary::before, .sources summary::before { content: "+ "; color: var(--gold-deep); }
.full-passage[open] summary::before, .sources[open] summary::before { content: "− "; }
.pass-list { padding: 0 26px 26px; display: flex; flex-direction: column; gap: 18px; }
.pass-row { border-top: 1px solid var(--line); padding-top: 16px; scroll-margin-top: 96px; }
.pass-row .quran { font-size: clamp(22px, 2.6vw, 27px); line-height: 2.1; text-align: right; }
.pass-en { font-size: 17px; color: var(--ink-soft); }
.pass-ref { font-weight: 600; color: var(--emerald); margin-right: 6px; }
.pass-break { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin-top: 18px !important; }
.jesus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.jesus-grid > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-head { font-size: 28px; }
.col-intro { color: var(--muted); }
.hist-note { max-width: 820px; margin: 40px auto 0; background: var(--emerald); color: var(--ivory); border-radius: 24px; padding: 30px 34px; font-size: 18px; }
.ataie { max-width: 920px; margin: 0 auto 32px; background: var(--mint); border-radius: 20px; padding: 22px 26px; color: var(--ink-soft); font-size: 16px; }
.ataie strong { color: var(--emerald-deep); }
#prophecies > .container > .who-verse { max-width: 920px; margin: 0 auto 48px; }
.prophecies { display: flex; flex-direction: column; gap: 40px; }
.proph { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 12px 32px rgba(23,70,58,.06); }
.proph-ref { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }
.proph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; }
.proph-quotes .bib { background: var(--ivory); }
.proph-body { color: var(--ink-soft); font-size: 17px; min-width: 0; }
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--ivory); border-radius: 18px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 24px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--emerald-deep); list-style: none; min-height: 48px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-family: var(--sans); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 24px 20px; color: var(--ink-soft); }
.sources ul { padding: 0 26px 22px 46px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.abr-callout { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; max-width: 640px; background: var(--emerald); color: var(--ivory); text-decoration: none; border-radius: 20px; padding: 22px 26px; }
.abr-callout:hover { background: var(--emerald-deep); color: var(--ivory); }
.abr-callout-label { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }
.abr-callout-title { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.abr-callout-text { font-size: 16px; color: var(--line); }
summary::-webkit-details-marker { display: none; }

/* On-this-page navigation */
.read-time { margin-top: 14px; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--emerald); }
.part { color: var(--gold-deep); }
.bg-emerald .part { color: var(--gold-light); }
html { scroll-padding-top: calc(var(--header-h, 84px) + var(--toc-h, 56px) + 12px); }
.toc-bar { position: sticky; top: var(--header-h, 84px); z-index: 40; background: rgba(250,248,242,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toc-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.toc-toggle { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 12px 0; min-height: 52px; font: inherit; cursor: pointer; color: var(--ink); text-align: left; }
.toc-label { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--emerald); white-space: nowrap; }
.toc-current { flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--emerald-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-toggle svg { flex: none; color: var(--emerald); transition: transform .2s ease; }
.toc-bar.open .toc-toggle svg { transform: rotate(180deg); }
.toc-panel { display: none; padding: 4px 0 20px; }
.toc-bar.open .toc-panel { display: block; }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 4px 24px; }
.toc-list a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 16px; }
.toc-list a:hover { background: var(--mint); }
.toc-list a.active { background: var(--mint); color: var(--emerald-deep); font-weight: 600; }
.toc-num { font-family: var(--serif); font-weight: 700; color: var(--gold-deep); min-width: 1ch; }
.toc-tools { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.toc-tool { font: inherit; font-size: 14px; font-weight: 600; color: var(--emerald); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; }
.toc-tool:hover { border-color: var(--emerald); }

/* Wide screens: the list stays open in a sidebar */
@media (min-width: 1700px) {
  .toc-bar { position: fixed; top: calc(var(--header-h, 84px) + 24px); left: 24px; width: 236px; background: var(--ivory); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 30px rgba(23,70,58,.08); }
  .toc-inner { padding: 6px 14px 14px; }
  .toc-toggle { pointer-events: none; padding: 10px 6px 4px; min-height: 0; }
  .toc-current, .toc-toggle svg { display: none; }
  .toc-panel { display: block; padding: 0; }
  .toc-list { grid-template-columns: 1fr; gap: 2px; }
  .toc-list a { font-size: 14px; padding: 7px 8px; line-height: 1.35; }
  .toc-tools { flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; }
  html { scroll-padding-top: calc(var(--header-h, 84px) + 20px); }
}

/* Index of the six steps */
.step-index { list-style: none; margin: -24px auto 40px; padding: 0; max-width: 920px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; counter-reset: step; }
.step-index li { counter-increment: step; }
.step-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--emerald-deep); text-decoration: none; }
.step-index li:not(:last-child) a::before { content: counter(step); font-family: var(--serif); color: var(--gold-deep); }
.step-index a:hover { border-color: var(--emerald); }

/* Heading links */
a.anchor { color: inherit; text-decoration: none; }
a.anchor:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* Collapsible sections */
.sec-fold { max-width: 1200px; margin: 0 auto; }
.sec-fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 24px; min-height: 56px; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; }
.bg-ivory .sec-fold > summary { background: var(--mint); }
.sec-fold > summary:hover { border-color: var(--emerald); }
.fold-sum { flex: 1 1 280px; color: var(--ink-soft); font-size: 17px; }
.fold-btn { flex: none; background: var(--emerald); color: var(--white); font-size: 15px; font-weight: 600; padding: 9px 20px; border-radius: 999px; }
.fold-close { display: none; }
.sec-fold[open] .fold-open { display: none; }
.sec-fold[open] .fold-close { display: inline; }
.sec-fold[open] > summary { margin-bottom: 32px; }
.fold-body > .timeline, .fold-body > .hist-note { margin-left: auto; margin-right: auto; }

/* FAQ groups */
.faq-group { display: flex; flex-direction: column; gap: 12px; }
.faq-group + .faq-group { margin-top: 32px; }
.faq-group-head { font-size: 26px; margin-bottom: 4px; scroll-margin-top: 140px; }
.faq-group-head span { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted-2); }

/* Back to top */
.to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 48px; height: 48px; border-radius: 50%; background: var(--emerald); color: var(--ivory); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(23,70,58,.25); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--emerald-deep); color: var(--ivory); }
/* Header: room for the full menu; the logo never shrinks */
.site-header .nav { max-width: 1640px; }
.brand { flex: none; }

/* Footnotes */
sup.fn { font-size: .7em; line-height: 0; margin-left: 2px; }
sup.fn a { text-decoration: none; font-weight: 600; color: var(--gold-deep); padding: 0 2px; }
.footnotes { max-width: 920px; margin: 32px auto 0; padding: 18px 0 0 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); display: flex; flex-direction: column; gap: 8px; }
.footnotes li { scroll-margin-top: 160px; }
.footnotes a { color: var(--emerald); }

/* ---------- Learn About Islam (redesign) ---------- */
.bg-ivory .who-verse { background: var(--mint); }
.basics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.basics-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.basic-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.bg-mint .basic-card { background: var(--ivory); }
.bg-ivory .basic-card { background: #fff; }
.basic-num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--gold-deep); line-height: 1; }
.basic-card h3 { font-size: 24px; color: var(--emerald-deep); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.basic-ar { font-family: var(--arabic); font-size: 24px; font-weight: 400; color: var(--emerald); }
.basic-card p { color: var(--ink-soft); font-size: 17px; }
.basics-verse { max-width: 880px; margin: 40px auto 0; }
.shahada { max-width: 860px; margin: 0 auto 36px; text-align: center; background: var(--emerald-deep); color: var(--ivory); border-radius: 28px; padding: 36px 28px; }
.shahada .arabic { font-family: 'Amiri Quran', var(--arabic); font-size: clamp(26px, 3.6vw, 38px); line-height: 2; color: var(--gold-light); }
.shahada figcaption { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); font-style: italic; margin-top: 10px; }
.levels { display: flex; flex-direction: column; gap: 10px; padding-left: 1.3em; }
.levels li::marker { color: var(--gold-deep); font-weight: 700; }
.levels-art { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.levels-art .lv { display: block; text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 600; border-radius: 16px; padding: 16px 0; }
.lv1 { width: 100%; max-width: 340px; background: var(--emerald-deep); color: var(--ivory); }
.lv2 { width: 78%; max-width: 265px; background: var(--emerald-mid); color: var(--ivory); }
.lv3 { width: 56%; max-width: 190px; background: var(--gold); color: var(--emerald-deep); }
.prophet-line { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; padding: 0; }
.prophet-line li { background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--emerald-deep); }
.prophet-line li.last { background: var(--emerald-deep); color: var(--gold-light); border-color: var(--emerald-deep); }
.daily { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; max-width: 1100px; margin: 0 auto; }
.daily-item { border-left: 3px solid var(--gold); padding-left: 20px; }
.daily-item h3 { font-size: 24px; color: var(--emerald-deep); margin-bottom: 6px; }
.daily-item p { color: var(--ink-soft); }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.aud-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; text-decoration: none; color: inherit; scroll-margin-top: 150px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.aud-card:hover, .aud-card:target { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(23,70,58,.12); border-color: var(--gold); }
.aud-title { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--emerald-deep); }
.aud-text { color: var(--ink-soft); font-size: 17px; flex: 1; }
.aud-go { font-weight: 600; color: var(--emerald); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.next-card { display: flex; flex-direction: column; gap: 6px; background: var(--ivory); border-radius: 18px; padding: 22px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.next-card:hover { border-color: var(--gold); }
.next-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--emerald-deep); }
.next-text { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 600px) { .basic-card, .aud-card { padding: 22px 20px; } .shahada { padding: 28px 18px; } .levels-art .lv { font-size: 22px; } }
.basics:not(.basics-5) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1000px) { .basics:not(.basics-5) { grid-template-columns: repeat(3, 1fr); } }
.basic-card h3 { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
#quran .split-narrow, #tawhid .split-narrow { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .aud-grid, .next-grid { grid-template-columns: repeat(5, 1fr); } .aud-card { padding: 24px 20px; } .aud-title { font-size: 23px; } }
.next-title { font-size: 20px; }

/* ---------- Home: Start Here topics ---------- */
.topic-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; background: var(--emerald-deep); color: var(--ivory); border-radius: 32px; padding: 48px 52px; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.topic-feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(23,70,58,.22); color: var(--ivory); }
.tf-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tf-tag { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }
.tf-title { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; line-height: 1.05; }
.tf-text { color: #DCE9E1; font-size: 18px; max-width: 520px; }
.tf-copy .btn { margin-top: 8px; }
.tf-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-parts span { border: 1px solid rgba(226,207,158,.35); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--ivory); background: rgba(255,255,255,.04); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.topic-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,70,58,.12); border-color: var(--gold); color: inherit; }
.tc-art { height: 210px; display: flex; align-items: center; justify-content: center; background: var(--ivory); border-bottom: 1px solid var(--line); }
.tc-art img { height: 180px; width: auto; object-fit: contain; }
.tc-art-mint { background: var(--mint); }
.tc-art-mint img { height: 150px; }
.tc-art-emerald { background: var(--emerald-deep); gap: 20px; }
.tc-art-label { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.25; color: var(--gold-light); }
.tc-body { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 28px; flex: 1; }
.tc-tag { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); }
.tc-title { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--emerald-deep); line-height: 1.15; }
.tc-text { color: var(--ink-soft); font-size: 17px; flex: 1; }
.tc-go { font-weight: 600; color: var(--emerald); margin-top: 6px; }
.aud-row { margin-top: 44px; text-align: center; }
.aud-row-label { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--emerald-deep); margin-bottom: 16px; }
.aud-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.aud-link { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 1px solid var(--line); background: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--emerald-deep); min-height: 48px; }
.aud-link:hover { border-color: var(--gold); color: var(--emerald-deep); }
.book-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.book-tile { display: flex; gap: 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(226,207,158,.25); border-radius: 28px; padding: 32px; }
.book-tile .cover-photo { flex: none; width: 170px; align-self: flex-start; }
.bt-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bt-tag { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); }
.book-tile h3 { color: var(--ivory); font-size: 26px; line-height: 1.15; }
.book-tile .quote-italic { color: #CFE0D6; font-size: 20px; margin: 0; }
.bt-text { color: #DCE9E1; font-size: 16px; }
.book-tile .stores { margin-top: 6px; }
.book-tile .text-link { color: var(--gold-light); align-self: flex-start; }
.library-line { text-align: center; color: #DCE9E1; margin-top: 36px; }
.library-line .text-link { color: var(--gold-light); }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.glance a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--ivory); border-radius: 0 16px 16px 0; color: inherit; }
.glance b { font-family: var(--serif); font-size: 22px; color: var(--emerald-deep); }
.glance span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 1100px) { .book-duo { grid-template-columns: 1fr; } .glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .topic-feature { grid-template-columns: 1fr; padding: 36px 28px; } .topic-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tf-parts { grid-template-columns: 1fr 1fr; } .tf-parts span { font-size: 14px; padding: 10px; } .book-tile { flex-direction: column; padding: 24px; } .book-tile .cover-photo { width: 150px; } .glance { grid-template-columns: 1fr; } .tc-art { height: 180px; } .tc-art img { height: 150px; } }
.book-tile .store-btn.is-soon { display: none; }
.bg-forest { background: #17463A; color: var(--ivory); }
.bg-forest .eyebrow { color: var(--gold-light); }
.bg-forest h2 { color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legacy-features { display: grid; gap: 20px; margin-top: 28px; }
.legacy-feature { background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px 20px 20px 6px; padding: 24px 28px; }
.legacy-feature .lf-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.legacy-feature h4 { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--emerald-deep); line-height: 1.2; margin-bottom: 10px; }
.legacy-feature p + p { margin-top: 10px; }
.ft-self .ft-cap { color: var(--gold-light); font-weight: 600; }

/* ---------- Footer (large seal) ---------- */
.site-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px 72px; padding-top: 64px; padding-bottom: 52px; }
.footer-id { display: flex; align-items: center; gap: 32px; }
.site-footer .footer-seal { height: 150px; width: auto; flex: none; }
.footer-id-text { display: flex; flex-direction: column; gap: 10px; padding-left: 32px; border-left: 1px solid rgba(226,207,158,.35); }
.site-footer .footer-brand { display: block; font-size: 36px; line-height: 1.1; margin: 0; }
.site-footer .footer-tag { font-size: 16px; line-height: 1.6; max-width: 330px; margin: 0; color: var(--sage-light, #CFE0D6); }
.footer-head { font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-light); margin: 0 0 14px; }
.site-footer .footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; }
.site-footer .footer-links a { white-space: nowrap; }
@media (max-width: 900px) {
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .site-footer .footer-top { padding-top: 48px; padding-bottom: 36px; justify-items: center; text-align: center; }
  .footer-id { flex-direction: column; gap: 18px; }
  .site-footer .footer-seal { height: 140px; }
  .footer-id-text { padding-left: 0; border-left: 0; align-items: center; }
  .site-footer .footer-brand { font-size: 32px; }
  .footer-nav { width: 100%; max-width: 340px; padding-top: 28px; border-top: 1px solid rgba(226,207,158,.25); }
  .site-footer .footer-links { grid-template-columns: 1fr 1fr; gap: 12px 20px; text-align: left; }
  .site-footer .footer-links a { white-space: normal; }
  .footer-bottom { justify-content: center; text-align: center; }
}
.site-footer .footer-links { justify-content: start; }
.site-footer .footer-bottom { position: relative; border-top: 0; }
.site-footer .footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter, 24px); right: var(--gutter, 24px); height: 1px; background: var(--emerald-mid); }
@media (max-width: 600px) {
  .site-footer .footer-links { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
}
.footer-seal-wrap { display: flex; align-items: center; gap: 12px; flex: none; }
.seal-side { font-family: 'Amiri', var(--arabic), serif; font-size: 21px; line-height: 1; color: var(--gold-light); writing-mode: vertical-rl; white-space: nowrap; height: 150px; display: flex; align-items: center; justify-content: center; }
.seal-side-left, .seal-side-right { transform: rotate(180deg); }
@media (max-width: 600px) { .seal-side { height: 140px; font-size: 19px; } }
/* Seal side inscriptions: Amiri Bold, same scale as the text inside the ring (10% of seal height) */
.site-footer .footer-seal { height: 180px; }
.footer-seal-wrap { --seal-h: 180px; gap: 6px; align-items: flex-end; }
.seal-side { font-family: 'Amiri', serif; font-weight: 700; font-size: calc(var(--seal-h) * 0.1); line-height: 1; height: calc(var(--seal-h) * 0.7); margin-bottom: calc(var(--seal-h) * 0.06); word-spacing: 0.9em; transform: none; }
.seal-side-left { transform: none; }          /* reads bottom to top */
.seal-side-right { transform: rotate(180deg); } /* reads top to bottom */
@media (max-width: 600px) { .footer-seal-wrap { --seal-h: 160px; } .site-footer .footer-seal { height: 160px; } .seal-side { height: calc(var(--seal-h) * 0.7); font-size: calc(var(--seal-h) * 0.1); } }
.site-footer .footer-seal-sides { height: 180px; width: auto; }
@media (max-width: 600px) { .site-footer .footer-seal-sides { height: 160px; } }

/* ---------- English first, Arabic underneath (site-wide) ---------- */
/* English: slightly larger */
.translation-en { font-size: 25px; line-height: 1.55; }
.verse-feature .translation-en { font-size: 26px; }
.pass-en { font-size: 19px; color: var(--ink); }
.verse .translation { font-size: clamp(24px, 2.8vw, 30px); }
.verse-card blockquote { font-size: 22px; }
.shahada figcaption { font-size: clamp(21px, 2.4vw, 26px); margin-top: 0; }
/* Arabic underneath: smaller, readable, set apart by a short gold rule */
.ar-under { position: relative; padding-top: 18px; }
.ar-under::before { content: ""; position: absolute; top: 0; left: 50%; width: 48px; height: 1px; background: var(--gold); transform: translateX(-50%); opacity: .8; }
.quran.ar-under { font-size: clamp(21px, 2.1vw, 23px); line-height: 2.05; }
.pass-row .quran.ar-under { font-size: clamp(20px, 2vw, 22px); line-height: 2; padding-top: 8px; }
.pass-row .quran.ar-under::before { left: auto; right: 0; transform: none; }
.verse .arabic.ar-under { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.9; margin-top: 6px; }
.verse-card .arabic.ar-under { font-size: 21px; }
.arch-emblem .arabic.ar-under { font-size: 21px; }
.shahada .arabic.ar-under { font-size: clamp(22px, 2.6vw, 28px); margin-top: 14px; }
.heritage-verse .quran.ar-under { font-size: clamp(21px, 2.2vw, 24px); }
@media (max-width: 600px) {
  .translation-en, .verse-feature .translation-en { font-size: 21px; }
  .quran.ar-under, .pass-row .quran.ar-under { font-size: 20px; }
  .pass-en { font-size: 18px; }
}
/* Abraham family tree: connected, in time order */
.tree-branches { align-items: stretch; }
.branch > .gen::before { background: none !important; border-left: 2px dotted var(--gold); width: 0 !important; }
.tree-fill { flex: 1 1 auto; min-height: 0; width: 0; border-left: 2px dotted var(--gold); margin-top: 0 !important; }
.tree-fill::before { display: none !important; }
.tree-fill + .tree-node { margin-top: 0 !important; }
.tree-fill + .tree-node::before { display: none !important; }
.branch > .tree-node { width: 100%; max-width: 300px; }
.tree-step { max-width: 300px; }
.tree-key { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.tree-key span { display: inline-block; width: 28px; height: 0; }
.tree-key .k-solid { border-top: 2px solid var(--sage); }
.tree-key .k-dot { border-top: 2px dotted var(--gold); margin-left: 14px; }
@media (max-width: 600px) { .branch > .tree-node { max-width: none; } }
/* ﷺ (sallallahu alayhi wa sallam): always drawn in Amiri, self-hosted subset */
@font-face { font-family: 'Amiri SAW'; src: url('../fonts/amiri-saw.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: block; unicode-range: U+FDFA; }
.saw { font-family: 'Amiri SAW', 'Amiri', serif; font-weight: 400; font-style: normal; font-size: 1.25em; line-height: 0; vertical-align: -0.08em; margin-left: .04em; letter-spacing: 0; text-transform: none; }
.who-verse.verse-feature, .bg-ivory .who-verse.verse-feature, .bg-mint .who-verse.verse-feature { background: var(--emerald); }
.verse-feature .quran.ar-under { font-size: clamp(22px, 2.3vw, 25px); color: var(--gold-light); }
.proph-close { text-align: center; color: var(--muted); font-style: italic; max-width: 640px; margin: 32px auto 0; }
/* Hanif: drinking from the source */
.hanif-card { position: relative; max-width: 860px; margin: 56px auto 0; background: var(--mint); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 28px; padding: 44px 52px 40px; text-align: left; scroll-margin-top: 150px; }
.hanif-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ivory); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; border: 1px solid var(--line); }
.hanif-card h3 { font-size: clamp(30px, 3.4vw, 40px); color: var(--emerald-deep); margin: 4px 0 18px; }
.hanif-card p { font-size: 18px; line-height: 1.75; color: var(--ink); }
.hanif-card p + p { margin-top: 14px; }
.hanif-card .hanif-aha { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--emerald-deep); border-left: 3px solid var(--gold); padding-left: 18px; margin-top: 22px; }
.hanif-card .hanif-invite { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-deep); text-align: center; margin-top: 24px; }
@media (max-width: 600px) { .hanif-card { padding: 30px 22px; margin-top: 40px; } .hanif-card p { font-size: 17px; } .hanif-card .hanif-aha { font-size: 20px; } }

/* ---------- What is the Qur'an ---------- */
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.own-card { padding: 30px 32px; gap: 16px; }
.own-card .who-head h3 { font-size: 24px; }
.own-card .translation-en { font-size: 21px; }
.own-card .quran.ar-under { font-size: 20px; }
.bg-mint .own-card { background: var(--ivory); }
.own-challenge { max-width: 760px; margin: 36px auto 0; text-align: center; font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--emerald-deep); }
.q-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto 48px; }
.q-stat { background: var(--mint); border-radius: 20px; padding: 24px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.q-stat .n { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; color: var(--emerald-deep); }
.q-stat .l { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.start-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 24px; }
.start-card .start-ref { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.start-card h3 { font-size: 26px; color: var(--emerald-deep); margin-bottom: 8px; }
.start-card p { color: var(--ink-soft); font-size: 16.5px; }
.start-card p + p { margin-top: 10px; }
/* Home: Qur'an topic card art */
.tc-art-quran { background: var(--emerald-deep); flex-direction: column; gap: 8px; }
.tc-quran-ar { font-family: 'Amiri', var(--arabic); font-weight: 700; font-size: 44px; line-height: 1.4; color: var(--gold-light); }
.tc-art-quran .tc-art-label { font-size: 20px; }
/* Home: four topic cards */
@media (min-width: 1101px) { .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .tc-art { height: 190px; } .tc-art img { height: 160px; } .tc-body { padding: 22px 22px 24px; } .tc-title { font-size: 25px; } }
@media (min-width: 701px) and (max-width: 1100px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .own-grid { grid-template-columns: 1fr; } .start-grid { grid-template-columns: 1fr 1fr; } .q-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .start-grid { grid-template-columns: 1fr; } .own-card { padding: 24px 20px; } .q-stat .n { font-size: 36px; } .tc-quran-ar { font-size: 38px; } }
/* Home topic cards: one light green background for all four */
.topic-grid .tc-art { background: var(--mint); }
.topic-grid .tc-art img { mix-blend-mode: multiply; }
.topic-grid .tc-art-label { color: var(--emerald-deep); }
.topic-grid .tc-quran-ar { color: var(--emerald-deep); }
.anchor-alias { position: absolute; top: 0; }  #contact { position: relative; scroll-margin-top: 90px; }
.page-top { display: block; height: 0; scroll-margin-top: 400px; }
/* Support Our Work */
.support-uses { max-width: 1000px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bg-ivory .support-ways .start-card { background: var(--mint); border-color: transparent; }
.support-notes { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; color: #DCE9E1; font-size: 16px; }
.support-notes li { padding-left: 22px; position: relative; }
.support-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.optional { font-weight: 400; color: var(--muted); }
.support-zakat { color: var(--ink-soft); font-size: 17px; max-width: 680px; margin: 0 auto; }
.support-line { text-align: center; margin-top: 28px; color: var(--ink-soft); }
@media (max-width: 1100px) { .support-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .support-uses, .support-ways { grid-template-columns: 1fr; } }
.field select { min-height: 54px; appearance: auto; }
.why-text { max-width: 820px; margin: 0 auto; text-align: center; }
.why-text p { text-align: left; }
.why-text .eyebrow { text-align: center; }
.why-verse { max-width: 900px; margin: 44px auto 0; }

/* ---------- QA: section links land below the sticky header ---------- */
main [id] { scroll-margin-top: 92px; }
body:has(.toc-bar) main [id] { scroll-margin-top: 150px; }
main #top { scroll-margin-top: 400px; }

/* ---------- QA: comfortable tap targets and readable notes on touch screens ---------- */
@media (max-width: 1100px), (pointer: coarse) {
  .site-footer .footer-links a { display: inline-block; padding: 11px 0; }
  .site-footer .footer-links { row-gap: 0; }
  .footer-credit a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .text-link { display: inline-block; padding-top: 10px; padding-bottom: 8px; }
  a.anchor { display: inline-block; padding: 8px 0; }
  .faq summary, .sec-fold > summary { min-height: 48px; }
  .toc-list a { min-height: 44px; }
  .sources li { padding: 4px 0; }
  .sources a, .form-note a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .stores-note, .meta2, .form-note, .avail-card .meta2 { font-size: 15px; }
  .avail-card h3 a { display: inline-block; padding: 8px 0; margin: -8px 0; }
}
.nav-links a { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 1339px) { .nav-links a { padding: 14px 0; } }
.sum-text { flex: 1 1 auto; min-width: 0; }
.nobr { white-space: nowrap; }
@media (max-width: 600px) {
  .stats { display: grid; grid-template-columns: 0.8fr 1.4fr 0.8fr; gap: 10px; }
  .stat { min-width: 0; padding: 14px 10px; text-align: center; }
  .stat .n { font-size: 26px; }
  .stat .l { font-size: 13px; line-height: 1.3; }
}
@media (max-width: 600px) { .stat .n { font-size: clamp(21px, 6.2vw, 26px); white-space: nowrap; } .stats { align-items: stretch; } }

/* Wordmark: make "Islam" the focus (Antique Gold, slightly larger) */
:root { --gold-antique: #8A6A22; }
.brand .wordmark .wm-to { font-size: 1em; }
.brand .wordmark .wm-islam { font-size: 1.08em; color: var(--gold-antique); }
.footer-brand .wm-islam { font-size: 1.08em; }
/* What we mean by "True Islam" */
.true-islam { max-width: 860px; margin: 48px auto 0; background: var(--mint); border-top: 3px solid var(--gold); border-radius: 26px; padding: 36px 44px; scroll-margin-top: 150px; }
.true-islam h3 { font-size: clamp(26px, 3vw, 34px); color: var(--emerald-deep); margin: 4px 0 14px; }
.true-islam > p:not(.eyebrow) { font-size: 18px; line-height: 1.75; color: var(--ink); }
.true-islam-quote { margin: 24px 0 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.true-islam-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--emerald-deep); }
.true-islam-quote figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 600px) { .true-islam { padding: 28px 22px; } .true-islam-quote blockquote { font-size: 19px; } }
.true-islam-quote .q-mark { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Abraham page: The House Abraham built */
.kaaba-icon { color: var(--gold-deep); display: flex; justify-content: center; margin-bottom: 8px; }
.kaaba-block { max-width: 920px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 150px; }
.kaaba-block .arg-text { font-size: 18px; line-height: 1.75; color: var(--ink); }
.rites { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; counter-reset: rite; }
.rite { background: var(--mint); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 20px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; counter-increment: rite; }
.rite p { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.rite .rite-name { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.25; color: var(--emerald-deep); }
.rite .rite-name::before { content: counter(rite) ". "; color: var(--gold-deep); }
.rite .rite-ar { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.rite .rite-src { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--gold-ink); }
.rites-note { font-size: 15px; color: var(--muted); }
.kaaba-close { max-width: 820px; margin: 56px auto 0; text-align: center; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.45; color: var(--emerald-deep); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); padding: 26px 12px; }
.concl-line { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--gold-deep); }
@media (max-width: 600px) { .kaaba-block { margin-top: 44px; } .kaaba-block .arg-text { font-size: 17px; } .kaaba-close { font-size: 22px; } }
.rites { grid-template-columns: repeat(3, 1fr); }
.rite:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .rites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rites { grid-template-columns: 1fr; } }
.rite .rite-bible { margin: 0; padding: 10px 0 2px 14px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--emerald-deep); }
.rite .rite-bible cite { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); }
/* Abraham page: Judaism part, and the cross */
.creed-pair { max-width: 1040px; margin: 8px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.creed-pair .bib { margin: 0; }
.rites.shares { max-width: 1040px; margin: 40px auto 0; }
.rites.shares .rite:last-child { grid-column: auto; }
.rite.share { background: var(--white); }
.cross-block { max-width: 920px; margin: 8px auto 48px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 150px; }
.cross-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cross-points li { background: var(--mint); border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; padding: 16px 20px; font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.cross-points strong { color: var(--emerald-deep); }
.creed-pair { align-items: stretch; }
.creed-pair .bib { display: flex; flex-direction: column; justify-content: center; padding: 32px 30px; }
.creed-pair .bib blockquote { font-size: clamp(24px, 2.6vw, 30px); }
