/* Hamed's World v2 · base, layout and components (round 8 phase 1). Tokens: tokens.css. RTL first: logical properties only;
   physical sides appear nowhere except where a thing must not mirror. Hover lives only behind (hover: hover) and (pointer: fine). */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;           /* mobile-native §2: own :active feedback below */
  background: var(--c-ivory); color: var(--c-body);
  font-family: var(--font); font-weight: var(--w-text); font-size: 100%;
  scroll-padding-top: calc(var(--top-h) + var(--gap-top));
}
/* fix round: header height and the gap a jump leaves under it (CD 1: phone 56 + 24, desktop 72 + 32) */
:root { --top-h: 56px; --gap-top: 24px; --track-h: 56px; }
@media (min-width: 768px) { :root { --top-h: 72px; } }
@media (min-width: 1100px) { :root { --gap-top: 32px; } }
/* her measure for every paragraph (≤ 680 px), the news lead and the activity intro included (reviewer C4) */
main :where(p, blockquote, dd) { max-width: var(--measure); }
body { margin: 0; font-size: var(--fs-body); line-height: var(--lh-ar); letter-spacing: 0; overflow-x: clip; }
html[lang="en"] body { line-height: var(--lh-en); }
:where(h1, h2, h3, h4) { color: var(--c-navy); font-weight: var(--w-head); line-height: var(--lh-head); margin: 0 0 .5em; text-wrap: balance; letter-spacing: 0; padding-block-start: .04em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:where(p, li, figcaption, dd) { text-align: start; }          /* §6: Arabic right, English left; never justify */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
input, select, textarea { font-size: max(16px, 1rem); }     /* mobile-native §4: no zoom on focus */
a, button, [role="button"], summary, label { touch-action: manipulation; }
button, .btn, .menu-btn, .icon-btn { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
.top--night :focus-visible, .hero :focus-visible, .foot :focus-visible, .lb :focus-visible { outline-color: var(--c-ivory); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 50; background: var(--c-navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-btn); font-weight: var(--w-ui); }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
main:focus { outline: none; }
[dir="rtl"] .mirror { transform: scaleX(-1); }               /* TS-044: directional chevrons follow reading direction */
bdi[dir="ltr"], [lang="en"] { letter-spacing: 0; }

/* ---------- type roles ---------- */
.h-hero { font-size: var(--fs-hero); line-height: var(--lh-hero); }
.h-page { font-size: var(--fs-page); }
.h-sec { font-size: var(--fs-section); }
.h-card { font-size: var(--fs-card); line-height: var(--lh-card); margin-block-end: .35em; }
.lead, .lead p { font-size: var(--fs-lead); color: var(--c-body); }
.meta { font-size: var(--fs-small); color: var(--c-muted); }
.kid { font-size: var(--fs-kid); font-weight: var(--w-ui); }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-block-end: 0; }

/* ---------- layout ---------- */
.sec { padding-block: var(--sec-y); }
.sec-in, .top-in, .foot-in { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sec + .sec { padding-block-start: 0; }
.sec--about + .sec--library, .sec--library + .sec { padding-block-start: var(--sec-y); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }

/* ---------- buttons (§7: ≥ 48 px, radius 12; primary · secondary · on-night; hover/focus #243B5A) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); min-width: 120px; padding: 10px 24px;
  border-radius: var(--radius-btn); border: 2px solid transparent; font-size: var(--fs-ui); font-weight: var(--w-ui); line-height: var(--lh-ui);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 80ms ease-out;
}
.btn:active { transform: translateY(1px); }   /* CD button.pressed */
.btn--primary:active { background: var(--c-hover); }
.btn--primary { background: var(--c-navy); color: #fff; }
.btn--primary:focus-visible { background: var(--c-hover); }
.btn--secondary { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--secondary:focus-visible { border-color: var(--c-hover); color: var(--c-hover); }
.btn--on-night { background: var(--c-ivory); color: var(--c-navy); }
.btn--on-night:focus-visible { background: var(--c-sand); }
.btn[aria-pressed="true"].btn--secondary { background: var(--c-navy); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: var(--btn-h); height: var(--btn-h); border-radius: var(--radius-btn); border: 0; background: transparent; color: inherit; cursor: pointer; }
.icon-btn svg, .menu-btn svg { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--c-hover); }
  .btn--secondary:hover { border-color: var(--c-hover); color: var(--c-hover); background: var(--c-sand); }
  .sec--library .btn--secondary:hover, .sec--gallery .btn--secondary:hover, .page-head .btn--secondary:hover { background: var(--c-card); }
  .btn--on-night:hover { background: var(--c-sand); }
  .nw:hover, .al:hover, .card:hover { box-shadow: var(--shadow-hover); }
  a:hover { color: var(--c-hover); text-decoration-thickness: 2px; }
  .icon-btn:hover { background: rgba(23, 38, 62, .06); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
/* Omar 2026-10-31: the primary button label vanished on hover. The generic «a:hover { color: var(--c-hover) }» (specificity 0,1,1) beat «.btn--primary» (0,1,0),
   so the label took the same navy as the hovered background. Button text colours are fixed for every state, links or buttons alike. */
a.btn--primary, a.btn--primary:hover, a.btn--primary:focus, a.btn--primary:focus-visible, a.btn--primary:active, a.btn--primary:visited { color: #fff; }
a.btn--on-night, a.btn--on-night:hover, a.btn--on-night:focus, a.btn--on-night:focus-visible, a.btn--on-night:active, a.btn--on-night:visited { color: var(--c-navy); }
a.btn--secondary, a.btn--secondary:visited { color: var(--c-navy); }
a.btn--secondary:hover, a.btn--secondary:focus-visible { color: var(--c-hover); }


/* ---------- header + six-item menu ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--c-ivory); border-block-end: 1px solid var(--c-line); padding-block-start: env(safe-area-inset-top, 0px); }   /* solid bar, no glass (taste-skill) */
.top-in { display: flex; align-items: center; gap: 12px; min-height: var(--top-h); }
.brand { display: inline-flex; align-items: center; min-height: var(--btn-h); font-size: var(--fs-card); font-weight: var(--w-head); color: var(--c-navy); text-decoration: none; white-space: nowrap; line-height: var(--lh-card); }
.nav-wide { display: none; flex: 1; }
.nav-wide ul { display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: center; }
.nav-wide a, .top-link { display: inline-flex; align-items: center; min-height: var(--btn-h); padding-inline: 10px; font-size: var(--fs-ui); font-weight: var(--w-ui); color: var(--c-navy); text-decoration: none; border-radius: 10px; white-space: nowrap; }
.nav-wide a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 2px; text-underline-offset: .5em; }
.top-end { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.top-link.lang { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }   /* a plain text link: only «القائمة» keeps a border (CD should-fix) */
.menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--btn-h); padding-inline: 10px 12px; border-radius: var(--radius-btn); border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-navy); font-size: var(--fs-ui); font-weight: var(--w-ui); cursor: pointer; }
.no-js .menu-btn { display: none; }            /* without JS the footer carries the full menu */
.top-end .top-link:not(.lang) { display: none; }
@media (min-width: 640px) { .top-end .top-link:not(.lang) { display: inline-flex; } }
@media (min-width: 1100px) {   /* full menu from 1100 on one line, AR and EN (order hamed-support-1-r2): tighter gaps, her 18 px / 600 kept */
  .nav-wide { display: block; } .menu-btn { display: none !important; }
  .top-in { gap: 8px; }
  .nav-wide ul { flex-wrap: nowrap; gap: 0; }
  .nav-wide a, .top-end .top-link { padding-inline: 6px; }
  .top-end { gap: 0; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .top-in { padding-inline: 32px; } }   /* the bar only: EN needs the room at 1100 */
@media (max-width: 380px) { .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.top--night { background: var(--c-night); border-block-end-color: rgba(198, 204, 212, .18); }.top--night .brand, .top--night .nav-wide a, .top--night .top-link { color: var(--c-ivory); }
.top--night .menu-btn { background: transparent; color: var(--c-ivory); border-color: rgba(198, 204, 212, .35); }
@media (hover: hover) and (pointer: fine) {
  .nav-wide a:hover, .top-link:hover { background: rgba(23, 38, 62, .06); color: var(--c-hover); }
  .top--night .nav-wide a:hover, .top--night .top-link:hover { background: rgba(250, 247, 240, .1); color: #fff; }
}

/* phone menu: a modal <dialog> sheet (native focus trap, Esc closes, focus returns to the button) */
.sheet { margin: 0; margin-inline-start: auto; inset-block: 0; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--c-ivory); color: var(--c-body); overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(16, 28, 48, .5); }
.sheet-in { display: flex; flex-direction: column; min-height: 100%; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-block-end: 1px solid var(--c-line); margin-block-end: 8px; }
.sheet-title { font-weight: var(--w-head); color: var(--c-navy); font-size: 1.375rem; }
.sheet-x { color: var(--c-navy); }
.sheet-list a { display: flex; align-items: center; min-height: 56px; font-size: var(--fs-ui);   /* her menu size, 18 (reviewer C3) */ font-weight: var(--w-ui); color: var(--c-navy); text-decoration: none; border-block-end: 1px solid var(--c-line); }
.sheet-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: .4em; }
.sheet-end { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: auto; padding-block-start: 24px; }
.sheet[open] { animation: sheet-in 260ms var(--ease-out); }
@keyframes sheet-in { from { transform: translateX(calc(var(--sheet-from, 1) * 24px)); opacity: 0; } }
[dir="rtl"] .sheet { --sheet-from: -1; }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }

/* hero: see «phase 2» at the end of this file */

/* ---------- sections ---------- */
.sec--about { background: var(--c-ivory); }
.sec--about .h-sec { max-width: var(--measure); }
.sec--library { background: var(--c-sand); }
.sec--teaser { background: var(--c-ivory); text-align: center; }
.teaser-q { font-size: var(--fs-section); font-weight: var(--w-head); color: var(--c-navy); text-align: center; max-width: 24ch; margin-inline: auto; line-height: var(--lh-head); }
.sec--news, .sec--parents { background: var(--c-ivory); }
.sec--gallery { background: var(--c-sand); }

/* ---------- cards ---------- */
.card, .nw, .al { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.card { padding: 20px 22px; }
.card-grid, .nw-grid, .al-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-block-end: 28px; }
.card a, .nw a, .al a { text-decoration: none; }
.card a::after, .nw .h-card a::after, .al a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link target */
.nw-body { padding: 18px 22px 22px; }
.nw-art, .al-art { background: var(--c-sand); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.nw-art img, .al-art img { width: 100%; height: 100%; object-fit: contain; }   /* §16: never crop faces or covers */
.al .h-card { padding: 14px 20px 18px; margin: 0; }

/* book card: cover first, the one gold detail is the shelf line under the covers */
.bk-grid { display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.bk { position: relative; display: grid; gap: 16px; align-content: start; }
.bk-art { display: grid; place-items: end center; padding-block-end: 14px; border-block-end: 2px solid var(--c-gold); min-height: 200px; }
.bk-cover { width: auto; max-width: 78%; max-height: 380px; border-radius: var(--radius-cover); box-shadow: 0 2px 4px rgba(16, 28, 48, .12), 0 18px 32px -16px rgba(16, 28, 48, .45); }
.bk-cover--type { display: grid; place-items: center; width: 70%; aspect-ratio: 3 / 4; padding: 20px; background: var(--c-navy); color: var(--c-ivory); font-weight: var(--w-head); font-size: var(--fs-card); line-height: var(--lh-head); text-align: center; }
.bk-link { text-decoration: none; }
.bk-link::after { content: ""; position: absolute; inset: 0; }
.bk-blurb { margin-block-end: 12px; }
.bk-cta { margin: 0; }
.bk--soon .bk-cover { filter: saturate(.92); }
@media (hover: hover) and (pointer: fine) { .bk:hover .btn--primary { background: var(--c-hover); } .bk:hover .bk-cover { transform: translateY(-4px); } .bk-cover { transition: transform 260ms var(--ease-out); } }
@media (prefers-reduced-motion: reduce) { .bk-cover { transition: none !important; transform: none !important; } }
.bk:focus-within .bk-cover { outline: var(--focus); outline-offset: 4px; }

.badge { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--c-gold); color: var(--c-navy); background: var(--c-card); font-size: var(--fs-small); font-weight: var(--w-ui); }

/* ---------- inner pages ---------- */
.page-head { background: var(--c-sand); padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.page-head .h-page { margin-block-end: .3em; }
.crumb { margin: 0 0 12px; font-size: var(--fs-small); }
.crumb a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: var(--w-ui); }
.crumb svg { width: 18px; height: 18px; }
.list .meta { margin: 0; }
.sub + .sub { margin-block-start: 48px; }

/* book page + activity: see «phase 2» at the end of this file */

/* news item + figure: whole picture, caption and rights */
.fig { margin: 0 0 28px; max-width: 860px; }
.fig img { width: 100%; height: auto; object-fit: contain; background: var(--c-sand); border-radius: var(--radius-card); }
.fig figcaption { font-size: var(--fs-small); color: var(--c-muted); margin-block-start: 8px; }
.rights { display: inline-block; }

/* gallery thumbnails + lightbox shell */
.th-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(45%, 220px), 1fr)); }
.th { display: grid; place-items: center; aspect-ratio: 1; background: var(--c-sand); border-radius: var(--radius-img); overflow: hidden; }
.th-img { width: 100%; height: 100%; object-fit: contain; }
.th-cap { font-size: var(--fs-small); color: var(--c-muted); margin: 6px 0 0; }
.lb { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--c-night); color: var(--c-ivory); overscroll-behavior: contain; }
.lb::backdrop { background: rgba(16, 28, 48, .9); }
.lb-in { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px calc(8px + env(safe-area-inset-bottom, 0px)); touch-action: pan-y; }
.lb-count { margin: 0; padding: 12px 64px; text-align: center; font-size: var(--fs-small); }
.lb-fig { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 8px; min-height: 0; }
.lb-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lb-cap { text-align: center; font-size: var(--fs-small); padding-inline: 56px; min-height: 1.6em; }
.lb .icon-btn { position: absolute; color: var(--c-ivory); background: rgba(16, 28, 48, .6); }
.lb-x { top: calc(8px + env(safe-area-inset-top, 0px)); inset-inline-end: 8px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 8px; }
.lb-next { inset-inline-end: 8px; }

