/* Ebook Corp — couche de finition.
   Chargée après le bundle "edition" de chaque page : typographie commune,
   pied de page « pages de garde », cohérence des boutons, corrections ciblées. */

/* ---------- 1. Typographie ---------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 104%;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  size-adjust: 104%;
}

:root {
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fin-night: #171d31;
  --fin-night-2: #1f2845;
  --fin-paper: #f7f2e7;
  --fin-gilt: #c9a86a;
  --fin-accent: #273e7b;
  --fin-accent-strong: #1f3266;
  --fin-ease: cubic-bezier(.2, .75, .15, 1);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-optical-sizing: auto;
}

h1, h2, h3, h4 { text-wrap: balance; }
main p, main li, main figcaption, main blockquote { text-wrap: pretty; }

/* Chiffres alignés dans les tableaux et compteurs */
table, .collection-stats, [data-count] { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- 2. Boutons : une seule famille ---------- */
.quiz-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 36px auto;
  padding: 20px 22px 20px 26px;
  border: 1px solid #dce4ef;
  border-radius: 20px;
  background: #f5f7fb;
}
.quiz-cta p { margin: 0; color: #253651; font-weight: 600; }
@media (max-width: 800px) {
  .quiz-cta { margin-inline: var(--gutter, 24px); }
}

.quiz-cta a,
.quiz-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--fin-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(39, 62, 123, .9);
  transition: background-color .2s ease, transform .2s var(--fin-ease), box-shadow .2s ease;
}
.quiz-cta a:hover,
.quiz-cta a:focus-visible,
.quiz-submit:hover,
.quiz-submit:focus-visible {
  background: var(--fin-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px rgba(39, 62, 123, 1);
}
.quiz-cta a:active,
.quiz-submit:active { transform: translateY(0); }
html.motion-off .quiz-cta a,
html.motion-off .quiz-submit { transition: none; transform: none; }

/* ---------- 3. Corrections ciblées ---------- */

/* Articles du journal : l'ancien retrait prévu pour un en-tête flottant laissait un vide. */
.reading-guide-header.section-wrap { padding-top: clamp(26px, 3.6vw, 52px); }

/* Paragraphe de liens posé hors section : il touchait le bord de l'écran. */
p.section-wrap.book-editorial-related {
  box-sizing: border-box;
  max-width: calc(72ch + 2 * var(--gutter, 24px));
  margin: clamp(24px, 4vw, 44px) 0;
  padding-inline: var(--gutter, 24px);
  color: #46526b;
  line-height: 1.7;
}

/* Bloc éditorial « ec-next-reading » : pleine largeur et sans marges sur certaines pages. */
.section-wrap.ec-next-reading {
  box-sizing: border-box;
  width: auto;
  max-width: min(1044px, calc(100% - 2 * var(--gutter, 24px)));
  margin: clamp(28px, 5vw, 64px) auto;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid #dce4ed;
  border-radius: 24px;
  background: linear-gradient(120deg, #f3f6fb, #fff 70%);
}
.section-wrap.ec-next-reading > .eyebrow { margin: 0 0 10px; }
.section-wrap.ec-next-reading > h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}
.section-wrap.ec-next-reading > h3 {
  margin: 26px 0 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
}
.section-wrap.ec-next-reading > p:not(.eyebrow) {
  max-width: 72ch;
  margin: 12px 0 0;
  color: #46526b;
  line-height: 1.7;
}

/* ---------- 4. Pied de page : les pages de garde ----------
   Le site se referme comme un livre relié : papier de garde bleu nuit,
   trame de points reprise du logo, et un ex-libris collé pour la marque. */
body > .footer.footer.section-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: clamp(40px, 6vw, 88px) var(--sc-inset, var(--gutter, 24px)) clamp(14px, 2vw, 28px);
  padding: clamp(28px, 4vw, 60px) clamp(22px, 4.2vw, 68px) 22px;
  border-radius: var(--sc-band-radius, 28px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(59, 85, 160, .42), transparent 62%),
    linear-gradient(160deg, var(--fin-night-2), var(--fin-night) 58%);
  color: #dfe4f0;
}
/* Trame de points, plus dense vers le coin de l'ex-libris */
body > .footer.footer.section-wrap::before,
body > .footer.footer.section-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body > .footer.footer.section-wrap::before {
  background-image: radial-gradient(circle, rgba(214, 224, 247, .16) 1.15px, transparent 1.7px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(75% 115% at 0% 100%, #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
          mask-image: radial-gradient(75% 115% at 0% 100%, #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
}
body > .footer.footer.section-wrap::after {
  inset: 10px;
  border: 1px solid rgba(201, 168, 106, .22);
  border-radius: calc(var(--sc-band-radius, 28px) - 10px);
}

.footer.footer .footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 80px);
}

/* L'ex-libris */
.footer.footer .footer-top > div:first-child {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 232px;
  padding: 20px 20px 18px;
  border-radius: 5px;
  background: var(--fin-paper);
  color: #5b4c2a;
  text-align: center;
  box-shadow:
    inset 0 0 0 5px var(--fin-paper),
    inset 0 0 0 6px rgba(160, 128, 66, .55),
    0 22px 40px -22px rgba(0, 0, 0, .75);
  transform: rotate(-1.4deg);
}
.footer.footer .footer-top > div:first-child::before {
  content: "Ex-libris";
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: .01em;
}
.footer.footer .footer-top > div:first-child::after {
  content: "Des livres, des voix, des horizons.";
  max-width: 17ch;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.02rem;
  line-height: 1.25;
  color: #3c4664;
}
html[lang="en"] .footer.footer .footer-top > div:first-child::after {
  content: "Books, voices and new horizons.";
}
.footer.footer .footer-top .brand { display: block; line-height: 0; }
.footer.footer .footer-top .brand-logo {
  width: 168px;
  height: auto;
  mix-blend-mode: multiply; /* le fond blanc du logo se fond dans le papier */
}

/* Les colonnes de liens */
.footer.footer .footer-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 30px clamp(36px, 5vw, 84px);
}
.footer.footer .footer-directory > div { display: flex; flex-direction: column; gap: 9px; }
.footer.footer .footer-directory h3 {
  margin: 0 0 12px;
  color: var(--fin-gilt);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer.footer .footer-directory a {
  width: fit-content;
  color: rgba(226, 232, 245, .8);
  font-size: .9rem;
  line-height: 1.35;
  text-decoration: underline transparent 1px;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.footer.footer .footer-directory a:hover,
.footer.footer .footer-directory a:focus-visible {
  color: #fff;
  text-decoration-color: rgba(201, 168, 106, .9);
}

/* Le colophon */
.footer.footer .footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 245, .14);
  color: rgba(226, 232, 245, .62);
}
.footer.footer .footer-bottom a,
.footer.footer .footer-bottom button { color: inherit; }
.footer.footer .footer-bottom a:hover,
.footer.footer .footer-bottom a:focus-visible,
.footer.footer .footer-bottom button:hover,
.footer.footer .footer-bottom button:focus-visible { color: #fff; }
.footer.footer :focus-visible {
  outline: 2px solid var(--fin-gilt);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .footer.footer .footer-top { flex-direction: column; align-items: stretch; gap: 34px; }
  .footer.footer .footer-top > div:first-child { justify-self: start; margin-left: 2px; }
  .footer.footer .footer-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 30px 26px;
  }
}
@media (max-width: 640px) {
  body > .footer.footer.section-wrap { padding: 26px 22px 20px; }
  .footer.footer .footer-directory { grid-template-columns: 1fr 1fr; }
  .footer.footer .footer-directory > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .footer.footer .footer-directory a { padding-block: 3px; font-size: .95rem; }
  /* réserve la place du bouton flottant « retour en haut » */
  .footer.footer .footer-bottom { gap: 12px 18px; padding-bottom: 46px; }
}

