/* Constant white field. Hero and footer keep their own backgrounds. */
.section,
.how,
.promo,
#books,
#reviews,
#about,
#faq {
  background: #fff;
  color: var(--ink);
}
.stat,
.drawer__foot,
.eyebrow--dark {
  background: #fff;
}
.promo h2 { color: var(--ink); }
.promo p,
.promo__note { color: var(--muted); }
.promo__ar { color: var(--f700); }
.promo__note svg { stroke: var(--f700); }
.faq__q .faq__icon { flex: none; }

@media (max-width: 1280px) {
  .nav__center { display: none; }
  .nav__right .btn--ghost { display: none; }
  .burger { display: grid; }
}
.mobile-menu.is-open { max-height: 720px; }

body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  box-shadow: var(--sh-sm);
}
.review .stars { display: flex; gap: 0.15rem; }
.review .stars svg { width: 16px; height: 16px; fill: var(--gold); }
.review__text { color: #26382f; font-size: 0.98rem; line-height: 1.7; }
.review__by { margin-top: auto; display: grid; gap: 0.1rem; }
.review__by b { font-size: 0.92rem; }
.review__by span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

.test-note {
  margin: 0.35rem 0 0;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #f8f4ea;
  border: 1px dashed rgba(201, 162, 39, 0.7);
  color: #6b5200;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
}

.doc { background: #fff; }
.doc__wrap { max-width: 760px; }
.doc__back {
  display: inline-flex;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--f700);
}
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); }
.doc__body { margin-top: 1rem; color: var(--muted); font-size: 1.02rem; }
.doc__body p + p { margin-top: 0.9rem; }

/* Open spread. Flat layers only, so overflow and filters cannot collapse it. */
.hero__inner,
.hero__copy,
.hero__visual,
.featured__visual,
.spread,
.spread__pages,
.spread__cover,
.spread__lesson {
  min-width: 0;
}
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.4rem 0 0.2rem;
}
.hero__chips {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: min(560px, 100%);
  margin-top: 1.35rem;
}
.hero__chips .chip {
  position: static;
  animation: none;
}
.featured__visual {
  min-height: 0;
  padding: 1.4rem 0.6rem;
}