/* 404 */
.nf { min-height: 50svh; display: grid; align-items: center; }

/* ---------- footer (ح) on night ---------- */
.foot { background: var(--c-night); color: var(--c-ivory); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; gap: 28px; }
.foot-name { font-size: var(--fs-section); font-weight: var(--w-head); line-height: var(--lh-head); margin: 0; }
.foot-h { color: var(--c-ivory); font-size: var(--fs-card); margin-block-end: 8px; }
.foot a { color: var(--c-ivory); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.foot-ig { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.foot-ig svg { width: 22px; height: 22px; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-nav a { display: inline-flex; min-height: 44px; min-width: 44px; justify-content: center; align-items: center; font-weight: var(--w-ui); }   /* r11 B2: ≥ 44 × 44 («الصور» was 42 wide) */
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-nav { grid-column: 1 / -1; border-block-start: 1px solid rgba(198, 204, 212, .2); padding-block-start: 20px; } }

@media print { .top, .foot, .sheet, .lb, .bp-toc { display: none !important; } body { background: #fff; } }

/* =====================================================================================================================
   PHASE 2 (round 8): hero A/B, home rhythm, book-page journey, the activity, lightbox motion, install chip.
   Motion budget (direction.md + tokens-v2 motion): CSS only; hover 150, press 80–120, station 450, lightbox 220; loops = curtain 8 s
   + 3 stars 5–7 s by opacity. Reduced motion: every loop and transition off, everything visible.
   ===================================================================================================================== */
:root { --ease-ui: cubic-bezier(.23, 1, .32, 1);
  /* the lightbox spring: damping 0.85, ≈ 250 ms perceived, 0.6 % overshoot, sampled to linear() (motion skill css-spring method) */
  --spring-soft: linear(0, 0.0407, 0.1364, 0.2574, 0.3841, 0.5048, 0.6129, 0.7055, 0.782, 0.8434, 0.8912, 0.9275, 0.9543, 0.9735, 0.9868, 0.9956, 1.0011, 1.0043, 1.0058, 1.0063, 1.0061, 1.0055, 1.0048, 1.004, 1);
  --ph: clamp(560px, calc(100svh - var(--top-h)), 900px); }
.btn--big { min-height: 64px; padding-inline: 28px; font-size: var(--fs-kid); }
.btn--small { min-height: 48px; min-width: 0; padding-inline: 14px; font-size: var(--fs-small); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--ghost-night { background: transparent; color: var(--c-ivory); border-color: rgba(250, 247, 240, .55); }
.h-sub { font-size: var(--fs-card); line-height: var(--lh-card); margin-block: 20px 8px; }
.listen-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: var(--radius-btn); border: 2px solid var(--c-navy); background: var(--c-card); color: var(--c-navy); font-weight: var(--w-ui); font-size: var(--fs-ui); cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease-ui); }
.listen-btn svg { width: 24px; height: 24px; }
.listen-btn:active { transform: scale(.97); }
.listen-btn--small { min-height: 48px; padding: 6px 12px; font-size: var(--fs-small); border-width: 1px; }
.listen-btn--big { min-height: 64px; padding-inline: 24px; background: var(--c-navy); color: #fff; font-size: var(--fs-kid); }
/* playing = a held state, not a pulsing loop (design-motion-principles audit: pulsing indicators are a tell) */
.listen-btn.playing { background: var(--c-sand); box-shadow: inset 0 0 0 2px var(--c-gold); }
.listen-btn--big.playing { background: var(--c-hover); }
@media (hover: hover) and (pointer: fine) { .listen-btn:hover { background: var(--c-sand); } .listen-btn--big:hover { background: var(--c-hover); } }
.ico { display: inline-grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

/* ---------- hero (أ) ---------- */
.hero { background: var(--c-night); color: var(--c-ivory); overflow: hidden; }
.hero-in { position: relative; display: grid; }
.hero-frame--sq { position: relative; width: 100%; max-width: 640px; margin-inline: auto; aspect-ratio: 1; background-size: cover; }
.hero-frame--sq::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(to top, var(--c-night), rgba(16, 28, 48, 0)); pointer-events: none; }
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame--wide, .hero-note { display: none; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: 2.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: .7;   /* no blend mode: it re-blended every frame (fixing-motion-performance) */
  background: radial-gradient(circle, rgba(255, 244, 214, .95) 0, rgba(240, 214, 150, .5) 32%, rgba(180, 138, 67, 0) 70%); animation: twinkle 6s ease-in-out infinite alternate; }
.star.s2 { animation-duration: 5s; animation-delay: -2s; } .star.s3 { animation-duration: 7s; animation-delay: -4s; }
@keyframes twinkle { to { opacity: 1; } }
/* the left curtain cut-out (designer, her own pixels) sways ≤ 2 px over 8 s from its top-left hem; it never touches Hamed */
.hero-curtain { position: absolute; height: auto; max-width: none; transform-origin: 0 0; animation: sway 8s ease-in-out infinite alternate; }
/* measured: at 1440 the cut-out is 828 px tall, so 1 px + rotate(.07deg) moves its hem 1 + 828·sin(.07°) ≈ 2.0 px at most */
@keyframes sway { from { transform: translateX(0) rotate(0deg); } to { transform: translateX(1px) rotate(.07deg); } }
.hero.is-off .star, .hero.is-off .hero-curtain { animation-play-state: paused; }
.hero-copy { padding: 4px var(--gutter) 40px; max-width: 640px; margin-inline: auto; width: 100%; }
.hero-rule { display: block; width: 40px; height: 2px; background: var(--c-gold); margin-block-end: 14px; }
.hero .h-hero { color: var(--c-ivory); margin-block-end: .2em; }
.hero p { color: var(--c-ivory); }
.hero-line1 { font-size: var(--fs-slogan); font-weight: var(--w-ui); line-height: var(--lh-head); margin-block-end: .35em; text-wrap: balance; }
.hero-line2 { font-size: var(--fs-lead); color: var(--c-silver); margin-block-end: 0; }
.hero p.hero-line2 { color: var(--c-silver); }
.hero-cta { margin: 24px 0 0; }
@media (min-width: 1100px) {
  .hero-in { direction: ltr; grid-template-columns: minmax(480px, 1fr) var(--ph); min-height: var(--ph); max-width: 1920px; margin-inline: auto; }
  .hero-frame--sq { grid-column: 2; grid-row: 1; width: var(--ph); max-width: none; margin: 0; }
  .hero-frame--sq::after { inset: 0 auto 0 0; width: 120px; height: auto; background: linear-gradient(to right, var(--c-night), rgba(16, 28, 48, 0)); }
  .hero-frame--sq::before { content: ""; position: absolute; inset: 0 0 auto; height: 40px; z-index: 1; background: linear-gradient(to bottom, var(--c-night), rgba(16, 28, 48, 0)); pointer-events: none; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; max-width: 468px; padding: 0; margin-inline: 80px 64px; }
  [dir="rtl"] .hero-copy { direction: rtl; justify-self: end; }
  [dir="ltr"] .hero-copy { justify-self: start; }
  /* B: the AI-extended frame fills the hero, anchored right; the text sits on the sky behind a scrim */
  .hero--B .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero--B .hero-frame--sq, .hero--B .hero-frame--wide { display: block; position: absolute; inset-block: 0; right: 0; left: auto; width: auto; height: 100%; aspect-ratio: 2229 / 1254; }
  .hero--B .hero-frame--sq > .hero-sky, .hero--B .hero-frame--sq::after, .hero--B .hero-frame--sq::before { display: none; }
  .hero--B .hero-in::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16, 28, 48, .82) 0, rgba(16, 28, 48, .6) 38%, rgba(16, 28, 48, 0) 60%); pointer-events: none; }
  .hero--B .hero-copy { position: relative; z-index: 2; justify-self: start; align-self: start; margin-block-start: 150px; margin-inline: 80px 0; max-width: 480px; }
  .hero--B .hero-note { display: block; position: absolute; z-index: 2; left: 80px; bottom: 20px; margin: 0; font-size: var(--fs-small); color: var(--c-ivory); opacity: .9; }
}

/* ---------- home rhythm: light sections alternate by visible order ---------- */
.sec.tone-ivory, .sec.tone-sand { padding-block: var(--sec-y); }
.sec.tone-ivory { background: var(--c-ivory); }
.sec.tone-sand { background: var(--c-sand); }
.sec--about .h-sec { text-align: center; max-width: none; }
.sec--about .prose { margin-inline: auto; }
.sec--teaser { text-align: start; }
.bk-grid--one { grid-template-columns: minmax(0, 1fr); }
.bk--wide { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; gap: 0; }
.bk--wide .bk-body { padding: 24px 20px 28px; }
/* the feather frame shown whole (contain) on its own paper tone; it is art, never a cover (CD 6) */
.bk-art--world { background: #E9DCC4; padding: 0; border: 0; min-height: 0; aspect-ratio: 6 / 5; place-items: center; overflow: hidden; }
.bk-world { width: 100%; height: 100%; object-fit: contain; }
.bk-series { font-size: var(--fs-small); font-weight: var(--w-ui); color: var(--c-muted); margin: 0 0 4px; }
.bk-title { font-size: var(--fs-section); }
.bk-link::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 900px) { .bk--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } .bk-art--world { aspect-ratio: 6 / 5; height: auto; } .bk--wide .bk-body { padding: 40px 48px; } }
@media (hover: hover) and (pointer: fine) { .bk--wide:hover { box-shadow: var(--shadow-hover); } .bk--wide:hover .btn--primary { background: var(--c-hover); } }

