/* Paper, woven edges and felt pictures shared by the bilingual review. */
:root { --thread:#b88d61; --leaf:#296258; --cloth:#143b42; }
.header,.footer {background:#142f39}
.header .wrap {border-block-end:1px dashed #749183}
.felt-intro,.hero.night {background:radial-gradient(ellipse at 80% 30%,#285653,#183d43 66%,#142f39);border-block-end:4px solid #c8a77b}
.felt-intro>.wrap {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(12rem,1fr);gap:clamp(1.5rem,5vw,4rem);align-items:center}
.felt-hero,.felt-home {width:100%;height:clamp(11rem,20vw,18rem);object-fit:cover;border-radius:1.5rem;border:5px solid #ead6ae;outline:2px dashed #b69164;outline-offset:-4px}
.felt-hero[src$="friends.webp"] {height:auto;aspect-ratio:3/2}
.felt-card,.study-panel,.study-spread {border:1px solid #e5d6b7;box-shadow:0 3px 0 #ddc9a766}
.felt-card {position:relative;padding:0 1.1rem 1rem;overflow:hidden}
.card-patch {width:calc(100% + 2.2rem);max-width:none;margin-inline:-1.1rem;height:clamp(8rem,14vw,12rem);object-fit:cover;margin-bottom:1rem;border-bottom:2px dashed #c7a275}
.study-shell {padding-block:clamp(1.5rem,4vw,3rem);background:var(--paper)}
.study-shell>.wrap {max-width:66rem}
.study-spread,.practice-step {display:grid;align-items:center;grid-template-columns:minmax(10rem,.65fr) minmax(0,1.35fr);gap:clamp(1rem,4vw,3rem)}
.study-spread,.study-panel {background:#fffdf7;border-radius:1.4rem;padding:clamp(1rem,3.4vw,2.5rem);margin-block:1.25rem}
.study-spread .felt-art,.practice-step .felt-art {width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:1rem}
.study-spread h2,.study-panel h2 {font-size:clamp(1.55rem,3vw,2.45rem)}
.study-shell summary {cursor:pointer;font-weight:700;color:#285d55;padding-block:.5rem}
.study-links,.deck-controls,.deck-top,.memory-map {display:flex;flex-wrap:wrap;align-items:center;gap:.55rem 1rem}
.deck-top {min-height:48px;margin-bottom:1rem;justify-content:flex-start}.deck-top [data-position]{margin-inline-end:auto;color:var(--leaf);font-weight:700}
.deck-controls {border-block-start:1px dashed var(--thread);margin-block-start:1.25rem;padding-block-start:1rem}
.study-action,.memory-map button,.memory-game button {cursor:pointer;font:inherit;font-weight:650}
.study-action:disabled {opacity:.48;cursor:default}
.study-action:not([data-action="next"]):not([data-action="listen"]):not([data-action="start"]) {background:#f4ebdc;color:#213f41;border:1px solid #bda680}
.memory-map {margin-bottom:1.3rem}
.memory-map button {border-radius:1.3rem;min-height:44px;border:1px solid #c3ac83;padding:.35rem .8rem;background:#f7eedc}
.memory-map button[aria-pressed="true"] {background:#245a51;color:white}.memory-map button.recalled {border:2px solid #367362}
.study-shell [hidden]{display:none!important}
.study-shell .sacred {font:normal clamp(1.9rem,4vw,2.75rem)/1.95 Amiri,serif;text-align:center;color:#193e39;white-space:normal}
.sacred.memory-verse,.say {padding:1rem;background:#f7f0df;border-radius:1rem}
.verse-line {margin-block:1rem;padding-top:.8rem;border-block-start:1px dashed var(--thread)}.verse-line audio{width:min(100%,28rem)}
.word-pocket,.memory-game {margin-block:1.2rem;padding:1rem;border-inline-start:4px solid #ac8851;background:#f9f4e7}
.study-shell [role=status]:empty {margin:0}.study-shell [role=status]:not(:empty){margin-top:.8rem}
.chart-download {margin-block:1rem}.study-panel a,.study-spread a{overflow-wrap:anywhere}
@media(max-width:42rem){.felt-intro>.wrap,.study-spread,.practice-step {grid-template-columns:1fr}.felt-hero{max-height:13rem;object-position:center 52%}.felt-hero[src$="friends.webp"]{aspect-ratio:2.05;object-position:center 60%}.study-spread .felt-art,.practice-step .felt-art {max-height:12rem}.deck-controls{gap:.4rem}.study-action{padding:.4rem .7rem}.card-patch{height:11rem}}


[data-leaves] { display:flex; gap:.4rem; margin-top:.5rem; align-items:center; }
[data-leaves] i {display:block; width:1.65rem; height:.95rem; border:1px dashed #927b4f; border-radius:80% 8% 80% 8%; transform:rotate(-12deg); background:#f3e9d5;}
[data-leaves] i.green {background:#48856a;border-color:#245d4c}

.figure-card .object-patch {width:100%;height:clamp(8rem,14vw,12rem);object-fit:cover;border-radius:.8rem;margin-bottom:1rem}
.conversation-illustration .object-patch {height:auto;border-radius:1rem;outline:1px dashed #a58358;outline-offset:-3px}

.motion-example {margin:1rem 0;padding:1rem;border:1px dashed #baa37f;border-radius:1rem}
.motion-example img {width:min(100%,18rem);height:auto;margin-block:.5rem;border-radius:.8rem}

.arabic-video-cover { max-width:62rem; }
.arabic-video-cover img { height:auto; }
.arabic-video-cover .button { left:4%; bottom:5%; }
#arabic-lesson[hidden] { display:none; }

/* The private edition uses the paper, fabric and ink colours of its illustrations. */
:root { --evergreen:#174a43; --almond:#f2e5ca; --coral:#a74e32; --paper:#fffaf1; --ink:#213c39; --muted:#4c605b; }
.header,.footer {background:#163d39}
.header .wrap {border:0}
.header {border-bottom:2px solid #c3a46c}
.header .nav a[aria-current] {background:#31594e;border-radius:2rem;text-decoration:none;color:#fff4d9}
.header .nav a {padding-inline:.65rem}
.storybook-home {color:#183e37;background:linear-gradient(115deg,#fbedd3,#fff8e9 55%,#f1dec0);border-bottom:1px solid #dbc7a3}
.storybook-home>.wrap {display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:clamp(1.8rem,4.5vw,4rem);padding-block:clamp(2.2rem,5vw,4.6rem)}
.storybook-home h1 {font-size:clamp(2.8rem,5.6vw,4.95rem);line-height:1.04;max-width:16ch}
.storybook-home p {color:#45594d;max-width:43ch;font-size:clamp(1.05rem,1.5vw,1.24rem)}
.storybook-home figure {margin:0;padding:.52rem;background:#fff8e9;border-radius:2.5rem 2.5rem 1.2rem 1.2rem;border:1px solid #cbb68b;outline:1px dashed #ae8355;outline-offset:-5px;box-shadow:0 5px 0 #d8bb91;transform:rotate(1deg)}
.storybook-home img {width:100%;border-radius:2rem 2rem .85rem .85rem;aspect-ratio:3/2}
.storybook-home .button,.deck-controls [data-action=next],.deck-top [data-action=start] {background:var(--evergreen);color:#fffaf0}
.storybook-home .button:hover,.deck-controls [data-action=next]:hover,.deck-top [data-action=start]:hover {background:#286457}
.storybook-home .button.secondary {color:var(--evergreen);background:transparent;border-color:#958c6c}
html[dir=rtl] .storybook-home h1 {line-height:1.4}
.felt-intro {position:relative;background:#f4e9d5;color:#194239;border-bottom:1px solid #d2c3a3;padding-block:clamp(1.5rem,3vw,2.8rem)}
.felt-intro.shelf-learn {background:#e9efe1}.felt-intro.shelf-conversations {background:#fae9db}
.felt-intro.shelf-videos {background:#e6efec}
.felt-intro .wrap {grid-template-columns:minmax(0,1.3fr) minmax(12rem,.7fr);gap:clamp(1.5rem,5vw,5rem)}
.felt-intro h1 {font-size:clamp(2.15rem,4.5vw,3.9rem);max-width:24ch}
.felt-intro p {color:#435950;max-width:57ch;font-size:clamp(1rem,1.6vw,1.16rem)}
.felt-intro .felt-hero {justify-self:end;width:min(100%,17rem);height:clamp(10rem,15vw,12rem);object-fit:contain;background:#ffefd4;border:5px solid #fff9eb;outline:1px dashed #a48156;outline-offset:-4px;box-shadow:0 .25rem 0 #cbb58b70}
.felt-intro .felt-hero[src$="friends.webp"] {width:min(100%,21rem);height:auto;aspect-ratio:3/2;object-fit:cover}
.compact-intro .wrap {display:block}.compact-intro h1 {max-width:32ch}
.felt-intro .breadcrumb {font-size:.94rem;color:#365c4e;margin-bottom:.35rem}
.section {padding-block:clamp(2.1rem,4vw,3.7rem)}
.grid {gap:clamp(.9rem,2.2vw,1.6rem)}
.felt-card {padding:1rem 1.15rem .85rem;border-radius:1.15rem;box-shadow:0 3px 0 #d6c5a966}
.card-patch {order:0;align-self:flex-start;width:5.5rem;height:5.5rem;object-fit:contain;margin:0 0 .9rem;border:0;border-radius:1.1rem;background:#f9ebd3;outline:1px dashed #af906c;outline-offset:-3px}
.felt-card:has(.film-cover) .card-patch,.felt-card:has([src$="friends.webp"]) .card-patch {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;outline:0}
.felt-card h3 {font-size:clamp(1.16rem,1.6vw,1.36rem)}
.felt-card .more {color:var(--evergreen);text-decoration-color:#af9260}
.felt-card:focus-within {outline:2px solid var(--leaf);outline-offset:2px}
.grid:has(>.felt-card:only-child) {grid-template-columns:minmax(0,46rem)}
.grid>.felt-card:only-child {display:grid;grid-template-columns:minmax(5rem,8rem) 1fr;column-gap:1.3rem;align-content:center}
.grid>.felt-card:only-child .card-patch {grid-row:1/4;margin:0;width:100%;height:auto;align-self:center}
.grid>.felt-card:only-child h3,.grid>.felt-card:only-child p {margin-bottom:.3rem}
.study-links>a,.study-shell summary,.listening-page summary {min-height:44px}
nav.study-links {gap:.5rem;margin-bottom:1.4rem}
nav.study-links a {display:inline-flex;align-items:center;padding:.45rem 1rem;border-radius:2rem;background:#e9efdf;color:var(--evergreen);font-weight:650;text-decoration-color:#abbca7}
.say,.word-pocket {background:#eef2e4}.word-pocket {border-inline-start-color:#698365}
.study-shell .sacred {color:#173f35}
.chart-download {text-align:end;margin-block:.85rem 0}
.chart-download+.study-shell {padding-top:.2rem}
.audio-credit {font-size:.86rem;color:#4c6159;margin-top:.65rem}
.print-shelf {background:#f5ead2;border-block:1px dashed #be9c70}
.listening-page {padding:clamp(1.15rem,3vw,2rem);border:1px solid #ddcbae;border-radius:1.5rem;background:#fffdf6;box-shadow:0 4px 0 #deccab66}
.listening-page details {border-block:1px dashed #c7b28b;padding-top:.5rem}
.video-shell,.arabic-video-cover,main video {margin-inline:auto}
.footer {border-top:3px solid #c7aa77}
@media (min-width:48.01rem) and (max-width:61rem){.header .wrap{flex-wrap:wrap;gap:0}.nav{gap:.1rem .3rem}}
@media (max-width:48rem){
 .header .wrap {display:grid;gap:.1rem;padding-block:.3rem .45rem}
 .brand {min-height:40px}.nav {gap:.05rem .18rem}.header .nav a {min-height:40px;padding-inline:.42rem;font-size:.92rem}
 .storybook-home>.wrap {grid-template-columns:1fr;gap:1.3rem;padding-block:1.8rem}
 .storybook-home figure {transform:none;max-width:34rem}
 .storybook-home h1 {font-size:clamp(2.3rem,8vw,3.2rem)}
 .felt-intro .wrap {grid-template-columns:1fr auto;gap:.8rem}
 .felt-intro .felt-hero {width:clamp(4.3rem,19vw,8rem);height:auto;aspect-ratio:1}
 .felt-intro .felt-hero[src$="friends.webp"] {width:clamp(5rem,23vw,9rem);aspect-ratio:1;object-fit:cover}
 .felt-intro .breadcrumb {margin:0}.felt-intro h1 {font-size:clamp(1.85rem,6vw,2.7rem)}
 .felt-intro:has(.felt-hero[src$="friends.webp"]) .wrap {grid-template-columns:1fr}
 .felt-intro:has(.felt-hero[src$="friends.webp"]) .felt-hero {width:min(100%,24rem);aspect-ratio:2.15;justify-self:start}
 .felt-card:not(:has(.film-cover)):not(:has([src$="friends.webp"])) {display:grid;grid-template-columns:4.8rem minmax(0,1fr);column-gap:.9rem;align-content:start}
 .felt-card:not(:has(.film-cover)):not(:has([src$="friends.webp"])) .card-patch {grid-row:1/4;width:100%;height:auto;align-self:start;margin:0}
 .felt-card h3,.felt-card p {margin-bottom:.3rem}
 .study-shell .study-spread,.study-shell .practice-step {gap:1rem}
 .study-spread .felt-art,.practice-step>.felt-art {justify-self:center;width:auto;max-width:100%;height:9rem;object-fit:contain}
 .deck-controls {justify-content:space-between;gap:.3rem}
 .deck-controls button {min-height:44px}
 .grid>.felt-card:only-child:has([src$="friends.webp"]) {display:flex}
 .grid>.felt-card:only-child:has([src$="friends.webp"]) .card-patch {margin-bottom:.7rem}
 .chart-download {text-align:start}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) {
 .felt-card {transition:box-shadow .16s ease,transform .16s ease}
 .felt-card:hover {transform:translateY(-2px);box-shadow:0 5px 0 #c5ab7c66}
}

.tawhid-opening {border-inline-start:5px solid #567d59;background:#f3f4e8}
.tawhid-opening p,.tawhid-choices p {max-width:68ch}
.tawhid-choices details {padding:.5rem 1rem;background:#faf3e5;border:1px solid #e4d5b7;border-radius:.8rem;margin:.65rem 0}
.tawhid-choices details[open] {background:#f2f5ea}
.tawhid-choices summary {min-height:44px}
@media(min-width:48.01rem) {
 .felt-card:not(:has(.film-cover)):not(:has([src$="friends.webp"])) .card-patch {width:clamp(6rem,9vw,8.3rem);height:auto;aspect-ratio:1}
}
