/* ==========================================================================
   "Why Believe?" (/why-believe and its five questions): a calm night-sky series
   for people curious about Islam. Scoped under .wb. Logical properties so Arabic
   and Urdu mirror; dark mode follows [data-theme="dark"] and body.dark; motion
   respects prefers-reduced-motion. No pictures of people: icons, patterns, diagrams.
   ========================================================================== */

.wb {
  --wb-night: #0c1a2b;
  --wb-night-2: #12304a;
  --wb-night-3: #1b4466;
  --wb-gold: #e0b44f;
  --wb-gold-ink: #85631a;
  --wb-gold-soft: #fbf1d8;
  --wb-ink: var(--ip-ink, #1b1f2e);
  --wb-muted: var(--ip-muted, #5e6375);
  --wb-bg: var(--ip-bg, #fbf8f3);
  --wb-surface: var(--ip-surface, #fff);
  --wb-surface-2: var(--ip-surface-2, #f3efe7);
  --wb-line: var(--ip-line, rgba(27, 31, 46, .1));
  --wb-tone: #1f7a63;
  --wb-tone-soft: #e3f3ec;
  --wb-shadow: 0 1px 2px rgba(12, 26, 43, .06), 0 16px 36px -20px rgba(12, 26, 43, .35);
  --wb-radius: 18px;
  --wb-ease: var(--ip-ease, cubic-bezier(.2, .7, .2, 1));
  --wb-serif: "Fraunces", Georgia, "Times New Roman", serif;
  background: var(--wb-bg);
  color: var(--wb-ink);
  overflow-x: clip;
}
.wb[data-tone="sky"], .wb [data-tone="sky"] { --wb-tone: #2b6a98; --wb-tone-soft: #e5f0f9; }
.wb[data-tone="gold"], .wb [data-tone="gold"] { --wb-tone: #9a6f12; --wb-tone-soft: #fbf1d8; }
.wb[data-tone="emerald"], .wb [data-tone="emerald"] { --wb-tone: #1f7a63; --wb-tone-soft: #e3f3ec; }
.wb[data-tone="violet"], .wb [data-tone="violet"] { --wb-tone: #67499c; --wb-tone-soft: #efe9f8; }
.wb[data-tone="rose"], .wb [data-tone="rose"] { --wb-tone: #a3445c; --wb-tone-soft: #f8e8ec; }

[data-theme="dark"] .wb, body.dark .wb {
  --wb-ink: var(--ip-ink, #f2f1ec);
  --wb-muted: var(--ip-muted, #a7abbd);
  --wb-bg: var(--ip-bg, #0e1120);
  --wb-surface: var(--ip-surface, #171b2e);
  --wb-surface-2: var(--ip-surface-2, #1f2440);
  --wb-line: rgba(255, 255, 255, .09);
  --wb-gold-ink: #e6c068;
  --wb-gold-soft: rgba(230, 192, 104, .12);
  --wb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -20px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .wb[data-tone], [data-theme="dark"] .wb [data-tone],
body.dark .wb[data-tone], body.dark .wb [data-tone] { --wb-tone-soft: rgba(255, 255, 255, .06); }
[data-theme="dark"] .wb[data-tone="sky"], [data-theme="dark"] .wb [data-tone="sky"], body.dark .wb[data-tone="sky"] { --wb-tone: #79b4e0; }
[data-theme="dark"] .wb[data-tone="gold"], [data-theme="dark"] .wb [data-tone="gold"], body.dark .wb[data-tone="gold"] { --wb-tone: #e6c068; }
[data-theme="dark"] .wb[data-tone="emerald"], [data-theme="dark"] .wb [data-tone="emerald"], body.dark .wb[data-tone="emerald"] { --wb-tone: #5fd49a; }
[data-theme="dark"] .wb[data-tone="violet"], [data-theme="dark"] .wb [data-tone="violet"], body.dark .wb[data-tone="violet"] { --wb-tone: #b29be0; }
[data-theme="dark"] .wb[data-tone="rose"], [data-theme="dark"] .wb [data-tone="rose"], body.dark .wb[data-tone="rose"] { --wb-tone: #e494a8; }

.wb a { color: inherit; }
.wb :focus-visible { outline: 3px solid var(--wb-gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- Type ---------- */
.wb-title {
  display: flex; align-items: flex-start; gap: .6rem; margin: .5rem 0 .8rem;
  font-family: var(--ip-font-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.06;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.15rem); color: #fff;
}
.wb-title__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 1.25em; height: 1.25em; margin-top: .02em;
  border-radius: 14px; font-size: .78em; color: var(--wb-night);
  background: linear-gradient(140deg, #f7e2a8, var(--wb-gold) 60%, #b98a25);
  box-shadow: 0 10px 24px -12px rgba(224, 180, 79, .9);
}
.wb-title--hub {
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 4.6rem);
  background: linear-gradient(100deg, #fff 0%, #fff 45%, #f7e2a8 70%, var(--wb-gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wb-lead { margin: 0 0 1rem; max-width: 40rem; font-size: clamp(1rem, .95rem + .3vw, 1.16rem); line-height: 1.65; color: rgba(255, 255, 255, .82); }
.wb-eyebrow, .wb-kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.wb-eyebrow { color: var(--wb-gold); }
.wb-kicker { color: var(--wb-tone); }
.wb-h2 {
  margin: .15rem 0 0; font-family: var(--ip-font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); color: var(--wb-ink);
}
html[lang="ar"] .wb-eyebrow, html[lang="ur"] .wb-eyebrow, html[lang="ar"] .wb-kicker, html[lang="ur"] .wb-kicker { letter-spacing: 0; text-transform: none; font-size: .88rem; }

/* ---------- Buttons ---------- */
.wb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.15rem;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .93rem; line-height: 1.2;
  text-decoration: none; transition: transform .2s var(--wb-ease), box-shadow .2s, background-color .2s;
}
.wb-btn:hover { transform: translateY(-2px); }
.wb-btn--gold { background: linear-gradient(135deg, #f7e2a8, var(--wb-gold) 55%, #c99a2e); color: #20180a !important; box-shadow: 0 12px 26px -12px rgba(176, 128, 26, .85); }
.wb-btn--solid { background: var(--ip-primary, #1f7a63); color: #fff !important; }
.wb-btn--ghost { background: var(--wb-surface); color: var(--wb-ink) !important; border-color: var(--wb-line); }
.wb-btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .22); }

/* ---------- Hero ---------- */
.wb-hero {
  position: relative; isolation: isolate; padding: 1.4rem 0 1.6rem; color: #fff;
  background:
    radial-gradient(60rem 26rem at 85% -10%, rgba(224, 180, 79, .2), transparent 60%),
    radial-gradient(40rem 22rem at 0% 110%, rgba(46, 158, 103, .22), transparent 60%),
    linear-gradient(160deg, var(--wb-night) 0%, var(--wb-night-2) 55%, var(--wb-night-3) 100%);
}
.wb-hero__pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: var(--ip-pattern-light);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
}
.wb-hero__inner { display: grid; gap: 1.2rem; }
.wb-hero__copy, .wb-key { min-width: 0; }
.wb-hero__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .3rem; }
@media (min-width: 992px) {
  .wb-hero { padding: 2.2rem 0 2.4rem; }
  .wb-hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
  .wb-hero--hub .wb-hero__inner { align-items: center; }
}

.wb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.wb-crumbs a { color: var(--wb-gold); text-decoration: none; }
.wb-crumbs a:hover { text-decoration: underline; }
.wb-crumbs .bi-chevron-right { font-size: .7rem; opacity: .6; }

.wb-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.wb-meta li {
  display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.wb-meta strong { color: var(--wb-gold); font-weight: 800; }

/* The key idea, read first. */
.wb-key {
  position: relative; padding: 1.15rem 1.2rem 1.05rem; border-radius: var(--wb-radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(255, 253, 246, .95));
  color: #1b1f2e; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(224, 180, 79, .45);
}
.wb-key::before {
  content: ""; position: absolute; inset-inline-start: 1.2rem; top: -1px; width: 3.4rem; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--wb-gold), #b98a25);
}
.wb-key__badge { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #85631a; }
.wb-key__idea { margin: 0 0 .75rem; font-family: var(--wb-serif); font-size: 1.06rem; line-height: 1.55; color: #1b1f2e; }
.wb-key__points { display: grid; gap: .35rem; margin: 0; padding: .7rem 0 0; list-style: none; border-top: 1px dashed rgba(133, 99, 26, .3); }
.wb-key__points li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .35rem; font-size: .9rem; line-height: 1.45; color: #2c3142; }
.wb-key__points i { color: #1f7a63; font-weight: 700; margin-top: .1rem; }
[data-theme="dark"] .wb-key, body.dark .wb-key { background: linear-gradient(160deg, #1d2338, #171b2e); color: #f2f1ec; }
[data-theme="dark"] .wb-key__idea, body.dark .wb-key__idea, [data-theme="dark"] .wb-key__points li, body.dark .wb-key__points li { color: #ecebe5; }
[data-theme="dark"] .wb-key__badge, body.dark .wb-key__badge { color: #e6c068; }
[data-theme="dark"] .wb-key__points i, body.dark .wb-key__points i { color: #5fd49a; }

/* ---------- The series rail ---------- */
.wb-rail { margin-top: .4rem; }
.wb-rail__list {
  display: flex; gap: .3rem; margin: 0; padding: 0 0 .2rem; list-style: none; overflow-x: auto; scrollbar-width: none;
}
.wb-rail__list::-webkit-scrollbar { display: none; }
.wb-rail__step { position: relative; flex: 1 0 auto; }
.wb-rail__step a {
  display: flex; align-items: center; gap: .45rem; padding: .3rem .65rem .3rem .3rem; border-radius: 999px;
  text-decoration: none; font-size: .78rem; font-weight: 700; color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .2s;
}
.wb-rail__step a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.wb-rail__dot {
  display: grid; place-items: center; flex: 0 0 auto; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  font-size: .75rem; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .14);
}
.wb-rail__step.is-done .wb-rail__dot { background: rgba(95, 212, 154, .3); color: #a7e8c3; }
.wb-rail__step.is-current a { color: #20180a; background: linear-gradient(135deg, #f7e2a8, var(--wb-gold)); box-shadow: 0 8px 20px -10px rgba(224, 180, 79, .9); }
.wb-rail__step.is-current .wb-rail__dot { background: #20180a; color: var(--wb-gold); }
.wb-rail__step--end .wb-rail__dot { background: rgba(224, 180, 79, .22); color: var(--wb-gold); }
.wb-rail__label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wb-rail__step.is-current { flex: 0 1 auto; min-width: 0; }
.wb-rail__step.is-current a { min-width: 0; }
/* Only the current question shows its name; the others are numbered dots (their names are in their titles). */
.wb-rail__step { flex: 0 0 auto; }
.wb-rail__step:not(.is-current) .wb-rail__label { display: none; }
.wb-rail__step:not(.is-current) a { padding-inline-end: .3rem; }
.wb-rail__step:not(:last-child)::after { content: ""; position: absolute; inset-inline-end: -.3rem; top: 50%; width: .3rem; height: 2px; background: rgba(255, 255, 255, .2); }

/* ---------- Reading progress ---------- */
.wb-progress { position: sticky; top: var(--ip-header-h, 76px); z-index: 20; height: 3px; background: transparent; }
.wb-progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--wb-gold), var(--wb-tone)); transition: transform .1s linear;
}
[dir="rtl"] .wb-progress span { transform-origin: right center; }

/* ---------- Body: contents + article ---------- */
.wb-body { display: grid; gap: 1.5rem; padding-block: 1.5rem 2.5rem; }
@media (min-width: 1200px) {
  .wb-body { grid-template-columns: 230px minmax(0, 1fr); gap: 2.4rem; }
}
.wb-article { min-width: 0; max-width: 940px; display: grid; gap: 1.1rem; }
.wb-toc { display: none; }
@media (min-width: 1200px) {
  .wb-toc { display: block; }
  .wb-toc__inner { position: sticky; top: calc(var(--ip-header-h, 76px) + 1.2rem); }
}
.wb-toc__title { margin: 0 0 .5rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wb-muted); }
.wb-toc__list { display: grid; gap: 1px; margin: 0 0 1rem; padding: 0; list-style: none; border-inline-start: 2px solid var(--wb-line); }
.wb-toc__list a {
  display: block; margin-inline-start: -2px; padding: .32rem .7rem; border-inline-start: 2px solid transparent;
  font-size: .84rem; line-height: 1.35; color: var(--wb-muted); text-decoration: none; transition: color .2s, border-color .2s;
}
.wb-toc__list a:hover { color: var(--wb-ink); }
.wb-toc__list a.is-active { color: var(--wb-tone); border-inline-start-color: var(--wb-tone); font-weight: 700; }
.wb-toc__ask { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; color: var(--wb-tone) !important; text-decoration: none; }

/* ---------- The video ---------- */
.wb-watch { display: grid; gap: .7rem; scroll-margin-top: calc(var(--ip-header-h, 76px) + 1rem); }
.wb-player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--wb-radius); overflow: hidden;
  background: linear-gradient(150deg, var(--wb-night), var(--wb-night-3)); box-shadow: var(--wb-shadow);
}
.wb-player__video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.wb-player.has-video .wb-player__soon { display: none; }
.wb-player__soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  padding: clamp(1rem, 3vw, 1.8rem); color: #fff;
  background-image: var(--ip-pattern-light), linear-gradient(150deg, var(--wb-night) 10%, var(--wb-night-2) 60%, var(--wb-night-3));
  background-size: 120px 120px, auto;
}
.wb-player__glow { position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(224, 180, 79, .35), transparent); pointer-events: none; }
.wb-player__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%);
  display: grid; place-items: center; width: clamp(3.4rem, 9vw, 4.8rem); height: clamp(3.4rem, 9vw, 4.8rem); border-radius: 50%;
  font-size: clamp(1.6rem, 4vw, 2.3rem); color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), 0 0 0 10px rgba(255, 255, 255, .04);
}
.wb-player__eyebrow { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wb-gold); }
.wb-player__title { margin: 0; font-size: clamp(1.15rem, 1rem + 1.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.wb-player__note { display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 0 0; font-size: .86rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 575.98px) {
  .wb-player:not(.has-video) { aspect-ratio: auto; }
  .wb-player:not(.has-video) .wb-player__soon { position: relative; inset: auto; padding-top: 4.6rem; }
  .wb-player__play { top: 1rem; left: 1rem; transform: none; width: 3rem; height: 3rem; font-size: 1.4rem; }
  [dir="rtl"] .wb-player__play { left: auto; right: 1rem; }
}
.wb-chapters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; counter-reset: wbchap; }
.wb-chapters li {
  counter-increment: wbchap; display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem .28rem .3rem;
  border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--wb-ink); background: var(--wb-surface); box-shadow: inset 0 0 0 1px var(--wb-line);
}
.wb-chapters li::before {
  content: counter(wbchap); display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  font-size: .7rem; font-weight: 800; color: var(--wb-tone); background: var(--wb-tone-soft);
}

/* ---------- Sections ---------- */
.wb-section {
  position: relative; display: grid; gap: .85rem; padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: var(--wb-radius); background: var(--wb-surface); box-shadow: var(--wb-shadow);
  scroll-margin-top: calc(var(--ip-header-h, 76px) + 1rem);
}
.wb-section__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; }
.wb-section__num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  font-weight: 800; font-size: .95rem; color: var(--wb-tone); background: var(--wb-tone-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wb-tone) 22%, transparent);
}
.wb-prose { font-size: 1.02rem; line-height: 1.72; color: var(--wb-ink); }
.wb-prose p { margin: 0 0 .75rem; }
.wb-prose p:last-child { margin-bottom: 0; }
.wb-prose ul { display: grid; gap: .55rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.wb-prose li { position: relative; padding-inline-start: 1.35rem; }
.wb-prose li::before {
  content: ""; position: absolute; inset-inline-start: .2rem; top: .62em; width: .5rem; height: .5rem; border-radius: 2px;
  transform: rotate(45deg); background: var(--wb-tone);
}
.wb-prose strong { color: var(--wb-ink); }
.wb-prose em { font-style: italic; }

/* Pull quote */
.wb-quote {
  position: relative; margin: .2rem 0; padding: .9rem 1.1rem .9rem 3rem; border-radius: 14px;
  background: linear-gradient(120deg, var(--wb-gold-soft), transparent 85%);
}
.wb-quote::before {
  content: "“"; position: absolute; inset-inline-start: .7rem; top: -.25rem; font-family: var(--wb-serif); font-size: 3.6rem; line-height: 1; color: var(--wb-gold);
}
.wb-quote blockquote { margin: 0; font-family: var(--wb-serif); font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem); line-height: 1.45; font-weight: 600; color: var(--wb-ink); }
.wb-quote figcaption { margin-top: .35rem; font-size: .8rem; font-weight: 700; color: var(--wb-gold-ink); }

/* Cards */
.wb-cards { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 768px) { .wb-cards[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wb-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; padding: .8rem .85rem; border-radius: 14px;
  background: var(--wb-surface-2); box-shadow: inset 0 0 0 1px var(--wb-line); transition: transform .2s var(--wb-ease), box-shadow .2s;
}
.wb-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wb-tone) 40%, transparent); }
.wb-card__icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; font-size: 1.05rem; color: #fff; background: var(--wb-tone); }
.wb-card__title { margin: 0 0 .15rem; font-size: .96rem; font-weight: 800; color: var(--wb-ink); }
.wb-card__text { margin: 0; font-size: .89rem; line-height: 1.5; color: var(--wb-muted); }

/* Timeline: a rail with dates; across the page on wide screens when it is short */
.wb-timeline { position: relative; display: grid; gap: .1rem; margin: .2rem 0; padding: 0; list-style: none; }
.wb-timeline::before { content: ""; position: absolute; inset-block: .5rem; inset-inline-start: 5.4rem; width: 2px; background: linear-gradient(var(--wb-tone), var(--wb-gold)); opacity: .45; }
.wb-timeline__item { position: relative; display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 1.3rem; padding: .45rem 0; }
.wb-timeline__item::before {
  content: ""; position: absolute; inset-inline-start: calc(5.4rem - 5px); top: .85rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--wb-surface); box-shadow: 0 0 0 3px var(--wb-tone);
}
.wb-timeline__when { padding-top: .35rem; font-size: .78rem; font-weight: 800; line-height: 1.25; text-align: end; color: var(--wb-tone); }
.wb-timeline__body { padding: .5rem .75rem; border-radius: 12px; background: var(--wb-surface-2); }
.wb-timeline__title { margin: 0 0 .1rem; font-size: .95rem; font-weight: 800; color: var(--wb-ink); }
.wb-timeline__body p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--wb-muted); }
@media (min-width: 768px) {
  .wb-timeline[data-count="5"], .wb-timeline[data-count="6"] { grid-template-columns: repeat(var(--wb-cols, 5), minmax(0, 1fr)); gap: .5rem; padding-top: 1.6rem; }
  .wb-timeline[data-count="6"] { --wb-cols: 6; }
  .wb-timeline[data-count="5"]::before, .wb-timeline[data-count="6"]::before { inset-block: .55rem auto; inset-inline: 0; width: auto; height: 2px; background: linear-gradient(90deg, var(--wb-tone), var(--wb-gold)); }
  .wb-timeline[data-count="5"] .wb-timeline__item, .wb-timeline[data-count="6"] .wb-timeline__item { grid-template-columns: 1fr; gap: .35rem; padding: 0; }
  .wb-timeline[data-count="5"] .wb-timeline__item::before, .wb-timeline[data-count="6"] .wb-timeline__item::before { inset-inline-start: .6rem; top: -1.4rem; }
  .wb-timeline[data-count="5"] .wb-timeline__when, .wb-timeline[data-count="6"] .wb-timeline__when { padding: 0; text-align: start; }
  .wb-timeline[data-count="5"] .wb-timeline__body, .wb-timeline[data-count="6"] .wb-timeline__body { height: 100%; }
}

/* Compare */
.wb-compare { display: grid; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--wb-line); }
.wb-compare__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--wb-line); }
.wb-compare__row:first-child { border-top: 0; }
.wb-compare__row > span { padding: .6rem .75rem; font-size: .9rem; line-height: 1.45; }
.wb-compare__row--head > span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wb-muted); background: var(--wb-surface-2); }
.wb-compare__row--head > span:last-child { color: var(--wb-tone); }
.wb-compare__label { font-weight: 800; color: var(--wb-ink); background: var(--wb-surface-2); }
.wb-compare__left { color: var(--wb-muted); }
.wb-compare__right { color: var(--wb-ink); font-weight: 600; background: var(--wb-tone-soft); }
@media (max-width: 575.98px) {
  .wb-compare__row { grid-template-columns: 1fr 1fr; }
  .wb-compare__row--head > span:first-child { display: none; }
  .wb-compare__label { grid-column: 1 / -1; padding-block: .45rem .1rem !important; background: transparent; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--wb-tone) !important; }
}

/* Myths and facts */
.wb-myths { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.wb-myth { display: grid; gap: .3rem; padding: .7rem .8rem; border-radius: 14px; background: var(--wb-surface-2); box-shadow: inset 0 0 0 1px var(--wb-line); }
.wb-myth p { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .4rem; margin: 0; font-size: .9rem; line-height: 1.45; }
.wb-myth__claim { font-weight: 700; color: var(--wb-ink); }
.wb-myth__claim i { color: #b4415b; }
.wb-myth__fact { color: var(--wb-muted); }
.wb-myth__fact i { color: #1f7a63; }

/* The three ways the message drifted */
.wb-cases { display: grid; gap: .8rem; }
.wb-case { padding: .9rem; border-radius: 16px; background: var(--wb-surface-2); box-shadow: inset 0 0 0 1px var(--wb-line); }
.wb-case__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; font-size: 1.08rem; font-weight: 800; color: var(--wb-ink); }
.wb-case__title i { color: var(--wb-tone); font-size: 1.3rem; }
.wb-case__steps { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .wb-case__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wb-case__step { position: relative; padding: .7rem .75rem; border-radius: 12px; background: var(--wb-surface); box-shadow: 0 1px 0 var(--wb-line); }
.wb-case__step p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--wb-ink); }
.wb-case__tag { display: block; margin-bottom: .3rem; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wb-case__step--then .wb-case__tag { color: #2b6a98; }
.wb-case__step--now .wb-case__tag { color: #a3445c; }
.wb-case__step--quran { background: linear-gradient(150deg, var(--wb-gold-soft), var(--wb-surface)); box-shadow: inset 0 0 0 1px rgba(224, 180, 79, .45); }
.wb-case__step--quran .wb-case__tag { color: var(--wb-gold-ink); }
@media (min-width: 768px) {
  .wb-case__step:not(:last-child)::after {
    content: "\F138"; font-family: "bootstrap-icons"; position: absolute; inset-inline-end: -.72rem; top: 50%; z-index: 1;
    display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: -.65rem; border-radius: 50%;
    font-size: .8rem; color: var(--wb-muted); background: var(--wb-surface-2);
  }
  [dir="rtl"] .wb-case__step:not(:last-child)::after { content: "\F12F"; }
}
.wb-case__sources { margin-top: .6rem; }
.wb-case__sources summary { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 700; color: var(--wb-tone); cursor: pointer; }
.wb-case__sources[open] summary { margin-bottom: .5rem; }

/* Stored verses and hadith */
.wb-sources { display: grid; gap: .6rem; }
.wb-verse {
  position: relative; margin: 0; padding: .95rem 1rem .8rem; border-radius: 14px;
  background:
    var(--ip-girih) top right / 120px 120px no-repeat,
    linear-gradient(160deg, color-mix(in srgb, var(--wb-tone) 7%, var(--wb-surface)), var(--wb-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wb-tone) 22%, transparent);
}
.wb-verse__mark { position: absolute; inset-inline-start: 1rem; top: -.7rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 8px; font-size: .85rem; color: #fff; background: var(--wb-tone); }
.wb-verse__arabic { margin: .25rem 0 .55rem; font-family: var(--ip-font-quran); font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); line-height: 2.05; color: var(--wb-ink); text-align: right; }
.wb-verse__num { font-size: .8em; color: var(--wb-tone); }
.wb-verse__translation { margin: 0 0 .45rem; font-size: .97rem; line-height: 1.65; color: var(--wb-ink); text-align: left; }
.wb-verse__translation sup { margin-inline-end: .15rem; font-weight: 800; color: var(--wb-tone); }
.wb-verse__cite { font-size: .8rem; color: var(--wb-muted); text-align: left; }
.wb-verse__cite a { font-weight: 800; color: var(--wb-tone) !important; text-decoration: none; }
.wb-verse__cite a:hover { text-decoration: underline; }
[dir="rtl"] .wb-verse__translation, [dir="rtl"] .wb-verse__cite { direction: ltr; }
.wb-hadith { position: relative; }
.wb-hadith__label {
  position: absolute; inset-inline-start: 1rem; top: -.6rem; z-index: 1; padding: .1rem .5rem; border-radius: 999px;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #20180a; background: var(--wb-gold);
}
.wb-hadith .ip-stored-hadith { margin: 0; padding: 1rem 1rem .8rem; border-radius: 14px; background: var(--wb-gold-soft); box-shadow: inset 0 0 0 1px rgba(224, 180, 79, .4); }
.wb-hadith .ip-stored-hadith__arabic { font-family: var(--ip-font-arabic, "Amiri", serif); font-size: 1.15rem; line-height: 1.95; }
.wb-hadith .ip-stored-hadith__translation { font-size: .94rem; line-height: 1.6; white-space: pre-line; }
.wb-hadith .ip-stored-hadith__cite { font-size: .8rem; }

.wb-more { border-radius: 14px; background: var(--wb-surface-2); box-shadow: inset 0 0 0 1px var(--wb-line); }
.wb-more summary { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .6rem .85rem; cursor: pointer; list-style: none; font-size: .88rem; font-weight: 700; color: var(--wb-tone); }
.wb-more summary::-webkit-details-marker { display: none; }
.wb-more[open] summary i { transform: rotate(45deg); }
.wb-more summary i { transition: transform .2s; }
.wb-more__refs { font-weight: 600; font-size: .8rem; color: var(--wb-muted); }
.wb-more > .wb-sources { padding: .4rem .7rem .8rem; }

/* Recap, sources, next */
.wb-recap { padding: clamp(1rem, 2.5vw, 1.4rem); border-radius: var(--wb-radius); color: #fff; background: linear-gradient(150deg, var(--wb-night), var(--wb-night-3)); scroll-margin-top: calc(var(--ip-header-h, 76px) + 1rem); }
.wb-recap .wb-h2 { display: flex; align-items: center; gap: .45rem; color: #fff; }
.wb-recap .wb-h2 i { color: var(--wb-gold); }
.wb-recap__list { display: grid; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; counter-reset: wbrecap; }
.wb-recap__list li { counter-increment: wbrecap; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .5rem; font-size: .97rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.wb-recap__list li::before { content: counter(wbrecap); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: .78rem; font-weight: 800; color: #20180a; background: var(--wb-gold); }

.wb-refs { border-radius: var(--wb-radius); background: var(--wb-surface); box-shadow: var(--wb-shadow); scroll-margin-top: calc(var(--ip-header-h, 76px) + 1rem); }
.wb-refs summary { display: grid; gap: .2rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.wb-refs summary::-webkit-details-marker { display: none; }
.wb-refs__title { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--wb-ink); }
.wb-refs__title::after { content: "\F282"; font-family: "bootstrap-icons"; margin-inline-start: auto; font-size: .9rem; color: var(--wb-muted); transition: transform .2s; }
.wb-refs details[open] .wb-refs__title::after { transform: rotate(180deg); }
.wb-refs__hint { font-size: .85rem; color: var(--wb-muted); }
.wb-refs__list { display: grid; gap: .45rem; margin: 0; padding: 0 1.2rem 1.1rem 2.6rem; font-size: .88rem; line-height: 1.5; color: var(--wb-ink); }
.wb-refs__list li::marker { font-weight: 800; color: var(--wb-tone); }

.wb-next { display: grid; gap: .6rem; }
.wb-next__card {
  position: relative; display: grid; gap: .2rem; padding: 1.2rem 1.3rem; border-radius: var(--wb-radius); overflow: hidden;
  color: #fff !important; text-decoration: none;
  background: var(--ip-pattern-light) 0 0 / 120px 120px, linear-gradient(135deg, var(--wb-tone), var(--wb-night) 85%);
  box-shadow: var(--wb-shadow); transition: transform .25s var(--wb-ease);
}
.wb-next__card:hover { transform: translateY(-3px); }
.wb-next__teaser { font-family: var(--wb-serif); font-size: 1.05rem; font-style: italic; color: rgba(255, 255, 255, .85); }
.wb-next__label { margin-top: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wb-gold); }
.wb-next__title { display: flex; align-items: center; gap: .5rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; }
.wb-next__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-weight: 700; color: var(--wb-gold); }
.wb-prev { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--wb-muted) !important; text-decoration: none; }
.wb-prev:hover { color: var(--wb-ink) !important; }

.wb-invite {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--wb-radius); color: #fff;
  background: radial-gradient(30rem 16rem at 100% 0%, rgba(224, 180, 79, .28), transparent 65%), linear-gradient(150deg, var(--wb-night), #10503a);
}
.wb-invite__pattern { position: absolute; inset: 0; z-index: -1; background-image: var(--ip-pattern-light); background-size: 120px 120px; }
.wb-invite__label { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wb-gold); }
.wb-invite__title { margin: .3rem 0 .5rem; font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.wb-invite__text { max-width: 38rem; margin: 0 0 1rem; line-height: 1.65; color: rgba(255, 255, 255, .85); }
.wb-invite__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Landing page ---------- */
.wb-orbit { position: relative; display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.wb-orbit::before { content: ""; position: absolute; inset-block: 1rem; inset-inline-start: 1.3rem; width: 2px; background: linear-gradient(var(--wb-gold), rgba(224, 180, 79, .1)); }
.wb-orbit__node a {
  position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .7rem; align-items: center; padding: .35rem .8rem .35rem 0;
  border-radius: 999px; text-decoration: none; color: #fff; transition: background-color .2s, transform .2s var(--wb-ease);
}
.wb-orbit__node a:hover { background: rgba(255, 255, 255, .07); transform: translateX(4px); }
[dir="rtl"] .wb-orbit__node a:hover { transform: translateX(-4px); }
.wb-orbit__num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-weight: 800; font-size: 1rem; color: #fff;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--wb-tone) 70%, #fff), var(--wb-tone));
  box-shadow: 0 0 0 4px var(--wb-night-2), 0 0 24px -4px color-mix(in srgb, var(--wb-tone) 80%, transparent);
}
[data-theme="dark"] .wb-orbit__num, body.dark .wb-orbit__num { color: #0c1a2b; }
.wb-orbit__q { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.wb-orbit__node--end .wb-orbit__num { color: #20180a; background: linear-gradient(135deg, #f7e2a8, var(--wb-gold)); }
.wb-orbit__node--end .wb-orbit__q { color: var(--wb-gold); }
@media (min-width: 992px) {
  .wb-orbit { padding: 1.2rem 1.3rem; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
  .wb-orbit::before { inset-inline-start: 2.6rem; inset-block: 2rem; }
  .wb-orbit__node:nth-child(even) a { margin-inline-start: 1.6rem; }
  .wb-orbit__node:nth-child(even)::before { content: none; }
}

.wb-hub-section { padding-block: 2rem .5rem; }
.wb-hub-head { margin-bottom: 1rem; }
.wb-path { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .wb-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; } .wb-path__item--end { grid-column: 1 / -1; } }
.wb-qcard {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem;
  border-radius: var(--wb-radius); background: var(--wb-surface); box-shadow: var(--wb-shadow); text-decoration: none; overflow: hidden;
  transition: transform .25s var(--wb-ease), box-shadow .25s;
}
.wb-qcard::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--wb-tone); }
.wb-qcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12, 26, 43, .06), 0 26px 50px -26px rgba(12, 26, 43, .5); }
.wb-qcard__num { position: absolute; inset-inline-end: 3.6rem; bottom: -.35rem; font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; color: var(--wb-tone); opacity: .1; }
.wb-qcard__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.35rem; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--wb-tone) 75%, #fff), var(--wb-tone)); }
.wb-qcard__body { display: grid; gap: .2rem; }
.wb-qcard__q { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--wb-ink); }
.wb-qcard__a { font-size: .92rem; line-height: 1.45; color: var(--wb-muted); }
.wb-qcard__meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .25rem; font-size: .78rem; font-weight: 600; color: var(--wb-tone); }
.wb-qcard__go { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: var(--wb-tone); background: var(--wb-tone-soft); transition: transform .25s var(--wb-ease); }
.wb-qcard:hover .wb-qcard__go { transform: translateX(3px); }
.wb-qcard--end { background: linear-gradient(135deg, var(--wb-night), #10503a); }
.wb-qcard--end::before { background: var(--wb-gold); }
.wb-qcard--end .wb-qcard__num { position: static; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.35rem; opacity: 1; color: #20180a; background: linear-gradient(135deg, #f7e2a8, var(--wb-gold)); }
.wb-qcard--end .wb-qcard__q { color: #fff; }
.wb-qcard--end .wb-qcard__a { color: rgba(255, 255, 255, .8); }
.wb-qcard--end .wb-qcard__go { color: #20180a; background: var(--wb-gold); }
.wb-path__link { display: flex; align-items: center; gap: .4rem; margin: .45rem .4rem 0; font-size: .86rem; font-style: italic; color: var(--wb-muted); }
.wb-path__link i { color: var(--wb-gold-ink); font-style: normal; }

.wb-hub-calm { display: grid; gap: 1.2rem; padding-bottom: 2.5rem; }
@media (min-width: 992px) { .wb-hub-calm { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.wb-hub-calm__verse { display: grid; gap: .8rem; }
.wb-hub-calm .wb-verse { --wb-tone: #1f7a63; }
.wb-tips { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.wb-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; padding: .85rem .95rem; border-radius: 14px; background: var(--wb-surface); box-shadow: var(--wb-shadow); }
.wb-tip__icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; font-size: 1.05rem; color: #85631a; background: var(--wb-gold-soft); }
.wb-tip__title { margin: 0 0 .1rem; font-size: .96rem; font-weight: 800; color: var(--wb-ink); }
.wb-tip p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--wb-muted); }
.wb-tip--ask { display: flex; flex-wrap: wrap; gap: .5rem; background: transparent; box-shadow: none; padding: .2rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .wb *, .wb *::before, .wb *::after { transition: none !important; animation: none !important; }
}
@media print {
  .wb-hero { color: #000; background: none; }
  .wb-title, .wb-lead, .wb-meta li { color: #000; }
  .wb-rail, .wb-toc, .wb-progress, .wb-watch, .wb-next { display: none; }
  .wb-refs details { display: block; }
}

/* Arabic and Urdu pages: the stored translation of verses and hadith is English, so it reads left to right. */
.wb-note { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .82rem; color: var(--wb-muted); }
[dir="rtl"] .wb-refs__list { padding: 0 2.6rem 1.1rem 1.2rem; text-align: left; }
[dir="rtl"] .wb-more__refs { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .wb-title, html[lang="ur"] .wb-title { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .wb-h2, html[lang="ur"] .wb-h2, html[lang="ar"] .wb-qcard__q, html[lang="ur"] .wb-qcard__q { letter-spacing: 0; line-height: 1.5; }
html[lang="ar"] .wb-prose, html[lang="ur"] .wb-prose, html[lang="ur"] .wb-key__idea, html[lang="ar"] .wb-key__idea { line-height: 1.95; }
html[lang="ar"] .wb-key__idea, html[lang="ur"] .wb-key__idea, html[lang="ar"] .wb-quote blockquote, html[lang="ur"] .wb-quote blockquote { font-family: inherit; }
html[lang="ar"] .wb-key__badge, html[lang="ur"] .wb-key__badge, html[lang="ar"] .wb-case__tag, html[lang="ur"] .wb-case__tag,
html[lang="ar"] .wb-player__eyebrow, html[lang="ur"] .wb-player__eyebrow, html[lang="ar"] .wb-next__label, html[lang="ur"] .wb-next__label,
html[lang="ar"] .wb-toc__title, html[lang="ur"] .wb-toc__title, html[lang="ar"] .wb-invite__label, html[lang="ur"] .wb-invite__label { letter-spacing: 0; text-transform: none; font-size: .85rem; }
[dir="rtl"] .wb-quote { padding: .9rem 3rem .9rem 1.1rem; }