/* «كلمة من الحكاية» (CD 7): one full card, everything centred on one axis: picture ≥ 160 px, word, meaning, then its listen
   button and its one way in, both inside the card */
.word-card { display: grid; justify-items: center; text-align: center; gap: 8px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 28px 20px 28px; max-width: 560px; margin-inline: auto; }
.word-card p { text-align: center; }
.sec--teaser .h-sec { text-align: center; }
.word-pic { width: clamp(176px, 46vw, 220px); aspect-ratio: 1; display: grid; place-items: center; margin-block-end: 8px; border-radius: var(--radius-img); overflow: hidden; }
.word-pic img { width: 100%; height: 100%; object-fit: contain; }
.word-pic--motif .feather { width: 96px; height: 96px; }
.word-big { font-size: var(--fs-hero); font-weight: var(--w-head); color: var(--c-navy); line-height: var(--lh-hero); margin: 0; }
.word-def { font-size: var(--fs-kid); margin: 0 0 12px; }
.word-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
/* round 11 fix (CD 1): the quiet link to «اكتشف والعب» under the word card; its 18 px chevron lives here, where home loads it */
.word-more { margin: 16px 0 0; text-align: center; }
.word-more a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--c-navy); font-weight: 600; }
.word-more svg { width: 18px; height: 18px; flex: none; }
.nw-grid--one { grid-template-columns: minmax(0, 760px); }
.nw-grid--one .nw { display: grid; }
@media (min-width: 900px) { .nw-grid--one { grid-template-columns: minmax(0, 960px); } .nw-grid--one .nw { grid-template-columns: 280px 1fr; } .nw-grid--one .nw-art { aspect-ratio: 3 / 4; } }
.nw-art { background: var(--c-night); position: relative; min-height: 0; overflow: hidden; }
.nw-art img, .al-art img { position: absolute; inset: 0; }
.al-art { position: relative; min-height: 0; overflow: hidden; background: var(--c-night); }
.pick-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-end: 24px; }
@media (min-width: 900px) { .pick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pick { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--c-night); border-radius: var(--radius-img); overflow: hidden; }
.pick-img { width: 100%; height: 100%; object-fit: contain; }
.ticks { display: grid; gap: 12px; max-width: var(--measure); margin-block-end: 24px; }
.ticks li { position: relative; padding-inline-start: 24px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 8px; height: 8px; border-radius: 2px; background: var(--c-gold); rotate: 45deg; }
.foot-copy { margin: 0; font-size: var(--fs-small); color: var(--c-silver); grid-column: 1 / -1; }
.foot-mail { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- book page: a journey of stations ---------- */
.book { --st-dur: 450ms; }
/* «خط الرحلة» (CD 4): a real track, ≥ 56 px tall: the current station's name at the inline-start (16/600), then the stops on a
   gold thread; the current stop is a compass: a navy disc with a 16 px gold needle. Stops are 12 px on 44 px-tall targets. */
.bp-track { position: sticky; top: var(--top-h); z-index: 15; background: var(--c-ivory); border-block-end: 1px solid var(--c-line); }
.bp-track-in { display: flex; align-items: center; gap: 12px; min-height: var(--track-h); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.bp-track-name { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--fs-small); font-weight: var(--w-ui); color: var(--c-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-track ol { position: relative; list-style: none; display: flex; flex: none; margin: 0; padding: 0; }
.bp-track ol::before { content: ""; position: absolute; inset-inline: 16px; top: 50%; height: 2px; translate: 0 -50%; background: var(--c-gold); opacity: .55; }
.bp-track a { position: relative; display: grid; place-items: center; width: 32px; height: 44px; text-decoration: none; }
.bp-track .dot { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c-navy); background: var(--c-ivory); transition: transform var(--st-dur) var(--ease-out); }
.bp-track [aria-current="step"] .dot { width: 22px; height: 22px; background: var(--c-navy); border-color: var(--c-navy); }
/* the gold compass needle on the current stop: a 16 px diamond, points up the journey */
.bp-track .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 16px; translate: -50% -50%; background: var(--c-gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: 0; transition: opacity var(--st-dur) var(--ease-out); }
.bp-track [aria-current="step"] .dot::after { opacity: 1; }
@media (min-width: 640px) { .bp-track a { width: 44px; } .bp-track-name { font-size: var(--fs-ui); } }
.st { padding-block: var(--sec-y); scroll-margin-top: calc(var(--top-h) + var(--track-h) + var(--gap-top)); }
.book > .st:nth-child(odd) { background: var(--c-ivory); }
.book > .st:nth-child(even) { background: var(--book-tint); }
.st--start { padding-block-start: clamp(28px, 5vw, 64px); }
.bp-head-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .bp-head-in { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 64px; } }
/* the ONE door of the site: an arch around the book's picture (the entrance to its world); gold as a hairline only */
.bp-door { width: min(300px, 72vw); margin-inline: auto; }
.bp-door--arch { padding: 10px; border: 1px solid var(--c-gold); border-radius: 50% 50% 14px 14px / 37.5% 37.5% 14px 14px; background: var(--c-card); }
.bp-door .bp-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 42%; background: var(--c-night); background-size: cover; }
.bp-door--arch .bp-img { border-radius: 50% 50% 8px 8px / 37.5% 37.5% 8px 8px; }
.bp-line { color: var(--c-body); }
.syn { max-width: var(--measure); }
.syn-text { font-size: var(--fs-lead); }
.syn.is-step .syn-text { font-size: var(--fs-kid); min-height: 3.6em; }
.syn-line.is-new { animation: line-in var(--st-dur) var(--ease-out); }
@keyframes line-in { from { opacity: .2; } }
.syn-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.syn-ctl[hidden] { display: none; }
.syn-dots { display: inline-flex; gap: 6px; margin-inline-end: 4px; }
.syn-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--c-navy); }
.syn-dots i.on { background: var(--c-navy); }
/* a text-styled button: «النص كاملًا», «غيّر الطريق» (one navy primary per view, CD 3) */
.link-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--c-navy); font: inherit; font-size: var(--fs-small); font-weight: var(--w-ui); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; cursor: pointer; }
.link-btn[aria-pressed="true"] { text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .link-btn:hover { color: var(--c-hover); text-decoration-thickness: 2px; } }
/* the station «التالي» sits apart from the teaser controls: ≥ 32 px below them, after a hairline (CD 3) */
.st-next { margin: 32px 0 0; padding-block-start: 32px; border-block-start: 1px solid var(--c-line); max-width: var(--measure); }
.st--night .st-next { border-block-start-color: rgba(198, 204, 212, .25); }
.st-go { gap: 10px; }
.st-motif { display: block; margin-block-end: 8px; }
.st-motif .feather { width: 40px; height: 40px; }
/* «قيم الحكاية»: one ruled list, a silver feather-line marker per value (CD should-fix), not three equal cards */
.values { display: grid; max-width: var(--measure); }
.value { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 20px; border-block-end: 1px solid var(--c-line); }
.value:first-child { border-block-start: 1px solid var(--c-line); }
.value-mark .feather { width: 40px; height: 40px; }
.value .h-card { margin-block-end: 2px; }
.friend, .act-entry { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-card); padding: 20px 22px; }
.value p, .friend p { margin: 0; }
.friends { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.friend { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.friend:has(.friend-pic) { grid-template-columns: auto 1fr; }
.friend-pic { width: 72px; aspect-ratio: 1; } .friend-pic img { width: 100%; height: 100%; object-fit: contain; }
.wd-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-block-end: 8px; }
.wd { display: grid; align-content: start; justify-items: start; gap: 4px; min-width: 0; padding: 16px 18px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-card); }
.wd-pic { width: 96px; aspect-ratio: 1; } .wd-pic img { width: 100%; height: 100%; object-fit: contain; }
.wd-word { font-size: var(--fs-card); font-weight: var(--w-head); color: var(--c-navy); margin: 0; }
.wd-def { font-size: var(--fs-small); color: var(--c-body); margin: 0 0 8px; }
.act-entry { max-width: 760px; }
.act-entry .row { margin-block-start: 8px; }
.dedication { margin: 0; max-width: var(--measure); padding-inline-start: 20px; border-inline-start: 2px solid var(--book-accent-2, var(--c-gold)); font-size: var(--fs-lead); color: var(--c-navy); }
.facts { display: grid; gap: 0; max-width: var(--measure); margin: 0; }
.facts > div { display: grid; gap: 2px 16px; padding-block: 10px; border-block-end: 1px solid var(--c-line); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 220px 1fr; } }
.facts dt { font-weight: var(--w-ui); color: var(--c-navy); }
.facts dd { margin: 0; }
.st-sub { margin-block-start: 36px; max-width: var(--measure); scroll-margin-top: calc(var(--top-h) + var(--track-h) + var(--gap-top)); }
.book > .st.st--night { background: var(--c-night); color: var(--c-ivory); }
.st--night .h-sec, .st--night .h-card, .st--night dt, .st--night dd, .st--night p { color: var(--c-ivory); }
.st--night .facts > div { border-color: rgba(198, 204, 212, .25); }
.st--night :focus-visible { outline-color: var(--c-ivory); }

