/*
Theme Name: Iqra Inspires
Author: Iqra Inspires
Description: Premium editorial Islamic education theme. Warm ivory palette, DM Serif Display and Manrope typography, layered hero motion, scroll-driven IQRA sequence, learning paths, Qur'an explorer, parent and new-Muslim hubs, and a filterable shop.
Version: 1.9.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iqra-inspires
Tags: education, editorial, one-column, custom-menu, featured-images, translation-ready, full-width-template
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
  --ivory: #F8F4EC;
  --ivory-2: #EFE9DE;
  --ivory-3: #F4EEE3;
  --ivory-4: #F4F0E7;
  --sky: #DDEAF3;
  --lilac: #DDD7E8;
  --sand: #D8C5A5;
  --green: #AEBEAA;
  --rose: #EED9D8;
  --brown: #29241F;
  --brown-2: #3E362E;
  --ink: #29241F;
  --ink-2: #554C42;
  --ink-3: #6B5F51;
  --muted: #6B5F51;
  --white: #FFFFFF;
  --sky-ink: #3F5262;

  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Nunito Sans", system-ui, sans-serif;
  --arabic: "Noto Naskh Arabic", serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --line: rgba(41, 36, 31, 0.08);
  --line-2: rgba(41, 36, 31, 0.14);
  --line-3: rgba(41, 36, 31, 0.22);

  --shadow-sm: 0 16px 32px rgba(41, 36, 31, 0.08);
  --shadow-md: 0 26px 48px rgba(41, 36, 31, 0.10);
  --shadow-lg: 0 34px 56px rgba(41, 36, 31, 0.18);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

/* ---------------------------------------------------------------
   2. Reset & base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; transition: color 200ms ease; }
a:hover, a:focus-visible { color: var(--ink-3); }

button { font-family: inherit; color: inherit; }

input, textarea, select { font-family: inherit; }

::selection { background: var(--sky); }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brown); color: var(--ivory);
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--ivory); }

/* ---------------------------------------------------------------
   3. Layout primitives
--------------------------------------------------------------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: 920px; }
.wrap--reader { max-width: 1120px; }

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section--head { padding: clamp(50px, 7vw, 96px) 0 clamp(34px, 4vw, 52px); }
.section--foot { padding: 0 0 clamp(60px, 8vw, 110px); }

.bg-ivory { background: var(--ivory); }
.bg-ivory-2 { background: var(--ivory-2); }
.bg-sky { background: var(--sky); }
.bg-dark { background: var(--brown); color: var(--ivory); }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--journeys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .grid--journeys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--journeys { grid-template-columns: minmax(0, 1fr); } }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.grid--start { align-items: start; }

.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row--between { justify-content: space-between; align-items: flex-end; }
.row--center { align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 10px; }
.stack--lg { gap: 22px; }

/* ---------------------------------------------------------------
   4. Typography
--------------------------------------------------------------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.h-5, .h-4 { font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { line-height: 1.08; }

.d-xl { font-size: clamp(42px, 6.4vw, 82px); line-height: 1.04; }
.d-l  { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; }
.d-m  { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.h-1  { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.1; }
.h-2  { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; }
.h-3  { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.h-4  { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.h-5  { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; }
.serif-22 { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.italic { font-style: italic; }

p { margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.body-sm { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.prose { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.8; color: #453D34; max-width: 640px; text-wrap: pretty; }

.eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}
.mono {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.mono--plain { letter-spacing: 0.04em; text-transform: none; }
.arabic { font-family: var(--arabic); font-size: 26px; color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.text-wrap-pretty { text-wrap: pretty; }

/* ---------------------------------------------------------------
   5. Buttons, pills, chips
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  padding: 17px 32px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
  white-space: nowrap;
}
.btn--sm { font-size: 14px; padding: 15px 28px; }
.btn--xs { font-size: 13.5px; padding: 12px 22px; }
.btn--primary { background: var(--brown); color: var(--ivory); }
.btn--primary:hover { background: var(--brown-2); color: var(--ivory); transform: translateY(-3px); box-shadow: 0 18px 34px rgba(41, 36, 31, 0.22); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-3); }
.btn--ghost:hover { background: var(--white); color: var(--ink); transform: translateY(-3px); }
.btn--light { background: var(--ivory); color: var(--brown); }
.btn--light:hover { color: var(--brown); transform: translateY(-3px); }
.btn--outline-light { background: transparent; color: var(--ivory); border: 1px solid rgba(248, 244, 236, 0.3); }
.btn--outline-light:hover { background: rgba(248, 244, 236, 0.1); color: var(--ivory); }

.link-underline {
  font-size: 13.5px; font-weight: 600;
  border-bottom: 1px solid var(--line-3); padding-bottom: 3px;
}
.link-arrow { font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

.pill {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--ivory); border-radius: var(--r-pill); padding: 7px 14px;
}
.pill--glass { background: rgba(255, 255, 255, 0.72); color: var(--ink-2); }
.pill--mono {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  background: rgba(248, 244, 236, 0.85); padding: 8px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
}

.chip {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--ink);
  background: transparent; border: 1px solid rgba(41, 36, 31, 0.16);
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer;
  white-space: nowrap; transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.chip:hover { background: var(--white); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--brown); color: var(--ivory); border-color: var(--brown);
}

.tab {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink);
  background: transparent; border: 0; border-radius: var(--r-pill);
  padding: 9px 16px; cursor: pointer; white-space: nowrap;
  transition: background 200ms ease, color 200ms ease;
}
.tab:hover { background: rgba(221, 234, 243, 0.7); }
.tab.is-active { background: var(--brown); color: var(--ivory); }

/* ---------------------------------------------------------------
   6. Placeholders (drop real artwork in here)
--------------------------------------------------------------- */
.ph { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--ivory-3); }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(41, 36, 31, 0.05) 0 1px, transparent 1px 11px);
}
.ph__label {
  position: relative; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  text-align: center; padding: 0 16px;
}
.ph--sky { background: var(--sky); }
.ph--sand { background: var(--sand); }
.ph--lilac { background: var(--lilac); }
.ph--green { background: var(--green); }
.ph--rose { background: var(--rose); }
.ph--ivory { background: var(--ivory-3); }
.ph--ivory2 { background: var(--ivory-2); }
.ph--dashed { background: rgba(255, 255, 255, 0.55); border: 1px dashed rgba(41, 36, 31, 0.18); }
.ph--square { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--book { aspect-ratio: 3 / 4; border-radius: var(--r-md); box-shadow: 0 14px 28px rgba(41, 36, 31, 0.1); }
.ph--card { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------
   7. Header, navigation, overlays
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(248, 244, 236, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__mark { font-family: var(--serif); font-size: 27px; letter-spacing: -0.01em; }
.brand__sub { font-size: 9.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.brand__logo { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav__btn {
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  background: none; border: 0; padding: 10px 16px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: background 220ms ease; white-space: nowrap;
}
.nav a:hover, .nav__btn:hover,
.nav .current-menu-item > a { background: rgba(221, 234, 243, 0.7); color: var(--ink); }
.nav__btn[aria-expanded="true"] { background: rgba(221, 234, 243, 0.7); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-pill); border: 1px solid rgba(41, 36, 31, 0.14);
  background: transparent; cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease;
}
.icon-btn:hover { background: var(--white); border-color: var(--line-3); }
.icon-btn__glyph { display: block; width: 13px; height: 13px; border: 1.6px solid var(--ink); border-radius: var(--r-pill); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 12px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

.mega { border-top: 1px solid var(--line); background: var(--white); display: none; }
.mega.is-open { display: block; }
.mega__inner {
  max-width: 1320px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 48px) 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px;
}
.mega__col { display: flex; flex-direction: column; gap: 14px; }
.mega__col a { font-size: 15px; }
.mega__feature { background: var(--ivory); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 120; background: var(--ivory);
  padding: 28px clamp(20px, 6vw, 40px); display: none; flex-direction: column;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; padding: 8px; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.mobile-nav nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav nav a { font-family: var(--serif); font-size: 38px; line-height: 1.5; }
.mobile-nav .btn { margin-top: auto; }

.search-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(41, 36, 31, 0.42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(60px, 12vh, 140px) 20px 20px;
  display: none; justify-content: center;
}
.search-overlay.is-open { display: flex; }
.search-panel {
  width: 100%; max-width: 720px; background: var(--ivory);
  border-radius: var(--r-xl); padding: 28px; height: fit-content;
  box-shadow: 0 40px 90px rgba(41, 36, 31, 0.28);
}
.search-panel input[type="search"], .search-panel input[type="text"] {
  width: 100%; font-family: var(--serif); font-size: clamp(20px, 3.4vw, 28px);
  color: var(--ink); background: transparent; border: 0; outline: none;
  padding: 6px 0 18px; border-bottom: 1px solid rgba(41, 36, 31, 0.16);
}
.search-groups { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.search-group { display: flex; flex-direction: column; gap: 10px; }
.search-result {
  display: flex; justify-content: space-between; gap: 16px; font-size: 15px;
  padding: 10px 12px; margin: 0 -12px; border-radius: var(--r-sm);
  transition: background 180ms ease;
}
.search-result:hover { background: var(--white); }

/* ---------------------------------------------------------------
   8. Hero
--------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(92vh, 900px); display: flex; align-items: center;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  background: linear-gradient(170deg, #F8F4EC 0%, #F4EEE3 42%, #DDEAF3 100%);
  overflow: hidden;
}
.hero__glow-a, .hero__glow-b { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow-a {
  top: -18%; right: -10%; width: min(52vw, 620px); height: min(52vw, 620px);
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.9), rgba(216,197,165,0.28) 55%, rgba(216,197,165,0) 72%);
}
.hero__glow-b {
  bottom: -22%; left: -14%; width: min(44vw, 520px); height: min(44vw, 520px);
  background: radial-gradient(circle at 50% 50%, rgba(221,215,232,0.6), rgba(221,215,232,0) 70%);
}
.hero__inner {
  position: relative; width: 100%; display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; max-width: 620px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  background: rgba(255, 255, 255, 0.72); padding: 9px 16px; border-radius: var(--r-pill);
}
.hero__badge .arabic { font-size: 15px; letter-spacing: 0; }
.hero__scene {
  position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(165deg, #FFFFFF 0%, #F4EEE3 60%, #DDEAF3 100%);
  box-shadow: 0 40px 80px rgba(41, 36, 31, 0.14);
}
.hero__scene::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(41,36,31,0.05) 0 1px, transparent 1px 11px);
}
.layer { position: absolute; }
.layer--light {
  top: 8%; left: 10%; width: 34%; height: 40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%);
  animation: iq-float 9s ease-in-out infinite;
}
.layer--parent { left: 12%; bottom: 16%; width: 30%; height: 54%; border-radius: 120px 120px 18px 18px; background: rgba(174,190,170,0.42); border: 1px dashed rgba(41,36,31,0.22); }
.layer--child  { left: 40%; bottom: 16%; width: 20%; height: 36%; border-radius: 90px 90px 14px 14px; background: rgba(216,197,165,0.5); border: 1px dashed rgba(41,36,31,0.22); }
.layer--books  { right: 12%; bottom: 16%; width: 26%; height: 26%; border-radius: 14px; background: rgba(221,215,232,0.62); border: 1px dashed rgba(41,36,31,0.22); }
.layer--ground { left: 0; right: 0; bottom: 0; height: 16%; background: rgba(41,36,31,0.06); }
.star { position: absolute; border-radius: 50%; background: var(--sand); animation: iq-twinkle 5s ease-in-out infinite; }
.star--a { right: 16%; top: 14%; width: 8px; height: 8px; }
.star--b { right: 30%; top: 24%; width: 5px; height: 5px; animation-duration: 5.5s; }
.star--c { left: 30%; top: 12%; width: 5px; height: 5px; animation-duration: 6.5s; }
.hero__scene-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); background: rgba(248, 244, 236, 0.9);
  padding: 9px 14px; border-radius: var(--r-pill); text-align: center;
}
.motion-legend { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.motion-legend span {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-3);
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px;
}
.motion-legend b { font-weight: 400; color: var(--muted); }

/* ---------------------------------------------------------------
   9. IQRA scroll sequence
--------------------------------------------------------------- */
.iqra { position: relative; height: 320vh; background: var(--brown); }
.iqra__sticky {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px; overflow: hidden; padding: 0 20px;
}
.iqra__halo {
  position: absolute; width: min(70vw, 720px); height: min(70vw, 720px); border-radius: 50%;
  background: radial-gradient(circle, rgba(216,197,165,0.16), rgba(216,197,165,0) 68%);
}
.iqra__arabic { position: relative; font-family: var(--arabic); font-size: clamp(22px, 3vw, 34px); color: rgba(216,197,165,0.9); }
.iqra__words { position: relative; height: clamp(90px, 15vw, 190px); display: grid; place-items: center; width: 100%; }
.iqra__word {
  grid-area: 1 / 1; font-family: var(--serif);
  font-size: clamp(64px, 13vw, 170px); line-height: 1; letter-spacing: -0.03em; color: var(--ivory);
  opacity: 0; transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms var(--ease);
}
.iqra__word.is-active { opacity: 1; transform: translateY(0); }
.iqra__word.is-past { transform: translateY(-26px); }
.iqra__caption {
  position: relative; font-size: clamp(15px, 1.4vw, 19px); color: rgba(248,244,236,0.66);
  text-align: center; max-width: 560px; line-height: 1.6; transition: opacity 500ms ease;
}
.iqra__dots { position: relative; display: flex; gap: 8px; margin-top: 16px; }
.iqra__dots span { width: 30px; height: 2px; background: rgba(248,244,236,0.22); transition: background 400ms ease; }
.iqra__dots span.is-active { background: var(--sand); }

/* ---------------------------------------------------------------
   10. Cards
--------------------------------------------------------------- */
.card {
  position: relative; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform 360ms var(--ease), box-shadow 360ms ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.pillar { padding: clamp(28px, 3vw, 40px); min-height: 330px; display: flex; flex-direction: column; gap: 18px; }
.pillar__tint { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.pillar__tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.journey {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px;
  min-height: 400px; display: flex; flex-direction: column;
  transition: transform 420ms var(--ease);
}
.journey:hover { transform: translateY(-8px); color: var(--ink); }
.journey .ph { height: 170px; border-radius: var(--r-md); }
.journey h3 { margin: 24px 0 10px; font-size: 27px; line-height: 1.16; }
.journey .link-arrow { margin-top: auto; font-size: 13px; }

.kid-rail {
  margin-top: clamp(24px, 3vw, 36px); display: flex; gap: 14px; overflow-x: auto;
  padding: 4px clamp(20px, 4vw, 48px) 24px; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.kid-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }

.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rail-nav { display: flex; gap: 10px; flex-shrink: 0; }
.rail-nav button {
  width: 46px; height: 46px; border-radius: var(--r-pill);
  border: 1px solid rgba(41, 36, 31, 0.2); background: rgba(248, 244, 236, 0.75);
  color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 220ms ease, transform 220ms ease, opacity 220ms ease, border-color 220ms ease;
}
.rail-nav button:hover:not(:disabled) { background: var(--white); border-color: var(--line-3); transform: translateY(-2px); }
.rail-nav button:disabled { opacity: 0.32; cursor: default; }
.kid-card {
  flex: 0 0 clamp(230px, 24vw, 290px); scroll-snap-align: start;
  border-radius: var(--r-xl); overflow: hidden; background: var(--ivory);
  display: flex; flex-direction: column;
  transition: transform 380ms var(--ease), box-shadow 380ms ease;
}
.kid-card:hover { transform: translateY(-8px); box-shadow: 0 26px 46px rgba(41,36,31,0.16); color: var(--ink); }
.kid-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }

.landscape {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(120deg, #F4EEE3, #DDD7E8 50%, #AEBEAA);
  min-height: 300px; display: flex; align-items: flex-end; padding: clamp(24px, 3vw, 40px);
}
.landscape::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(41,36,31,0.05) 0 1px, transparent 1px 12px);
}
.landscape__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; }
.landscape .pill { background: rgba(248,244,236,0.85); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink); padding: 8px 14px; }

.story { display: flex; flex-direction: column; gap: 16px; }
.story__cover { position: relative; transition: transform 420ms var(--ease), box-shadow 420ms ease; }
.story__cover::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(41,36,31,0.1); }
.story:hover .story__cover { transform: translateY(-10px) rotate(-1.2deg); box-shadow: var(--shadow-lg); }

.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 22px 20px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--ink); }
.tile__tint { width: 26px; height: 3px; border-radius: 2px; }
.tile__name { font-size: 15.5px; font-weight: 600; line-height: 1.3; }

.product {
  display: flex; flex-direction: column; gap: 14px; border-radius: 18px; padding: 14px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform 320ms var(--ease), box-shadow 320ms ease;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(41,36,31,0.12); color: var(--ink); }
.product__body { display: flex; flex-direction: column; gap: 5px; padding: 0 6px 8px; }
.product__name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.product__price { font-size: 15px; color: var(--ink-2); }

.entry-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px); min-height: 280px; display: flex; flex-direction: column;
  transition: transform 380ms var(--ease), box-shadow 380ms ease;
}
.entry-card:hover { transform: translateY(-7px); box-shadow: 0 28px 52px rgba(41,36,31,0.13); color: var(--ink); }
.entry-card h2 { margin: 14px 0 10px; font-size: clamp(27px, 2.8vw, 36px); line-height: 1.1; }
.entry-card .link-arrow { margin-top: auto; font-size: 13px; }

