/* سنابل — نظام التصميم
   كل قسم في الموقع له لون ثابت، فإضافة قسم جديد = لون جديد من نفس الأسرة. */
:root {
  /* الأساس */
  --cream: #fff9ec;
  --paper: #ffffff;
  --ink: #2b2a3a;
  --ink-soft: #5c5a6e;
  --line: #efe4cc;

  /* لون العلامة */
  --wheat: #f2b134;
  --wheat-deep: #c97f00;
  --wheat-soft: #fdf0cf;

  /* ألوان الأقسام */
  --sec-bedtime: #6b56b8;      /* قصص قبل النوم */
  --sec-bedtime-soft: #ece7fa;
  --sec-values: #2f9470;       /* القيم والآداب */
  --sec-values-soft: #dff3ea;
  --sec-prophets: #c97f00;     /* الأنبياء والسيرة */
  --sec-prophets-soft: #fdf0cf;
  --sec-letters: #2f7fc4;      /* الحروف (قادم) */
  --sec-letters-soft: #e0eefb;
  --sec-numbers: #df5a44;      /* الأرقام وجدول الضرب (قادم) */
  --sec-numbers-soft: #fde5e0;
  --sec-coloring: #c9508f;     /* التلوين (قادم) */
  --sec-coloring-soft: #fbe3f0;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 6px 0 rgba(43, 42, 58, 0.08);
  --shadow-lift: 0 10px 0 rgba(43, 42, 58, 0.1);

  --font-display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --font-ui: "Tajawal", system-ui, sans-serif;
  --font-story: "Noto Naskh Arabic", "Amiri", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.8;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--sec-letters); outline-offset: 3px; border-radius: 8px; }