/* ---------- the activity ---------- */
.act { background: var(--c-ivory); min-height: 70svh; }
.act-in { max-width: 960px; margin-inline: auto; padding: 16px var(--gutter) 64px; }
.act-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 56px; margin-block-end: 8px; }
.act-exit { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; font-weight: var(--w-ui); }
.act-exit svg { width: 20px; height: 20px; }
.act-progress { margin: 0; margin-inline-start: auto; font-weight: var(--w-ui); color: var(--c-navy); font-size: var(--fs-small); }
.act-mute { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding-inline: 12px; border-radius: var(--radius-btn); border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-navy); font: inherit; font-weight: var(--w-ui); font-size: var(--fs-small); cursor: pointer; }
.act-mute[hidden] { display: none; }
.act-mute[aria-pressed="true"] { background: var(--c-sand); }
.act.is-muted .scr .listen-btn { display: none; }
.act-title { margin-block-end: 16px; }
/* a step change lands the task with a ≥ 24 px ivory gap under the night header (CD 1) */
.act-stage, .act-title, .scr-h { scroll-margin-top: calc(var(--top-h) + var(--gap-top)); }
.act-stage:focus { outline: none; }
.act.is-live .act-nojs { display: none; }
.scr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; min-width: 0; animation: scr-in 220ms var(--ease-ui); }
.scr > .choices, .scr > .fb, .scr > .m-grid, .scr > .path-cards, .scr > .scr-bar, .scr > .met { justify-self: stretch; }
@keyframes scr-in { from { opacity: 0; transform: translateY(12px); } }
.scr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.scr-path { margin: 0; font-weight: var(--w-ui); color: var(--c-muted); font-size: var(--fs-small); }
.scr-dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 1; }
.scr-dots li { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c-navy); }
.scr-dots li.is-done { background: var(--c-navy); }
.scr-dots li.is-now { box-shadow: 0 0 0 3px var(--c-sand), 0 0 0 4px var(--c-gold); }
.scr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.scr-h { font-size: var(--fs-kid); font-weight: var(--w-ui); margin: 0; line-height: var(--lh-card); }
.scr--instant { animation: none; }
.scr-switch { margin: 0; }
.scr-h:focus { outline: none; }
.scr-h:focus-visible { outline: var(--focus); }
.say-word { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.say-word .word-big { margin: 0; }
.path-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
/* path cards carry a picture (CD 2): 120 px beside the name */
.path-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; min-height: 112px; padding: 14px 18px 14px 14px; text-align: start; border-radius: var(--radius-card); border: 2px solid var(--c-navy); background: var(--c-card); color: var(--c-navy); font: inherit; cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease-ui); }
.path-card:active { transform: scale(.98); }
[dir="rtl"] .path-card { padding: 14px 14px 14px 18px; }
.path-pic { position: relative; width: 120px; aspect-ratio: 1; border-radius: var(--radius-img); overflow: hidden; background: var(--c-sand); }
.path-img { width: 100%; height: 100%; object-fit: cover; }
.path-sound { position: absolute; inset-block-end: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-navy); color: #fff; }
.path-sound svg { width: 22px; height: 22px; }
.path-text { display: grid; gap: 4px; }
.path-name { font-size: var(--fs-card); font-weight: var(--w-head); }
.path-hint { font-size: var(--fs-small); color: var(--c-body); }
.choices { display: grid; gap: 14px; }
/* pictures as one row of three at every width, so the task, the tap and its answer fit one phone screen (CD 2, reviewer C5) */
.choices--pics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 540px; }
.choices--words { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }   /* 2 × 2 on a phone: the answer stays in view */
@media (min-width: 760px) { .choices--words { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { position: relative; display: grid; place-items: center; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-card); border: 2px solid var(--c-line); background: var(--c-card); color: var(--c-navy); font: inherit; font-size: var(--fs-kid); font-weight: var(--w-ui); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, transform 120ms var(--ease-ui); }
.choice--pic { aspect-ratio: 1; padding: 10px; }
.choice-img { width: 100%; height: 100%; object-fit: contain; }
.choice:active { transform: scale(.97); }
.choice[aria-pressed="true"] { border-color: var(--c-navy); background: var(--c-sand); box-shadow: inset 0 0 0 2px var(--c-navy); }
.choice[data-state="right"] { border-color: var(--c-navy); border-width: 3px; background: var(--c-ivory); }
.choice[data-state="tried"] { border-style: dashed; border-color: var(--c-muted); }
.choice[aria-disabled="true"]:not([data-state="right"]) { opacity: .55; }
.choice-mark { position: absolute; top: -10px; inset-inline-end: -10px; display: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-navy); color: #fff; place-items: center; }
.choice[data-state="right"] .choice-mark { display: grid; animation: mark-in 180ms var(--ease-ui); }
@keyframes mark-in { from { opacity: 0; transform: scale(.9); } }
.choice-mark .ico svg { width: 20px; height: 20px; }
/* r19 (Omar): each choice's own speaker, a sibling of the choice (never nested in it): 44 px, inside the card's inline-start edge */
.choice-wrap { position: relative; }
.choice-wrap .choice--word { padding-inline-start: 58px; }
.choice-say.listen-btn { position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%); justify-content: center; width: 44px; min-height: 44px; height: 44px; padding: 0; border-width: 1px; border-radius: 50%; }
.choice-wrap .choice--pic ~ .choice-say.listen-btn { top: 8px; transform: none; }
.choice-say.listen-btn:active { transform: translateY(-50%) scale(.94); }
.choice-wrap .choice--pic ~ .choice-say.listen-btn:active { transform: scale(.94); }
.choice-say .ico svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .choice-say.listen-btn:active { transform: translateY(-50%); } .choice-wrap .choice--pic ~ .choice-say.listen-btn:active { transform: none; } }
.sent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-self: stretch; }
.sentence { flex: 1 1 260px; max-width: var(--measure); overflow-wrap: anywhere; font-size: var(--fs-card); font-weight: var(--w-ui); color: var(--c-navy); margin: 0; line-height: var(--lh-ar); }
html[lang="en"] .sentence { line-height: var(--lh-en); }
/* the blank is a real slot (CD 2): 56 px, ivory, 2 px dashed gold, no dots; the chosen word drops into it */
.blank { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; min-width: 4.5em; min-height: 56px; margin-inline: 6px; padding-inline: 12px; border: 2px dashed var(--c-gold); border-radius: 10px; background: var(--c-ivory); color: var(--c-navy); line-height: 1.3; }
.blank.is-filled { border-style: solid; border-color: var(--c-navy); background: var(--c-card); }
.fb:empty { display: none; }
.fb { scroll-margin-block: calc(var(--top-h) + var(--gap-top)) 16px; }   /* brought into view after a tap with air below it */
.fb--right, .fb--again { animation: fb-in 200ms var(--ease-ui); }
@keyframes fb-in { from { opacity: 0; transform: translateY(8px); } }
.fb--right, .fb--again { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; padding: 18px 20px; border-radius: var(--radius-card); background: var(--c-card); border: 1px solid var(--c-line); border-inline-start: 4px solid var(--c-navy); }
.fb--again { border-inline-start-color: var(--c-muted); border-inline-start-style: dashed; }
.fb-text { margin: 0; font-size: var(--fs-kid); color: var(--c-navy); font-weight: var(--w-ui); }
.fb .other { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.other-word { font-size: var(--fs-card); font-weight: var(--w-head); color: var(--c-navy); }
.act-next { gap: 10px; }
/* match (CD 2): the words as one row of 64 px chips, the pictures as one row of three (≈ 110 px at 390); the set fits 390×844 */
.m-grid { display: grid; gap: 16px; }
.m-words { display: flex; flex-wrap: wrap; gap: 10px; }
.m-words .choice { width: auto; min-width: 96px; min-height: 64px; padding-inline: 18px; }
.m-pics { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 540px; }
.m-pic { padding: 8px; overflow: hidden; }
.m-label { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 2px 4px; background: rgba(255, 255, 255, .94); font-size: var(--fs-small); line-height: 1.4; border-radius: 0 0 12px 12px; }
.m-label[hidden] { display: none; }
.met-list { display: flex; flex-wrap: wrap; gap: 10px; }
.met-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; min-height: 48px; border-radius: var(--radius-btn); background: var(--c-card); border: 1px solid var(--c-line); font-weight: var(--w-ui); color: var(--c-navy); }
.met-img { width: 36px; height: 36px; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  .choice:not([aria-disabled="true"]):hover, .path-card:hover { border-color: var(--c-hover); background: var(--c-sand); }
}

