/* ==========================================================================
   Explore Islam (/explore-islam/*) and Muslims Around the World: a calm, warm
   design for people curious about Islam. Everything is scoped under .ex.
   Logical properties throughout so Arabic and Urdu mirror. Dark mode follows
   [data-theme="dark"] and body.dark. Motion respects prefers-reduced-motion.
   ========================================================================== */

.ex {
  /* Lapis & Saffron, in the Explore area's plum-to-rose. The "emerald" names are historical. */
  --ex-ink: var(--ip-ink, #1b1f2e);
  --ex-text: var(--ip-ink, #1b1f2e);
  --ex-muted: var(--ip-muted, #5e6375);
  --ex-bg: var(--ip-bg, #fbf8f3);
  --ex-surface: var(--ip-surface, #ffffff);
  --ex-surface-2: var(--ip-surface-2, #f3efe7);
  --ex-tint: var(--ip-green-50, #eefaf0);
  --ex-emerald: #1f7a63;
  --ex-emerald-2: #2e9e67;
  --ex-mint: #d7f0e3;
  --ex-deep: #10503a;
  --ex-night: #0b3324;
  --ex-gold: #85631a;
  --ex-gold-2: #e0b44f;
  --ex-gold-3: #f7e2a8;
  --ex-gold-soft: #fbf1d8;
  --ex-sky: #2b6a98;
  --ex-violet: #67499c;
  --ex-rose: #a3445c;
  --ex-border: rgba(27, 31, 46, .1);
  --ex-border-strong: rgba(27, 31, 46, .2);
  --ex-shadow: 0 1px 2px rgba(27, 31, 46, .05), 0 14px 34px -16px rgba(27, 31, 46, .28);
  --ex-shadow-lg: 0 2px 6px rgba(27, 31, 46, .06), 0 30px 60px -28px rgba(27, 31, 46, .38);
  --ex-radius: 20px;
  --ex-radius-sm: 12px;
  --ex-ease: cubic-bezier(.2, .7, .2, 1);
  --ex-display: var(--ip-font-display, "Fraunces", Georgia, "Times New Roman", serif);
  --ex-arabic: "Amiri", "Noto Naskh Arabic", serif;

  --ex-art-sky-1: #fdf6e3;
  --ex-art-sky-2: #e6f4ea;
  --ex-art-glow: #ffe7a3;
  --ex-art-gold-1: #f3d37a;
  --ex-art-gold-2: #b98a25;
  --ex-art-ink: #0d3b29;
  --ex-art-soft: #1f7a63;
  --ex-art-paper: #fffdf6;
  --ex-art-pattern: rgba(31, 122, 99, .12);

  background: var(--ex-bg);
  color: var(--ex-text);
  overflow-x: clip;
}

[data-theme="dark"] .ex,
body.dark .ex {
  --ex-ink: var(--ip-ink, #f2f1ec);
  --ex-text: var(--ip-ink, #f2f1ec);
  --ex-muted: var(--ip-muted, #a7abbd);
  --ex-bg: var(--ip-bg, #0e1120);
  --ex-surface: var(--ip-surface, #171b2e);
  --ex-surface-2: var(--ip-surface-2, #1f2440);
  --ex-tint: #0b1a14;
  --ex-emerald: #5fd49a;
  --ex-emerald-2: #a7e8c3;
  --ex-mint: #14402f;
  --ex-deep: #0a2a1e;
  --ex-gold: #e6c068;
  --ex-gold-soft: rgba(230, 192, 104, .12);
  --ex-sky: #79b4e0;
  --ex-violet: #b29be0;
  --ex-rose: #e494a8;
  --ex-border: rgba(255, 255, 255, .08);
  --ex-border-strong: rgba(255, 255, 255, .16);
  --ex-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --ex-shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 60px -28px rgba(0, 0, 0, .8);

  --ex-art-sky-1: #0d3326;
  --ex-art-sky-2: #071c14;
  --ex-art-glow: #f0c86a;
  --ex-art-ink: #a7e8c3;
  --ex-art-soft: #5fb98c;
  --ex-art-paper: #e9e1c9;
  --ex-art-pattern: rgba(167, 232, 195, .1);
}

html[lang="ar"] .ex { --ex-display: "Amiri", "Noto Naskh Arabic", serif; }
html[lang="ur"] .ex { --ex-arabic: var(--ip-font-urdu), "Amiri", serif; }

.ex a { color: inherit; }
.ex :focus-visible { outline: 3px solid var(--ex-gold-2); outline-offset: 3px; border-radius: 8px; }
.ex-flip { display: inline-block; }
[dir="rtl"] .ex-flip { transform: scaleX(-1); }
.ex-muted { color: var(--ex-muted); }
.ex-center { text-align: center; margin-block-start: 1.75rem; }
.ex-narrow { max-width: 900px; }

/* ---------- Typography ---------- */
.ex-title {
  font-family: var(--ex-display); font-weight: 600; color: var(--ex-ink);
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; margin: .35rem 0 1rem;
}
.ex-accent {
  background: linear-gradient(100deg, #c8952c 0%, #e0b44f 45%, #a87c1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .ex-accent, body.dark .ex-accent { background: linear-gradient(100deg, #f7e2a8, #e6c068 50%, #f3d37a); -webkit-background-clip: text; background-clip: text; }
.ex-h2 { font-family: var(--ex-display); font-weight: 600; color: var(--ex-ink); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); line-height: 1.15; margin: .2rem 0 .6rem; }
.ex-h3 { font-family: var(--ex-display); font-weight: 600; color: var(--ex-ink); font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5rem; }
.ex-eyebrow, .ex-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ex-emerald);
}
.ex-eyebrow::before, .ex-kicker::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ex-gold-2), transparent); }
html[lang="ar"] .ex-eyebrow, html[lang="ur"] .ex-eyebrow, html[lang="ar"] .ex-kicker, html[lang="ur"] .ex-kicker { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.ex-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.7; color: var(--ex-muted); max-width: 38rem; margin: 0 0 1.5rem; }
.ex-section-lead { color: var(--ex-muted); font-size: 1.05rem; line-height: 1.7; max-width: 46rem; margin: 0; }
.ex-prose { line-height: 1.75; }
.ex-prose p { margin: 0 0 .85rem; }
.ex-prose p:last-child { margin-bottom: 0; }
.ex-prose ul, .ex-prose ol { padding-inline-start: 1.25rem; margin: 0 0 .85rem; }
.ex-prose li { margin-block-end: .35rem; }
.ex-prose a, .ex-link { color: var(--ex-emerald); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ex-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.ex-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.ex-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ex-ease), box-shadow .2s var(--ex-ease), background-color .2s, color .2s, border-color .2s;
}
.ex-btn:hover { transform: translateY(-2px); }
.ex-btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.ex-btn-gold { background: linear-gradient(135deg, #f1d27c, #c99a2e); color: #20180a !important; box-shadow: 0 12px 26px -12px rgba(176, 128, 26, .8); }
.ex-btn-solid { background: var(--ex-emerald); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(13, 59, 41, .75); }
.ex-btn-solid:hover { background: #16624f; }
[data-theme="dark"] .ex-btn-solid, body.dark .ex-btn-solid { background: #2eb872; color: #03140b !important; box-shadow: 0 10px 22px -12px rgba(46, 184, 114, .55); }
[data-theme="dark"] .ex-btn-solid:hover, body.dark .ex-btn-solid:hover { background: #5fd49a; }
.ex-btn-ghost { background: var(--ex-surface); color: var(--ex-ink) !important; border-color: var(--ex-border-strong); }
.ex-btn-ghost:hover { border-color: var(--ex-emerald); }
.ex-btn-glass { background: rgba(255, 255, 255, .1); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.ex-btn-glass:hover { background: rgba(255, 255, 255, .18); }
.ex-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.ex-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem) 0 clamp(2rem, 1.5rem + 3vw, 4rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(224, 180, 79, .22), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(217, 138, 112, .16), transparent 60%),
    linear-gradient(180deg, #f8f1e1 0%, #eef6ee 100%);
}
[data-theme="dark"] .ex-hero, body.dark .ex-hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(224, 180, 79, .14), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(46, 184, 114, .14), transparent 60%),
    linear-gradient(180deg, #0a2a1e 0%, var(--ip-bg, #050b0e) 100%);
}
.ex-hero-pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%231f7a63' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M36 6 44.5 27.5 66 36 44.5 44.5 36 66 27.5 44.5 6 36 27.5 27.5Z'/%3E%3Cpath d='M15 15h42v42H15z' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
[dir="rtl"] .ex-hero-pattern { -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 55%); mask-image: linear-gradient(270deg, transparent 0%, #000 55%); }
.ex-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.ex-hero-compact .ex-hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr); }
.ex-hero-art { max-width: 420px; justify-self: center; width: 100%; animation: ex-float 9s ease-in-out infinite; }
.ex-hero-compact .ex-hero-art { max-width: 260px; }
.ex-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-end: 1.25rem; }
.ex-promises { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; color: var(--ex-muted); font-size: .92rem; }
.ex-promises li { display: inline-flex; align-items: center; gap: .45rem; }
.ex-promises i { color: var(--ex-emerald); }
@keyframes ex-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ex-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; font-size: .86rem; color: var(--ex-muted); }
.ex-crumbs li + li::before { content: "›"; margin-inline-end: .35rem; opacity: .6; }
[dir="rtl"] .ex-crumbs li + li::before { content: "‹"; }
.ex-crumbs a { text-decoration: none; }
.ex-crumbs a:hover { color: var(--ex-emerald); text-decoration: underline; }

/* ---------- Hero art (SVG) ---------- */
.ex-art { width: 100%; height: auto; display: block; overflow: visible; }
.ex-art-halo { fill: none; stroke: var(--ex-art-pattern); stroke-width: 1.5; stroke-dasharray: 2 7; }
.ex-art-pattern { fill: none; stroke: var(--ex-art-pattern); stroke-width: 1.2; }
.ex-art-frame { fill: none; stroke: var(--ex-art-gold-2); stroke-width: 3; }
.ex-art-frame-outer { stroke-width: 1.2; opacity: .55; }
.ex-art-star { fill: var(--ex-art-gold-1); }
.ex-art-rays path { stroke: var(--ex-art-gold-1); stroke-width: 2; stroke-linecap: round; opacity: .55; fill: none; }
.ex-art-page { fill: var(--ex-art-paper); stroke: var(--ex-art-gold-2); stroke-width: 1.5; }
.ex-art-page-2 { fill: color-mix(in srgb, var(--ex-art-paper) 92%, #c99a2e); }
.ex-art-shadow { fill: rgba(27, 31, 46, .12); }
.ex-art-lines path { stroke: var(--ex-art-soft); stroke-width: 2; stroke-linecap: round; opacity: .55; fill: none; }
.ex-art-dune { fill: color-mix(in srgb, var(--ex-art-gold-1) 35%, var(--ex-art-sky-1)); }
.ex-art-water { fill: none; stroke: #4aa3c7; stroke-width: 3; stroke-linecap: round; opacity: .75; }
.ex-art-trunk { fill: none; stroke: #8a5a2b; stroke-width: 9; stroke-linecap: round; }
.ex-art-leaf path { fill: var(--ex-art-soft); stroke: var(--ex-art-ink); stroke-width: 1; }
.ex-art-dates circle { fill: #b5562c; }
.ex-art-arch { fill: rgba(255, 255, 255, .45); stroke: var(--ex-art-ink); stroke-width: 3; }
.ex-art-arch-2 { fill: rgba(224, 180, 79, .18); stroke: var(--ex-art-gold-2); }
[data-theme="dark"] .ex-art-arch, body.dark .ex-art-arch { fill: rgba(255, 255, 255, .05); }
.ex-art-ground { stroke: var(--ex-art-gold-2); stroke-width: 3; }
.ex-art-building rect, .ex-art-building path { fill: var(--ex-art-ink); }
.ex-art-windows path { fill: var(--ex-art-gold-1); opacity: .9; }
.ex-art-band { stroke: var(--ex-art-gold-1); stroke-width: 4; }
.ex-art-globe { fill: color-mix(in srgb, #4aa3c7 30%, var(--ex-art-sky-1)); stroke: var(--ex-art-ink); stroke-width: 2.5; }
.ex-art-meridians ellipse, .ex-art-meridians path { fill: none; stroke: var(--ex-art-ink); stroke-width: 1.2; opacity: .4; }
.ex-art-land path { fill: var(--ex-art-soft); opacity: .85; }
.ex-art-pins circle { fill: var(--ex-art-gold-1); stroke: #fff; stroke-width: 2.5; }
.ex-art-doorway { fill: var(--ex-art-ink); }
.ex-art-door-leaf { fill: var(--ex-art-soft); opacity: .9; }
.ex-art-path { fill: color-mix(in srgb, var(--ex-art-gold-1) 55%, transparent); }
.ex-art-knob { fill: var(--ex-art-gold-1); }
.ex-art-chain { stroke: var(--ex-art-gold-2); stroke-width: 3; }
.ex-art-lantern-body { fill: color-mix(in srgb, var(--ex-art-glow) 70%, #fff); stroke: var(--ex-art-gold-2); stroke-width: 3; }
.ex-art-lantern-lines { fill: none; stroke: var(--ex-art-gold-2); stroke-width: 2; opacity: .7; }

/* ---------- Page navigation pills ---------- */
.ex-nav { position: relative; z-index: 2; margin-top: -1.4rem; }
.ex-nav-list {
  list-style: none; display: flex; gap: .4rem; padding: .45rem; margin: 0; overflow-x: auto; scrollbar-width: none;
  background: var(--ex-surface); border: 1px solid var(--ex-border); border-radius: 999px; box-shadow: var(--ex-shadow);
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.ex-nav-list::-webkit-scrollbar { display: none; }
.ex-nav-link {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; scroll-snap-align: start;
  padding: .55rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ex-muted); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.ex-nav-link:hover { color: var(--ex-ink); background: var(--ex-surface-2); }
.ex-nav-link.is-active { background: var(--ex-deep); color: #fff; }
@media (min-width: 1200px) {
  .ex-nav-list { justify-content: space-between; gap: .15rem; }
  .ex-nav-link { padding: .5rem .7rem; font-size: .84rem; gap: .35rem; }
}
/* Nine labels and their icons need about 1500px; on narrower desktops the labels alone fit in one row. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .ex-nav-link i { display: none; }
}
/* Nine pages fit in one row only on wide screens; below that the row scrolls, and a soft fade says so. */
@media (max-width: 1199.98px) {
  .ex-nav-list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
  [dir="rtl"] .ex-nav-list { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); }
}
[data-theme="dark"] .ex-nav-link.is-active, body.dark .ex-nav-link.is-active { background: var(--ex-gold-2); color: #1b1607; }

/* ---------- Sections ---------- */
.ex-section { padding: clamp(2.5rem, 2rem + 3vw, 4.75rem) 0; }
.ex-section-tight { padding: 2rem 0 0; }
.ex-section-tint { background: var(--ex-tint); }
.ex-section-head { margin-bottom: 1.75rem; }
.ex-section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.ex-section-night {
  color: #f3eef6;
  background:
    radial-gradient(50rem 26rem at 80% 0%, rgba(224, 180, 79, .18), transparent 60%),
    linear-gradient(180deg, #0d3b29 0%, #072a1d 100%);
}
.ex-on-dark .ex-h2, .ex-on-dark .ex-title { color: #fff; }
.ex-on-dark .ex-kicker { color: var(--ex-gold-3); }
.ex-on-dark .ex-section-lead { color: rgba(243, 238, 246, .82); }
.ex-review-note { display: flex; align-items: center; gap: .5rem; margin: 1.75rem 0 0; font-size: .88rem; color: var(--ex-muted); }
.ex-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.25rem 0 0; font-size: .88rem; }
.ex-empty { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px dashed var(--ex-border-strong); color: var(--ex-muted); }
.ex-empty p { margin: 0; }
.ex-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ex-stack { display: grid; gap: 1.25rem; }

/* ---------- Plain-language switch ---------- */
.ex-plain { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.ex-switch { display: inline-flex; align-items: center; gap: .6rem; background: var(--ex-surface); border: 1px solid var(--ex-border-strong); border-radius: 999px; padding-block: .4rem .4rem; padding-inline: .45rem .9rem; font-weight: 600; font-size: .9rem; color: var(--ex-ink); cursor: pointer; }
.ex-switch-track { position: relative; width: 2.4rem; height: 1.4rem; border-radius: 999px; background: var(--ex-border-strong); transition: background-color .2s; }
.ex-switch-thumb { position: absolute; inset-block-start: .15rem; inset-inline-start: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ex-ease); }
.ex-switch[aria-pressed="true"] .ex-switch-track { background: var(--ex-emerald); }
.ex-switch[aria-pressed="true"] .ex-switch-thumb { transform: translateX(1rem); }
[dir="rtl"] .ex-switch[aria-pressed="true"] .ex-switch-thumb { transform: translateX(-1rem); }
.ex-plain-help { font-size: .8rem; color: var(--ex-muted); max-width: 18rem; text-align: end; }
.ex-gloss { color: var(--ex-emerald); font-style: normal; font-size: .92em; white-space: normal; }
.ex-gloss::before { content: " ("; }
.ex-gloss::after { content: ")"; }

/* ---------- Start-here choices ---------- */
.ex-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ex-choice {
  --tone: var(--ex-emerald);
  background: var(--ex-surface); border: 1px solid var(--ex-border); border-radius: var(--ex-radius);
  box-shadow: var(--ex-shadow); transition: transform .2s var(--ex-ease), box-shadow .2s var(--ex-ease), border-color .2s;
  overflow: hidden;
}
.ex-choice:hover { transform: translateY(-2px); box-shadow: var(--ex-shadow-lg); }
.ex-choice[open] { border-color: color-mix(in srgb, var(--tone) 45%, transparent); grid-column: span 1; }
.ex-choice summary { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.15rem; cursor: pointer; }
.ex-choice summary::-webkit-details-marker { display: none; }
.ex-choice-icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; font-size: 1.25rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.ex-choice-q { flex: 1; font-weight: 650; font-size: 1.04rem; color: var(--ex-ink); line-height: 1.35; }
.ex-choice-chevron { color: var(--ex-muted); transition: transform .25s var(--ex-ease); }
.ex-choice[open] .ex-choice-chevron { transform: rotate(180deg); }
.ex-choice-body { padding: 0 1.15rem 1.15rem; animation: ex-rise .3s var(--ex-ease) both; }
.ex-choice-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; }
.ex-short { font-size: 1.02rem; line-height: 1.7; margin: 0 0 .75rem; color: var(--ex-text); }

.ex-tone-emerald { --tone: var(--ex-emerald); }
.ex-tone-gold { --tone: var(--ex-gold); }
.ex-tone-sky { --tone: var(--ex-sky); }
.ex-tone-violet { --tone: var(--ex-violet); }
.ex-tone-rose { --tone: var(--ex-rose); }

@keyframes ex-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Path cards ---------- */
.ex-paths { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; }
.ex-paths-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-path {
  --tone: var(--ex-emerald);
  position: relative; display: flex; flex-direction: column; gap: .45rem; height: 100%;
  padding: 1.35rem 1.35rem 3rem; border-radius: var(--ex-radius); text-decoration: none;
  background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow);
  transition: transform .2s var(--ex-ease), box-shadow .2s var(--ex-ease), border-color .2s;
}
.ex-path::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 4px; border-radius: var(--ex-radius) var(--ex-radius) 0 0; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 25%, transparent)); }
.ex-path:hover { transform: translateY(-3px); box-shadow: var(--ex-shadow-lg); border-color: color-mix(in srgb, var(--tone) 40%, transparent); }
.ex-path-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; font-size: 1.25rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); margin-bottom: .35rem; }
.ex-path-title { font-family: var(--ex-display); font-size: 1.2rem; font-weight: 600; color: var(--ex-ink); line-height: 1.25; }
.ex-path-text { color: var(--ex-muted); font-size: .95rem; line-height: 1.6; }
.ex-path-go { position: absolute; inset-inline-end: 1.2rem; inset-block-end: 1rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, transparent); transition: transform .2s var(--ex-ease); }
.ex-path:hover .ex-path-go { transform: translateX(3px); }
[dir="rtl"] .ex-path:hover .ex-path-go { transform: translateX(-3px); }

/* ---------- Course ---------- */
.ex-course { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.ex-course-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 1.4rem; }
.ex-course-facts li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--ex-gold-soft); color: var(--ex-ink); font-size: .88rem; font-weight: 600; }
.ex-modules { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 0; margin: 0; counter-reset: none; }
.ex-module {
  display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.05rem; border-radius: var(--ex-radius-sm);
  background: var(--ex-surface); border: 1px solid var(--ex-border); text-decoration: none; transition: border-color .2s, transform .2s var(--ex-ease);
}
.ex-module:hover { border-color: var(--ex-emerald); transform: translateY(-2px); }
.ex-module-num { font-family: var(--ex-display); font-size: 1.5rem; font-weight: 600; color: var(--ex-gold); line-height: 1; }
.ex-module-title { font-weight: 650; color: var(--ex-ink); line-height: 1.35; }
.ex-module-meta { font-size: .82rem; color: var(--ex-muted); }

/* ---------- Questions ---------- */
.ex-faq { display: grid; gap: .75rem; }
.ex-q { background: var(--ex-surface); border: 1px solid var(--ex-border); border-radius: var(--ex-radius); box-shadow: var(--ex-shadow); scroll-margin-top: 6rem; }
.ex-q-open { padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.ex-q-open .ex-q-title { font-family: var(--ex-display); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; color: var(--ex-ink); margin: 0 0 .75rem; line-height: 1.25; }
.ex-q-open .ex-short { font-size: 1.08rem; font-weight: 500; color: var(--ex-ink); padding-inline-start: 1rem; border-inline-start: 3px solid var(--ex-gold-2); }
.ex-q-fold summary { list-style: none; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; cursor: pointer; border-radius: var(--ex-radius); }
.ex-q-fold summary::-webkit-details-marker { display: none; }
.ex-q-fold summary:hover .ex-q-title { color: var(--ex-emerald); }
.ex-q-fold .ex-q-title { flex: 1; font-weight: 650; font-size: 1.06rem; color: var(--ex-ink); line-height: 1.4; }
.ex-q-chevron { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ex-surface-2); color: var(--ex-emerald); transition: transform .25s var(--ex-ease); }
.ex-q-fold[open] .ex-q-chevron { transform: rotate(45deg); }
.ex-q-fold[open] { border-color: color-mix(in srgb, var(--ex-emerald) 35%, transparent); }
.ex-q-body { padding: 0 1.35rem 1.35rem; animation: ex-rise .3s var(--ex-ease) both; }
.ex-q-fold.is-hidden { display: none; }
.ex-verses { margin: 1rem 0 .5rem; }
.ex-verses-label { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ex-gold); }
summary.ex-verses-label { cursor: pointer; list-style: none; padding: .6rem .9rem; border-radius: 12px; background: var(--ex-gold-soft); border: 1px solid color-mix(in srgb, var(--ex-gold-2) 35%, transparent); }
summary.ex-verses-label::-webkit-details-marker { display: none; }
summary.ex-verses-label::after { content: "+"; margin-inline-start: auto; font-size: 1.1rem; line-height: 1; color: var(--ex-gold); }
details[open] > summary.ex-verses-label::after { content: "−"; }
.ex-verses-refs { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ex-ink); font-size: .86rem; }
.ex-section-night summary.ex-verses-label { background: rgba(255, 255, 255, .06); }
html[lang="ar"] .ex-verses-label, html[lang="ur"] .ex-verses-label { letter-spacing: 0; text-transform: none; }
.ex .ip-verse { margin: .6rem 0; background: linear-gradient(135deg, rgba(31, 122, 99, .06), rgba(224, 180, 79, .07)); border-inline-start-color: var(--ex-gold-2); }
.ex .ip-verse-arabic { font-family: var(--ex-arabic); color: var(--ex-ink); }
.ex .ip-verse-cite a { color: var(--ex-emerald); font-weight: 600; }
.ex-differ { margin: 1rem 0 .25rem; padding: 1rem 1.15rem; border-radius: var(--ex-radius-sm); background: color-mix(in srgb, var(--ex-sky) 8%, transparent); border: 1px solid color-mix(in srgb, var(--ex-sky) 25%, transparent); }
.ex-differ-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .4rem; font-weight: 700; color: var(--ex-sky); font-size: .92rem; }
.ex-differ .ex-prose { font-size: .96rem; }
.ex-q-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--ex-border); }
.ex-related { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.ex-chip-link { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 999px; background: var(--ex-surface-2); color: var(--ex-ink) !important; font-size: .86rem; font-weight: 600; text-decoration: none !important; border: 1px solid transparent; transition: border-color .2s; }
.ex-chip-link:hover { border-color: var(--ex-emerald); }
.ex-chip-dark { background: rgba(255, 255, 255, .1); color: #fff !important; }
.ex-chip-dark:hover { border-color: var(--ex-gold-2); }
.ex-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .82rem; color: var(--ex-muted); }
.ex-source { display: inline-flex; align-items: center; gap: .25rem; }
.ex-source a { color: var(--ex-muted); }

.ex-filter { position: relative; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; padding-block: .35rem .35rem; padding-inline: 1rem .5rem; background: var(--ex-surface); border: 1px solid var(--ex-border-strong); border-radius: 999px; box-shadow: var(--ex-shadow); }
.ex-filter i { color: var(--ex-muted); }
.ex-filter-input { flex: 1; border: 0; background: transparent; padding: .55rem 0; font-size: 1rem; color: var(--ex-text); outline: none; min-width: 0; }
.ex-filter:focus-within { border-color: var(--ex-emerald); }
.ex-filter-count { font-size: .84rem; color: var(--ex-muted); padding-inline-end: .75rem; white-space: nowrap; }

/* ---------- Calm closing, callouts, privacy ---------- */
.ex-calm, .ex-callout { display: flex; gap: 1.25rem; align-items: flex-start; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--ex-radius); background: linear-gradient(135deg, var(--ex-gold-soft), color-mix(in srgb, var(--ex-emerald) 8%, var(--ex-surface))); border: 1px solid var(--ex-border); }
.ex-calm p, .ex-callout p { margin: 0 0 .6rem; line-height: 1.7; }
.ex-calm-icon { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--ex-surface); color: var(--ex-gold); font-size: 1.4rem; box-shadow: var(--ex-shadow); }
.ex-callout > i { flex: none; font-size: 1.6rem; color: var(--ex-emerald); }
.ex-callout-title { font-weight: 700; color: var(--ex-ink); }
.ex-calm-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ex-privacy { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--ex-radius-sm); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); max-width: 38rem; }
.ex-privacy i { font-size: 1.4rem; color: var(--ex-emerald); }
.ex-privacy p { margin: 0; line-height: 1.6; font-size: .95rem; }

/* ---------- Shahadah ---------- */
.ex-shahadah { text-align: center; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-radius: 28px; background: radial-gradient(40rem 20rem at 50% 0%, rgba(224, 180, 79, .22), transparent 70%), var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow-lg); }
.ex-shahadah .ex-kicker { justify-content: center; }
.ex-shahadah-ar { font-family: var(--ex-arabic); font-size: clamp(1.9rem, 1.4rem + 2.5vw, 3.1rem); line-height: 1.9; color: var(--ex-ink); margin: 1rem 0 .5rem; }
.ex-shahadah-tr { font-style: italic; color: var(--ex-emerald); font-size: 1.1rem; margin: 0 0 .35rem; }
.ex-shahadah-en { font-size: 1.12rem; color: var(--ex-text); margin: 0 auto 1.5rem; max-width: 34rem; }

/* ---------- Reading the Quran ---------- */
.ex-terms { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.25rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); }
.ex-terms-title { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .95rem; font-weight: 700; color: var(--ex-ink); }
.ex-terms-title i { color: var(--ex-gold); }
.ex-term-list { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.ex-term-item { position: relative; }
.ex-term { border: 1px dashed var(--ex-emerald); background: transparent; color: var(--ex-emerald); border-radius: 999px; padding: .35rem .85rem; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background-color .2s; }
.ex-term:hover, .ex-term[aria-expanded="true"] { background: color-mix(in srgb, var(--ex-emerald) 12%, transparent); border-style: solid; }
.ex-pop { display: none; }
.ex-js .ex-pop { position: absolute; z-index: 20; inset-block-start: calc(100% + .5rem); inset-inline-start: 0; width: min(19rem, 80vw); padding: .9rem 1rem; border-radius: var(--ex-radius-sm); background: var(--ex-deep); color: #eef6f3; box-shadow: var(--ex-shadow-lg); font-size: .92rem; line-height: 1.55; }
.ex-js .ex-pop.is-open { display: block; animation: ex-rise .2s var(--ex-ease) both; }
.ex-js .ex-pop.is-end { inset-inline-start: auto; inset-inline-end: 0; }
.ex-pop p { margin: 0; }
.ex-pop-word { font-weight: 700; color: var(--ex-gold-3); margin-bottom: .25rem !important; }
html:not(.ex-js) .ex-pop { display: block; margin-top: .3rem; font-size: .85rem; color: var(--ex-muted); max-width: 16rem; }
html:not(.ex-js) .ex-pop-word { display: none; }

.ex-anatomy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 0 0 2rem; padding: 1.25rem 1.5rem; border-radius: var(--ex-radius); background: var(--ex-surface-2); }
.ex-anatomy-ref { display: flex; align-items: flex-start; gap: .5rem; font-family: var(--ex-display); direction: ltr; }
.ex-anatomy-part { display: flex; flex-direction: column; align-items: center; }
.ex-anatomy-num { font-size: 2.6rem; font-weight: 600; color: var(--ex-ink); line-height: 1; padding: .3rem .8rem; border-radius: 12px; background: var(--ex-surface); border: 2px solid var(--ex-gold-2); }
.ex-anatomy-colon { font-size: 2.4rem; color: var(--ex-gold); line-height: 1.2; }
.ex-anatomy-label { margin-top: .4rem; font-family: Inter, sans-serif; font-size: .78rem; font-weight: 700; color: var(--ex-emerald); text-transform: uppercase; letter-spacing: .08em; }
.ex-anatomy figcaption { flex: 1; min-width: 14rem; color: var(--ex-muted); line-height: 1.65; }

.ex-sample { padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); }
.ex-segmented { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--ex-surface-2); margin-bottom: 1rem; }
.ex-segmented button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--ex-muted); cursor: pointer; }
.ex-segmented button[aria-checked="true"] { background: var(--ex-surface); color: var(--ex-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ex-sample-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.ex-sample-verse { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--ex-border); }
.ex-sample-verse:last-child { border-bottom: 0; }
.ex-sample-num { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-size: .8rem; font-weight: 700; color: var(--ex-gold); border: 1.5px solid var(--ex-gold-2); }
.ex-sample-verse > div { flex: 1; }
.ex-sample-ar { font-family: var(--ex-arabic); font-size: 1.7rem; line-height: 2; text-align: right; margin: 0 0 .25rem; color: var(--ex-ink); }
.ex-sample-en { margin: 0; color: var(--ex-text); line-height: 1.65; }
.ex-sample[data-show="arabic"] .ex-sample-en { display: none; }
.ex-sample[data-show="translation"] .ex-sample-ar { display: none; }
.ex-sample-cite { margin: 1rem 0 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.ex-tablist { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.ex-tab { --tone: var(--ex-emerald); display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .7rem 1.1rem; border-radius: 14px; border: 1px solid var(--ex-border-strong); background: var(--ex-surface); color: var(--ex-ink); font-weight: 600; cursor: pointer; transition: all .2s; }
.ex-tab i { color: var(--tone); }
.ex-tab[aria-selected="true"] { background: var(--tone); border-color: var(--tone); color: #fff; box-shadow: 0 10px 22px -14px var(--tone); }
.ex-tab[aria-selected="true"] i { color: #fff; }
/* The dark theme's tones are light, so a selected tab carries dark ink. */
[data-theme="dark"] .ex-tab[aria-selected="true"], body.dark .ex-tab[aria-selected="true"], [data-theme="dark"] .ex-tab[aria-selected="true"] i, body.dark .ex-tab[aria-selected="true"] i { color: #03140b; }
.ex-route { margin-bottom: 2rem; }
.ex-js .ex-route[hidden] { display: none; }
.ex-route-head { margin-bottom: 1rem; }
.ex-passages { list-style: none; counter-reset: passage; display: grid; gap: .75rem; padding: 0; margin: 0; }
.ex-passage { counter-increment: passage; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .25rem 1rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--ex-radius-sm); background: var(--ex-surface); border: 1px solid var(--ex-border); scroll-margin-top: 6rem; }
.ex-passage::before { content: counter(passage); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ex-gold-soft); color: var(--ex-gold); font-weight: 700; font-family: var(--ex-display); }
.ex-passage-title { margin: 0; font-size: 1.05rem; font-weight: 650; color: var(--ex-ink); }
.ex-passage-text { margin: .15rem 0 .35rem; color: var(--ex-muted); line-height: 1.55; }
.ex-passage-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; font-size: .85rem; }
.ex-ref { font-weight: 700; color: var(--ex-emerald); }
.ex-passage-actions { grid-row: span 1; }
.ex-passage-read { grid-column: 2 / -1; }
.ex-passage-read summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ex-muted); }
.ex-passage-read summary:hover { color: var(--ex-emerald); }

/* ---------- Jesus and Mary ---------- */
.ex-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 1.4rem; }
.ex-facts li { display: inline-flex; align-items: center; gap: .55rem; padding-block: .4rem .4rem; padding-inline: .5rem .9rem; border-radius: 999px; background: var(--ex-surface); border: 1px solid var(--ex-border); font-size: .9rem; color: var(--ex-text); }
.ex-fact-ar { font-family: var(--ex-arabic); font-size: 1.3rem; line-height: 1; color: var(--ex-gold); padding: .2rem .55rem; border-radius: 999px; background: var(--ex-gold-soft); }
.ex-with-toc { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.ex-toc { position: sticky; top: calc(var(--hx-sticky-top, 76px) + 1rem); padding: 1rem 1.1rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); }
.ex-toc-title { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ex-muted); }
.ex-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.ex-toc a { display: block; padding: .35rem .5rem; border-radius: 8px; text-decoration: none; font-size: .9rem; color: var(--ex-text); line-height: 1.35; border-inline-start: 2px solid transparent; }
.ex-toc a:hover, .ex-toc a.is-current { background: var(--ex-surface-2); border-inline-start-color: var(--ex-gold-2); color: var(--ex-ink); }

