/* Shared by the two workbook product pages. The site stylesheet owns the masthead and footer. */
.wb-main{--ink:#18252e;--sub:#475862;--paper:#fcfaf5;--line:#d3d4ce;--brand:#742541;--tint:#ead1d1;--wash:#f4e8e6;--btn:#742541;--on-btn:white;--serif:"Bodoni Moda",Georgia,serif;--sans:Inter,system-ui,sans-serif;background:var(--paper);color:var(--ink);font:400 1rem/1.58 var(--sans);padding-top:var(--header-h,72px);overflow-wrap:break-word}
.wb-main[data-book="calculations"]{--brand:#0d504b;--tint:#b7d6c7;--wash:#e3eee8;--btn:#0d504b}
[data-theme="dark"] .wb-main{--ink:#f7f4ed;--sub:#c5d1d6;--paper:#10212b;--line:#344955;--wash:#2a2530;--tint:#614652;--brand:#f0b7c5;--btn:#e2a2b3;--on-btn:#29131c}
[data-theme="dark"] .wb-main[data-book="calculations"]{--brand:#a7dec4;--tint:#31544c;--wash:#1d3532;--btn:#a7dec4;--on-btn:#0a2821}
.wb-main *{box-sizing:border-box}.wb-wrap{width:min(100% - clamp(2rem,8vw,8rem),70rem);margin-inline:auto}
.wb-main :where(h1,h2,h3,p,figure,ul,ol,dl,dd){margin:0}
.wb-main :where(h1,h2){font-family:var(--serif);color:var(--ink);letter-spacing:-.045em;line-height:1.08}
.wb-main h1{font-size:clamp(3.3rem,6.4vw,5.8rem);font-weight:650;max-width:12em}
.wb-main h2{font-size:clamp(2.1rem,4vw,3.5rem);font-weight:620}
.wb-main h3{font-family:var(--sans);font-weight:670;font-size:1.08rem;letter-spacing:-.022em;color:var(--ink);line-height:1.35}
.wb-main button{font-family:var(--sans);cursor:pointer}
.wb-main a{color:var(--brand);text-decoration:underline;text-underline-offset:.19em}
.wb-main a:hover{text-decoration-thickness:2px}
.wb-main :focus-visible,.wb-skip:focus-visible{outline:3px solid #c86b00;outline-offset:4px}
.wb-main [id]{scroll-margin-top:calc(var(--header-h,72px) + 1rem)}
.wb-skip{position:fixed;top:4px;left:8px;transform:translateY(-160%);z-index:12000;background:#fff;color:#10212b;padding:.6rem 1rem}
.wb-skip:focus{transform:none}
.wb-hero{border-bottom:1px solid var(--line);padding:0 0 clamp(2.5rem,4.6vw,4.25rem)}
.wb-crumbs{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;padding:1.05rem 0 1.25rem;margin:0;color:var(--sub);font-size:.82rem}
.wb-crumbs a{color:var(--sub);padding:.38rem 0}
.wb-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(13rem,.75fr);grid-template-areas:"head art" "meta art";column-gap:clamp(2rem,6vw,6rem);align-items:center}
.wb-hero-heading{grid-area:head;align-self:end}.wb-hero-more{grid-area:meta;align-self:start}
.wb-edition{color:var(--brand);font-size:.78rem;font-weight:700;letter-spacing:.085em;text-transform:uppercase;margin-bottom:.72rem}
.wb-subtitle{color:var(--sub);max-width:35rem;font-size:clamp(1.05rem,1.9vw,1.42rem);line-height:1.42;margin-top:.85rem}
.wb-byline{margin-top:1.05rem;font-size:.89rem}.wb-byline a{color:inherit}
.wb-facts{display:flex;list-style:none;flex-wrap:wrap;gap:.45rem 0;padding:0;margin:1.3rem 0}
.wb-facts li{font-size:.91rem;font-weight:650}.wb-facts li+li::before{content:"·";margin:0 .67rem;color:var(--sub)}
.wb-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.wb-main .wb-button,.wb-main .wb-icon-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:6px;min-height:46px;padding:.65rem 1.1rem;border:1px solid var(--brand);font-family:var(--sans);font-weight:680;text-decoration:none;line-height:1.25;text-align:center;font-size:.98rem}
.wb-button.wb-primary{color:var(--on-btn);background:var(--btn);border-color:var(--btn)}
.wb-button.wb-secondary{color:var(--brand);background:transparent}
.wb-main .wb-button:hover{filter:brightness(.94)}
.wb-note{color:var(--sub);font-size:.85rem;line-height:1.5;max-width:38rem;margin:.8rem 0 0}
.wb-cover-stage{grid-area:art;justify-self:end;width:100%;aspect-ratio:1/1.07;background:var(--wash);border:1px solid var(--line);border-radius:6px;display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden}
.wb-cover-stage::before{content:"";position:absolute;inset:auto 0 0;height:26%;background:var(--tint);z-index:-1}
.wb-cover-stage img{width:57%;height:auto;display:block;box-shadow:.35rem .85rem 1.1rem #0a1e262d}
.wb-section{padding:clamp(2.5rem,5vw,4.75rem) 0;border-bottom:1px solid var(--line)}
.wb-section-head{display:flex;justify-content:space-between;align-items:end;gap:1.5rem;flex-wrap:wrap}
.wb-section-head p{color:var(--sub);margin-top:.55rem;max-width:40rem}
.wb-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.65rem,2vw,1.3rem);list-style:none;padding:0;margin:1.5rem 0 0}
.wb-gallery a{display:block;text-decoration:none;color:var(--ink)}
.wb-gallery a:hover .wb-tile-title{text-decoration:underline}
.wb-gallery-frame{display:grid;place-items:center;aspect-ratio:4/4.15;padding:8%;border:1px solid var(--line);border-radius:4px;background:var(--wash);overflow:hidden}
.wb-gallery-frame img{display:block;width:auto;height:100%;max-width:100%;object-fit:contain;box-shadow:0 3px 10px #15252b21}
.wb-tile-title{display:block;font-weight:680;font-size:.99rem;line-height:1.4;margin:.6rem 0 0}
.wb-extract{margin-top:1.5rem;border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:3px;padding:.15rem .9rem}
.wb-main summary{cursor:pointer;font-weight:650;min-height:46px;line-height:1.45;padding:.75rem .15rem}
.wb-extract p{max-width:70ch;margin:0 0 .75rem;color:var(--sub)}
.wb-spread{display:grid;grid-template-columns:1fr 1.45fr;gap:clamp(2rem,7vw,7rem);align-items:start}
.wb-spread-intro p{color:var(--sub);margin:.9rem 0 0;max-width:40ch}
.wb-chapters{list-style:none;padding:0;border-top:1px solid var(--line)}
.wb-chapters li{padding:1rem 0;border-bottom:1px solid var(--line)}.wb-chapters li p{margin:.25rem 0 0;color:var(--sub)}
.wb-help{padding:clamp(2.5rem,5vw,4rem) 0}.wb-help .wb-spread+.wb-spread{margin-top:2rem}
.wb-faq{border-top:1px solid var(--line)}.wb-faq details{border-bottom:1px solid var(--line)}.wb-faq details p{margin:0 0 1rem;color:var(--sub)}
.wb-purchase{background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:2.2rem 0}
.wb-purchase .wb-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.wb-purchase h2{font-size:clamp(1.8rem,3.2vw,2.65rem)}
.wb-purchase p{margin:.5rem 0 0;color:var(--sub)}
.wb-related{padding:1.65rem 0 2.1rem}
.wb-related .wb-wrap{display:flex;align-items:center;gap:.75rem 1.3rem;flex-wrap:wrap}
.wb-related a{padding:.45rem 0}
.wb-main .wb-viewer:not([open]){display:none}
.wb-viewer{position:fixed;inset:0;width:min(96vw,65rem);height:min(90vh,75rem);height:min(90dvh,75rem);max-width:96vw;max-height:95dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:0 10px 46px #0004}
.wb-viewer[open]{display:flex;flex-direction:column}
.wb-viewer::backdrop{background:#06141bdd}
.wb-viewer-head,.wb-viewer-foot{display:flex;align-items:center;justify-content:space-between;gap:.45rem;min-width:0;flex:none;padding:.5rem 1rem;border-bottom:1px solid var(--line)}
.wb-viewer-foot{border-bottom:0;border-top:1px solid var(--line);font-size:.88rem}
.wb-viewer-foot button:disabled{opacity:.4;cursor:default}
.wb-main .wb-icon-btn{background:transparent;color:var(--brand);padding:.4rem .7rem;min-height:44px;font-size:.9rem}
.wb-viewer-page{overflow:auto;flex:1;min-height:0;background:var(--wash);padding:.65rem}
.wb-viewer-page img{display:block;height:auto;max-width:none;margin:auto;width:min(100%,52rem)}
.wb-viewer-page[data-zoom="true"] img{width:82rem;margin:0 auto}
.wb-viewer-actions{display:flex;gap:.4rem;align-items:center}
.wb-viewer-foot a{font-weight:600}
@media(max-width:700px){
 .wb-wrap{width:calc(100% - 2.2rem)}
 .wb-crumbs{padding:.65rem 0 1rem;font-size:.78rem}
 .wb-hero-grid{grid-template-columns:minmax(0,1fr) clamp(5.7rem,22vw,9rem);grid-template-areas:"head art" "meta meta";gap:1rem .8rem}
 .wb-cover-stage{align-self:center;border:0;border-radius:2px;background:transparent;aspect-ratio:2/3}
 .wb-cover-stage::before{display:none}.wb-cover-stage img{width:100%;box-shadow:none}
 .wb-hero-heading{align-self:center}.wb-main h1{font-size:clamp(2.15rem,7.7vw,3.5rem)}
 .wb-edition{font-size:.67rem;letter-spacing:.05em;margin-bottom:.45rem}
 .wb-subtitle{font-size:.94rem;line-height:1.34;margin-top:.5rem}
 .wb-byline{margin-top:0}.wb-facts{margin:.65rem 0 .9rem}
 .wb-hero{padding-bottom:1.8rem}.wb-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wb-spread{grid-template-columns:minmax(0,1fr);gap:1.4rem}
 .wb-section-head{gap:1rem}.wb-viewer{width:98vw;max-width:98vw}
 .wb-viewer-head,.wb-viewer-foot{padding:.4rem .5rem}.wb-viewer-head h3{font-size:.9rem}.wb-viewer-page{padding:.35rem}
}
@media(max-width:390px){.wb-viewer-head{flex-wrap:wrap}.wb-viewer-actions{margin-left:auto}.wb-main .wb-button{padding:.65rem .85rem}}
@media print{.wb-main{padding:0}.header,.site-footer,.wb-skip,.wb-purchase,.wb-preview-dialog,.wb-viewer,.wb-actions,.wb-note,.wb-related{display:none!important}.wb-section{break-inside:avoid}}