/* ---------- news + gallery ---------- */
.ev { margin: 0 0 24px; padding: 18px 20px; background: var(--c-sand); border-radius: var(--radius-card); max-width: var(--measure); }
.ev .h-card { margin-block-end: 6px; }
.ev p { margin: 0 0 4px; }
.ev-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* the news poster sits on solid night, whole, with nothing repeated or blurred behind it (CD 5) */
.fig img { max-height: 80svh; width: auto; margin-inline: auto; }
.news-body .fig { background: var(--c-night); border-radius: var(--radius-card); padding: clamp(12px, 3vw, 28px); max-width: 560px; }
.news-body .fig img { background: var(--c-night); border-radius: 6px; max-height: 70svh; }
.news-body .fig figcaption { color: var(--c-silver); text-align: center; }
.th-fig { margin: 0; }
/* a flat neutral tile with the frame whole inside it (contain): the img is pinned to the tile, so the grid row can never size it
   to its intrinsic height and let overflow:hidden crop it square (reviewer C9) */
.th, .pick { position: relative; }
.th-img, .pick-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.th { background: var(--c-sand); padding: 0; transition: transform 120ms var(--ease-ui); }
.th:active { transform: scale(.98); }
.th-cap { display: grid; }
.th-rights { font-size: var(--fs-small); color: var(--c-muted); white-space: nowrap; }   /* «© عالم حامد» on one line, 16 px (CD 8) */
/* lightbox: opens on a soft spring (motion skill: CSS keyframes + a sampled linear() spring; a dialog open is never interrupted);
   closes faster and subtler (160 ms); Esc and reduced motion close at once (site.js) */