.theme-card {
  text-align: left; font-family: var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px); min-height: 200px;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform 340ms var(--ease), box-shadow 340ms ease, background 240ms ease;
}
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.theme-card.is-active { background: var(--white); border-color: rgba(41,36,31,0.3); }
.theme-card__name { font-family: var(--serif); font-size: clamp(25px, 2.6vw, 33px); line-height: 1.1; margin: 12px 0 8px; }
.theme-card__count { margin-top: auto; }

.empty-state {
  border: 1px dashed rgba(41,36,31,0.2); border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 80px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* ---------------------------------------------------------------
   11. Lists: surahs, steps, lessons, FAQ
--------------------------------------------------------------- */
.surah-item {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.surah-item:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(41,36,31,0.08); color: var(--ink); }
.surah-item__num { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 26px; }
.surah-item__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.surah-item__name { font-size: 15.5px; font-weight: 600; }
.surah-item__meta { font-size: 12.5px; color: var(--ink-3); }
.surah-item__arabic { font-family: var(--arabic); font-size: 18px; color: var(--ink-3); }

.step {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 32px);
  transition: transform 300ms var(--ease), box-shadow 300ms ease, background 240ms ease, opacity 240ms ease;
}
.step:nth-child(even) { background: var(--ivory-3); }
.step:hover { transform: translateX(6px); box-shadow: 0 18px 36px rgba(41,36,31,0.09); }
.step.is-done { background: var(--ivory-2); border-color: rgba(41,36,31,0.18); }
.step.is-current { background: var(--white); border-color: rgba(41,36,31,0.28); }
.step.is-upcoming { opacity: 0.68; }
.step__num { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1; color: var(--muted); min-width: 52px; }
.step__body { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.step__title { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 29px); line-height: 1.2; }
.step__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.step__state { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.step.is-current .step__state { color: var(--ink); }

.tick {
  width: 32px; height: 32px; min-width: 32px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(41,36,31,0.22); background: transparent; color: var(--ivory);
  font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background 200ms ease, border-color 200ms ease;
}
.tick[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); }
.step.is-current .tick { border-color: var(--brown); }