.ex-story-steps { list-style: none; display: flex; gap: .35rem; padding: 0 0 .75rem; margin: 0 0 1.5rem; overflow-x: auto; scrollbar-width: thin; position: relative; }
.ex-story-step { display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 100%; padding: .25rem; border: 0; background: transparent; color: rgba(232, 241, 238, .72); cursor: pointer; text-align: center; font-size: .78rem; line-height: 1.3; }
.ex-story-steps > li { flex: 1 0 6.2rem; min-width: 0; display: flex; }
.ex-story-dot { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid rgba(247, 226, 168, .45); color: var(--ex-gold-3); font-weight: 700; font-family: var(--ex-display); transition: all .25s var(--ex-ease); position: relative; }
.ex-story-step[aria-selected="true"] { color: #fff; }
.ex-story-step[aria-selected="true"] .ex-story-dot { background: linear-gradient(135deg, #f3d37a, #c99a2e); color: #20180a; border-color: transparent; box-shadow: 0 0 0 6px rgba(243, 211, 122, .18); }
.ex-story-step.is-seen .ex-story-dot { border-color: var(--ex-gold-2); }
.ex-story-panels { display: grid; gap: 1.5rem; }
.ex-story-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); scroll-margin-top: 6rem; }
.ex-js .ex-story-panel[hidden] { display: none; }
.ex-js .ex-story-panel:not([hidden]) { animation: ex-rise .35s var(--ex-ease) both; }
.ex-story-count { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ex-gold-3); }
html[lang="ar"] .ex-story-count, html[lang="ur"] .ex-story-count { letter-spacing: 0; text-transform: none; }
.ex-story-title { font-family: var(--ex-display); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); color: #fff; margin: 0 0 .75rem; display: flex; align-items: center; gap: .6rem; }
.ex-story-title i { color: var(--ex-gold-2); font-size: 1.2em; }
.ex-story-copy .ex-prose { color: rgba(232, 241, 238, .88); }
.ex-story-refs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; }
.ex-story-verses summary { cursor: pointer; font-weight: 600; color: var(--ex-gold-3); margin-bottom: .5rem; }
.ex-section-night .ip-verse { background: rgba(255, 255, 255, .06); border-inline-start-color: var(--ex-gold-2); color: #f3eef6; }
.ex-section-night .ip-verse-arabic { color: #fff; }
.ex-section-night .ip-verse-cite a { color: var(--ex-gold-3); }
.ex-section-night .ex-prose a { color: var(--ex-gold-3); }
.ex-story-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.ex-section-night .ex-meta-line { color: rgba(232, 241, 238, .7); }

/* ---------- Quiz ---------- */
.ex-quiz { padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: 24px; background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow-lg); }
.ex-quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ex-quiz-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--ex-gold-soft); color: var(--ex-ink); font-weight: 700; font-size: .85rem; }
.ex-quiz-progress { font-size: .88rem; color: var(--ex-muted); font-weight: 600; }
.ex-quiz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.ex-js .ex-quiz-item[hidden] { display: none; }
.ex-quiz-item fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ex-quiz-prompt { font-family: var(--ex-display); font-size: 1.25rem; font-weight: 600; color: var(--ex-ink); margin-bottom: 1rem; float: none; width: auto; line-height: 1.35; }
.ex-quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.ex-quiz-option { display: flex; align-items: center; gap: .75rem; text-align: start; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--ex-border-strong); background: var(--ex-surface); color: var(--ex-text); font-size: .98rem; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.ex-quiz-option:hover:not(:disabled) { border-color: var(--ex-emerald); transform: translateY(-1px); }
.ex-quiz-option:disabled { cursor: default; }
.ex-quiz-letter { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ex-surface-2); font-weight: 700; font-size: .85rem; color: var(--ex-emerald); }
.ex-quiz-option.is-correct { border-color: #1d9670; background: color-mix(in srgb, #1d9670 12%, var(--ex-surface)); }
.ex-quiz-option.is-correct .ex-quiz-letter { background: #1d9670; color: #fff; }
.ex-quiz-option.is-wrong { border-color: #c2563e; background: color-mix(in srgb, #c2563e 10%, var(--ex-surface)); }
.ex-quiz-option.is-wrong .ex-quiz-letter { background: #c2563e; color: #fff; }
.ex-quiz-feedback { margin: 1rem 0 .25rem; font-weight: 700; }
.ex-quiz-feedback.is-good { color: #178a63; }
.ex-quiz-feedback.is-bad { color: #b4472f; }
[data-theme="dark"] .ex-quiz-feedback.is-good, body.dark .ex-quiz-feedback.is-good { color: #67d8ad; }
[data-theme="dark"] .ex-quiz-feedback.is-bad, body.dark .ex-quiz-feedback.is-bad { color: #f0a08c; }
.ex-quiz-explain { margin: 0; color: var(--ex-muted); line-height: 1.6; }
.ex-quiz-reveal { margin-top: .75rem; font-size: .92rem; }
.ex-quiz-reveal summary { cursor: pointer; color: var(--ex-emerald); font-weight: 600; }
.ex-js .ex-quiz-reveal { display: none; }
.ex-quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.ex-quiz-result { text-align: center; padding: 1.5rem 0 .5rem; }
.ex-quiz-score { font-family: var(--ex-display); font-size: 1.6rem; color: var(--ex-ink); margin: 0 0 1rem; }

/* ---------- Comparison ---------- */
.ex-intro { font-size: 1.08rem; }
.ex-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.ex-principles p { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .9rem 1rem; border-radius: var(--ex-radius-sm); background: var(--ex-surface); border: 1px solid var(--ex-border); font-size: .92rem; line-height: 1.55; color: var(--ex-muted); }
.ex-principles i { color: var(--ex-gold); font-size: 1.1rem; }
.ex-compare { display: grid; gap: .9rem; }
.ex-compare-head, .ex-compare-cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.15fr); gap: 1rem; }
.ex-compare-head { padding: 0 1.25rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ex-muted); }
html[lang="ar"] .ex-compare-head, html[lang="ur"] .ex-compare-head { letter-spacing: 0; text-transform: none; }
.ex-compare-col-h { display: flex; align-items: center; gap: .4rem; }
.ex-compare-col-h.is-islam { color: var(--ex-emerald); }
.ex-compare-col-h.is-other { color: var(--ex-sky); }
.ex-compare-row { border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); overflow: hidden; scroll-margin-top: 6rem; }
.ex-compare-cells { padding: 1.15rem 1.25rem; align-items: start; }
.ex-compare-aspect { display: flex; gap: .8rem; align-items: flex-start; }
.ex-compare-icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--ex-gold-soft); color: var(--ex-gold); font-size: 1.15rem; }
.ex-compare-name { font-family: var(--ex-display); font-size: 1.2rem; font-weight: 600; color: var(--ex-ink); margin: 0 0 .3rem; }
.ex-compare-common { margin: 0; font-size: .88rem; color: var(--ex-muted); line-height: 1.5; }
.ex-compare-cell { padding: .85rem 1rem; border-radius: var(--ex-radius-sm); line-height: 1.55; }
.ex-compare-cell p { margin: 0; }
.ex-compare-cell.is-islam { background: color-mix(in srgb, var(--ex-emerald) 8%, transparent); }
.ex-compare-cell.is-other { background: color-mix(in srgb, var(--ex-sky) 8%, transparent); }
.ex-compare-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ex-compare-more { border-top: 1px solid var(--ex-border); }
.ex-compare-more summary { list-style: none; display: flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ex-emerald); }
.ex-compare-more summary::-webkit-details-marker { display: none; }
.ex-compare-more[open] summary i { transform: rotate(45deg); }
.ex-compare-more summary i { transition: transform .2s; }
.ex-compare-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0 1.25rem 1.25rem; animation: ex-rise .3s var(--ex-ease) both; }
.ex-compare-pane { padding: 1rem 1.1rem; border-radius: var(--ex-radius-sm); border: 1px solid var(--ex-border); font-size: .95rem; }
.ex-compare-pane .ex-compare-label { position: static; width: auto; height: auto; clip: auto; display: block; margin: 0 0 .5rem; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.ex-compare-pane.is-islam .ex-compare-label { color: var(--ex-emerald); }
.ex-compare-pane.is-other .ex-compare-label { color: var(--ex-sky); }
.ex-compare-row + .ex-callout, .ex-meta-line + .ex-callout { margin-top: 2rem; }
.ex .ex-callout { margin-top: 2rem; }

/* ---------- Mosque tour ---------- */
.ex-tour {
  --mq-ground: #e9efe3; --mq-wall: #fffdf7; --mq-carpet: #2f7d63; --mq-carpet-2: #4c9b7f; --mq-gold: #d8ae4a;
  --mq-tile: #eef4f6; --mq-tile-2: #c9dde4; --mq-room: #f6f1e4; --mq-ink: #0f3532; --mq-water: #5bb3d1;
  --mq-dome-light: rgba(255, 244, 214, .85); --mq-dome-dark: rgba(216, 174, 74, .5);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; align-items: start;
}
[data-theme="dark"] .ex-tour, body.dark .ex-tour {
  --mq-ground: #102320; --mq-wall: #182d2a; --mq-carpet: #1f5e4a; --mq-carpet-2: #2c7a61; --mq-tile: #142a2c; --mq-tile-2: #22444a;
  --mq-room: #1c302d; --mq-ink: #d9ece6; --mq-dome-light: rgba(240, 200, 106, .35); --mq-dome-dark: rgba(240, 200, 106, .12);
}
.ex-tour-figure { margin: 0; }
.ex-tour-svg { width: 100%; height: auto; display: block; border-radius: 24px; background: var(--mq-ground); box-shadow: var(--ex-shadow-lg); }
.mq-ground { fill: var(--mq-ground); }
.mq-trees circle { fill: color-mix(in srgb, var(--mq-carpet-2) 70%, var(--mq-ground)); opacity: .7; }
.mq-wall-fill { fill: var(--mq-wall); stroke: color-mix(in srgb, var(--mq-ink) 18%, transparent); stroke-width: 2; }
.mq-carpet { fill: var(--mq-carpet); }
.mq-carpet-arch { fill: none; stroke: var(--mq-carpet-2); stroke-width: 1.6; }
.mq-carpet-star { fill: var(--mq-gold); opacity: .55; }
.mq-hall { stroke: var(--mq-gold); stroke-width: 2; }
.mq-rows path { stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.mq-dome-ribs { stroke: rgba(150, 110, 30, .35); stroke-width: 1.5; fill: none; }
.mq-dome-top { fill: var(--mq-gold); }
.mq-qiblah { fill: var(--mq-ink); }
.mq-mihrab { fill: var(--mq-gold); }
.mq-mihrab-inner { fill: color-mix(in srgb, var(--mq-gold) 50%, #fff); }
.mq-minbar rect, .mq-minbar path { fill: #b07a3b; stroke: #7b5326; stroke-width: 1; }
.mq-qiblah-sign path { fill: var(--mq-gold); }
.mq-qiblah-sign text { font: 700 13px Inter, sans-serif; fill: #fff; }
.mq-room { fill: var(--mq-room); stroke: color-mix(in srgb, var(--mq-ink) 20%, transparent); stroke-width: 1.5; }
.mq-books rect { fill: #a3445c; opacity: .75; }
.mq-books rect:nth-child(2) { fill: #2b6a98; }
.mq-books rect:nth-child(3) { fill: #d8ae4a; }
.mq-table { fill: #b07a3b !important; opacity: .6 !important; }
.mq-tile { fill: var(--mq-tile); }
.mq-tile-star { fill: var(--mq-tile-2); }
.mq-taps circle { fill: var(--mq-water); stroke: #fff; stroke-width: 2; }
.mq-taps path { stroke: #9aa9ad; stroke-width: 3; }
.mq-women { fill: color-mix(in srgb, #67499c 10%, var(--mq-room)); }
.mq-screen { stroke: #67499c; stroke-width: 4; stroke-dasharray: 8 6; opacity: .6; }
.mq-lobby { fill: var(--mq-room); stroke: color-mix(in srgb, var(--mq-ink) 20%, transparent); stroke-width: 1.5; }
.mq-threshold { stroke: var(--mq-gold); stroke-width: 3; }
.mq-shoes rect { fill: #b07a3b; opacity: .65; }
.mq-board { fill: #fff; stroke: #2b6a98; stroke-width: 2; }
[data-theme="dark"] .mq-board, body.dark .mq-board { fill: #20363a; }
.mq-board-lines { stroke: #2b6a98; stroke-width: 2; stroke-linecap: round; opacity: .6; }
.mq-door, .mq-gate { fill: var(--mq-gold); }
.mq-courtyard { stroke: color-mix(in srgb, var(--mq-ink) 15%, transparent); stroke-width: 1.5; }
.mq-fountain circle { fill: #fff; stroke: var(--mq-gold); stroke-width: 2; }
.mq-fountain .mq-water { fill: var(--mq-water); stroke: none; }
.mq-minaret circle { fill: var(--mq-wall); stroke: var(--mq-ink); stroke-width: 2; }
.mq-minaret .mq-minaret-balcony { fill: color-mix(in srgb, var(--mq-gold) 30%, var(--mq-wall)); }
.mq-minaret circle:last-child { fill: var(--mq-gold); }
.ex-spot { cursor: pointer; outline: none; }
.ex-spot-ring { fill: rgba(216, 174, 74, .3); transform-box: fill-box; transform-origin: center; animation: ex-ping 2.6s ease-out infinite; }
.ex-spot-dot { fill: var(--ex-deep); stroke: #fff; stroke-width: 2.5; transition: fill .2s; }
.ex-spot text { font: 700 14px Inter, sans-serif; fill: #fff; pointer-events: none; }
.ex-spot:hover .ex-spot-dot, .ex-spot:focus-visible .ex-spot-dot { fill: var(--ex-emerald-2); }
.ex-spot:focus-visible .ex-spot-ring { stroke: var(--ex-gold-2); stroke-width: 3; }
.ex-spot.is-active .ex-spot-dot { fill: #e0b44f; }
.ex-spot.is-active text { fill: #1f1606; }
.ex-spot.is-seen:not(.is-active) .ex-spot-dot { fill: var(--ex-emerald); }
[data-theme="dark"] .ex-spot-dot, body.dark .ex-spot-dot { fill: #10503a; }
@keyframes ex-ping { 0% { transform: scale(.8); opacity: .9; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.ex-tour-caption { display: flex; gap: .5rem; align-items: flex-start; margin-top: .75rem; font-size: .88rem; color: var(--ex-muted); }
.ex-tour-panel { position: sticky; top: calc(var(--hx-sticky-top, 76px) + 1rem); display: grid; gap: .75rem; }
.ex-tour-hint { display: flex; gap: .5rem; align-items: center; margin: 0; padding: .75rem 1rem; border-radius: var(--ex-radius-sm); background: var(--ex-gold-soft); font-size: .92rem; }
.ex-stop { padding: 1.25rem 1.35rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); }
.ex-js .ex-stop[hidden] { display: none; }
.ex-js .ex-stop:not([hidden]) { animation: ex-rise .3s var(--ex-ease) both; }
.ex-stop-num { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; color: var(--ex-muted); font-size: .88rem; }
.ex-stop-num span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ex-deep); color: #fff; font-weight: 700; font-size: .8rem; }
.ex-stop-title { font-family: var(--ex-display); font-size: 1.4rem; font-weight: 600; color: var(--ex-ink); margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.ex-stop-title i { color: var(--ex-gold); }
.ex-tour-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ex-tour-count { font-size: .88rem; color: var(--ex-muted); font-weight: 600; }
.ex-tips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding: 0; margin: 0; }
.ex-tip { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.15rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); line-height: 1.55; }
.ex-tip-icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: color-mix(in srgb, var(--ex-emerald) 12%, transparent); color: var(--ex-emerald); font-size: 1.15rem; }
.ex-tip strong { display: block; color: var(--ex-ink); margin-bottom: .15rem; }
.ex-greeting { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px dashed var(--ex-gold-2); }
.ex-greeting-ar { font-family: var(--ex-arabic); font-size: 1.6rem; color: var(--ex-gold); }

/* Content not yet translated stays in English inside Arabic and Urdu pages: each paragraph takes its own direction. */
[dir="rtl"] .ex :is(.ex-short, .ex-prose p, .ex-prose li, .ex-q-title, .ex-choice-q, .ex-compare-cell p, .ex-compare-name, .ex-compare-common,
  .ex-passage-title, .ex-passage-text, .ex-story-title, .ex-stop-title, .ex-stop-num, .ex-quiz-prompt, .ex-quiz-option > span:last-child,
  .ex-quiz-explain, .ex-module-title, .ex-route-head, .mw-country-name, .mw-country-summary, .mw-block p, .mw-sources p, .ip-verse-translation, .ip-verse-cite) {
  unicode-bidi: plaintext;
  text-align: start;
}
/* That English text is set in the Latin face first; Arabic and Urdu letters fall through to the page's own font. */
html[lang="ar"] .ex :is(.ex-short, .ex-prose, .ex-compare-cell, .ex-compare-common, .ex-passage-text, .ex-quiz-prompt, .ex-quiz-option, .ex-quiz-explain,
  .ex-intro, .ex-shahadah-tr, .ex-shahadah-en, .mw-country-summary, .mw-block, .mw-sources, .ip-verse-translation) { font-family: var(--ip-font-sans), var(--ip-font-arabic); }
html[lang="ur"] .ex :is(.ex-short, .ex-prose, .ex-compare-cell, .ex-compare-common, .ex-passage-text, .ex-quiz-prompt, .ex-quiz-option, .ex-quiz-explain,
  .ex-intro, .ex-shahadah-tr, .ex-shahadah-en, .mw-country-summary, .mw-block, .mw-sources, .ip-verse-translation) { font-family: var(--ip-font-sans), var(--ip-font-urdu); line-height: 1.75; }
.ex-section { scroll-margin-top: 4.5rem; }
@media (min-width: 992px) {
  .ex-tablist { flex-wrap: wrap; overflow: visible; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .ex-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ex-hero-grid, .ex-hero-compact .ex-hero-grid { grid-template-columns: 1fr; }
  .ex-hero-art { max-width: 260px; order: -1; justify-self: start; }
  .ex-hero-compact .ex-hero-art { display: none; }
  .ex-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-paths-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-course { grid-template-columns: 1fr; }
  .ex-with-toc { grid-template-columns: 1fr; }
  .ex-toc { display: none; }
  .ex-story-panel { grid-template-columns: 1fr; }
  .ex-tour { grid-template-columns: 1fr; }
  .ex-tour-panel { position: static; }
  .ex-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-grid-2 { grid-template-columns: 1fr; }
  .ex-principles { grid-template-columns: 1fr; }
  .ex-compare-head { display: none; }
  .ex-compare-cells { grid-template-columns: 1fr 1fr; }
  .ex-compare-aspect { grid-column: 1 / -1; }
  .ex-compare-label { position: static; width: auto; height: auto; clip: auto; display: block; margin-bottom: .3rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .ex-compare-cell.is-islam .ex-compare-label { color: var(--ex-emerald); }
  .ex-compare-cell.is-other .ex-compare-label { color: var(--ex-sky); }
}
@media (max-width: 767.98px) {
  .ex-hero-art { max-width: 180px; }
  .ex-hero-pattern { opacity: .3; }
  .ex-choices, .ex-paths, .ex-paths-3, .ex-modules, .ex-tips { grid-template-columns: 1fr; }
  .ex-quiz-options { grid-template-columns: 1fr; }
  .ex-compare-cells, .ex-compare-detail { grid-template-columns: 1fr; }
  .ex-plain { align-items: flex-start; }
  .ex-plain-help { text-align: start; }
  .ex-passage { grid-template-columns: auto minmax(0, 1fr); }
  .ex-passage-actions { grid-column: 2; }
  .ex-passage-read { grid-column: 1 / -1; }
  .ex-sample-ar { font-size: 1.45rem; }
  .ex-calm, .ex-callout { flex-direction: column; }
  .ex-nav { margin-top: -1.2rem; }
  .ex-story-steps > li { flex: 0 0 5.6rem; }
  /* Bigger tour points for fingers: the plan is drawn at less than half size on a phone. */
  .ex-spot-dot { r: 24px; }
  .ex-spot-ring { r: 32px; }
  .ex-spot text { font-size: 22px; transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .ex *, .ex *::before, .ex *::after { animation: none !important; transition: none !important; }
}
@media print {
  .ex-nav, .ex-plain, .ex-hero-art, .ex-next, .ex-quiz { display: none !important; }
  .ex-q-fold .ex-q-body { display: block; }
}

/* ==========================================================================
   Experience layer: the live "your exploring" card in every hero, the sticky
   page strip with reading progress, questions as a step-through, opened ticks
   and "Surprise me", the mosque visit checklist and the comparison tools.
   ========================================================================== */

/* ---------- Hero side: the art with the live card over its foot ---------- */
.ex-hero-side { position: relative; display: grid; justify-items: center; align-self: center; }
.ex-hero-side .ex-hero-art { max-width: 270px; }
.ex-hero-compact .ex-hero-side .ex-hero-art { max-width: 200px; }
.ex-journey {
  position: relative; z-index: 1; width: min(100%, 360px); margin-top: -5.5rem;
  display: grid; gap: .7rem; padding: 1rem 1.1rem 1.05rem;
  border-radius: var(--ex-radius); border: 1px solid color-mix(in srgb, var(--ex-gold-2) 35%, var(--ex-border));
  background: color-mix(in srgb, var(--ex-surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--ex-shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ex-ease), transform .5s var(--ex-ease);
}
.ex-journey.is-ready { opacity: 1; transform: none; }
.ex-hero-compact .ex-journey { margin-top: -3rem; }
.ex-journey-label { margin: 0; display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ex-gold); }
html[lang="ar"] .ex-journey-label, html[lang="ur"] .ex-journey-label { letter-spacing: 0; font-size: .85rem; }
.ex-journey-row { display: flex; align-items: center; gap: .8rem; }
.ex-journey-ring { --size: 52px; font-size: .78rem; }
.ex .ex-journey-ring { --lx-ring-fill: var(--ex-emerald); }
.ex-journey-title { margin: 0; font-weight: 700; color: var(--ex-ink); font-size: .98rem; line-height: 1.3; }
.ex-journey-text { margin: .1rem 0 0; font-size: .8rem; color: var(--ex-muted); }
.ex-journey-dots { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .3rem; padding: 0; margin: 0; }
.ex-jdot {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 2.1rem; border-radius: 10px; font-size: .88rem;
  color: var(--ex-muted); background: var(--ex-surface-2); border: 1px solid var(--ex-border); text-decoration: none;
  transition: transform .25s var(--ex-ease), background-color .25s, color .25s, border-color .25s;
}
.ex-jdot:hover { transform: translateY(-2px); color: var(--ex-emerald); border-color: var(--ex-emerald); }
.ex-jdot.is-seen { background: color-mix(in srgb, var(--ex-emerald) 14%, var(--ex-surface)); color: var(--ex-emerald); border-color: color-mix(in srgb, var(--ex-emerald) 35%, transparent); }
.ex-jdot.is-current { background: var(--ex-deep); color: #fff; border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ex-gold-2) 55%, transparent); }
[data-theme="dark"] .ex-jdot.is-current, body.dark .ex-jdot.is-current { background: var(--ex-gold-2); color: #1b1607; }
.ex-journey.is-ready .ex-jdot.is-seen { animation: ex-pop .5s var(--ex-ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes ex-pop { from { transform: scale(.6); opacity: 0; } }
.ex-journey-next {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem;
  border-radius: 12px; background: var(--ex-gold-soft); color: var(--ex-ink); text-decoration: none; font-size: .88rem; line-height: 1.35;
  transition: transform .2s var(--ex-ease), background-color .2s;
}
.ex-journey-next small { color: var(--ex-gold); font-weight: 700; font-size: .78rem; }
.ex-journey-next:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--ex-gold-2) 28%, var(--ex-surface)); }
.ex-journey.is-complete .ex-journey-next { background: color-mix(in srgb, var(--ex-emerald) 14%, var(--ex-surface)); }

/* ---------- The Explore strip sticks under the header, with reading progress ---------- */
.ex-nav { position: sticky; top: var(--ip-header-h, 76px); z-index: 1010; padding-block: .35rem; transition: background-color .25s; }
.ex-nav.is-stuck { background: color-mix(in srgb, var(--ex-bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 10px 24px -22px rgba(27, 31, 46, .6); }
.ex-nav.is-stuck .ex-nav-list { box-shadow: none; }
.ex-nav-progress {
  position: absolute; inset-inline: 0; bottom: 0; height: 2px; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ex-emerald), var(--ex-gold-2)); opacity: 0; transition: opacity .25s;
}
[dir="rtl"] .ex-nav-progress { transform-origin: right center; }
.ex-nav.is-stuck .ex-nav-progress { opacity: 1; }

/* ---------- Questions as a step-through (learn-x explorer) ---------- */
.ex-xp { --ip-primary: var(--ex-emerald); --ip-primary-soft: color-mix(in srgb, var(--ex-emerald) 12%, transparent); --ip-primary-ink: #fff; }
.ex-xp .lx-explorer__nav { padding: .5rem; border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); }
@media (min-width: 992px) {
  .ex-xp .lx-explorer__nav { top: calc(var(--ip-header-h, 76px) + 78px); max-height: calc(100vh - var(--ip-header-h, 76px) - 100px); }
}
.ex-xp-seen { margin: .2rem .5rem .55rem; font-size: .78rem; font-weight: 700; color: var(--ex-gold); letter-spacing: .04em; }
.ex-xp .lx-explorer__label strong { white-space: normal; line-height: 1.3; font-size: .88rem; }
.ex-xp .lx-explorer__panel > .ex-q { margin: 0; }
.ex-xp .lx-explorer__panel .ex-q-open { padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); border-radius: var(--ex-radius); background: var(--ex-surface); border: 1px solid var(--ex-border); box-shadow: var(--ex-shadow); }
.ex-xp .lx-explorer__foot { border-top-color: var(--ex-border-strong); }
.ex-xp .lx-bar { background: var(--ex-surface-2); }
.ex-section-tint .ex-xp .lx-explorer__tab:hover, .ex-section-tint .ex-xp .lx-explorer__tab[aria-selected="true"] { background: var(--ex-surface-2); }
@media (max-width: 991.98px) {
  .ex-xp .lx-explorer__nav { padding: .4rem .4rem 0; border-radius: 16px; position: sticky; top: calc(var(--ip-header-h, 76px) + 64px); z-index: 5; }
  .ex-xp-seen { display: none; }
  .ex-xp .lx-explorer__label strong { white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; display: block; }
}
.ex-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.75rem 0 1.25rem; font-size: .88rem; color: var(--ex-muted); }
.ex-after-xp { margin-top: 1.25rem; }

/* ---------- Opened ticks and "Surprise me" ---------- */
.ex-choices-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: -.5rem 0 1rem; }
.ex-opened { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .9rem; font-weight: 600; color: var(--ex-muted); }
.ex-opened i { color: var(--ex-emerald); }
.ex-opened.is-all { color: var(--ex-emerald); }
.ex-choice.is-read .ex-choice-icon, .ex-q-fold.is-read .ex-q-title::after { position: relative; }
.ex-choice.is-read .ex-choice-icon::after {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; inset-block-end: -.35rem; inset-inline-end: -.35rem;
  display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: .7rem;
  background: var(--ex-emerald); color: #fff; box-shadow: 0 0 0 2px var(--ex-surface);
}
.ex-choice-icon { position: relative; }
.ex-q-fold.is-read .ex-q-title::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--ex-emerald); margin-inline-end: .45rem; font-size: .9em; }
.ex-choice.is-picked, .ex-q-fold.is-picked { animation: ex-picked .9s var(--ex-ease); }
@keyframes ex-picked { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ex-gold-2) 70%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* ---------- Visiting a mosque: ready for your visit ---------- */
.ex-ready-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.ex-ready-label { margin: 0; font-weight: 700; color: var(--ex-ink); }
.ex-ready-bar { flex: 1 1 12rem; max-width: 22rem; }
.ex-ready .lx-bar > span { background: linear-gradient(90deg, var(--ex-emerald), var(--ex-gold-2)); }
.ex-tip { padding: 0; }
.ex-tip-check { display: flex; gap: .8rem; align-items: flex-start; width: 100%; padding: 1.1rem 1.15rem; margin: 0; cursor: pointer; border-radius: inherit; transition: background-color .2s; }
.ex-tip-check:hover { background: color-mix(in srgb, var(--ex-emerald) 5%, transparent); }
.ex-tip-box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ex-tip-icon { position: relative; overflow: hidden; }
.ex-tip-icon i { transition: transform .3s var(--ex-ease), opacity .3s; }
.ex-tip-tick { position: absolute; transform: translateY(120%); opacity: 0; }
.ex-tip-box:checked + .ex-tip-icon { background: var(--ex-emerald); color: #fff; }
.ex-tip-box:checked + .ex-tip-icon i:first-child { transform: translateY(-120%); opacity: 0; }
.ex-tip-box:checked + .ex-tip-icon .ex-tip-tick { transform: none; opacity: 1; }
.ex-tip-box:focus-visible + .ex-tip-icon { outline: 3px solid var(--ex-gold-2); outline-offset: 2px; }
.ex-tip:has(.ex-tip-box:checked) { border-color: color-mix(in srgb, var(--ex-emerald) 40%, transparent); }
.ex-ready.is-ready .ex-ready-label { color: var(--ex-emerald); }

/* ---------- Comparison tools: jump to an aspect, common ground only ---------- */
.ex-compare-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.ex-aspects { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; flex: 1 1 32rem; }
.ex-aspect-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--ex-surface); border: 1px solid var(--ex-border-strong); color: var(--ex-ink); text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ex-ease);
}
.ex-aspect-chip i { color: var(--ex-gold); }
.ex-aspect-chip:hover { border-color: var(--ex-emerald); color: var(--ex-emerald); transform: translateY(-1px); }
.ex-aspect-chip.is-active { background: var(--ex-deep); border-color: transparent; color: #fff; }
.ex-aspect-chip.is-active i { color: var(--ex-gold-3); }
.ex-compare-row.is-flash { animation: ex-picked 1s var(--ex-ease); }
.ex-compare.is-common .ex-compare-cell, .ex-compare.is-common .ex-compare-col-h, .ex-compare.is-common .ex-compare-more { display: none; }
.ex-compare.is-common .ex-compare-cells { grid-template-columns: 1fr; }
.ex-compare.is-common .ex-compare-common { font-size: 1.02rem; color: var(--ex-ink); }
.ex-compare.is-common .ex-compare-row { border-inline-start: 4px solid var(--ex-gold-2); }

/* ---------- Phones: shorter pages ---------- */
@media (max-width: 991.98px) {
  .ex-hero-side { order: 2; justify-items: stretch; }
  .ex-hero-side .ex-hero-art { display: none; }
  .ex-journey { margin-top: 0; width: 100%; }
  .ex-hero-compact .ex-journey { margin-top: 0; }
}
@media (max-width: 767.98px) {
  .ex-paths-swipe { display: flex; grid-template-columns: none; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .ex-paths-swipe::-webkit-scrollbar { display: none; }
  .ex-paths-swipe > li { flex: 0 0 78%; scroll-snap-align: start; }
  .ex-choices { gap: .6rem; }
  .ex-journey { padding: .85rem .9rem; gap: .55rem; }
  .ex-jdot { font-size: .8rem; border-radius: 9px; }
  .ex-aspects { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
  .ex-aspects::-webkit-scrollbar { display: none; }
  .ex-aspect-chip { white-space: nowrap; }
  .ex-facts { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; }
  .ex-facts::-webkit-scrollbar { display: none; }
  .ex-facts > li { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-journey { opacity: 1; transform: none; }
}
@media print {
  .ex-journey, .ex-compare-tools, .ex-choices-bar { display: none !important; }
}