.lb[open] { animation: lb-fade 200ms var(--ease-ui); }
.lb[open] .lb-fig { animation: lb-in 500ms var(--spring-soft); }
.lb[open]::backdrop { animation: lb-fade 200ms ease-out; }
.lb.is-closing { animation: lb-out 160ms cubic-bezier(.4, 0, 1, 1) forwards; }
.lb.is-closing .lb-fig { animation: lb-shrink 160ms cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes lb-in { from { transform: scale(.94); } }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
@keyframes lb-shrink { to { transform: scale(.98); } }
.lb-cap { display: grid; gap: 2px; }
.lb-r { font-size: var(--fs-small); opacity: .85; }

/* ---------- install chip (quiet, dismissible) ---------- */
.inst { position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 440px; margin-inline: auto; padding: 14px 16px; border-radius: var(--radius-card); background: var(--c-night); color: var(--c-ivory); box-shadow: 0 12px 32px -12px rgba(16, 28, 48, .5); }
.inst p { margin: 0 0 10px; } .inst .row { margin: 0; }
.inst[hidden] { display: none; }

/* ---------- reduced motion: loops, transitions and entrances off; everything visible; jumps instant ---------- */
@media (prefers-reduced-motion: reduce) {
  .star, .hero-curtain { animation: none !important; }
  .scr, .lb[open], .lb[open] .lb-fig, .lb[open]::backdrop, .lb.is-closing, .lb.is-closing .lb-fig, .syn-line.is-new, .choice-mark, .fb--right, .fb--again { animation: none !important; }
  .choice, .path-card, .listen-btn, .th, .bp-track .dot, .bp-track .dot::after { transition: none !important; }
  .choice:active, .listen-btn:active, .path-card:active, .th:active { transform: none; }
}
@media print { .bp-track, .act-bar, .inst { display: none !important; } }

/* ---------- final pass (order 20261031-hamed-support-1-r2, CD re-sign fixes 1–5) ---------- */
/* fix 1: the library art is never shown above 1.2× its 360 px source; a smaller picture on its paper mat rather than a soft one */
.bk-art--world .bk-world { width: auto; height: auto; max-width: min(100%, 432px); max-height: 100%; }
/* fix 3: gallery tiles = one equal mat around the whole picture (her §16: never cropped); no navy letterbox bars */
.pick-grid, .th-grid { align-items: start; }
.pick, .th { display: block; aspect-ratio: auto; padding: 10px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-img); }
.pick-img, .th-img { position: static; display: block; width: 100%; height: auto; object-fit: contain; border-radius: 4px; }
.pick-grid[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .pick-grid[data-n="3"] { gap: 20px; max-width: 900px; } }
/* fix 2: a picture that stands for a sound carries a speaker badge at its foot */
.wd-pic { position: relative; }
.pic-sound { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-navy); color: #fff; pointer-events: none; }
.pic-sound svg { width: 18px; height: 18px; }
.m-instr { display: flex; align-items: center; gap: 12px; margin: 0; }
.m-cue { flex: none; color: var(--c-navy); }
.m-cue svg { width: 56px; height: 24px; }
/* fix 4: after the path choice the two-line title is hidden from view (kept as the page's h1 for screen readers), so the task
   sits high; the bar (exit, progress, mute) and the path line already say where the child is. A step change lands the bar 24 px
   under the night header. */
.act.is-compact .act-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.act.is-compact .act-bar { margin-block-end: 0; row-gap: 2px; }
.act-in { scroll-margin-top: calc(var(--top-h) + 8px); }
/* on a phone the bar is two short lines: exit and mute first, then the explored counter as one plain text line (not a 48 px row) */
@media (max-width: 640px) {
  .act-mute { order: 1; margin-inline-start: auto; }
  .act-progress { order: 2; flex-basis: 100%; margin-inline-start: 0; line-height: 1.6; }
}
/* fix 5: progress */
.act-progress[hidden] { display: none; }
.act-progress[hidden] + .act-mute { margin-inline-start: auto; }
.scr-step { margin: 0; font-size: var(--fs-small); font-weight: var(--w-ui); color: var(--c-navy); }
/* fix 5: one rule only before the station «التالي» when the station already ends on a rule (the values list) */
.values + .st-next { border-block-start: 0; padding-block-start: 0; }

/* ---------- changed approach (order 20261031-hamed-support-1-r2, CD round 8 + chief): feather-and-compass, «نافذة حامد» ---------- */
.act { overflow-x: clip; }
.scr { position: relative; }
/* the right answer leads with the book's compass: white face, gold #B48A43 ring and ticks, navy-and-gold needle (direction.md) */
.fb-lead { display: flex; align-items: center; gap: 14px; }
.fb-compass { position: relative; flex: none; width: 48px; height: 48px; }
.fb-compass svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-face { fill: var(--c-card); stroke: var(--c-gold); stroke-width: 2.5; }
.cp-ring { fill: none; stroke: var(--c-gold); stroke-opacity: .4; stroke-width: 1; }
.cp-tick { stroke: var(--c-gold); stroke-width: 2; stroke-linecap: round; }
.cp-needle { position: absolute; inset: 0; }
.cp-n { fill: var(--c-gold); } .cp-s { fill: var(--c-navy); } .cp-pin { fill: var(--c-navy); }
/* the silver feather (family frame v3-02, keyed): an overlay that never takes space and never takes a tap */
.fx-feather { position: absolute; z-index: 3; width: 72px; height: 50px; margin: -25px 0 0 -36px; pointer-events: none; will-change: transform; }
.fx-feather-y { display: block; width: 100%; height: 100%; will-change: transform, opacity; }
.fx-feather-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(16, 28, 48, .35)); }