.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.accordion__item { border-bottom: 1px solid var(--line-2); }
.accordion__btn {
  width: 100%; text-align: left; font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; color: var(--ink);
  background: none; border: 0; padding: 26px 0; cursor: pointer;
  display: flex; gap: 20px; justify-content: space-between; align-items: center;
}
.accordion__sign { font-family: var(--serif); font-size: 24px; color: var(--muted); line-height: 1; }
.accordion__panel { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); padding: 0 0 28px; max-width: 760px; }
.accordion__panel[hidden] { display: none; }

.progress-card {
  background: rgba(248, 244, 236, 0.9); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px;
}
.progress-bar { height: 6px; border-radius: var(--r-pill); background: rgba(41,36,31,0.1); overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: var(--r-pill); background: var(--brown); transition: width 400ms var(--ease); }

.detail-row { display: flex; gap: 14px; background: var(--ivory); border-radius: var(--r-md); padding: 16px 20px; }
.detail-row__tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding-top: 3px; min-width: 28px; }
.detail-row__text { font-size: 14.5px; line-height: 1.7; color: #453D34; }

.verse-row { display: flex; gap: 18px; border-bottom: 1px solid rgba(248,244,236,0.12); padding: 18px 0; }
.verse-row__ref { font-family: var(--mono); font-size: 11px; color: rgba(216,197,165,0.9); min-width: 58px; padding-top: 3px; }
.verse-row__text { font-size: 15px; line-height: 1.7; color: rgba(248,244,236,0.82); }

.practice-box {
  border-radius: 18px; background: rgba(248,244,236,0.07);
  border: 1px solid rgba(248,244,236,0.14); padding: 24px;
}

/* ---------------------------------------------------------------
   12. Forms, newsletter, footer
--------------------------------------------------------------- */
.field {
  flex: 1 1 220px; font-size: 15px; color: var(--ivory);
  background: rgba(248,244,236,0.08); border: 1px solid rgba(248,244,236,0.2);
  border-radius: var(--r-pill); padding: 17px 24px; outline: none;
}
.field::placeholder { color: rgba(248, 244, 236, 0.5); }
.field--light {
  color: var(--ink); background: var(--white);
  border: 1px solid rgba(41,36,31,0.14); padding: 14px 22px; font-size: 14.5px;
  flex: 0 1 280px;
}
.field--light::placeholder { color: var(--muted); }

.newsletter { padding: clamp(70px, 9vw, 130px) 0; background: var(--brown); color: var(--ivory); }
.newsletter__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 60px); align-items: center; }
.newsletter p { color: rgba(248,244,236,0.72); font-size: 16px; line-height: 1.7; max-width: 460px; }
.newsletter__note { font-family: var(--mono); font-size: 11px; color: rgba(248,244,236,0.5); }

