
/* Reading Room — large, tangible, cinematic book */
body[data-theme=library]{--paper:#eee9df;--ink:#23372d;--accent:#7b583e;--panel:#e2dccd;--line:#ccc7ba;--muted:#657268}
body[data-theme=library] main{max-width:1440px;background:color-mix(in srgb,var(--paper) 94%,transparent)}
body[data-theme=library] .intro-sticky{grid-template-columns:1.35fr .8fr;gap:6%;padding:60px 5% 55px;min-height:710px;overflow:visible}
body[data-theme=library] .intro-story{align-self:center;gap:8px}
body[data-theme=library] .intro-heading h1{font-size:clamp(39px,4.5vw,65px);letter-spacing:-.045em;line-height:1;max-width:650px;margin:12px 0 17px}
body[data-theme=library] .intro-heading .eyebrow{font-size:13px;letter-spacing:.02em;text-transform:none;color:var(--muted)}
body[data-theme=library] .intro-heading p{font-size:15px}
body[data-theme=library] .book-stage{width:min(100%,700px,calc((100svh - 285px)*1.25));aspect-ratio:1.25;perspective:1900px;margin-top:5px;isolation:isolate}
body[data-theme=library] .scroll-book{transform-style:preserve-3d;will-change:transform;filter:none}
body[data-theme=library] .spread-page{padding:30px;background-color:#f5ecd9;box-shadow:0 28px 48px #352a2326}
body[data-theme=library] .spread-page h2{font-size:clamp(35px,4vw,58px);letter-spacing:-.055em}
body[data-theme=library] .spread-page p{font-size:12px}
body[data-theme=library] .turning-cover{backface-visibility:visible;box-shadow:none;border-radius:0 7px 7px 0;will-change:transform;transform-style:preserve-3d}
.cover-face{position:absolute;inset:0;backface-visibility:hidden;transform:translateZ(2px);box-shadow:14px 20px 35px #2a211c40}
.cover-back{position:absolute;inset:0;backface-visibility:hidden;transform:rotateY(180deg) translateZ(2px);background:linear-gradient(90deg,#f1e6ce,#fbf3e2 65%,#d8cbb0);border-radius:5px 0 0 5px;display:flex;flex-direction:column;justify-content:center;padding:32px;color:#283e32;box-shadow:-8px 20px 28px #0002}
.cover-back span{font-size:11px;letter-spacing:.12em}.cover-back strong{font:clamp(36px,4vw,57px)/1.03 'Libre Caslon Display',Georgia;letter-spacing:-.04em;margin:30px 0}.cover-back small{font-size:10px;color:#787265}
.cover-sheen{position:absolute;inset:0;transform:translateZ(3px);backface-visibility:hidden;background:linear-gradient(115deg,transparent 30%,#fff7 48%,transparent 65%);pointer-events:none;opacity:0}
.paper-block{position:absolute;left:50%;top:5px;width:50%;height:100%;background:repeating-linear-gradient(#f1e6d0 0 2px,#cbbda0 2px 3px);transform:translateZ(-8px) translateY(7px);border-radius:0 5px 5px 0;box-shadow:12px 28px 42px #0002}
.turning-leaf{position:absolute;left:50%;top:0;width:50%;height:100%;transform-origin:left center;transform-style:preserve-3d;will-change:transform;background:#f6edda;border-radius:0 5px 5px 0}.leaf-one{z-index:2;transform:translateZ(1px)}.leaf-two{z-index:1}.page-face{position:absolute;inset:0;background:linear-gradient(90deg,#dcd0b4,#fbf4e4 8%,#f3ead5);backface-visibility:hidden;transform:translateZ(1px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;padding:22px;color:#293e31;box-shadow:8px 15px 25px #0002}.page-face span{font:clamp(19px,2.2vw,30px)/1.15 'Libre Caslon Display',Georgia;text-align:center;letter-spacing:-.025em}.page-face img{height:55%;max-width:80%;width:auto;object-fit:contain;box-shadow:4px 5px 9px #0003}.page-back{transform:rotateY(180deg) translateZ(1px);background:linear-gradient(90deg,#f7eedb,#ede1c7);box-shadow:none}.page-back span{font-size:clamp(27px,3vw,43px)}
body[data-theme=library] .intro-showcase h2{font-size:clamp(37px,4vw,58px);letter-spacing:-.045em;line-height:1.04}
body[data-theme=library] .intro-showcase .eyebrow{text-transform:none;letter-spacing:0;font-size:13px}
body[data-theme=library] .intro-category img{max-width:110px}.intro-category{will-change:transform}.intro-categories{gap:25px 18px}.author-rail{display:none}
body[data-theme=library] .scroll-indicator{bottom:24px}.skip-intro{bottom:24px}
@media(max-width:1100px) and (min-width:601px){body[data-theme=library] .intro-sticky{grid-template-columns:1.25fr .85fr;gap:4%;padding-left:4%;padding-right:4%}body[data-theme=library] .intro-category img{max-width:85px}body[data-theme=library] .spread-page{padding:18px}body[data-theme=library] .intro-heading h1{font-size:44px}.cover-back{padding:20px}}
@media(max-width:600px){body[data-theme=library] .intro-sticky{display:flex;padding:0;min-height:0}body[data-theme=library] .intro-story{height:161svh;gap:0}body[data-theme=library] .intro-heading{padding:27px 5% 12px}body[data-theme=library] .intro-heading h1{font-size:42px;margin:12px 0}body[data-theme=library] .intro-heading p{font-size:12px}body[data-theme=library] .book-stage{width:100%;max-width:430px;top:235px;aspect-ratio:1.25;margin-top:18px;perspective:1200px}body[data-theme=library] .spread-page{padding:15px}body[data-theme=library] .spread-page h2{font-size:32px}body[data-theme=library] .spread-page p{font-size:9px}.cover-back{padding:18px}.cover-back strong{font-size:33px;margin:18px 0}.cover-back span{font-size:8px}.cover-back small{font-size:8px}.page-face{padding:14px;gap:15px}.page-face span{font-size:20px}.page-back span{font-size:28px}body[data-theme=library] .intro-showcase h2{font-size:42px}body[data-theme=library] .intro-category img{max-width:100px}}
@media(prefers-reduced-motion:reduce){.turning-leaf,.cover-sheen{display:none!important}body[data-theme=library] .intro-story{height:auto}body[data-theme=library] .book-stage{top:auto}}

.scroll-indicator i{width:100%;transform:scaleX(0);transform-origin:left center}

body[data-theme=library] main{max-width:1340px}@media(max-width:600px){body[data-theme=library] .intro-story{overflow-x:clip;overflow-y:visible}}

@media(max-width:600px){body[data-theme=library] .book-stage{top:320px}}

@media(max-width:600px){body[data-theme=library] .book-stage{top:340px}}@media(max-width:600px) and (max-height:740px){body[data-theme=library] .book-stage{top:300px}}

/* An editorial jacket for the entire collection, rather than a published title. */
.collection-cover{background:radial-gradient(ellipse at 70% 12%,#456b52,transparent 65%),#1e382c;color:#eadbb5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #b79b6144;padding:9%;border-radius:0 6px 6px 0;outline:1px solid #d7b87877;outline-offset:-15px}
.collection-cover .cover-edition{font:9px/1.6 Arial,sans-serif;letter-spacing:.18em}.collection-cover .cover-emblem{font-size:35px;margin:12px 0;color:#d2b16e}.collection-cover strong{font:clamp(40px,5.7vw,82px)/.92 Georgia,serif;letter-spacing:-.065em;font-weight:normal}.collection-cover em{font-weight:normal}.cover-rule{height:1px;width:38%;background:#c3a66d;margin:25px 0 15px}.collection-cover p{font:13px/1.6 Georgia,serif;color:#e5d8bc;margin:0}.collection-cover small{font:8px Arial,sans-serif;letter-spacing:.2em;margin-top:25px}
.page-book-link{display:flex;align-items:center;justify-content:center;height:55%;max-width:85%;position:relative;text-decoration:none;border-radius:2px}.page-face .page-book-link img{height:100%;max-width:100%;transition:filter .25s}.page-book-link:hover img{filter:brightness(1.06)}.page-book-link:focus-visible{outline:3px solid #a87e42;outline-offset:6px}.mini-covers .page-book-link{height:auto;max-width:46%}.mini-covers .page-book-link img{width:100%;height:100%;object-fit:contain}
body[data-theme=library] .intro-sticky{grid-template-columns:1.25fr .95fr;gap:4%}body[data-theme=library] .intro-category img{max-width:132px;width:100%;height:auto;object-fit:contain}body[data-theme=library] .intro-categories{gap:21px 20px}.intro-category img{transition:transform .35s ease,filter .35s ease}.intro-category:hover img{transform:translateY(-5px) rotate(-1deg)}
body[data-theme=library] .book-card:hover .book-image img{transform:translateY(-5px) scale(1.025);transition:transform .45s ease}.book-card:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
@media(min-width:601px) and (max-height:820px){body[data-theme=library] .intro-category img{max-width:108px}body[data-theme=library] .intro-categories{gap:15px}body[data-theme=library] .intro-showcase h2{font-size:42px}}
@media(max-width:600px){.collection-cover strong{font-size:52px}.collection-cover p{font-size:10px}.collection-cover .cover-edition{font-size:7px}.collection-cover .cover-emblem{font-size:26px;margin:8px 0}.cover-rule{margin:15px 0 10px}.collection-cover small{font-size:7px;margin-top:15px}body[data-theme=library] .intro-category img{max-width:124px}.page-face .page-book-link{height:55%}}
@media(prefers-reduced-motion:reduce){.intro-category img,.book-card .book-image img{transition:none!important;transform:none!important}}

.collection-cover{overflow:hidden}.collection-art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;opacity:.35!important;filter:saturate(.6);z-index:0}.collection-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(#153526aa,#15352644 50%,#153526cc);z-index:0}.collection-cover>*:not(.collection-art){position:relative;z-index:1}.collection-cover strong{text-shadow:0 2px 15px #0006}.collection-cover .cover-edition{z-index:1}.page-caption{font:10px/1.4 Georgia,serif;text-align:center;max-width:90%;color:#58604b}.page-face{gap:16px}.turning-cover{z-index:10}.page-face .page-book-link{height:58%}.catalogue-leaf .page-face>span{font-size:clamp(18px,2vw,26px)}
@media(max-width:600px){.page-caption{font-size:8px}.page-face{gap:10px}.collection-cover .collection-art{opacity:.35!important}}

.collection-cover .cover-author-mark{position:relative!important;inset:auto!important;flex:none;width:27%!important;height:auto!important;aspect-ratio:1;object-fit:contain!important;margin:17px auto 22px;filter:drop-shadow(0 4px 10px #0003);z-index:1}.collection-cover:after{background:repeating-linear-gradient(110deg,transparent 0 3px,#ffffff02 3px 4px);pointer-events:none}.collection-cover .cover-edition{font-size:8px}.collection-cover strong{font-size:clamp(40px,5vw,68px)}
@media(max-width:600px){.collection-cover .cover-author-mark{margin:10px auto 14px}.collection-cover strong{font-size:46px}.collection-cover .cover-edition{font-size:6px}}

/* The AFP collection jacket: warm paper, navy ink, restrained gold tooling. */
.collection-cover{background:radial-gradient(ellipse at 65% 20%,#fffdf7,transparent 75%),#eee4d0;color:#263c50;border-color:#a7906944;outline-color:#b79657;outline-offset:-16px;box-shadow:14px 20px 35px #2a211c40!important;justify-content:center;padding:10% 9%}
.collection-cover:after{background:repeating-linear-gradient(110deg,transparent 0 3px,#55412d02 3px 4px);border-left:7px solid #b7955733;box-shadow:inset 18px 0 18px -19px #352f2a66;pointer-events:none}
.collection-cover strong{font:normal clamp(34px,4.4vw,62px)/1.06 Georgia,serif;letter-spacing:-.06em;text-shadow:none;white-space:nowrap}.collection-cover em{display:block;font-size:1.05em;letter-spacing:-.045em}.collection-cover .cover-edition{font-size:8px;letter-spacing:.23em;color:#766a55;margin-bottom:20px}.collection-cover .cover-rule{background:#b28c49;width:35%;margin:18px 0 7px}.collection-cover .cover-author-mark{width:43%!important;margin:18px auto 22px;filter:drop-shadow(0 4px 6px #785e2822)}.collection-cover p{color:#394956;font:13px/1.55 Georgia,serif}.collection-cover small{color:#7a6c53;font-size:7px;line-height:1.9;letter-spacing:.12em;margin-top:24px}
@media(max-width:600px){.collection-cover strong{font-size:40px}.collection-cover .cover-edition{font-size:6px;margin-bottom:13px}.collection-cover .cover-author-mark{width:41%!important;margin:12px auto 13px}.collection-cover p{font-size:10px}.collection-cover small{font-size:5px;margin-top:16px}.collection-cover .cover-rule{margin:13px 0 4px}}
.collection-cover .cover-author-mark{border-radius:50%;outline:1px solid #b7965755;outline-offset:4px}
@media(max-width:600px){.collection-cover strong{font-size:34px}.collection-cover .cover-author-mark{width:35%!important;margin:10px auto 12px}.collection-cover .cover-edition{margin-bottom:10px}.collection-cover small{margin-top:9px}.collection-cover .cover-rule{margin:10px 0 2px}}

.leaf-description{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;height:100%;width:100%;gap:18px;color:#293e31;text-align:left}.leaf-description .tiny{font:9px Arial,sans-serif;text-transform:uppercase;letter-spacing:.14em;text-align:left;color:#7b715b}.leaf-description h2{font:clamp(23px,2.5vw,36px)/1.08 Georgia,serif;letter-spacing:-.035em;margin:0}.leaf-description p{font:12px/1.6 Georgia,serif;color:#5d6355;margin:0}.leaf-description a{font:10px/1.5 Arial,sans-serif;color:#876d3c;text-decoration:none;border-bottom:1px solid #b2986655;padding-bottom:4px}.leaf-description small{font:8px Arial,sans-serif;color:#7b715b;letter-spacing:.08em;margin-top:12px}.page-back .leaf-description{padding:8px}
@media(max-width:600px){.leaf-description{gap:10px}.leaf-description h2{font-size:20px}.leaf-description p{font-size:9px;line-height:1.4}.leaf-description .tiny{font-size:7px}.leaf-description a,.leaf-description small{font-size:7px}.leaf-description small{margin-top:3px}}

.collection-cover{justify-content:flex-start;padding-top:13%!important}.collection-cover .cover-rule{margin-top:17px}.cover-subjects{display:grid!important;grid-template-columns:1fr 1fr;gap:8px 12px!important;margin-top:23px;width:100%;position:relative;z-index:2}.cover-subjects a{font:8px/1.35 Arial,sans-serif;letter-spacing:.02em;color:#766849;text-decoration:none;border-bottom:1px solid #b796572e;padding:3px 0}.cover-subjects a:hover{color:#263c50;border-color:#b79657}.cover-subjects a:focus-visible{outline:2px solid #a7874a;outline-offset:3px}
@media(max-width:600px){.collection-cover{padding-top:12%!important}.cover-subjects{gap:5px 7px!important;margin-top:12px}.cover-subjects a{font-size:6px;padding:2px 0}}

.page-back,.cover-back{visibility:hidden;pointer-events:none}

/* A single proportional jacket layout at every viewport size. */
.collection-cover{container-type:size;display:grid;grid-template-rows:24% 32% 13% 22%;row-gap:3%;align-content:center;justify-items:center;align-items:center;padding:9% 10%!important;outline-offset:-12px}
.collection-cover .collection-title{font-family:'Libre Caslon Display',Georgia,serif;font-size:21cqw;line-height:1.03;font-weight:400;font-style:normal;letter-spacing:-.02em;white-space:normal;margin:0;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;text-shadow:none;color:#263c50}
.collection-cover .collection-title span{font:inherit;letter-spacing:inherit;display:block}
.collection-cover .cover-author-mark{width:auto!important;height:90%!important;max-width:60%;aspect-ratio:1;margin:0!important;border-radius:50%;outline-offset:4px;object-fit:contain!important}
.collection-cover>p{font:5cqw/1.4 Georgia,serif;margin:0;align-self:center;color:#43515a}
.collection-cover .cover-subjects{align-self:center;height:100%;margin:0;gap:0 7%!important;grid-template-columns:1fr 1fr;align-content:space-evenly;align-items:center}
.collection-cover .cover-subjects a{font:3.4cqw/1.25 Arial,sans-serif;letter-spacing:0;text-align:center;padding:4% 0;min-width:0;overflow-wrap:normal;color:#786545}
.collection-cover .cover-subjects a:hover{color:#233c50}
@media(max-width:600px){.collection-cover{outline-offset:-10px}.collection-cover .collection-title{font-size:21cqw}.collection-cover>p{font-size:5cqw}.collection-cover .cover-subjects a{font-size:3.5cqw}}
/* Page typography follows its available paper area, including narrow phones. */
.page-face,.cover-back{container-type:size}.leaf-description{gap:5cqh}.leaf-description h2{font-size:clamp(14px,10cqw,36px);line-height:1.12}.leaf-description p{font-size:clamp(8px,4.2cqw,12px);line-height:1.5}.leaf-description .tiny{font-size:clamp(6px,3cqw,9px)}.leaf-description a{font-size:clamp(7px,3.4cqw,10px)}.leaf-description small{font-size:clamp(6px,2.7cqw,8px);margin-top:2cqh}.page-back .leaf-description{padding:0}
@media(max-width:600px){.leaf-description{gap:4cqh}.leaf-description h2{font-size:clamp(13px,10cqw,20px)}.leaf-description p{font-size:clamp(8px,4.5cqw,10px)}.cover-back{padding:13px}.page-face{padding:12px}.page-caption{font-size:clamp(7px,4cqw,9px)}}
.collection-cover{grid-template-columns:minmax(0,1fr);justify-content:stretch}.collection-cover .cover-author-mark{width:50%!important;height:auto!important;max-width:none;max-height:100%;aspect-ratio:1;object-fit:contain!important}

/* Stretch each card within its row so edition/price lines share a baseline. */
.book-card{display:flex;flex-direction:column;min-width:0;height:100%}
.book-card .book-image,.book-card .niche{flex-shrink:0}
.book-card h3{flex:1;margin:10px 0 12px}
.book-card .price{display:block;margin-top:auto;white-space:nowrap;line-height:1.5}

/* Mobile Reading Room: fit the entire opening spread, not a cropped desktop book. */
@media(max-width:600px){
 body[data-theme=library] main{width:calc(100% - 20px)}
 body[data-theme=library] header nav a{min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
 body[data-theme=library] header nav .toplink{display:none}
 body[data-theme=library] .intro-sticky{display:flex;gap:0;padding:0;min-height:0}
 body[data-theme=library] .intro-story{height:calc(100svh + 140px);min-height:0;overflow:visible}
 body[data-theme=library] .intro-heading{padding:23px 18px 13px;top:0;margin:0;z-index:12}
 body[data-theme=library] .intro-heading h1{font-size:clamp(33px,9vw,41px);line-height:1.04;margin:10px 0 12px;letter-spacing:-.04em}
 body[data-theme=library] .intro-heading .eyebrow{font-size:12px}
 body[data-theme=library] .intro-heading p{font-size:12px;line-height:1.6;margin:0}
 body[data-theme=library] .book-stage{width:min(calc(100% - 28px),352px,calc((100svh - var(--mobile-intro-height,190px) - 142px)*1.25/1.18));max-width:none;aspect-ratio:1.25;top:calc(var(--mobile-intro-height,190px) + 44px);margin:44px auto 0;perspective:1500px}
 body[data-theme=library] .scroll-book{transform-origin:50% 50%}
 body[data-theme=library] .book-stage::after{content:'Scroll to turn the pages';position:absolute;top:calc(100% + 48px);left:0;right:0;text-align:center;font:11px/1.5 'DM Sans',Arial,sans-serif;color:var(--muted);letter-spacing:.02em;pointer-events:none}
 body[data-theme=library] .spread-page{padding:12px}
 body[data-theme=library] .spread-page h2{font-size:clamp(23px,6.5vw,30px)}
 body[data-theme=library] .spread-page p{font-size:8px;line-height:1.5}
 body[data-theme=library] .intro-showcase{padding:30px 22px 35px}
 body[data-theme=library] .intro-showcase h2{font-size:clamp(33px,8.5vw,40px);margin:12px 0 24px}
 body[data-theme=library] .intro-categories{gap:22px 14px}
 body[data-theme=library] .intro-category img{max-width:92px}
 body[data-theme=library] .intro-category span{font-size:10px;line-height:1.4}
 body[data-theme=library] .intro-browse{margin-top:24px;min-height:36px;display:inline-flex;align-items:center}
 body[data-theme=library] .skip-intro{margin:0 auto 24px;font-size:11px;min-height:36px;display:inline-flex;align-items:center}
 body[data-theme=library] .collection-welcome{padding:30px 22px 36px}
 body[data-theme=library] .collection-welcome h2{font-size:clamp(32px,8.7vw,41px);line-height:1.08}
 body[data-theme=library] .catalogue{padding:34px 20px 48px}
 body[data-theme=library] .section-head{display:flex;flex-direction:column;gap:18px;align-items:stretch}
 body[data-theme=library] .section-head>label{display:block;width:100%}
 body[data-theme=library] .section-head h2{font-size:34px}
 body[data-theme=library] .search{display:block;width:100%;min-height:44px;font-size:14px}
 body[data-theme=library] .filterbar{gap:8px;margin:22px 0}
 body[data-theme=library] .filterbar button{min-height:40px;padding:10px 13px;font-size:11px}
 body[data-theme=library] .grid{gap:32px 18px}
 body[data-theme=library] .book-card h3{font-size:15px;line-height:1.45;margin:9px 0 10px}
 body[data-theme=library] .book-card .price{font-size:11px}
 body[data-theme=library] .book-image{margin-bottom:15px}
 body[data-theme=library] .detail{padding:12px 20px 40px;gap:28px}
 body[data-theme=library] .detail-art{width:min(100%,250px);min-height:0;margin:0 auto;padding:16px;background:transparent;position:relative;top:auto}
 body[data-theme=library] .detail-art img{max-height:350px;max-width:100%;width:auto;object-fit:contain;box-shadow:8px 12px 24px #352a2326}
 body[data-theme=library] .detail h1{font-size:clamp(31px,8.5vw,40px);line-height:1.08;margin:14px 0}
 body[data-theme=library] .subtitle{font-size:17px;line-height:1.5}
 body[data-theme=library] .description{font-size:14px;line-height:1.8}
 body[data-theme=library] .format-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 body[data-theme=library] .format-options button{min-width:0;padding:12px 7px;font-size:11px}
 body[data-theme=library] .format-options strong{font-size:16px;margin-top:8px}
 body[data-theme=library] .buy-block{flex-wrap:wrap;gap:14px;margin:24px 0}
 body[data-theme=library] .about{padding:35px 22px}
 body[data-theme=library] .about img{width:94px;height:94px}
 body[data-theme=library] footer{gap:16px;line-height:1.6}
}
@media(max-width:430px){
 body[data-theme=library] .grid{grid-template-columns:minmax(0,1fr);max-width:238px;margin:0 auto;gap:34px}
 body[data-theme=library] .grid .book-image{aspect-ratio:5/8}
}
@media(max-width:350px){
 body[data-theme=library] .grid{max-width:220px}
 body[data-theme=library] .intro-categories{gap:18px 10px}
 body[data-theme=library] .intro-category img{max-width:76px}
 body[data-theme=library] .catalogue{padding-left:16px;padding-right:16px}
}
@media(max-width:600px) and (prefers-reduced-motion:reduce){
 body[data-theme=library] .intro-story{height:auto;padding-bottom:24px}
 body[data-theme=library] .intro-heading,body[data-theme=library] .book-stage{position:relative;top:auto}
 body[data-theme=library] .book-stage::after{content:none}
}

/* A stable purchase row for every selected edition. */
body[data-theme=library] .buy-block{display:grid;grid-template-columns:max-content max-content;align-items:center;gap:18px}
body[data-theme=library] .buy-block .selected-price{white-space:nowrap;line-height:1.2}
body[data-theme=library] .buy-block .btn{min-width:0;min-height:48px;white-space:nowrap}
body[data-theme=library] .arrows .circle{width:auto;min-width:46px;padding:0 12px;font-size:12px}
@media(max-width:600px){
 body[data-theme=library] .buy-block{grid-template-columns:max-content minmax(0,1fr);gap:12px}
 body[data-theme=library] .buy-block .selected-price{font-size:28px}
 body[data-theme=library] .buy-block .btn{padding:13px 12px;font-size:13px}
}

/* Legal notices share the reading-room typography without animation scripts. */
body[data-theme=library] .legal-page{max-width:860px;margin:0 auto;padding:64px 28px 80px}
body[data-theme=library] .legal-page .legal-back{display:block;margin-bottom:35px;font-size:13px;text-decoration:underline;text-underline-offset:4px}
body[data-theme=library] .legal-page h1{font-size:clamp(38px,6vw,64px);line-height:1.08;margin:18px 0}
body[data-theme=library] .legal-page .legal-intro{font-size:18px;line-height:1.65;color:var(--muted)}
body[data-theme=library] .legal-page .legal-updated{font-size:12px;color:var(--muted);margin:18px 0 36px}
body[data-theme=library] .legal-page article{font-size:15px;line-height:1.85;overflow-wrap:anywhere}
body[data-theme=library] .legal-page article h2{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:34px 0 14px}
body[data-theme=library] .legal-page article p+p{margin-top:14px}
body[data-theme=library] .legal-page article a{text-decoration:underline;text-underline-offset:3px}
body[data-theme=library] footer{flex-wrap:wrap}
body[data-theme=library] footer > *{opacity:1!important;visibility:visible!important;transform:none!important}
body[data-theme=library] footer .footer-links{flex:0 0 100%;display:flex;justify-content:center;flex-wrap:wrap;gap:10px 24px;border-top:1px solid var(--line);padding-top:18px;font-size:12px;line-height:1.6}
body[data-theme=library] footer .footer-links a{text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){body[data-theme=library] .legal-page{padding:36px 24px 50px}body[data-theme=library] .legal-page article{font-size:14px}body[data-theme=library] .legal-page article h2{font-size:26px}body[data-theme=library] footer .footer-links{width:100%;gap:12px 18px;font-size:11px}}
/* A compact, deliberate footer stack on phones. */
@media(max-width:600px){
 body[data-theme=library] footer{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(100% - 48px);margin:0 auto;padding:28px 0 calc(28px + env(safe-area-inset-bottom,0px));gap:12px;text-align:center}
 body[data-theme=library] footer .brand{justify-content:center;font-size:22px;line-height:1.25;margin:0}
 body[data-theme=library] footer .brand span{font-size:inherit}
 body[data-theme=library] footer>span{display:block;width:100%;font-size:11px;line-height:1.65}
 body[data-theme=library] footer .footer-legal{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:3px}
 body[data-theme=library] footer .footer-separator{display:none}
}