/* ---------- الرأس ---------- */
.site-head { background: var(--cream); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 54px; width: auto; }
.logo b { font-family: "Marhey", var(--font-display); font-weight: 700; font-size: 38px; color: var(--ink); line-height: 1; padding-bottom: 6px; }
.nav { display: flex; gap: 6px; margin-inline-start: 12px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; color: var(--ink-soft); }
.nav a:hover { background: var(--wheat-soft); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.nav .soon { font-size: 12px; font-weight: 500; background: var(--line); color: var(--ink-soft); border-radius: 999px; padding: 1px 8px; margin-inline-start: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  padding: 11px 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--wheat); color: var(--ink); box-shadow: 0 4px 0 var(--ink);
  cursor: pointer; transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.ghost { background: var(--paper); }
.btn.small { font-size: 16px; padding: 7px 18px; flex: none; }

/* ---------- البطل ---------- */
.hero { padding: 48px 0 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.eyebrow { display: inline-block; background: var(--wheat-soft); color: var(--wheat-deep); font-weight: 700; border-radius: 999px; padding: 4px 16px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--wheat-deep); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 14px 0 26px; max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { border-radius: 36px; overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--shadow-lift); background: var(--wheat-soft); }
.hero-art img { width: 100%; height: auto; }

/* ---------- اختيار السن ---------- */
.ages { padding: 6px 0 30px; }
.ages .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ages span.label { font-weight: 700; margin-inline-end: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 5px 16px; font-weight: 700; font-size: 15px; }
a.chip:hover { border-color: var(--ink); }

/* ---------- العناوين ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-head p { color: var(--ink-soft); }
.more { font-weight: 700; color: var(--wheat-deep); white-space: nowrap; }

/* ---------- أبواب القصص ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door { --c: var(--sec-values); --s: var(--sec-values-soft); background: var(--s); border: 2px solid var(--c); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 0 var(--c); transition: transform .12s, box-shadow .12s; }
.door:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--c); }
.door svg { width: 64px; height: 64px; color: var(--c); }
.door h3 { font-size: 24px; color: var(--c); }
.door p { color: var(--ink-soft); font-size: 16px; }
.door .count { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--c); }

/* ---------- بطاقات القصص ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { --c: var(--sec-values); --s: var(--sec-values-soft); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-3px); border-color: var(--c); }
.card .cover { background: var(--s); aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--c); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .kind { font-size: 14px; font-weight: 700; color: var(--c); }
.card h3 { font-size: 21px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 13px; font-weight: 700; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 1px 11px; color: var(--ink-soft); }

/* ---------- مع كل قصة ---------- */
.with { background: var(--paper); border-block: 2px solid var(--line); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio > div { display: flex; gap: 14px; align-items: flex-start; }
.trio .num { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--wheat); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.trio h3 { font-size: 20px; }
.trio p { color: var(--ink-soft); font-size: 16px; }

/* ---------- قادم ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.soon-card { --c: var(--sec-letters); --s: var(--sec-letters-soft); border: 2px dashed var(--c); background: var(--s); border-radius: var(--radius); padding: 20px 22px; }
.soon-card h3 { color: var(--c); font-size: 22px; }
.soon-card p { color: var(--ink-soft); font-size: 15px; }
.soon-card .glyph { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--c); line-height: 1.2; }

/* ---------- لون كل قسم (لازم ييجي بعد .door و .card و .soon-card) ---------- */
.bedtime { --c: var(--sec-bedtime); --s: var(--sec-bedtime-soft); }
.values { --c: var(--sec-values); --s: var(--sec-values-soft); }
.prophets { --c: var(--sec-prophets); --s: var(--sec-prophets-soft); }
.letters { --c: var(--sec-letters); --s: var(--sec-letters-soft); }
.numbers { --c: var(--sec-numbers); --s: var(--sec-numbers-soft); }
.coloring { --c: var(--sec-coloring); --s: var(--sec-coloring-soft); }

/* ---------- ركن الأهل ---------- */
.parents .box { background: var(--ink); color: #fff; border-radius: 32px; padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.parents h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--wheat); }
.parents p { color: #dcd9ea; margin: 10px 0 20px; }
.parents ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.parents li::before { content: "✓"; color: var(--wheat); font-weight: 800; margin-inline-end: 10px; }
.parents .btn { box-shadow: 0 4px 0 #000; }
.pack { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 22px; transform: rotate(-2deg); border: 2px solid var(--wheat); }
.pack .sheet { background: #fff; border: 2px solid var(--line); border-radius: 10px; height: 70px; margin-top: 10px; display: grid; place-items: center; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.pack b { font-family: var(--font-display); font-size: 22px; }

/* ---------- التذييل ---------- */
.site-foot { margin-top: 40px; border-top: 2px solid var(--line); padding: 30px 0 40px; color: var(--ink-soft); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ================= صفحة القصة ================= */
.crumbs { padding: 18px 0 0; font-size: 15px; color: var(--ink-soft); }
.crumbs a { font-weight: 700; color: var(--sec-values); }
.story-head { padding: 14px 0 22px; }
.story-head h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
.story-head .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.story-head .chip.kind { background: var(--sec-values-soft); border-color: var(--sec-values); color: var(--sec-values); }

.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.reader { background: var(--paper); border: 2px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.reader .art { background: var(--sec-values-soft); }
.reader .art img { width: 100%; height: auto; max-height: 380px; object-fit: cover; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 2px solid var(--line); }
.toolbar span { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-inline-end: auto; }
.tool { font-family: var(--font-display); font-weight: 700; font-size: 15px; background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; cursor: pointer; color: var(--ink); }
.tool:hover { border-color: var(--ink); }
.tool[aria-pressed="true"] { background: var(--sec-bedtime); border-color: var(--sec-bedtime); color: #fff; }

.story-text { font-family: var(--font-story); font-size: var(--story-size, 26px); line-height: 2.3; padding: 26px clamp(20px, 5vw, 48px) 34px; }
.story-text p + p { margin-top: 0.7em; }
.story-text q { color: var(--sec-values); quotes: "«" "»"; font-weight: 600; }

.after { padding: 0 clamp(20px, 5vw, 48px) 34px; display: grid; gap: 18px; }
.lesson { background: var(--wheat-soft); border: 2px solid var(--wheat); border-radius: var(--radius-sm); padding: 16px 20px; }
.lesson h2, .qs h2 { font-size: 22px; margin-bottom: 4px; }
.qs ol { list-style: arabic-indic; margin: 6px 0 0; padding-inline-start: 1.3em; display: grid; gap: 4px; }
.qs li::marker { font-family: var(--font-display); font-weight: 800; color: var(--sec-values); }

.side { display: grid; gap: 18px; position: sticky; top: 104px; }
.side .panel { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.side h3 { font-size: 20px; margin-bottom: 6px; }
.side p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.side .btn { width: 100%; }
.sheet-prev { border: 2px dashed var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; color: #c9c3b3; }
.side .panel.buy { background: var(--ink); border-color: var(--ink); }
.side .panel.buy h3 { color: var(--wheat); }
.side .panel.buy p { color: #dcd9ea; }
.side .panel.buy .btn { box-shadow: 0 4px 0 #000; }

/* وضع النوم: ألوان دافئة هادئة لقراءة ما قبل النوم */
body.night { --cream: #1c1a2e; --paper: #25223b; --ink: #f4ecd8; --ink-soft: #b9b3cf; --line: #3a3657; --wheat-soft: #3a3148; background: var(--cream); }
body.night .site-head { background: var(--cream); }
body.night .nav a.on { background: var(--wheat); color: #1c1a2e; }
body.night .btn { border-color: #1c1a2e; color: #1c1a2e; box-shadow: 0 4px 0 #0e0d18; }
body.night .btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--ink-soft); }
body.night .reader .art { filter: brightness(.72) saturate(.85); }
body.night .story-head .chip.kind { background: transparent; }
body.night .side .panel.buy { background: #121022; border-color: var(--line); }
body.night .tool { background: var(--paper); }
body.night .tool[aria-pressed="true"] { background: var(--wheat); border-color: var(--wheat); color: #1c1a2e; }
body.night .story-text q { color: #8fd8b9; }

/* ================= الموبايل ================= */
@media (max-width: 860px) {
  .hero .wrap, .parents .box, .story-layout { grid-template-columns: 1fr; }
  .doors, .cards, .trio, .soon-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .site-head .wrap { flex-wrap: wrap; padding-block: 10px; gap: 8px 12px; }
  .logo { margin-inline-end: auto; }
  .nav { order: 3; flex-basis: 100%; margin: 0; }
  .side { position: static; }
  .parents .box { padding: 26px 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .story-text { --story-size-m: 23px; font-size: var(--story-size, 23px); }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ================= لمسات مستوحاة من قوالب مواقع الأطفال ================= */
/* موجة فاصلة بين الأقسام */
.wave { display: block; width: 100%; height: 48px; }
.wave path { fill: var(--cream); }
.with { background: var(--wheat-soft); border: 0; padding: 0; }
.with > .wrap { padding-block: 34px; }

/* شكل عضوي وزينة عائمة حول رسمة الواجهة */
.hero-art-wrap { position: relative; }
.hero-art-wrap .hero-art { position: relative; z-index: 1; }
.hero-art-wrap .blob { position: absolute; inset: -22px -26px -30px -18px; background: var(--wheat); opacity: .28; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; transform: rotate(-4deg); }
.deco { position: absolute; z-index: 2; animation: floaty 5s ease-in-out infinite; }
.deco.d1 { width: 46px; height: 46px; top: -20px; inset-inline-start: 8%; color: var(--wheat); }
.deco.d2 { width: 58px; height: 58px; bottom: -26px; inset-inline-end: -14px; animation-delay: -1.6s; }
.deco.d3 { width: 34px; height: 34px; bottom: 16%; inset-inline-start: -16px; color: var(--sec-numbers); animation-delay: -3.1s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(5deg); } }

/* قصة الليلة */
.tonight { padding: 10px 0 20px; }
.tonight-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--sec-bedtime); color: #fff; border-radius: 32px; overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--shadow-lift); transition: transform .12s; }
.tonight-card:hover { transform: translateY(-3px); }
.tonight-card .pic img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.tonight-card .txt { padding: 30px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; justify-content: center; }
.tonight-card .eyebrow { margin: 0; background: var(--wheat); color: var(--ink); }
.tonight-card h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: #fff; }
.tonight-card p { color: #e7e2f8; font-size: 18px; }
.tonight-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tonight-card .tag { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.tonight-card .btn { margin-top: 8px; box-shadow: 0 4px 0 #1c1a2e; }

/* شارة على البطاقة */
.card .cover { position: relative; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; background: var(--sec-numbers); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 2px 14px; border-radius: 999px; border: 2px solid #fff; transform: rotate(-4deg); }

/* تذييل بمشهد تلال */
.site-foot { margin-top: 56px; border-top: 0; padding: 0; }
.site-foot .foot-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 6px; }
.site-foot .foot-top p { color: var(--ink-soft); font-size: 16px; }
.hills { display: block; width: 100%; height: 110px; margin-bottom: -1px; }
.foot-band { background: #2f9470; color: #fff; padding: 14px 0 26px; }
.foot-band .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.foot-band a { color: #fff; font-weight: 500; }
.foot-band a:hover { color: #fff; text-decoration: underline; }
.foot-band span { direction: ltr; opacity: .85; font-size: 14px; }

@media (max-width: 860px) {
  .tonight-card { grid-template-columns: 1fr; }
  .tonight-card .txt { padding: 22px; }
  .hero-art-wrap { margin-inline: 10px; }
  .deco.d2 { inset-inline-end: -6px; }
  .deco.d3 { inset-inline-start: -8px; }
  .hills { height: 70px; }
  .foot-band .wrap { justify-content: center; text-align: center; }
  .foot-band nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .deco { animation: none; } }

.hero { overflow-x: clip; }

/* ننمو مع القصة: مهارة، شعور، تجربة، وركن الأهل */
.grow { display: grid; gap: 16px; margin-top: 6px; }
.grow-title { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.grow-title::before { content: ""; width: 12px; height: 28px; border-radius: 8px; background: var(--wheat); }
.grow-kid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-card { border-radius: var(--radius-sm); padding: 14px 16px; border: 2px solid transparent; }
.g-card b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.4; }
.g-card p { font-size: 16px; line-height: 1.8; margin: 2px 0 0; }
.g-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; border-radius: 999px; padding: 1px 12px; margin-bottom: 6px; }
.g-card.skill { background: var(--sec-values-soft); border-color: var(--sec-values); } .g-card.skill .g-tag { background: var(--sec-values); }
.g-card.feel { background: var(--sec-bedtime-soft); border-color: var(--sec-bedtime); } .g-card.feel .g-tag { background: var(--sec-bedtime); }
.g-card.try { background: var(--sec-numbers-soft); border-color: var(--sec-numbers); } .g-card.try .g-tag { background: #c2452f; }
.g-card.fam { background: var(--sec-letters-soft); border-color: var(--sec-letters); } .g-card.fam .g-tag { background: #2569a6; }
.grow-parents { background: var(--paper); border: 2px dashed var(--wheat-deep); border-radius: var(--radius-sm); padding: 16px 20px; }
.grow-parents h3 { font-size: 21px; color: var(--wheat-deep); }
.p-lead { font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.p-steps { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 16px; line-height: 1.8; }
.p-steps dt { font-family: var(--font-display); font-weight: 700; color: var(--sec-values); }
.p-steps dd { margin: 0; }
.p-say { margin-top: 12px; display: grid; gap: 6px; font-size: 16px; line-height: 1.8; }
.p-say p { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--cream); }
.p-say p.good { background: var(--sec-values-soft); }
.p-say span { font-family: var(--font-display); font-weight: 700; margin-inline-end: 8px; color: var(--ink-soft); }
.p-say p.good span { color: var(--sec-values); }
.p-refs { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.p-refs summary { cursor: pointer; font-weight: 700; }
.p-refs ul { margin: 6px 0 0; padding-inline-start: 1.2em; display: grid; gap: 4px; }
body.night .g-card, body.night .p-say p { background: var(--paper); }
body.night .g-card b, body.night .g-card p { color: var(--ink); }
@media (max-width: 640px) { .grow-kid { grid-template-columns: 1fr; } .p-steps { grid-template-columns: 1fr; gap: 0; } .p-steps dd { margin-bottom: 8px; } }
@media print { .grow-parents, .grow { break-inside: avoid; } }

/* ================= صفحات الموقع الحقيقي ================= */
.nav a.on .soon { display: none; }
.listing { padding-bottom: 20px; }
.story-head .intro { color: var(--ink-soft); margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters.doors-row { margin-top: 4px; }
button.chip { font-family: var(--font-ui); cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.listing .cards { margin-top: 12px; }
.empty { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--ink-soft); margin-top: 12px; }
[hidden] { display: none !important; }

.story-head .chip.kind.bedtime { background: var(--sec-bedtime-soft); border-color: var(--sec-bedtime); color: var(--sec-bedtime); }
.story-head .chip.kind.prophets { background: var(--sec-prophets-soft); border-color: var(--sec-prophets); color: var(--sec-prophets); }
.reader.bedtime .art { background: var(--sec-bedtime-soft); }
.reader.bedtime .story-text q, .reader.bedtime .qs li::marker { color: var(--sec-bedtime); }
.reader.prophets .story-text q, .reader.prophets .qs li::marker { color: var(--sec-prophets); }
.ayah { color: var(--sec-prophets); font-weight: 600; }
body.night .ayah { color: var(--wheat); }
.source { font-size: 15px; color: var(--ink-soft); border-top: 2px solid var(--line); padding-top: 12px; }
.sheet-prev { display: block; background: #fff; }
.sheet-prev img { width: 100%; height: auto; }
.minis { display: grid; gap: 10px; }
.mini { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.mini:hover { border-color: var(--ink); }
.mini img { width: 96px; height: 64px; object-fit: cover; flex: none; }
.mini b { display: block; font-family: var(--font-display); font-size: 16px; line-height: 1.4; }
.mini small { color: var(--ink-soft); font-size: 13px; }
body.night .reader.bedtime .story-text q { color: #c9bdf5; }
body.night .sheet-prev { filter: brightness(.85); }

.prose { max-width: 760px; padding-bottom: 20px; }
.prose h2 { font-size: 24px; margin: 26px 0 6px; }
.prose p, .prose li { font-size: 18px; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--sec-values); font-weight: 700; text-decoration: underline; }

/* صفحة التلوين للطباعة */
.print-page { background: #e9e4d6; }
.print-bar { display: flex; gap: 12px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.sheet-a4 { background: #fff; width: min(210mm, 94vw); aspect-ratio: 210 / 297; margin: 0 auto 30px; padding: 8mm 10mm; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(0,0,0,.15); color: #000; }
.sheet-a4 header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid #000; padding-bottom: 3mm; }
.sheet-a4 header b { font-family: var(--font-display); font-size: 22px; }
.sheet-a4 header span { font-size: 15px; }
.sheet-a4 > img { flex: 1; min-height: 0; width: 100%; object-fit: contain; margin: 4mm 0; }
.sheet-a4 footer { display: flex; align-items: center; gap: 8px; border-top: 2px solid #000; padding-top: 3mm; }
.sheet-a4 footer img { height: 30px; width: auto; }
.sheet-a4 footer b { font-family: "Marhey", var(--font-display); font-size: 20px; }
.sheet-a4 footer span { margin-inline-start: auto; direction: ltr; font-size: 14px; }
@page { size: A4; margin: 0; }
@media print {
  .print-bar { display: none; }
  .print-page { background: #fff; }
  .sheet-a4 { width: 210mm; height: 297mm; margin: 0; box-shadow: none; aspect-ratio: auto; }
}