/* Jetpack sign-up form, restyled to match the theme */
.iqra-subscribe, .iqra-subscribe form { margin: 0 !important; padding: 0 !important; }
.iqra-subscribe .wp-block-jetpack-subscriptions__form-elements { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 !important; }
.iqra-subscribe .wp-block-jetpack-subscriptions__form-elements p { margin: 0 !important; }
.iqra-subscribe #subscribe-email, .iqra-subscribe [id^="subscribe-email"] { flex: 1 1 220px; min-width: 0; }
.iqra-subscribe .iqra-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.iqra-subscribe .iqra-subscribe__names { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 100%; width: 100%; margin: 0 !important; }
.iqra-subscribe .iqra-subscribe__names input { flex: 1 1 160px; min-width: 0; }
.iqra-subscribe input[type="email"], .iqra-subscribe .iqra-subscribe__names input {
  width: 100% !important; min-height: 54px; box-sizing: border-box; margin: 0 !important;
  font-family: var(--sans) !important; font-size: 16px !important; padding: 15px 24px !important;
  border-radius: var(--r-pill) !important; outline: none;
}
.iqra-subscribe button, .iqra-subscribe .wp-block-button__link {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 54px; margin: 0 !important;
  font-family: var(--sans) !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0.02em;
  padding: 15px 32px !important; border-radius: var(--r-pill) !important; border: 0 !important; cursor: pointer;
  transition: transform 240ms ease, background 240ms ease; white-space: nowrap;
}
.iqra-subscribe button:hover, .iqra-subscribe .wp-block-button__link:hover { transform: translateY(-3px); }
.iqra-subscribe--dark, .iqra-subscribe--dark p, .iqra-subscribe--dark .wp-block-jetpack-subscriptions__subscount { color: var(--ivory); }
.iqra-subscribe--dark .iqra-subscribe__names input, .iqra-subscribe--dark input[type="email"] { color: var(--ivory) !important; background: rgba(248,244,236,0.08) !important; border: 1px solid rgba(248,244,236,0.25) !important; }
.iqra-subscribe--dark .iqra-subscribe__names input::placeholder, .iqra-subscribe--dark input[type="email"]::placeholder { color: rgba(248,244,236,0.55); }
.iqra-subscribe--dark button, .iqra-subscribe--dark .wp-block-button__link { background: var(--ivory) !important; color: var(--brown) !important; }
.iqra-subscribe--light .iqra-subscribe__names input, .iqra-subscribe--light input[type="email"] { color: var(--ink) !important; background: var(--white) !important; border: 2px solid var(--ink) !important; border-radius: var(--r-md) !important; }
.iqra-subscribe--light button, .iqra-subscribe--light .wp-block-button__link { background: var(--brown) !important; color: var(--ivory) !important; }
.iqra-subscribe--light .wp-block-jetpack-subscriptions__form-elements { flex-direction: column; align-items: flex-start; }
.iqra-subscribe--light #subscribe-email, .iqra-subscribe--light [id^="subscribe-email"] { width: 100%; flex: 0 0 auto; }

