/* The author's homepage keeps the plum and warm gold of the opening book. */
.author-home .hero-copy .button::after { content:none }
.author-home .hero-copy .button-light {background:linear-gradient(110deg,#f8dfb9,#fff4de 60%,#eecb9d);color:#2b1522;box-shadow:0 5px 23px #06031030}
.author-home .hero-role {font-size:.93rem;letter-spacing:.1em}
:lang(ar) .author-home .hero-role {letter-spacing:normal}
.author-home .catalogue .book-card {border-color:#d7c4b3;box-shadow:0 12px 32px -19px #37172747;background:linear-gradient(145deg,#fffefa,#fcf7ef)}
.author-home .catalogue .section-top {border-bottom-color:#bb956d}
.author-home .kids-shortcut {color:#193459;border:1px solid #ad906c;border-radius:2rem;padding:.4rem 1.12rem;background:#fffaf1;text-decoration:none;min-height:44px}
.author-home .kids-shortcut:hover {color:white;background:#193459}
.author-home .card-order {box-shadow:0 2px 9px #42132821}
.author-home .book-meta {color:#71472b}
@media(min-width:961px) {
 .author-home .hero-copy {padding-inline-start:clamp(1rem,2.9vw,3.1rem);border-inline-start:1px solid #e2bc796b}
 .author-home .catalogue .book-grid {gap:1.75rem}
 .author-home .hero .cover-shelf {border-color:#d6b18061}
}
@media(max-width:700px) {
 .author-home .section-top {flex-wrap:wrap}
 .author-home .hero-role {font-size:.82rem}
}
/* Children's collection */
.young {background:#fcfaf4;color:#162844}
.young .header,.young .footer,.young .menu-toggle[aria-expanded=true]+.menu-pages {background:#101f38}
.young .guide-launch,.young .guide-head {background:linear-gradient(135deg,#20446b,#13263f)}
.young .guide-content {overflow:auto;min-height:0}
.young-heading {display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid #c6a975;padding-block-end:1rem;margin-bottom:1.5rem}
.young-heading h2,.school-inner h2 {font:400 clamp(1.85rem,3.3vw,3.3rem)/1.35 var(--display);margin:0;color:#162844}
.young-share {color:#244263;background:none;border:0;display:inline-flex;gap:.42rem;align-items:center;cursor:pointer;font:600 .93rem var(--body);min-height:44px;padding:0 .2rem}
.young-share:hover {text-decoration:underline}
.young-heading input {width:100%;font:1rem var(--body)}
.young-library {padding-block:clamp(2rem,4vw,4rem) clamp(3rem,5vw,5rem)}
.young-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.4rem,3.5vw,3.8rem)}
.young-book {display:flex;flex-direction:column;min-width:0;--halo:#f9e0b4;--note:#85451b}
.young-book:nth-child(2) {--halo:#bce9dd;--note:#116655}
.young-book:nth-child(3) {--halo:#e0dbf8;--note:#664794}
.yb-cover {display:grid;place-items:center;position:relative;isolation:isolate;height:clamp(15rem,24vw,20.5rem);margin-bottom:1rem}
.yb-cover::before {content:"";position:absolute;inset:6% 5%;border-radius:50%;z-index:-1;background:radial-gradient(ellipse,var(--halo) 38%,transparent 72%)}
.yb-cover .cover {width:auto;height:auto;max-width:82%;max-height:clamp(13.6rem,21.6vw,18.6rem);border-radius:.25rem;box-shadow:2px 1px 0 #fffbef,3px 2px 0 #b49978,0 18px 30px -13px #12223e80}
.yb-label,.yb-age {margin:.3rem 0;color:var(--note);font-weight:600;font-size:.9rem}
.young-book h3 {margin:.25rem 0;font:400 clamp(1.5rem,2.25vw,2rem)/1.2 var(--display);text-wrap:balance;color:#162844}
:lang(ar) .young-book h3 {line-height:1.43}
.young-book h3 a {color:inherit;text-decoration:none}
.young-book h3 a:hover {text-decoration:underline}
.yb-age {color:#384c65}
.yb-desc {margin:.55rem 0 1.3rem;color:#3c4855;line-height:1.75;font-size:1rem}
.yb-actions,.yb-more {display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.yb-actions {margin-top:auto}
.yb-actions a,.yb-more a {min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;color:#193556;font-size:.9rem;font-weight:600}
.yb-actions a {border-radius:2rem;background:#193556;color:#fff;border:1px solid #193556;flex:1 1 7rem;text-decoration:none;padding:.45rem .6rem}
.yb-actions a+a {color:#193556;background:transparent;border-color:#9caaae}
.yb-actions a:hover {background:#285487;color:white}
.yb-more {margin-top:.5rem;justify-content:space-between}
.yb-more a {text-decoration:underline;text-underline-offset:.26rem;text-decoration-color:#ac9578}
.yb-more .play-icon {margin-inline-end:.3rem}
.school-panel {border-top:1px solid #c7af8a;background:#eaf1f3}
.school-inner {padding-block:clamp(2.5rem,6vw,5.5rem);display:grid;grid-template-columns:1fr 1.08fr;gap:clamp(2rem,7vw,7rem)}
.school-inner p {max-width:40ch;font-size:1.08rem}
.school-inner h3 {font:600 1rem var(--body);margin:0 0 1rem}
.school-inner ul,.young-pick ul {list-style:none;padding:0;margin:0}
.school-inner li {display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2rem 1rem;border-top:1px solid #bdcbd3;padding:.7rem 0;font-size:.9rem}
.school-inner li a {flex-basis:100%;font:600 1rem/1.48 system-ui;text-align:left}
[dir=rtl] .school-inner li a {text-align:right}
.school-inner a {color:#163c65;text-underline-offset:.22em}
.school-mail {display:inline-block;font:600 1rem/1.5 system-ui;overflow-wrap:anywhere}
.young-pick a {display:flex;gap:1rem;align-items:center;color:#173254;text-decoration:none;font-size:.9rem;border-top:1px solid #d9cec4;padding:.8rem 0}
.young-pick .cover {width:3.5rem;height:auto}
.young-pick b,.young-pick small {display:block}
.young-pick b {font-size:1.06rem}
.young-pick a:hover b {text-decoration:underline}
.young-pick small {font-size:.88rem;color:#644833}
@media(prefers-reduced-motion:no-preference) {
 .yb-cover img {transition:transform .25s}
 .yb-cover:is(:hover,:focus-visible) img {transform:translateY(-5px)}
}
@media(max-width:820px) {
 .young-list,.school-inner {grid-template-columns:minmax(0,1fr)}
 .young-book {display:grid;grid-template-columns:32% minmax(0,1fr);gap:.3rem 1rem;align-content:center}
 .young-book + .young-book {border-top:1px solid #d5c5ab;padding-top:1.7rem}
 .yb-cover {grid-row:1/4;height:auto;margin:0}
 .yb-cover .cover {max-width:96%;max-height:14rem}
 .yb-label {align-self:end}
 .young-book h3 {align-self:center;font-size:clamp(1.35rem,5vw,1.85rem)}
 .yb-age {align-self:start}
 .yb-desc,.yb-actions,.yb-more {grid-column:1/-1}
 .yb-desc {margin:1rem 0}
 .young-heading {gap:.2rem .8rem}
 .young-share {font-size:.88rem}
}
@media(max-width:700px) {
 .young-heading h2 {font-size:1.64rem}
 .young .nav-books {font-size:.89rem}
}
.young-index .guide-launch {display:none}
.young-heading .guide-trigger {color:#193556;border-color:#abbac3;background:transparent;font-size:.93rem}
.young-heading .guide-trigger:hover {background:#e7eef0}
.young-share {margin-inline-start:auto}
.young-book .yb-more .watch-trailer {border:0;background:none;padding:0}
.author-home .hero-young {display:none}
@media(max-width:700px) {
 .young-index .header .brand-mark + span {display:inline;font-size:clamp(.98rem,4.3vw,1.18rem)}
 .young-index .nav-books {display:none}
 .young-index .header .brand {gap:.33rem}
 .young-heading .guide-trigger {padding:.4rem .75rem;font-size:.9rem}
 .young-heading:has(.guide-trigger:not([hidden])) h2 {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .author-home .hero-actions .hero-young {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.3rem .9rem;font-weight:600;font-size:.87rem;color:#281924;border-radius:2rem;background:linear-gradient(110deg,#f8dfb9,#fff4de 60%,#eecb9d);text-decoration:none;text-shadow:none}
 .author-home .hero-actions {gap:.55rem;flex-wrap:wrap}
}
@media(max-width:340px) {
 .young-index .header .brand-mark {display:none}
}
/* The illustration, linked cover and reading sample travel together. */
.story-band {--bg:#0e2040;--lit:#244674;--foil:#ffdc98;overflow:hidden;color:#fff6e8;background:var(--bg);border-block:1px solid #b69767}
.story-band[data-theme=milo] {--bg:#173a30;--lit:#456036}
.story-band[data-theme=night] {--bg:#211c37;--lit:#50354f}
.story-visible .guide-launch:not(:focus) {visibility:hidden}
.story-layout {display:grid;grid-template-columns:39% 61%;grid-template-rows:auto auto;align-content:center;text-align:center;min-block-size:clamp(27rem,42vw,37rem);padding-block:2rem}
.story-head {align-self:end}
.story-head p {font-weight:550;font-size:.92rem;color:var(--foil);margin:0 0 .75rem}
.story-band #children-title {font:400 clamp(2.2rem,4vw,4rem)/1.16 var(--display);color:#fff9ef;letter-spacing:-.032em;margin:0}
[dir=rtl] .story-band #children-title {font-size:clamp(3rem,5.5vw,5.1rem);letter-spacing:normal;line-height:1.24}
#story-stage {grid-column:2;grid-row:1/3;align-self:center;touch-action:pan-y pinch-zoom;user-select:none}
.story-scene {position:relative;display:flex;align-items:center;isolation:isolate;aspect-ratio:1.64;overflow:hidden;color:inherit;background:radial-gradient(ellipse at center,var(--lit),transparent 70%);touch-action:pan-y pinch-zoom}
.story-scene:focus-visible {outline:3px solid var(--foil);outline-offset:-4px}
.story-land {position:absolute;inset-inline-end:0;top:0;height:100%;width:94%;max-width:none;object-fit:cover;object-position:right center;mask-image:linear-gradient(to right,transparent,#000 34%,#000 96%,transparent);z-index:-2}
[dir=rtl] .story-land {transform:scaleX(-1)}
.story-scene:not([data-story=whale]) .story-land {width:71%;object-position:23% 50%;mask-image:linear-gradient(to right,transparent,#000 23%,#000 89%,transparent)}
.story-scene[data-story=night] .story-land {object-position:42% 50%}
.story-scene::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(var(--bg),transparent 16%,transparent 72%,var(--bg))}
.story-volume {position:relative;display:block;width:35%;margin-inline-start:4%;transform:perspective(75rem) rotateY(10deg) rotateZ(-3deg);
 box-shadow:0 1.15rem 1.9rem -1rem #050b1bea, 1rem 0 2.5rem -1.25rem #040811c9;isolation:isolate}
.story-scene[data-story=milo] .story-volume {width:34%}
.story-scene[data-story=night] .story-volume {width:42%}
[dir=rtl] .story-volume {transform:perspective(75rem) rotateY(-10deg) rotateZ(3deg)}
.story-volume::before {content:"";position:absolute;inset:1% -2.3% -1% 1%;z-index:-1;border:1px solid #9b855e;border-radius:.26rem;background:repeating-linear-gradient(90deg,#f9eedb,#bbac96 1px,#fdf8e9 2px)}
.story-volume::after {content:"";position:absolute;inset:0;box-shadow:inset 1px 1px 1px #ffffff82; background:linear-gradient(90deg,#170f202e,transparent 2.2%,#fff4 3.7%,#170f2016 4.6%,transparent 6%)}
.story-front {display:block;width:100%;height:auto;border-radius:.16rem;pointer-events:none}
.story-controls {align-self:start}
.story-select {display:flex;justify-content:center;align-items:center;gap:.4rem;margin:1.4rem auto;width:min(100%,27rem)}
.story-select button {flex:0 0 44px;height:44px;border:1px solid #eed5ac80;background:#ffffff08;color:var(--foil);display:grid;place-items:center;border-radius:50%;cursor:pointer}
.story-select button:hover {background:#ffffff21}
[dir=ltr] .story-select button:last-child svg,[dir=rtl] .story-select button:first-child svg {transform:scaleX(-1)}
.story-select>div {flex:1;min-width:0;display:grid;align-content:center;min-height:5.2rem}
.story-band .story-title {color:#fff9f1;font:500 clamp(1.25rem,2vw,1.78rem)/1.28 var(--display);text-wrap:balance;text-decoration:none}
.story-title:hover {text-decoration:underline}
.story-select small {color:var(--foil);font-size:.84rem;margin-top:.32rem}
.story-actions {display:flex;justify-content:center;align-items:center;gap:.65rem;flex-wrap:wrap}
.story-actions a,.story-school {min-height:46px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:.94rem;text-decoration:none}
.story-actions a {padding:.54rem 1.08rem;border:1px solid #ffe5b386;border-radius:2rem;color:#fff8eb}
.story-actions .story-sample {color:#172435;background:linear-gradient(125deg,#ffe8b9,#f9d082)}
.story-actions a:hover {background:#fff2cb;color:#121e37}
.story-school {color:#ffe1aa;text-decoration:underline;text-underline-offset:.28em;text-decoration-color:#d0af74a3;margin-top:.45rem}
@media(prefers-reduced-motion:no-preference){
 .story-volume {transition:translate .22s}
 .story-scene:hover .story-volume {translate:0 -4px}
 .story-scene:not([hidden]) {animation:story-show .28s ease-out}
 @keyframes story-show {from{opacity:.35}to{opacity:1}}
}
@media(max-width:800px){
 .story-layout.wrap {width:100%;min-height:0;padding:1.5rem 0 1.35rem;display:flex;flex-direction:column;align-items:center}
 .story-head,.story-controls {align-self:stretch;padding-inline:.9rem}
 .story-head p {margin-bottom:.28rem;font-size:.875rem}
 .story-band #children-title {font-size:clamp(2rem,8.5vw,3rem)}
 [dir=rtl] .story-band #children-title {font-size:clamp(2.4rem,11vw,3.5rem)}
 #story-stage {width:min(100%,32rem);margin-top:.5rem}
 .story-volume {width:38%;margin-inline-start:3.6%}
 .story-scene[data-story=milo] .story-volume {width:36%}
 .story-scene[data-story=night] .story-volume {width:44%}
 .story-scene[data-story=whale] .story-land {width:87%;height:auto;top:3%;object-fit:contain;mask-image:linear-gradient(to right,transparent,#000 30%)}
 .story-select {margin:0 auto .72rem}
 .story-select>div {min-height:4.75rem}
 .story-actions {gap:.5rem}
 .story-actions a,.story-school {font-size:.9rem;padding-inline:.8rem}
 .story-school {margin-top:.15rem}
}
.story-select .story-auto {display:inline-flex;justify-self:center;align-items:center;gap:.65rem;font:500 .88rem var(--body);padding:0 .85rem;border:0;background:none;border-radius:2rem;height:44px}
.story-select .story-auto:hover {background:#ffffff16}
.story-auto i {width:9px;height:12px;border-inline:3px solid currentColor}
.story-auto[data-playing=false] i {border:6px solid transparent;border-left:10px solid currentColor;border-right:0}
.story-select .story-title {min-height:2.56em;display:grid;align-items:center}
.story-select {margin-bottom:.55rem}
.story-shelf.cover-shelf {border-top-color:#ffe7bd40;scroll-margin-block-end:.6rem}
.story-shelf.cover-shelf summary {font-size:.93rem;color:#ffe6b9;text-align:center}
.story-shelf ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.25rem,2vw,1.25rem);width:min(100%,34rem);padding:.25rem 0 1.25rem;margin:0 auto;list-style:none}
.story-shelf li {min-width:0}
.story-shelf a {display:flex;flex-direction:column;gap:.65rem;align-items:center;height:100%;padding:.65rem .25rem;border:1px solid transparent;border-radius:.55rem;text-align:center;color:#fff5e5;font:500 clamp(.9rem,2vw,1.14rem)/1.35 var(--display);text-decoration:none;text-wrap:balance;overflow-wrap:anywhere}
[dir=rtl] .story-shelf a {font-size:clamp(1rem,2vw,1.2rem);line-height:1.55}
.story-shelf a:is(:focus-visible,:hover) {background:#ffffff0c;border-color:#fbe5b466}
.story-shelf a span {display:flex;justify-content:center;align-items:center;height:clamp(6.5rem,29vw,9.4rem);width:100%}
.story-thumb {width:auto;max-width:96%;height:auto;max-height:100%;border-radius:.13rem;box-shadow:2px 1px 0 #dac9aa,0 .45rem .95rem #05102466}
.child-genre {display:contents}
.child-genre .genre-name {
  grid-row:1;grid-column:1;margin:.35rem .4rem 0;display:flex;align-items:center;gap:.55rem;
  color:#704025;font:600 clamp(1rem,1.6vw,1.32rem)/1.45 var(--body);text-align:center
}
.child-genre[data-genre=colouring] .genre-name {grid-column:2/4;color:#264e70}
.genre-name::before,.genre-name::after {content:'';flex:1;height:1px;background:currentColor;opacity:.45}
[data-genre=stories] .young-book {--halo:#f9e0b4;--note:#85451b}
.edition-library [data-shelf=young] .edition-rack {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:46.5rem;margin-inline:auto;background:transparent;border:none
}
.edition-library .child-genre .edition-choice {background:linear-gradient(0deg,#e1e8ef,transparent 70%);box-shadow:inset 0 -1px #829fb3}
.edition-library [data-genre=stories] .edition-choice {background:linear-gradient(0deg,#f5e6cf,transparent 70%);box-shadow:inset 0 -1px #c9a16f}
@media(max-width:820px){
 .young-list .child-genre .genre-name {grid-column:auto;grid-row:auto;margin:0}
}
