/* Native text and vector editions keep every selected language readable. */
:root{--reader-header-height:88px!important}
html{scroll-padding-top:108px}
body{padding-top:88px}
.site-header.reference-header-mode,body:has(.hero-shell:not(.is-detail))>.site-header{height:88px!important;aspect-ratio:auto;box-shadow:0 2px 16px #0000000d}
.reference-header-mode .header-inner{display:flex!important;align-items:center;justify-content:space-between;width:calc(100% - 64px);max-width:1394px;height:88px;margin:auto;gap:20px}
.reference-header-mode .reference-header-art,.reference-header-mode .reference-header-nav,.reference-header-mode .header-inner>.reference-hotspot{display:none!important}
.reference-header-mode .header-inner>.brand{display:inline-flex!important;max-width:245px;letter-spacing:-1px}
.reference-header-mode .brand-forma{font-size:42px;line-height:.95}
.reference-header-mode .brand-line{font-size:19px;line-height:1.1;letter-spacing:-.8px}
.reference-header-mode #navigation{position:static;display:flex!important;order:0;gap:26px;padding:0;margin:0;background:none;box-shadow:none;font-size:14px;max-height:none;overflow:visible}
.reference-header-mode #navigation .nav-purchase{font-size:15px;min-width:0;padding:13px 22px}
.reference-header-mode .header-inner>.language-picker{order:1;margin-left:auto}
.reference-header-mode #navigation{order:0}
.reference-header-mode .header-inner>.menu-toggle{display:none!important;order:2}
.hero-shell:not(.is-detail) .reference-front{margin-top:-88px}
@media(min-width:701px){body:not(.localized-page) .hero-shell:not(.is-detail) .book-stage{top:calc(var(--reader-frame-width)*140/1684 - 88px)}}
.localized-page .reference-front{display:none}
.localized-page .hero-shell .hero-layout,.localized-page .hero-shell:not(.is-detail) .hero-layout{position:relative;display:grid;grid-template-columns:1.08fr .92fr;gap:50px;align-items:center;max-width:1320px;width:calc(100% - 96px);margin:auto;padding:48px 0 110px;min-height:760px}
.localized-page .hero-front-copy>.reference-semantic-copy{position:static!important;display:block;width:auto;height:auto;margin:0!important;padding:0!important;overflow:visible;clip:auto;clip-path:none;white-space:normal;pointer-events:auto}
.localized-page .hero-shell:not(.is-detail) .hero-front-copy{display:block;width:100%;padding:0;margin:0}
.localized-page .hero-front-copy h1{font-size:clamp(36px,3.7vw,59px);line-height:1.08;letter-spacing:-1.8px;margin:0 0 23px}
.localized-page .hero-front-copy p{font-size:17px;line-height:1.65;margin:0 0 17px;letter-spacing:0}
.localized-page .hero-front-copy .motto{font-size:25px;line-height:1.3;margin:22px 0;padding-left:17px;border-left:4px solid #f01414;color:#f01414;font-weight:700}
.localized-page .hero-front-copy .credential{font-size:14px;line-height:1.65;margin-top:22px}
.localized-page .hero-front-copy .edition-note,.edition-note{font-size:12px;line-height:1.7;color:#71675d;margin-top:13px}
.localized-page .hero-shell .book-stage,.localized-page .hero-shell:not(.is-detail) .book-stage{position:relative;left:auto;top:auto;width:100%;max-width:450px;height:auto;margin:auto;aspect-ratio:1386/1969;align-self:center}
.localized-page .hero-shell .book-turner{height:100%;aspect-ratio:1386/1969}
/* Full translated artwork keeps the Polish cover design; CSS supplies only the book depth. */
.localized-page .front-art{overflow:visible;isolation:isolate;border-radius:3px 7px 7px 3px;box-shadow:12px 20px 24px #00000026;transform:perspective(1800px) rotateY(-9deg) rotateZ(-3deg)}
.localized-page .front-art::before{content:"";position:absolute;inset:7px -12px 3px 8px;z-index:-2;background:#760606;border:1px solid #620505;border-radius:3px 7px 7px 3px}
.localized-page .front-art::after{content:"";position:absolute;inset:6px -9px 8px 7px;z-index:-1;background:repeating-linear-gradient(0deg,#d0cbc2 0 1px,#faf8f2 1px 3px,#e9e5db 3px 4px);border:1px solid #c7c0b4;border-radius:2px 5px 6px 2px;transform:skewY(1deg)}
.localized-page .front-art img{position:relative;left:auto;top:auto;display:block;width:100%;height:100%;object-fit:contain;max-width:100%;border-radius:inherit;mix-blend-mode:normal}
.localized-page #read-more-control{top:auto!important;bottom:22px;left:32px!important;width:auto!important;min-width:220px;height:auto!important;min-height:48px;padding:14px 24px;color:#fff;font-size:17px;line-height:1.4;box-shadow:0 5px 18px #5002;border-radius:6px}
.localized-page #read-more-control>img{display:none}
.localized-page #read-more-control>.reference-semantic-copy{position:static!important;display:block;width:auto;height:auto;margin:0!important;overflow:visible;clip:auto;white-space:normal;pointer-events:auto}
.localized-page #read-more-control.is-outside-hero{visibility:hidden;pointer-events:none}
.localized-page dialog[open] #read-more-control{visibility:visible;pointer-events:auto}
.localized-page>#read-more-control{display:none}
.localized-page:has(.hero-shell.is-detail)>#read-more-control,.localized-page dialog[open] #read-more-control{display:block}
.localized-hero-read{font-size:17px;padding:13px 24px;margin-top:10px;min-height:48px}
/* The detail CTA follows the final paragraph; the floating control stays available in dialogs. */
.hero-detail-copy>.hero-detail-read{position:static;display:inline-flex;max-width:100%;min-height:48px;margin:8px 0 0;padding:13px 24px;font-size:17px;white-space:normal}
body:has(.hero-shell.is-detail .hero-detail-read)>#read-more-control{display:none}
.reader-translation-note{font-size:10px;line-height:1.45;color:#786b5c;max-width:43%;text-align:center}
.video-caption-cue{position:absolute;left:10px;right:10px;bottom:39px;z-index:3;text-align:center;pointer-events:none;white-space:pre-line;line-height:1.4;font-family:Arial,Helvetica,sans-serif;font-size:clamp(14px,1.2vw,19px);font-weight:600;color:white;text-shadow:0 1px 2px #000;isolation:isolate}
.video-caption-cue>span{display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone;background:#080808e8;padding:3px 7px;border-radius:2px}
.metamorfozy-video-stage:fullscreen{width:100vw!important;height:100vh!important;max-width:none!important;aspect-ratio:auto;background:#000}
.metamorfozy-video-stage:fullscreen .video-caption-cue{font-size:clamp(20px,3vw,38px);left:7%;right:7%;bottom:7%}
.video-caption-controls{position:absolute;z-index:4;bottom:5px;left:5px;right:5px;display:flex;justify-content:center;gap:5px;flex-wrap:wrap}
.video-caption-controls button{background:#080808d9;color:#fff;border:1px solid #ffffff60;border-radius:4px;padding:5px 7px;font-size:10px;line-height:1.3;min-height:28px}
.video-caption-controls button[aria-pressed="true"]{border-color:#f5cb80}
.video-caption-notes{font-size:10px;line-height:1.6;color:#73675a;margin:0 0 12px;text-align:center;max-width:460px;margin-inline:auto}
.video-caption-partial-note{margin-top:5px;color:#6e3e25}
.video-transcript{font-size:12px;line-height:1.7;padding:0 0 16px;color:#554c43}
.video-transcript summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.video-transcript ol{margin:12px 0 0;padding-left:23px;max-height:220px;overflow:auto;text-align:left}
.video-transcript li{margin-block:8px}
.video-transcript-source-note{font-size:10px;color:#786b5c;margin-top:10px}
.video-transcript-time{font-variant-numeric:tabular-nums;font-weight:700}
@media(max-width:1180px){
 .reference-header-mode #navigation{display:none!important;position:absolute;top:88px;left:-32px;right:-32px;max-height:calc(100dvh - 140px);overflow:auto;padding:18px 32px;background:#fff;border-top:1px solid #eee;box-shadow:0 15px 20px #0001;flex-direction:column;align-items:stretch;gap:6px;font-size:17px}
 .reference-header-mode #navigation.is-open{display:flex!important}
 .reference-header-mode .header-inner>.menu-toggle{display:flex!important;flex-direction:column;gap:6px;justify-content:center;align-items:center;width:44px;height:44px;flex:none;background:#fff;padding:10px}
 .reference-header-mode .menu-toggle span{display:block;width:23px;height:2px;background:var(--ink)}
 .localized-page .hero-shell .hero-layout,.localized-page .hero-shell:not(.is-detail) .hero-layout{gap:30px;width:calc(100% - 64px)}
}
@media(max-width:700px){
 :root{--reader-header-height:70px!important}
 body{padding-top:70px}
 .site-header.reference-header-mode,body:has(.hero-shell:not(.is-detail))>.site-header{height:70px!important}
 .reference-header-mode .header-inner{height:70px;width:calc(100% - 24px);gap:8px}
 .reference-header-mode .header-inner>.brand{max-width:calc(100% - 150px)}
 .reference-header-mode .brand-forma{font-size:30px;line-height:.95}
 .reference-header-mode .brand-line{font-size:12px;white-space:normal;letter-spacing:-.4px;line-height:1.15}
 .reference-header-mode #navigation{top:70px;left:-12px;right:-12px;padding:15px 20px}
 .hero-shell:not(.is-detail) .reference-front{margin-top:0}
 .localized-page .hero-shell .hero-layout,.localized-page .hero-shell:not(.is-detail) .hero-layout{display:flex;flex-direction:column;gap:25px;width:calc(100% - 40px);padding:28px 0 30px;min-height:0}
 .localized-page .hero-shell:not(.is-detail) .hero-front-copy{display:contents}
 .localized-page .hero-front-copy>.reference-semantic-copy{display:contents}
 .localized-page .hero-front-copy h1{order:-2;font-size:36px;margin:0;line-height:1.15}
 .localized-page .hero-front-copy p{order:0;margin:0;font-size:16px}
 .localized-page .hero-shell .book-stage,.localized-page .hero-shell:not(.is-detail) .book-stage{order:-1;max-width:315px;margin:0 auto 8px;width:100%}
 .localized-page .hero-front-copy .motto{font-size:24px;margin:0}
 .localized-page .hero-front-copy .credential{margin-top:0}
 .localized-page .hero-front-copy .edition-note{font-size:12px;margin-top:-12px}
 .localized-page #read-more-control{left:16px!important;right:16px!important;width:calc(100% - 32px)!important;bottom:12px;min-width:0}
 .reader-translation-note{display:none}
 .video-caption-cue{font-size:15px;bottom:35px;left:7px;right:7px}
}