.site-footer { background: var(--brown); color: rgba(248,244,236,0.7); padding: clamp(40px, 5vw, 70px) 0 40px; }
.site-footer--edge { border-top: 1px solid rgba(248,244,236,0.12); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 13.5px; color: rgba(248,244,236,0.7); }
.site-footer__col a:hover { color: var(--ivory); }
.site-footer .eyebrow { color: rgba(248,244,236,0.45); }
.site-footer__mark { font-family: var(--serif); font-size: 26px; color: var(--ivory); }
.site-footer__legal {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(248,244,236,0.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: rgba(248,244,236,0.45);
}
.site-footer__links { display: inline-flex; gap: 18px; }
.site-footer__links a { color: rgba(248,244,236,0.7); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__links a:hover { color: var(--ivory); }

/* ---------------------------------------------------------------
   13. Editorial / default WordPress content
--------------------------------------------------------------- */
.entry-content { font-size: 17px; line-height: 1.8; color: var(--ink-2); max-width: 720px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 1.6em; color: var(--ink); }
.entry-content h3 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 1.4em; color: var(--ink); }
.entry-content a { border-bottom: 1px solid var(--line-3); }
.entry-content blockquote {
  margin: 1.6em 0; padding: 22px 26px; background: var(--ivory-2);
  border-radius: var(--r-md); font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink);
}
.entry-content img, .wp-caption img { border-radius: var(--r-md); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.alignwide { max-width: 1120px; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.6em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.6em; }
.wp-caption-text, .wp-element-caption { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination .page-numbers {
  padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); font-size: 14px;
}
.pagination .current { background: var(--brown); color: var(--ivory); border-color: var(--brown); }

/* ---------------------------------------------------------------
   14. Motion
--------------------------------------------------------------- */
@keyframes iq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes iq-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

[data-hero-stage] { opacity: 0; transform: translateY(22px); }
.js-ready [data-hero-stage] { transition: opacity 900ms ease, transform 900ms var(--ease); }
[data-hero-stage].is-in { opacity: 1; transform: none; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 780ms ease, transform 780ms var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-js [data-hero-stage] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal], [data-hero-stage] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------
   15. Responsive
--------------------------------------------------------------- */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .shop-layout aside { position: static !important; }
  .sticky-col { position: static !important; }
}

@media (max-width: 899px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; }
  .mega { display: none !important; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .iqra { height: 280vh; }
  .step { flex-wrap: wrap; }
  .step__aside { align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .rail-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .rail-nav button { width: 44px; height: 44px; }
  .site-footer__legal { flex-direction: column; gap: 8px; }
  .mobile-nav nav a { font-size: 30px; }
  .journey { min-height: 340px; }
  .search-panel { padding: 20px; }
  .accordion__btn { padding: 20px 0; }
}

/* ---------------------------------------------------------------
   16. Print
--------------------------------------------------------------- */
@media print {
  .site-header, .mobile-nav, .search-overlay, .newsletter, .kid-rail { display: none !important; }
  body { background: #fff; }
  .iqra { height: auto; }
  .iqra__sticky { height: auto; padding: 60px 0; }
  .iqra__word { opacity: 1; position: static; transform: none; }
}


/* ---------------------------------------------------------------
   16. Front page first fold: "Many Paths" (brief §4)
   Plays once: dots 0–0.4s, cards spring out 0.4–1.5s (0.12s apart),
   labels 1.3–1.9s, copy 0.9–2.3s. Fill-mode "backwards" so hover works.
--------------------------------------------------------------- */
.paths-hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: min(calc(100vh - var(--header-h, 76px)), 800px);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 64px);
  background: var(--ivory); color: var(--ink); font-family: var(--sans);
}
.paths-hero__inner {
  width: 100%; max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(40px, 6vw, 76px);
}
.paths-hero__copy { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.paths-hero__title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.5px;
  animation: iq-slideL .6s cubic-bezier(.2,.7,.2,1) .9s backwards;
}
.paths-hero__title span { display: block; font-style: italic; }
.paths-hero__sub {
  margin: 0; max-width: 440px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: #3d362f;
  animation: iq-slideL .6s cubic-bezier(.2,.7,.2,1) 1.2s backwards;
}
.paths-hero__cta { display: flex; gap: 14px; margin-top: 10px; animation: iq-rise .7s cubic-bezier(.2,.7,.2,1) 1.6s backwards; }
.paths-hero__btn {
  display: inline-flex; align-items: center; min-height: 48px;
  text-decoration: none; background: var(--brown); color: var(--ivory); padding: 14px 26px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 16px; transition: background 220ms ease;
}
.paths-hero__btn:hover, .paths-hero__btn:focus-visible { background: var(--brown-2); color: var(--ivory); }
.paths-hero__mosaic-wrap { flex: 1 1 400px; max-width: 556px; container-type: inline-size; }
.paths-hero__mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr;
  gap: 3.6cqw; aspect-ratio: 556 / 490;
}
.paths-card {
  --i: 0;
  box-sizing: border-box; min-width: 0; min-height: 44px; padding: clamp(16px, 4.3cqw, 24px);
  border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
  animation:
    iq-dot .4s ease-out backwards,
    iq-fly .62s cubic-bezier(.34,1.3,.5,1) calc(.4s + var(--i) * .12s) backwards;
}
.paths-card:hover, .paths-card:focus-visible { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 34px rgba(41, 36, 31, 0.14); }
.paths-card--big { padding: clamp(20px, 5cqw, 28px); }
.paths-card__body { display: flex; flex-direction: column; gap: 6px; }
.paths-card__title { font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 4cqw, 22px); line-height: 1.2; }
.paths-card--big .paths-card__title { font-size: clamp(20px, 4.7cqw, 26px); }
.paths-card__sub { font-size: clamp(15px, 2.9cqw, 16px); color: #3d362f; }
.paths-in { animation: iq-rise .6s ease-out 1.3s backwards; }

@keyframes iq-dot { from { opacity: 0; } to { opacity: 1; } }
@keyframes iq-fly {
  from { transform: translate(var(--dx), var(--dy)) scale(.14); border-radius: 999px; }
  to   { transform: translate(0, 0) scale(1); border-radius: 22px; }
}
@keyframes iq-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes iq-slideL { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes iq-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .paths-hero { min-height: 0; }
  .paths-hero__mosaic { aspect-ratio: auto; grid-template-rows: none; grid-auto-rows: minmax(116px, auto); gap: 12px; }
  .paths-card { animation: iq-fade .5s ease-out calc(.2s + var(--i) * .08s) backwards; }
  .paths-in { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .paths-hero__title, .paths-hero__sub, .paths-hero__cta, .paths-card, .paths-in { animation: none !important; }
  .paths-card:hover { transform: none; }
}

/* ---------------------------------------------------------------
   17. Accessibility floor (brief §7)
--------------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 6px; }
.btn, .chip, .tab, .nav a, .quiz__opt, .tick, .accordion__btn, .rail-nav button { min-height: 44px; }
.chip { display: inline-flex; align-items: center; font-size: 15px; }
.chip.is-active, .chip[aria-current] { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.nav a { display: inline-flex; align-items: center; font-size: 15px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink-3); }
.link-arrow { font-size: 15px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html, body { overflow-x: clip; }

/* ---------------------------------------------------------------
   18. Path system: bar, next step, chooser, page head
--------------------------------------------------------------- */
.phead { padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 4.5vw, 60px); background: var(--ivory); }
.phead__title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.1; text-wrap: balance; }