/* «نافذة حامد»: night stage, her photo whole (never cropped, never mirrored), word stars in the sky only */
.scr--done { gap: 24px; }
.win { position: relative; justify-self: stretch; background: var(--c-night); overflow: hidden; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 390 / 500; }
.win-photo { position: absolute; inset: auto 0 0 0; aspect-ratio: 1; }
.win-photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 40px; z-index: 1; background: linear-gradient(to bottom, var(--c-night), rgba(16, 28, 48, 0)); pointer-events: none; }
.win-img { display: block; width: 100%; height: 100%; }
.win-stars { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; }
.win-stars li { position: absolute; transform: translateY(-50%); }
.win-star { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 12px 2px 8px; border: 0; border-radius: 999px; background: rgba(16, 28, 48, .8); color: var(--c-ivory); font: inherit; font-size: var(--fs-small); font-weight: var(--w-ui); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[dir="rtl"] .win-star { padding: 2px 8px 2px 12px; }
.win-star .ico { display: grid; place-items: center; width: 20px; height: 20px; color: #F3E3BC; }
.win-star .ico svg { width: 20px; height: 20px; fill: currentColor; filter: drop-shadow(0 0 3px rgba(180, 138, 67, .9)); }
.win-star:focus-visible { outline: 2px solid var(--c-ivory); outline-offset: 2px; }
.win-star.playing { background: rgba(16, 28, 48, .95); box-shadow: inset 0 0 0 1px var(--c-gold); }
.win-after { display: grid; gap: 0; justify-items: start; }
.win-count { margin: 0 0 24px; font-weight: var(--w-ui); color: var(--c-navy); }
.win-after .scr-head { margin-block-end: 8px; }
.win-after .lead { margin: 0 0 20px; }
.win-after .row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.win-after .meta { margin: 0; }
@media (min-width: 760px) {
  .win { margin-inline: 0; aspect-ratio: 100 / 62; border-radius: var(--radius-card); }
  .win-photo { inset: 0 0 0 auto; height: 100%; }
  .win-photo::before { inset: 0 auto 0 0; width: 120px; height: auto; background: linear-gradient(to right, var(--c-night), rgba(16, 28, 48, 0)); }
}
@media (prefers-reduced-motion: reduce) { .fx-feather { display: none; } }

/* ---------- last fixes (order 20261031-hamed-support-1-r2: CD round-8 fixes 1–4 + reviewer D1) ---------- */
/* fix 3: «السؤال n من N» always on its own line under the path label and the dots, on every path */
.scr-bar { row-gap: 4px; }
.scr-step { flex-basis: 100%; line-height: 1.6; }
/* fix 2: the reply card matches the other cards (1 px line, radius 16, no side stripe); one outline «استمع» with the language
   text link beside it, then one navy «التالي» */
.fb--right, .fb--again { border: 1px solid var(--c-line); border-radius: 16px; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
.fb > .fb-lead, .fb > .fb-text, .fb > .act-next { grid-column: 1 / -1; }
.fb .other { justify-self: start; }
.other-link { font-size: 16px; padding-inline: 4px; }
/* fix 4 / D1: stars over the night need no dark backing; the whole capsule is what appears (never an empty one) */
.win-stars li.is-night .win-star { background: none; }
.win-stars li.is-night .win-star.playing { background: rgba(250, 247, 240, .08); }
/* fix 1 on a phone: a slightly tighter task and reply card, so the bar (24 px under the header), the reply and «التالي» fit together */
@media (max-width: 640px) {
  .scr { gap: 14px; }
  .fb--right, .fb--again { padding: 14px 16px; row-gap: 8px; }
}

/* ---------- round 9 · S1 (her guide p06 library, p07 book page, header Instagram, footer «من سيداف») ---------- */
.top-ig { color: var(--c-ivory); width: 44px; height: 44px; }
.top-ig svg { width: 22px; height: 22px; }
@media (max-width: 419px) { .top-ig { display: none; } }   /* phones: the bar keeps brand · language · menu; Instagram sits in the menu sheet's footer link and the footer */
@media (hover: hover) and (pointer: fine) { .top-ig:hover { background: rgba(250, 247, 240, .1); } }
.foot-copy a { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }   /* r11 B2: «سيداف» was 48 × 30 */

/* p06: two white cards, cover centred, title, one line, navy button / ivory pill */
.sh-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; } }
.sh { position: relative; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; text-align: center;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px) clamp(28px, 5vw, 44px); box-shadow: var(--shadow); }
.sh-art { width: min(100%, 320px); margin-block-end: clamp(24px, 4vw, 40px); }
.sh-cover { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 4px; box-shadow: 0 1px 2px rgba(16, 28, 48, .10), 0 16px 30px -18px rgba(16, 28, 48, .45); }
.sh-title { margin: 0; color: var(--c-navy); font-size: var(--fs-section); font-weight: var(--w-head); line-height: var(--lh-head); }
.sh-line { margin: 12px 0 0; color: var(--c-muted); font-size: var(--fs-lead); }
.sh-act { margin: clamp(20px, 4vw, 32px) 0 0; align-self: end; }
.sh-go { min-width: min(100%, 300px); min-height: 56px; text-decoration: none; }
.sh-go::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.pill-soon { display: inline-flex; align-items: center; justify-content: center; min-width: 196px; min-height: 48px; padding: 4px 24px; border-radius: 999px; background: var(--c-sand); color: var(--c-navy); font-weight: var(--w-ui); font-size: var(--fs-ui); }
@media (hover: hover) and (pointer: fine) { .sh:not(.sh--soon):hover { box-shadow: var(--shadow-hover); } .sh:not(.sh--soon):hover .sh-go { background: var(--c-hover); } }