.spread {
  position: relative;
  z-index: 4;
  width: min(560px, 100%);
}
.spread--feat { width: min(500px, 100%); }
.spread__shadow {
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: -18px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}
.spread__stage { position: relative; }
.spread__pages {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1.08fr);
  min-height: 318px;
  border-radius: 4px 10px 10px 4px;
  background: #f4ead4;
  box-shadow:
    0 0 0 1px rgba(90, 60, 16, 0.35),
    7px 5px 0 #efe2c4,
    10px 8px 0 #e2d0aa,
    13px 11px 0 #f8f2e4,
    16px 14px 0 #c9a44a,
    0 18px 0 #8a6a22,
    0 22px 28px rgba(0, 0, 0, 0.22);
}
.spread__pages::before,
.spread__pages::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 10px;
  pointer-events: none;
  z-index: 3;
}
.spread__pages::before {
  left: -8px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, #071910, #1b6b4c 55%, #0c3b2b);
  box-shadow: inset 0 0 0 1px rgba(227, 199, 102, 0.35);
}
.spread__pages::after {
  right: -8px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(
    90deg,
    #fbf6ea 0 2px,
    #e7d7b4 2px 3px
  );
  box-shadow: 2px 0 0 #c9a44a;
}
.spread__cover {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0.7rem 0.45rem;
  border-radius: 3px 0 0 3px;
  background:
    linear-gradient(90deg, rgba(90, 60, 20, 0.16), transparent 16%),
    #f4ead6;
}
.spread__plate {
  position: relative;
  z-index: 2;
  width: min(100%, 210px);
  min-height: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.85rem 0.55rem;
  border-radius: 2px;
  background:
    radial-gradient(90% 70% at 18% 0%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(165deg, #1f7a56 0%, #0f4a34 48%, #082216 100%);
  box-shadow:
    0 0 0 1px rgba(227, 199, 102, 0.75),
    0 0 0 5px rgba(15, 40, 28, 0.35);
}
.spread__plate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(227, 199, 102, 0.35);
  pointer-events: none;
}
.spread__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(227, 199, 102, 0.9);
  z-index: 2;
}
.spread__corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.spread__corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.spread__corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.spread__corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.spread__medallion {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(227, 199, 102, 0.75);
  background:
    radial-gradient(circle at 50% 50%, rgba(227, 199, 102, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow: inset 0 0 0 4px rgba(227, 199, 102, 0.18);
}
.spread__medallion::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(227, 199, 102, 0.8);
}
.spread__kicker,
.spread__ar,
.spread__rule,
.spread__en,
.spread__ed { position: relative; z-index: 2; }
.spread__kicker {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e3c766;
  font-weight: 800;
}
.spread__ar {
  font-family: Amiri, "Noto Kufi Arabic", serif;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #f7edd6;
  direction: rtl;
  max-width: 12ch;
}
.spread__rule {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e3c766, transparent);
}
.spread__en {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(247, 237, 214, 0.92);
}
.spread__ed {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 237, 214, 0.62);
  font-weight: 650;
}
.spread__gutter {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(255, 248, 230, 0.55) 42%, rgba(0, 0, 0, 0.55) 50%, rgba(255, 248, 230, 0.35) 62%, rgba(60, 40, 10, 0.18));
}
.spread__ribbon {
  position: absolute;
  left: 1px;
  top: 0;
  width: 14px;
  height: 72%;
  background: linear-gradient(180deg, #f0dc9a, #c9a227 40%, #8d7014);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  box-shadow: 2px 0 0 rgba(0, 0, 0, 0.15);
  z-index: 4;
}
.spread__lesson {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0.7rem 1.15rem 0.75rem;
  border-radius: 0 8px 8px 0;
  background:
    linear-gradient(90deg, rgba(90, 60, 20, 0.16), transparent 16%),
    repeating-linear-gradient(#fbf8f1 0 22px, rgba(190, 160, 100, 0.28) 23px),
    #fbf8f1;
}
.spread__lesson::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55));
  pointer-events: none;
}
.spread__lesson-en {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8a6a22;
}
.spread__lesson-ar {
  margin: 0.15rem 0 0.45rem;
  font-family: Amiri, "Noto Kufi Arabic", serif;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #1a3d2e;
  direction: rtl;
  font-weight: 700;
}
.spread__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.spread__lines li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.35rem;
  align-items: baseline;
  min-width: 0;
}
.spread__lines b {
  grid-row: 1 / span 2;
  font-family: Amiri, "Noto Kufi Arabic", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f3d2e;
  direction: rtl;
}
.spread__lines span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #3d5148;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spread__lines em {
  font-style: normal;
  font-size: 0.62rem;
  color: #7a6850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spread__folio {
  position: absolute;
  right: 16px;
  bottom: 6px;
  font-family: Amiri, serif;
  font-size: 0.75rem;
  color: #8a6a22;
}
@media (max-width: 980px) {
  .hero__visual { padding-top: 0.2rem; }
}
@media (max-width: 640px) {
  .spread__pages { min-height: 268px; grid-template-columns: minmax(0, 0.92fr) 12px minmax(0, 1fr); }
  .spread__ar { font-size: 1.15rem; }
  .spread__cover { gap: 0.35rem; padding: 1rem 0.55rem; }
  .spread__medallion { width: 30px; height: 30px; }
  .spread__lesson { padding: 0.55rem 0.4rem 0.95rem 0.5rem; }
  .spread__lesson-ar { font-size: 0.9rem; }
  .spread__lines b { font-size: 0.95rem; }
  .spread__lines em { display: none; }
  .spread__lines li { grid-template-rows: auto; }
  .spread__lines b { grid-row: auto; }
  .hero__chips .chip:last-child { display: none; }
}