.pathbar { background: var(--path); border-bottom: 1px solid var(--line); }
.pathbar__inner {
  max-width: 1320px; margin: 0 auto; padding: 12px clamp(20px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
}
.pathbar__label { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.pathbar__label strong { font-weight: 800; }
.pathbar__label strong::after { content: "·"; margin-left: 10px; font-weight: 400; }
.pathbar__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.pathbar__steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pathbar__steps a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.pathbar__steps a:hover { background: var(--white); color: var(--ink); }
.pathbar__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--ink); font-size: 13px; font-weight: 800;
}
.pathbar__steps .is-done .pathbar__num { background: var(--ink); color: var(--path); }
.pathbar__steps .is-current a { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.pathbar__steps .is-current .pathbar__num { background: var(--ink); color: var(--white); }
@media (max-width: 1000px) {
  .pathbar__steps li:not(.is-current) .pathbar__name { display: none; }
  .pathbar__steps a { padding: 6px; }
  .pathbar__steps .is-current a { padding-right: 14px; }
}
@media (max-width: 420px) {
  .pathbar__steps .is-current .pathbar__name { display: none; }
  .pathbar__steps .is-current a { padding-right: 6px; }
}

.nextstep { padding: clamp(48px, 6vw, 88px) 0; background: var(--ivory); border-top: 1px solid var(--line); }
.nextstep__card {
  background: var(--white); border-radius: var(--r-lg); box-shadow: inset 0 0 0 2px var(--path, var(--sky));
  padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.nextstep__card .stack { max-width: 640px; }
.nextstep__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; font-size: 16px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.nextstep__choose { border: 1.5px dashed var(--line-3); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }

.btn--path { background: var(--path); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--path:hover { background: var(--white); color: var(--ink); transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--ink), 0 14px 28px rgba(41,36,31,.14); }
.btn--lg { font-size: 17px; padding: 18px 34px; min-height: 56px; }

.path-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 24px; }
.path-card {
  background: var(--path); border-radius: var(--r-lg); padding: 26px; min-height: 200px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.path-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 34px rgba(41,36,31,.12); }
.path-card__title { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.path-card .link-arrow { margin-top: auto; }

/* ---------------------------------------------------------------
   19. Children path
--------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.story-pick { background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.story-pick:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 34px rgba(41,36,31,.12); }
.story-pick__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.story-pick__title { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.story-pick__meta { font-size: 16px; color: var(--ink-2); }

.reader__head { padding: clamp(40px, 5vw, 72px) 0; }
.reader .wrap--reader { max-width: 760px; }
.reader__page { padding: clamp(32px, 4vw, 52px) 0 0; display: flex; flex-direction: column; gap: 22px; }
.reader__page .ph { border-radius: var(--r-lg); }
.reader__text { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.6; color: var(--ink); }
.reader__page.is-reading .reader__text { background: rgba(238, 217, 216, 0.6); box-shadow: 0 0 0 10px rgba(238, 217, 216, 0.6); border-radius: 4px; }
.reader__ref { margin: clamp(32px, 4vw, 52px) 0 clamp(40px, 5vw, 64px); font-size: 16px; color: var(--ink-2); }
.play-icon { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
[data-read-aloud][aria-pressed="true"] .play-icon { width: 12px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

.lesson-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 26px; }
.talk { background: var(--rose); border-radius: var(--r-md); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.talk__q { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }

.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 26px); align-items: start; }
.activity-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; border: 0; margin: 0; }
.activity-card .ph { border-radius: var(--r-md); }
.activity-card .btn { align-self: flex-start; }
.quiz__q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.quiz__q legend { font-size: 19px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.quiz__options { display: grid; gap: 10px; }
.quiz__opt {
  min-height: 60px; padding: 14px 20px; text-align: left; font-size: 18px; font-weight: 600;
  border-radius: var(--r-md); border: 2px solid var(--line-3); background: var(--ivory); color: var(--ink); cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.quiz__opt:hover { border-color: var(--ink); }
.quiz__opt.is-right { background: #DCE6D9; border-color: #3E5A3A; }
.quiz__opt.is-wrong { background: var(--rose); border-color: #8A4B47; }
.quiz__feedback { font-size: 17px; font-weight: 700; min-height: 1.6em; }
.quiz__score { font-family: var(--serif); font-size: 22px; }

.badge-hero { padding: clamp(48px, 6vw, 96px) 0; background: var(--rose); }
.badge-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 64px); }
.badge { position: relative; width: clamp(150px, 20vw, 210px); aspect-ratio: 1; display: grid; place-items: center; flex-shrink: 0; }
.badge__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--sand); box-shadow: inset 0 0 0 10px var(--white), inset 0 0 0 13px var(--ink); }
.badge__star { position: relative; width: 52%; aspect-ratio: 1; background: var(--white); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.badge--sm { width: 64px; }
.badge--sm .badge__ring { box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5.5px var(--ink); }
.badge-count { font-weight: 700; font-size: 17px; }
.badge-shelf { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.badge-shelf__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 15px; font-weight: 600; }
.badge-shelf__item:not(.is-earned) .badge { opacity: 0.35; filter: grayscale(1); }
.badge-shelf__item:not(.is-earned) .badge-shelf__name { color: var(--ink-2); font-weight: 400; }

/* ---------------------------------------------------------------
   20. Parents path
--------------------------------------------------------------- */
.how-strip { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; counter-reset: none; }
.how-strip__step { background: var(--sky); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.how-strip__num, .lesson-row__num, .start-list__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--ink); color: var(--ivory); font-weight: 800; font-size: 17px;
}
.preview-band { background: var(--path); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }

.level { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); }
.level:first-child { border-top: 0; padding-top: 0; }
.level__head { display: flex; flex-direction: column; gap: 8px; }
.level__paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
@media (max-width: 760px) { .level { grid-template-columns: minmax(0, 1fr); } }
.lp-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.lp-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--line-3), 0 16px 30px rgba(41,36,31,.1); }
.lp-card.is-chosen { background: var(--sand); box-shadow: inset 0 0 0 2.5px var(--ink); }
.lp-card__title { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; }
.lp-card__length { font-size: 16px; font-weight: 700; }
.lp-card__cta { margin-top: auto; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: var(--r-pill); background: var(--sky); font-weight: 700; font-size: 15px; }
.lp-card.is-chosen .lp-card__cta { background: var(--ink); color: var(--ivory); }