/* p07: one card — copy + cover side by side, chips, three cards */
.st--guide > .sec-in { display: grid; gap: 0; }
.b6 { display: grid; gap: 24px; align-items: center; background: var(--c-card); border: 1px solid var(--c-line); border-block-end: 0; border-radius: 20px 20px 0 0; padding: 24px 20px 8px; }
.b6-cover { order: -1; justify-self: center; width: min(78%, 300px); }
.b6-img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 4px; box-shadow: 0 1px 2px rgba(16, 28, 48, .10), 0 16px 30px -18px rgba(16, 28, 48, .45); }
.b6-title { margin: 0; }
.b6-other { margin: 6px 0 0; color: var(--c-muted); font-size: var(--fs-lead); }
.b6-blurb { margin: 16px 0 0; color: var(--c-body); font-size: var(--fs-lead); max-width: 52ch; }
@media (max-width: 639px) { .b6-start { flex: 1 1 100%; } .b6-card { padding: 18px 20px 20px; } .b6-card-line { margin-block-start: 8px; } }
.b6-acts { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 24px 0 0; }
.b6-start { text-decoration: none; min-width: min(100%, 260px); }
.b6-listen { min-height: 64px; min-width: min(100%, 260px); border: 1.5px solid var(--c-gold); background: #FFFDF8; color: var(--c-navy); border-radius: var(--radius-btn); justify-content: center; }
.b6-chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 22px; border-radius: 999px; background: var(--c-sand); color: var(--c-navy); font-weight: var(--w-ui); text-decoration: none; }
.chip:focus-visible { outline: var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: #E9DFCC; } .b6-card--link:hover { box-shadow: var(--shadow-hover); } }
.b6-cards { list-style: none; margin: 0; padding: 16px 20px 24px; display: grid; gap: 14px; background: var(--c-card); border: 1px solid var(--c-line); border-block-start: 0; border-radius: 0 0 20px 20px; }
.b6-card { position: relative; background: var(--c-ivory); border-radius: 16px; padding: 22px 22px 24px; }
.b6-card-h { margin: 0; font-size: var(--fs-card); line-height: var(--lh-card); color: var(--c-navy); }
.b6-card-h a { color: inherit; text-decoration: none; }
.b6-card-h a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.b6-card-h a:focus-visible { outline: none; }
.b6-card:focus-within { outline: var(--focus); outline-offset: 3px; }
.b6-sub { margin: 6px 0 0; color: #7D5F27; font-size: var(--fs-small); }   /* her gold sublabel, darkened to pass AA on ivory */
.b6-card-line { margin: 14px 0 0; color: var(--c-body); }
.st--guide .st-next { margin-block-start: 28px; }
@media (min-width: 900px) {
  .b6 { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 48px; padding: 44px 48px 12px; align-items: start; }
  .b6-cover { order: 0; width: 100%; }
  .b6-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 28px 48px 44px; }
  .b6-card { padding: 28px 32px 32px; min-height: 200px; }
}

/* ---------- round 9 · S3 (builder A): her guide p04/p05 header + home, press card, pilot fixes ---------- */
/* header: her light bar — logo · three items · Instagram · language */
.top--guide { background: var(--c-ivory); border-block-end: 1px solid var(--c-line); }
.top--guide .top-ig { color: var(--c-navy); }
@media (hover: hover) and (pointer: fine) { .top--guide .top-ig:hover { background: var(--c-sand); } }
@media (min-width: 900px) {
  .top--guide .nav-wide { display: block; }
  .top--guide .nav-wide ul { gap: 4px 8px; }
  .top--guide .menu-btn { display: none; }
}
/* hero (p04/p05): ivory ground, the night photo whole on the LEFT in both languages, text beside it; phone = picture → title → line → button */
.hero { background: var(--c-ivory); color: var(--c-navy); }
.hero .h-hero, .hero p, .hero p.hero-line2 { color: var(--c-navy); }
.hero p.hero-line2 { color: var(--c-body); }
.hero :focus-visible { outline-color: var(--c-navy); }
.hero-frame--sq::after, .hero-frame--sq::before { display: none !important; }
.hero-rule { display: none; }
.hero-copy { padding: 24px var(--gutter) 40px; }
.hero-line1 { margin-block-end: .6em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-block-start: 28px; }
.hero-cta .btn--primary { min-width: min(100%, 260px); }
.hero-more { display: inline-flex; align-items: center; min-height: 48px; color: var(--c-navy); font-weight: var(--w-ui); text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 1px; text-underline-offset: .4em; }
@media (max-width: 639px) { .hero-cta .btn--primary { flex: 1 1 100%; } }
@media (min-width: 1100px) {
  .hero-in { direction: ltr; grid-template-columns: min(var(--ph), 52vw) minmax(0, 1fr); min-height: 0; max-width: 1440px; }
  .hero-frame--sq { grid-column: 1; width: 100%; aspect-ratio: 1; height: auto; }
  .hero-copy { grid-column: 2; margin-inline: 72px 80px; max-width: 520px; justify-self: start; }
  [dir="rtl"] .hero-copy { justify-self: end; margin-inline: 80px 72px; }
}
@media (min-width: 640px) and (max-width: 1099px) { .hero-frame--sq { max-width: 560px; margin-block-start: 24px; } }
/* the white band under the hero (p04) */
.sec.sec--band { background: #fff; padding-block: clamp(32px, 5vw, 56px); border-block-end: 1px solid var(--c-line); }
.band-h { margin: 0; text-wrap: balance; }
.band-line { margin: 14px 0 0; font-size: var(--fs-lead); color: var(--c-body); max-width: 60ch; }
/* library: her heading on the page ground, no tinted band (CD fault 5) */
.sec--library, .sec.tone-sand.sec--library, .sec.tone-ivory.sec--library { background: var(--c-ivory); }
.sec--library .sh { box-shadow: none; }
/* covers flat, no drop shadow (CD fault 3, pattern 3) */
.sh-cover, .b6-img { box-shadow: 0 0 0 1px rgba(16, 28, 48, .08); }
/* book page with her p07 head: no round-8 chrome under the card (CD fault 2) */
.book--guide .st-next, .book--guide .bp-track { display: none; }
/* chips: three equal pills (CD fault 4) */
@media (min-width: 600px) { .b6-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .chip { width: 100%; } }
@media (max-width: 599px) { .b6-chips { display: grid; grid-template-columns: 1fr 1fr; } .b6-chips li:first-child { grid-column: 1 / -1; } .chip { width: 100%; } }
/* a card with no target is plainly not a button */
.b6-card--still { background: transparent; border: 1px dashed var(--c-line); }
.b6-soon { margin: 14px 0 0; }
.b6-soon .pill-soon { min-width: 0; min-height: 32px; padding: 2px 14px; font-size: var(--fs-small); }
/* press card (p06 card grammar) */
.pr { display: grid; gap: 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden; }
.pr-art { padding: clamp(20px, 4vw, 32px) clamp(20px, 4vw, 32px) 0; display: grid; justify-items: center; }
.pr-img { display: block; width: min(100%, 360px); height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(16, 28, 48, .08); }
.pr-body { padding: 24px clamp(20px, 4vw, 40px) clamp(24px, 4vw, 36px); }
.pr-eyebrow { margin: 0; color: #7D5F27; font-size: var(--fs-small); font-weight: var(--w-ui); }
.pr-title { margin: 8px 0 0; font-size: var(--fs-section); font-weight: var(--w-head); line-height: var(--lh-head); color: var(--c-navy); }
.pr-title a { color: inherit; text-decoration: none; }
.pr-title a:hover { text-decoration: underline; text-decoration-color: var(--c-gold); }
.pr-line { margin: 12px 0 0; color: var(--c-body); font-size: var(--fs-lead); max-width: 60ch; }
.pr-act { margin: 24px 0 0; }
.pr-go { text-decoration: none; min-width: min(100%, 280px); }
.pr-pubs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pr-pub { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: .35em; }
@media (min-width: 900px) {
  .pr { grid-template-columns: 340px minmax(0, 1fr); align-items: center; }
  .pr-art { padding: 32px; }
  .pr-body { padding: 36px 48px 36px 8px; }
  [dir="rtl"] .pr-body { padding: 36px 8px 36px 48px; }
  .nw-grid--one { grid-template-columns: minmax(0, 1040px); }
}
.pr-page { max-width: 1040px; }
@media (min-width: 1100px) { .hero-copy, [dir=rtl] .hero-copy { width: 100%; max-width: 560px; } .hero-cta { flex-wrap: nowrap; } }
/* ---- round 9 fix pass (CD must-fixes 1, 3, 4, 5; reviewer rights line) ---- */
.page-head--guide { background: transparent; padding-block: clamp(28px, 4vw, 48px) 0; }
@media (max-width: 639px) { .hero p.hero-line2 br { display: none; } .hero p.hero-line2 { text-wrap: pretty; } }
.hero-line1 { text-wrap: balance; }
.hero-more { white-space: nowrap; }
.chip { white-space: nowrap; padding-inline: 14px; }
@media (min-width: 600px) { .b6-chips { grid-template-columns: repeat(3, minmax(max-content, 1fr)); } }
.pr-rights { margin: 10px 0 0; text-align: center; color: var(--c-body); font-size: var(--fs-small); }

/* ---------- r23 (her restructure): seven sections, breadcrumbs, section links, Play & Learn filters ---------- */
@media (min-width: 1100px) and (max-width: 1379px) { .nav-wide { display: none; } .menu-btn { display: inline-flex !important; } }
@media (min-width: 1380px) { .nav-wide a, .top-end .top-link { padding-inline: 5px; font-size: 1.0625rem; } }
.crumbs { margin: 0 0 14px; font-size: var(--fs-small); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; color: var(--c-muted); padding-inline: 8px; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--w-ui); color: var(--c-navy); }
.crumbs [aria-current] { color: var(--c-muted); }
.sbk-head .crumbs { width: 100%; text-align: start; }
.sbk-head .crumbs ol { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-start; margin: 0 !important; padding: 0 !important; }
.sbk-head .crumbs li { display: inline-flex !important; margin: 0 !important; padding: 0 !important; width: auto !important; list-style: none; }
.sx-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.sx { position: relative; display: grid; gap: 2px; min-height: 76px; padding: 16px 20px; padding-inline-end: 52px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); color: var(--c-navy); text-decoration: none; transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.sx-t { font-size: var(--fs-card); font-weight: var(--w-head); line-height: var(--lh-card); }
.sx-l { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.5; }
.sx svg { position: absolute; inset-inline-end: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--c-gold); }
.sx:focus-visible { outline: var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .sx:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .sx { transition: none; } .sx:hover { transform: none; } }
.home-about .prose { max-width: var(--measure); }
.home-more { display: inline-flex; align-items: center; gap: 6px; }
.home-more svg { width: 18px; height: 18px; }
.st-subs-h { margin-block: 40px 16px; }
.st-syn { max-width: var(--measure); }
.pl-filters { display: grid; gap: 8px; margin-block-end: 24px; }
.pl-k { margin: 8px 0 0; font-size: var(--fs-small); font-weight: var(--w-ui); color: var(--c-muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { width: auto; min-height: 44px; padding: 4px 18px; border: 1px solid var(--c-line); background: var(--c-card); }
.chips .chip--on { background: var(--c-navy); color: var(--c-ivory); border-color: var(--c-navy); }
.pl-pp { margin-block-start: 24px; }
.pl-pp a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: var(--w-ui); }
.pl-pp svg, .st-next svg { width: 18px; height: 18px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-row svg { width: 22px; height: 22px; }