/* ---------- 5. Impression : pas d'aplat sombre ---------- */
@media print {
  body > .footer.footer.section-wrap {
    margin: 24px 0 0;
    padding: 16px 0 0;
    border-radius: 0;
    background: none;
    color: #20283f;
  }
  body > .footer.footer.section-wrap::before,
  body > .footer.footer.section-wrap::after { display: none; }
  .footer.footer .footer-top > div:first-child { box-shadow: none; transform: none; background: none; }
  .footer.footer .footer-directory a,
  .footer.footer .footer-directory h3,
  .footer.footer .footer-bottom { color: #20283f; }
}

/* ---------- 6. Page 404 ---------- */
.fin-404 .fin-404__folio {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: #8a744a;
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1;
}
.fin-404 .fin-404__folio::after {
  content: "";
  width: 54px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.fin-404 .fin-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 28px 0 0;
}
.fin-404 .fin-404__en {
  margin: 26px 0 0;
  color: #586277;
  font-size: .95rem;
}
.fin-404 .fin-404__en a { color: #273e7b; text-underline-offset: 3px; }

.section-wrap.fin-404__rayons { margin-block: clamp(36px, 6vw, 72px); }
.fin-404__rayons h2 {
  margin: 0 0 22px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
}
.fin-404__rayons ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fin-404__rayons a {
  display: grid;
  gap: 4px;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.fin-404__rayons a:hover,
.fin-404__rayons a:focus-visible { border-color: #9fb0d6; background: #f6f8fc; }
.fin-404__rayons strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.15;
  color: #20283f;
}
.fin-404__rayons span { color: #586277; font-size: .95rem; line-height: 1.45; }

/* Illustrated story worlds */
.ci-atlas,.ci-block{margin-block:clamp(1.4rem,4vw,3.5rem);color:#202e46}
.ci-intro{max-width:58rem;margin:0 0 1.5rem}.ci-intro h1{font:500 clamp(2.45rem,5vw,4.8rem)/1.03 var(--serif,Georgia,serif);letter-spacing:-.035em;margin:.2em 0}
.ci-intro p,.ci-side p{color:#415269;line-height:1.55}.ci-intro p{max-width:60ch}
.ci-worlds{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1.1rem;padding:.4rem 0;border-block:1px solid #d8dfe6;margin:0 0 1.2rem}
.ci-worlds a{display:inline-flex;align-items:center;min-height:44px;color:#314866;text-decoration:none;border-bottom:2px solid transparent;font-weight:600}
.ci-worlds a[aria-current],.ci-worlds a:hover{color:#172b45;border-bottom-color:#997744}
.ci-panel:not([hidden])~.ci-panel:not([hidden]){margin-top:2.5rem}
.ci-atlas[data-ready] .ci-panel{margin-top:0}
.ci-art{--tone:#356a70;--tint:#edf3f2;display:grid;grid-template-columns:minmax(0,1.75fr) minmax(15rem,1fr);align-items:center;background:var(--tint);border:1px solid color-mix(in srgb,var(--tone) 23%,#fff);border-radius:18px;overflow:hidden;color:#223047;margin-block:.75rem}
.ci-art[data-scene=veyre]{--tone:#8b572d;--tint:#f7f0e7}.ci-art[data-scene=sylve],.ci-art[data-scene=clairbois]{--tone:#476344;--tint:#f0f3eb}
.ci-art[data-scene=aeral]{--tone:#76603c;--tint:#f5f1e9}.ci-art[data-scene=iskar]{--tone:#655783;--tint:#f1eef6}.ci-art[data-scene=valombre]{--tone:#795044;--tint:#f5efea}
.ci-art .ci-stage{display:block;position:relative;isolation:isolate;width:100%;min-width:0;align-self:center;aspect-ratio:3/2;background:color-mix(in srgb,var(--tone) 26%,#ece7dc);overflow:hidden;margin:0;border:0;border-radius:0;padding:0}
.ci-art .ci-stage img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;aspect-ratio:3/2;border:0;border-radius:0;object-fit:contain;transform:none;transition:none;margin:0}
.ci-art .ci-side{padding:clamp(.95rem,2.3vw,2.1rem);min-width:0}.ci-side h2,.ci-side h3{font:500 clamp(1.6rem,3vw,2.7rem)/1.09 var(--serif,Georgia,serif);letter-spacing:-.018em;margin:0 0 .8rem;color:#233149}
.ci-notes details,.ci-art .ci-notes details{padding:0;margin:0;border:0;border-top:1px solid color-mix(in srgb,var(--tone) 25%,white);border-radius:0;background:none}
.ci-art .ci-notes summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:.6rem;min-height:44px;padding:.35rem 0;color:#27384b;font:600 1rem/1.3 var(--sans,"Source Sans 3",sans-serif);text-align:start}
.ci-notes summary::-webkit-details-marker,.ec-language summary::-webkit-details-marker{display:none}
.ci-notes summary::after{content:"+";margin-inline-start:auto;color:var(--tone);font-size:1.15rem}.ci-notes details[open]>summary::after{content:"−"}
.ci-label-number{border:1px solid var(--tone);color:var(--tone);display:inline-grid;place-items:center;min-width:1.42rem;height:1.42rem;border-radius:50%;font-size:.8rem}
.ci-art .ci-notes details>summary .ci-label-number,.ec-language>summary>span{transform:none!important;rotate:none!important;animation:none!important}
.ci-art .ci-notes p{margin:0 0 .7rem 2.02rem;font-size:.98rem;line-height:1.52}
.ci-art .ci-pin{position:absolute;z-index:2;left:clamp(22px,var(--x),calc(100% - 22px));top:clamp(22px,var(--y),calc(100% - 22px));transform:translate(-50%,-50%);width:44px;height:44px;min-width:0;min-height:0;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;box-shadow:none;cursor:pointer}
.ci-art .ci-pin span{display:grid;place-items:center;width:28px;height:28px;background:#fdf8e9;color:#243145;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #303642bb,0 2px 7px #17243580;font:700 .92rem/1 var(--sans,sans-serif)}
.ci-art .ci-pin[aria-expanded=true] span,.ci-art .ci-pin:hover span{background:#263954;color:white;box-shadow:0 0 0 3px #f4d596}
.ci-art .ci-play{display:inline-flex;align-items:center;justify-content:center;gap:.48rem;min-height:44px;border:1px solid #869394;border-radius:30px;padding:.35rem .85rem;background:white;color:#263849;font:600 .93rem/1.25 var(--sans,sans-serif);cursor:pointer;width:auto;box-shadow:none;position:static;transform:none;margin:.65rem 0 0}
.ci-play::before{content:"";width:0;height:0;border-block:4px solid transparent;border-left:7px solid currentColor}
.ci-art .ci-route{margin:.65rem 0 0;display:flex;flex-wrap:wrap;gap:.3rem .8rem;font-size:.91rem}.ci-route a,.ci-directory a,.ci-other a{color:#294763;text-decoration:underline;text-underline-offset:.19em}
.ci-worlds a:focus-visible,.ci-art :focus-visible,.ci-disclosure>summary:focus-visible,.ec-language :focus-visible{outline:3px solid #4169a0;outline-offset:2px}
.ci-art [hidden],.ci-panel[hidden]{display:none!important}
.ci-effect{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.ci-effect i{--drift:translate(4px,-4px) scale(1);--end:translate(12px,-8px) scale(1.2);display:block;position:absolute;left:var(--px);top:var(--py);width:1.4%;aspect-ratio:1;border-radius:50%;opacity:0;background:#fff6ce;box-shadow:0 0 .6rem #ffdd8e}
[data-scene=nacre] .ci-effect i{--drift:scale(1.3,.33);--end:scale(2.6,.52);width:6%;background:transparent;border:2px solid #edfff9;box-shadow:none}
[data-scene=veyre] .ci-effect i{--drift:translateX(9px) scale(1.25);--end:translateX(22px) scale(.85);width:1.25%;background:#ffe4a0}
[data-scene=sylve] .ci-effect i{--drift:translate(7px,7px) rotate(24deg);--end:translate(14px,21px) rotate(66deg);border-radius:1px 70%;width:1.65%;background:#cce8a3;box-shadow:none}
[data-scene=aeral] .ci-effect i{--drift:translateX(10px) scaleX(1.2);--end:translateX(30px) scaleX(1.8);width:8%;height:2%;border-top:2px solid #fff3d7;background:none;box-shadow:none}
[data-scene=iskar] .ci-effect i{--drift:scale(1.35);--end:scale(.65);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);background:#e3faff;width:2.9%}
[data-scene=valombre] .ci-effect i{--drift:translate(3px,-1px) scale(1.3);--end:translate(8px,-3px) scale(1.6);width:8%;background:radial-gradient(ellipse,#ffe8aeb0,transparent 70%);box-shadow:none}
[data-scene=clairbois] .ci-effect i{--drift:translate(-5px,-11px) scale(1.2);--end:translate(5px,-22px) scale(.75);width:1%;background:#fff3a8}
.ci-disclosure{margin:1rem 0;border-block:1px solid #d5dee5}.ci-disclosure>summary{min-height:44px;padding:.65rem .25rem;cursor:pointer;color:#344e6a;font-weight:600}.ci-more .worlds-immersion-grid{margin-block:1rem}
.ci-directory{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem 1.35rem;padding:.8rem 0;border-block:1px solid #d9dfe4;margin-block:1rem}.ci-directory p{margin:0}.ci-directory a{display:inline-flex;align-items:center;min-height:44px}
.ci-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-bottom:.8rem}.ci-preview a{display:block;color:#23364c;text-decoration:none}.ci-preview img{display:block;width:100%;height:auto;aspect-ratio:3/2;border-radius:10px}.ci-preview strong{display:block;padding:.3rem 0}
.ci-home{padding-block:.65rem}.ci-home .home-fold{margin:0}
@media(max-width:720px){.ci-art{grid-template-columns:minmax(0,1fr);border-radius:13px}.ci-art .ci-side{padding:1rem}.ci-worlds{gap:0 .9rem}.ci-preview{gap:.5rem}.ci-preview strong{font-size:.87rem}.ci-art .ci-notes p{margin-left:0}}
@media(prefers-reduced-motion:reduce){.ci-effect{display:none}}.motion-off .ci-effect{display:none}

/* Edition and interface language are independent. All actions are native links. */
.header .ec-language{position:relative;margin:0;line-height:1.2;flex:none}
.header .ec-language>summary{list-style:none;display:flex;align-items:center;gap:.34rem;min-height:44px;padding:.25rem .48rem;cursor:pointer;border-radius:.5rem;color:#273c60;font:650 .88rem/1.2 var(--sans,sans-serif)}
.ec-language>summary::after{content:"";border:solid currentColor;border-width:0 1.5px 1.5px 0;width:.38rem;height:.38rem;transform:rotate(45deg);margin:-.2rem .12rem 0}
.ec-language[open]>summary{background:#eef2f7}
.ec-foot .ci-motion{border:1px solid #8491a1;background:white;color:#344962;padding:.4rem .85rem;border-radius:30px;min-height:44px;cursor:pointer}
.ec-language>nav{position:absolute;z-index:110;inset-inline-end:0;top:100%;display:grid;width:max-content;max-width:min(85vw,23rem);max-height:65vh;overflow:auto;overscroll-behavior:contain;padding:.42rem;border:1px solid #d2dce7;border-radius:.7rem;background:white;box-shadow:0 .65rem 2rem #24364c26}
.header .ec-language>nav a{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:42px;padding:.25rem .75rem;color:#263a56;text-decoration:none;border:0;font:550 .98rem/1.25 var(--sans,sans-serif)}
.header .ec-language>nav a:hover,.header .ec-language>nav a:focus-visible,.ec-language a[aria-current=page]{background:#eef2f7}
.ec-language a small{color:#56647c;font-size:.78rem}.ec-screen{clip-path:inset(50%);position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap}
.ec-header{display:flex;align-items:center;gap:clamp(10px,2vw,32px)}.ec-header .ec-top{display:flex;align-items:center;gap:1.1rem;flex:1;justify-content:flex-end}.ec-top a,.ec-foot a{color:#344965;text-decoration:underline;text-underline-offset:.18em}
.ec-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.7rem 1.2rem;padding-block:1.4rem;border-top:1px solid #d6dfe9}.ec-foot nav{display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.ec-library,.ec-native{margin-block:clamp(1.3rem,4vw,3.7rem)}.ec-library .ec-intro,.ec-native .ec-lead{max-width:64ch;color:#40516a;line-height:1.65}
.ec-library h1,.ec-native h1{margin:.3rem 0 .75rem;color:#20304b;font:500 clamp(2.4rem,5vw,4.5rem)/1.05 var(--serif,Georgia,serif);letter-spacing:-.035em}
.ec-crumb{display:flex;flex-wrap:wrap;gap:.35rem .65rem;align-items:center;font-size:.92rem;color:#536179;margin:0 0 1rem}.ec-crumb a,.ec-links a,.ec-else a,.ec-editions a,.ec-related a{color:#274976;text-underline-offset:.18em}
.ec-section{margin-top:1.9rem}.ec-section h2,.ec-related h2,.ec-body h2{color:#263650;font:500 clamp(1.5rem,3vw,2.3rem)/1.15 var(--serif,Georgia,serif);letter-spacing:-.015em}
.ec-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem;list-style:none;margin:.8rem 0;padding:0}
.ec-tiles li{border:1px solid #d7dfe6;background:#f7f9fb;border-radius:12px;padding:.85rem 1rem}.ec-tiles a,.ec-tiles strong{color:#293f61;font:650 1.06rem/1.3 var(--sans,sans-serif);text-underline-offset:.2em}.ec-tiles p{font-size:.96rem;line-height:1.5;color:#45556c;margin:.45rem 0 0}
.ec-book-hero{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) minmax(14rem,.72fr);gap:clamp(1rem,4vw,4rem);margin:1.25rem 0}
.ec-book-art{display:flex;justify-content:center;padding:.6rem;border-radius:15px;background:#f0f3f6;overflow:hidden}.ec-book-art img{display:block;height:auto;width:100%;max-height:23rem;object-fit:contain;border-radius:8px}
.ec-kicker{font-size:.9rem;color:#495975;letter-spacing:.025em;font-weight:700}.ec-sub{font:500 clamp(1.25rem,2.5vw,2rem)/1.24 var(--serif,Georgia,serif);color:#495875;margin:.4rem 0}
.ec-buy,.ec-related nav,.ec-links{display:flex;flex-wrap:wrap;gap:.4rem .9rem;align-items:center}.ec-buy a{font-weight:650;min-height:44px;display:inline-flex;align-items:center;padding:.45rem .95rem;background:#293f68;border-radius:.6rem;color:white;text-decoration:none}
.ec-body{max-width:51rem;margin:1.8rem auto}.ec-body section{margin-block:1.35rem}.ec-body h2{margin:0 0 .3rem}.ec-body p{color:#3e5067;font-size:1.06rem;line-height:1.65;margin:0}
.ec-related,.ec-editions{border-top:1px solid #d7e0e8;padding-top:1rem;margin-top:1.3rem}.ec-related h2{margin:0 0 .65rem}
.ec-editions{margin-block:1rem}.ec-editions>summary{cursor:pointer;min-height:44px;color:#2e4364;padding:.55rem 0;font-weight:650}.ec-editions ul,.ec-quick ul{list-style:none;margin:.4rem 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}.ec-editions li,.ec-quick li{line-height:1.5}
.ec-quick{border-block:1px solid #d8dfe7;margin-block:1.1rem;padding:.35rem 0}.ec-quick>summary{min-height:44px;padding:.6rem .15rem;cursor:pointer;font-weight:650}.ec-quick h3{margin:.8rem 0 .3rem}
.ec-lang-entry{font-size:.98rem;color:#364d67;margin:.65rem 0}.ec-lang-entry a{text-decoration:underline;text-underline-offset:.2em}
.ec-rich .edition-aplus-content{display:block}.ec-rich .edition-aplus-module{margin:1rem 0;padding:0;border:0;background:none}.ec-rich img{display:block;max-width:100%;width:auto;height:auto;max-height:22rem;margin:.7rem auto;border-radius:10px}.ec-rich h3{font-size:1.22rem;line-height:1.28;margin:.7rem 0 .3rem}.ec-rich p+p{margin-top:.4rem}
@media(max-width:720px){.header .ec-language>summary{padding-inline:.25rem}.ec-language>nav{max-width:min(82vw,18rem)}.ec-header .ec-top{gap:.6rem}.ec-top a{font-size:.88rem}.ec-book-hero{grid-template-columns:minmax(0,1fr)}.ec-book-art{max-width:30rem}.ec-book-art img{max-height:17rem}.ec-header .brand{min-width:0}.ec-header .brand-logo{max-width:115px}}

/* Single interactive cover in the hero of each edition. Geometry and materials
   come from the site's existing paperback model. */
button.sc-model-toggle {
  display: block;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button.sc-model-toggle:focus-visible { outline: 3px solid #405b92; outline-offset: 7px; }
button.sc-model-toggle:disabled { opacity: 1; cursor: auto; }
button.sc-model-toggle .sc-book__front > img { display: block; width: 100%; height: auto; margin: 0; }
.ec-book-art:has(.sc-model-toggle) { display: grid; place-items: center; padding: clamp(1.25rem,3.5vw,2.2rem); overflow: visible; }
.ec-book-art > .sc-model-toggle { width: min(100%,calc(20rem * var(--sc-ratio))); }
.ec-book-art .sc-model-toggle img { max-height: none; border-radius: inherit; }
.nw-cover > .sc-model-toggle, .ec-book-art > .sc-model-toggle { --sc-ry: 22deg; --sc-rx: -6deg; }
.ec-edition-scene { margin: 1.1rem 0 0; max-width: 40rem; }
.ec-edition-scene img { display: block; width: 100%; height: auto; border-radius: .7rem; }
.sc-model-toggle.sc-model-visible:not(:hover):not(:focus-visible):not(.is-tracking):not(.is-open) > .sc-book__body { animation: sc-book-drift 10s ease-in-out infinite; }
.sc-model-toggle.is-open, .sc-model-toggle.is-open:hover { --sc-ry: -18deg; --sc-rx: -7deg; --sc-open: 30deg; }
.sc-model-toggle.is-open > .sc-book__body, .sc-model-toggle:not(.sc-model-visible) > .sc-book__body { animation: none !important; }
.sc-model-toggle.is-open .sc-book__shine { opacity: 1; background-position: -35% 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sc-model-toggle:not(:disabled):hover { --sc-ry: -18deg; --sc-rx: -7deg; --sc-open: 30deg; }
  .sc-model-toggle:not(:disabled):hover .sc-book__shine { opacity: 1; background-position: -35% 0; }
}
@media (hover: none) {
  :is(.book-detail-cover,.storybook-cover,.nw-cover,.ec-book-art) .sc-model-toggle:not(.is-open):hover { --sc-ry: 22deg; --sc-rx: -6deg; --sc-open: 0deg; }
  .sc-model-toggle.sc-model-visible:not(.is-open) > .sc-book__body { animation: sc-book-drift 10s ease-in-out infinite; }
}
.ju-card-art > .sc-book.ju-cover { height: auto; border: 0; box-shadow: none; overflow: visible; }
.ju-card-art > .sc-book.ju-cover img, .us-volume-card > .sc-book img, .ec-tile-cover .sc-book img { width: 100%; height: auto; margin: 0; border-radius: inherit; }
.us-volume-card > .sc-book { width: 100%; margin-bottom: .4rem; }
.emy-book > a > .sc-book { width: 100%; }
.book-promo .bp-cover-wrap .sc-book { width: min(100%,calc(153px * var(--sc-ratio))); max-width: 98px; }
.book-promo .bp-cover-wrap .sc-book img { height: auto; }
.ec-tiles li > a.ec-volume-link { display: grid; grid-template-columns: 3.8rem minmax(0,1fr); gap: 1rem; align-items: start; color: inherit; text-decoration: none; }
.ec-volume-link .ec-tile-cover { display: block; width: 100%; margin-top: .2rem; }
.ec-tile-cover > img { width: 100%; height: auto; display: block; }
.ec-volume-link .ec-tile-copy { display: grid; gap: .35rem; }
.ec-volume-link .ec-tile-copy strong { color: #294578; text-decoration: underline; text-underline-offset: .15em; }
.ec-volume-link .ec-tile-copy p { margin: 0; font-weight: 400; }
@media (max-width: 650px) {
  .book-promo .bp-cover-wrap .sc-book { width: min(100%,calc(110px * var(--sc-ratio))); max-width: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-model-toggle .sc-book__body, .sc-model-toggle .sc-book__front { animation: none !important; transition: none !important; }
}
.sc-model-toggle:disabled, .sc-model-toggle:disabled:hover { --sc-ry: 20deg; --sc-rx: -6deg; --sc-open: 0deg; }
.sc-model-toggle:disabled .sc-book__shine { opacity: 0; }
:is(.book-detail-cover,.storybook-cover,.nw-cover,.ec-book-art) .sc-model-toggle.sc-closed-here { --sc-open: 0deg; --sc-ry: 22deg; --sc-rx: -6deg; }
.sc-model-toggle.sc-closed-here .sc-book__shine { opacity: 0; }
@media print {
  button.sc-model-toggle { display: block; outline: none; }
  .sc-model-toggle .sc-book__body, .sc-model-toggle .sc-book__front { transform: none !important; animation: none !important; }
}