.week-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.week { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .week { grid-template-columns: minmax(0, 1fr); } }
.week__main { display: flex; flex-direction: column; gap: 14px; }
.talking-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: tp; }
.talking-points li { counter-increment: tp; background: var(--sky); border-radius: var(--r-md); padding: 16px 20px 16px 60px; position: relative; font-size: 17px; line-height: 1.55; }
.talking-points li::before { content: counter(tp); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ivory); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.week__story { background: var(--path); border-radius: var(--r-lg); padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: transform 260ms var(--ease); }
.week__story:hover { color: var(--ink); transform: translateY(-4px); }
.week__story .ph { border-radius: var(--r-md); margin-bottom: 6px; }

.ayahs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ayah { background: var(--white); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 18px; }
.ayah__num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--green); font-weight: 800; }
.ayah__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ayah__ar { font-family: var(--arabic); font-size: clamp(26px, 3vw, 34px); line-height: 1.9; text-align: right; color: var(--ink); }
.ayah__tr { font-size: 17px; font-style: italic; color: var(--ink-2); }
.ayah__en { font-size: 18px; line-height: 1.55; }
.ayah__audio { width: 100%; max-width: 360px; height: 44px; margin-top: 4px; }

.mini-card { background: var(--white); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
a.mini-card:hover { color: var(--ink); box-shadow: 0 14px 28px rgba(41,36,31,.1); }

.lp-choose { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--sky); }
.shop-block { margin-top: 8px; }
.shop-block--first { background: var(--path); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: clamp(32px, 4vw, 48px); }
.shop-block .row--between { align-items: center; }
.product { background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.product__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.product__name { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.product__price { font-weight: 700; font-size: 17px; }

.checkin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 860px) { .checkin { grid-template-columns: minmax(0, 1fr); } }
.checkin__list { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.checkin__list .chip { align-self: flex-start; }
.progress-track { height: 10px; border-radius: 99px; background: var(--ivory-2); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 400ms var(--ease); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist__item { display: flex; align-items: center; gap: 14px; font-size: 17px; padding: 6px 0; }
.checklist__item.is-done span { text-decoration: line-through; color: var(--ink-2); }
.checklist .tick { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 2px solid var(--ink); background: var(--white); font-size: 20px; font-weight: 800; cursor: pointer; color: var(--ivory); }
.checklist .tick[aria-pressed="true"] { background: var(--ink); }
.checkin__summary { background: var(--path); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.summary-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; font-size: 17px; }
.summary-list dt { color: var(--ink-2); }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------------------------------------------------------------
   21. Reverts path
--------------------------------------------------------------- */
.reassure { background: var(--green); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.reassure .lead { color: var(--ink); }
.start-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.start-list__item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--white); color: var(--ink); transition: transform 260ms var(--ease); }
.start-list__item:hover { color: var(--ink); transform: translateX(4px); }
.start-list__item.is-current { box-shadow: inset 0 0 0 2.5px var(--ink); }

.lesson-list, .next-guide { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lesson-row, .next-guide li { display: flex; gap: 18px; background: var(--white); border-radius: var(--r-lg); padding: 22px; }
.lesson-row__terms { font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lesson-row__terms > span { color: var(--ink-2); }
.term { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--green); color: var(--ink); font-weight: 700; font-size: 15px; }
.term:hover { background: var(--ink); color: var(--ivory); }
.glossary { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.glossary div { background: var(--white); border-radius: var(--r-md); padding: 16px 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.glossary div:target { box-shadow: inset 0 0 0 2.5px var(--ink); }
.glossary dt { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.glossary dd { margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.explain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.explain { background: var(--lilac); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.explain__big { font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; }
.surah-map { list-style: none; margin: 28px 0 0; padding: 0; height: 180px; display: grid; grid-template-columns: repeat(114, minmax(0, 1fr)); gap: 2px; align-items: end; }
.surah-map__item { height: 100%; display: flex; align-items: flex-end; }
.surah-map__bar { width: 100%; background: var(--ink); border-radius: 2px 2px 0 0; opacity: .8; }
.surah-map__item.is-start .surah-map__bar { background: #3E5A3A; opacity: 1; }
.surah-map__item:hover .surah-map__bar { opacity: 1; background: #3E5A3A; }
.surah-map__axis { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.surah-list { margin-top: 28px; background: var(--white); border-radius: var(--r-lg); padding: 6px 22px; }
.surah-list summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; font-size: 17px; }
.surah-list ol { list-style: none; margin: 0 0 18px; padding: 0; columns: 3 220px; column-gap: 28px; }
.surah-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px; break-inside: avoid; }

.connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.connect__form { background: var(--green); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.connect__label { font-weight: 700; font-size: 16px; margin-top: 6px; }
.connect .field { min-height: 52px; border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--white); padding: 0 16px; font-size: 17px; color: var(--ink); }
.connect__form .btn { align-self: flex-start; margin-top: 8px; }
.connect__next { display: flex; flex-direction: column; gap: 16px; }
.next-guide a.h-5 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------
   22. Uploaded images and editor-written stories
--------------------------------------------------------------- */
img.iqra-art { width: 100%; height: auto; object-fit: cover; display: block; }
img.iqra-art.ph--card { aspect-ratio: 4 / 3; }
img.iqra-art.ph--square { aspect-ratio: 1 / 1; }
img.iqra-art.ph--wide { aspect-ratio: 16 / 9; }
img.iqra-art.ph--book { aspect-ratio: 3 / 4; border-radius: var(--r-md); }
.reader__content > * + * { margin-top: 22px; }
.reader__content > .wp-block-image, .reader__content > .ph { margin-top: clamp(32px, 4vw, 52px); }
.reader__content .wp-block-image img, .reader__content > .ph { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); display: block; }
.reader__content .wp-block-image { margin-left: 0; margin-right: 0; }
.reader__content p { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.6; color: var(--ink); }
.reader__content p.is-reading { background: rgba(238, 217, 216, 0.6); box-shadow: 0 0 0 10px rgba(238, 217, 216, 0.6); border-radius: 4px; }

/* ---------------------------------------------------------------
   23. Qur'an recitation: surah list and player bar
--------------------------------------------------------------- */
.recite__search { width: 100%; min-height: 52px; border-radius: var(--r-md); border: 2px solid var(--line-3); background: var(--white); padding: 0 16px; font-size: 17px; color: var(--ink); }
.recite__search:focus { border-color: var(--ink); }
.recite__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.recite__item { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--r-md); padding: 8px 8px 8px 14px; }
.recite__num { width: 34px; flex-shrink: 0; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.recite__name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.25; }
.recite__name span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.recite__play {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); border: 0; background: var(--lilac); color: var(--ink);
  font-weight: 700; font-size: 15px; cursor: pointer; flex-shrink: 0;
}
.recite__play:hover { background: var(--ink); color: var(--ivory); }
[data-recite][aria-pressed="true"] .play-icon,
.player__btn.is-playing .play-icon { width: 12px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.recite__play[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

.player { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; background: var(--brown); color: var(--ivory); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(41,36,31,.3); padding: 10px 14px 8px; }
.player[hidden] { display: none; }
.player__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.player__info { display: flex; flex-direction: column; min-width: 0; flex: 0 1 220px; }
.player__info strong { font-family: var(--serif); font-weight: 500; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__info span { font-size: 14px; color: rgba(248,244,236,.8); }
.player__track { flex: 1; height: 6px; border-radius: 99px; background: rgba(248,244,236,.2); overflow: hidden; }
.player__track span { display: block; height: 100%; width: 0; background: var(--sand); transition: width 300ms ease; }
.player__btn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--ivory); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.player__btn--sm { width: 44px; height: 44px; background: rgba(248,244,236,.14); color: var(--ivory); }
.player__btn--sm:hover { background: rgba(248,244,236,.28); }
.player__btn:focus-visible { outline-color: var(--sand); }
.player__credit { display: block; max-width: 1100px; margin: 4px auto 0; font-size: 12px; color: rgba(248,244,236,.65); }
body.has-player { padding-bottom: 110px; }
@media (max-width: 600px) {
  .player__track { display: none; }
  .player__info { flex: 1; }
}

.product__cta { align-self: flex-start; margin-top: 8px; padding: 12px 22px; font-size: 15px; }

a.recite__name { color: var(--ink); text-decoration: none; min-height: 44px; justify-content: center; }
a.recite__name:hover, a.recite__name:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.surah-basmalah { text-align: center; margin: 0 0 22px; }
.surah-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); }

/* ---------------------------------------------------------------
   24. Bundled artwork (assets/images) — shapes match the image set
--------------------------------------------------------------- */
.ph--portrait, img.iqra-art.ph--portrait { aspect-ratio: 4 / 5; }
.ph--landscape, img.iqra-art.ph--landscape { aspect-ratio: 4 / 3; }
img.iqra-art { background: var(--ivory-2); }
img.iqra-art.ph--wide, .reader__page img.iqra-art { border-radius: var(--r-lg); object-position: center; }
.journey img.iqra-art { height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-md); border: 0; }
.journey .ph.ph--landscape { height: auto; }
.kid-card img.iqra-art, .story-pick img.iqra-art, .week__story img.iqra-art { aspect-ratio: 4 / 5; }
.story__cover img.iqra-art { aspect-ratio: 4 / 5; border-radius: var(--r-md); box-shadow: 0 14px 28px rgba(41, 36, 31, 0.12); }
.activity-card img.iqra-art.ph--colouring { object-fit: contain; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.article-hero { margin-bottom: clamp(28px, 4vw, 48px); }
.article-hero img.iqra-art { border-radius: var(--r-lg); }
