/* Presentation-first sizing; the cover is never cropped or masked. */
body{font-size:clamp(18px,1.25vw,24px);line-height:1.7}
body>header,main,body>footer{width:94%;max-width:1680px;padding:32px 0}
.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(24px,4vw,72px);min-height:0;padding:48px 36px;margin-top:24px;border:1px solid #dae1eb;border-radius:20px;background:linear-gradient(115deg,#fff,#edf2fa)}
.hero-content{max-width:none;min-width:0;grid-column:1;grid-row:1}
.hero-art{position:static;z-index:auto;grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;opacity:1;mask-image:none;-webkit-mask-image:none;border-radius:12px;box-shadow:0 12px 36px #23355518}
.hero h1,html[lang="en"] .hero h1{font-size:clamp(36px,3.3vw,62px);line-height:1.16;max-width:none;letter-spacing:-.025em}
.hero-subtitle{display:block;font-size:.48em;line-height:1.45;margin-top:18px}.hero h1>br{display:none}
.hero .lead{max-width:none;font-size:clamp(14px,1.05vw,19px);margin-top:20px}
.presenters-label{font-size:15px}.presenter-names{max-width:none;font-size:clamp(16px,1.15vw,21px);gap:8px 20px}.presenters{margin-top:24px}
.toolbar button{font-size:16px;min-height:44px;padding:8px 14px}.toolbar{margin-top:26px}.toolbar #present-start{background:#2f4e81;color:#fff;border-color:#2f4e81}.toolbar #language-toggle{background:#fff;color:#2f4e81}
.layout{grid-template-columns:clamp(210px,16vw,270px) minmax(0,1fr);gap:clamp(24px,3vw,56px)}
nav,html[lang="en"] nav{font-size:clamp(14px,1vw,18px);max-height:calc(100dvh - 48px);overflow:auto}nav a{padding:12px 7px;line-height:1.5}nav span,html[lang="en"] nav span{width:30px}
section.chapter{padding:clamp(26px,2.6vw,48px);margin-bottom:32px;scroll-margin-top:24px}
h2{font-size:clamp(28px,2.3vw,42px);line-height:1.3}h3{font-size:clamp(22px,1.6vw,30px)}
.thesis{font-size:clamp(22px,1.6vw,30px);line-height:1.5;margin:16px 0 28px}.meta{font-size:15px;margin-bottom:20px}.meta>span:first-child{font-size:18px;padding:4px 13px}
.box{padding:24px}.two{gap:24px}table{font-size:clamp(17px,1.15vw,22px)}th,td{padding:16px;line-height:1.6}td:first-child{width:28%}.flow b{font-size:clamp(17px,1.15vw,22px);padding:12px 16px}.flow{gap:12px;margin:24px 0}.small{font-size:clamp(15px,1vw,18px);line-height:1.6}.end{font-size:clamp(26px,2vw,38px)}
.prep-notes{background:transparent;border:0;border-top:1px solid #cdd8e4;border-radius:0;padding:14px 0 0;margin-top:22px;font-size:16px}.prep-notes summary{font-weight:400;color:#687589}.prep-notes p{margin-top:12px}.diagram{max-height:75vh;min-height:280px}
.present-dock{display:none}body.presenting{padding-bottom:90px}body.presenting .hero,body.presenting .chapter{display:none}body.presenting .hero.current-slide{display:grid;min-height:calc(100dvh - 135px)}body.presenting .chapter.current-slide{display:block;min-height:calc(100dvh - 135px);margin:0}
body.presenting main{max-width:1600px;padding:24px 0}body.presenting .layout{display:block}body.presenting nav,body.presenting>footer,body.presenting .reading-summary,body.presenting .prep-notes,body.presenting .meta>span:last-child,body.presenting .hero .toolbar{display:none}body.presenting .detail{display:block}
body.presenting .hero:not(.current-slide)+main{padding-top:24px}body.presenting .hero.current-slide+main{display:none}
body.presenting .present-dock{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #cdd6e5;border-radius:12px;padding:9px 14px;box-shadow:0 6px 24px #24395420;z-index:10;max-width:96vw}
.present-dock button{background:#f2f5fa;border:1px solid #d2dceb;border-radius:7px;padding:8px 14px;color:#263c61;font-size:16px;white-space:nowrap}.present-dock button:disabled{opacity:.4;cursor:default}.present-dock output{font-size:16px;min-width:55px;text-align:center}.present-dock button:focus-visible{outline:3px solid #5274b0}
@media(min-width:1500px){body.presenting{font-size:26px}body.presenting .thesis{font-size:32px}body.presenting table{font-size:24px}}
@media(max-width:1100px){.layout{display:block}nav{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:24px;max-height:none}nav a{border:0;font-size:14px}.hero{padding:28px;gap:24px}.hero h1,html[lang="en"] .hero h1{font-size:36px}.presenter-names{font-size:16px}.toolbar{gap:6px}}
@media(max-width:700px){body{font-size:18px}body>header,main,body>footer{width:calc(100% - 24px)}.hero{grid-template-columns:1fr;padding:24px;margin-top:12px;gap:24px}.hero-content{grid-column:1;grid-row:1}.hero-art{grid-column:1;grid-row:2;opacity:1;width:100%;mask-image:none;-webkit-mask-image:none}.hero h1,html[lang="en"] .hero h1{font-size:36px}.hero-subtitle{font-size:21px}.hero .lead{font-size:14px}.presenter-names{gap:8px 16px}.toolbar button{font-size:14px;padding:8px 10px}.layout{display:block}nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:4px}nav a{white-space:normal;padding:8px 4px}section.chapter{padding:24px 18px;margin-bottom:22px}h2{font-size:28px}.thesis{font-size:22px}.two{grid-template-columns:1fr}.box{padding:18px}th,td{padding:12px 10px}table{font-size:16px}.flow b{font-size:17px}.flow{gap:8px}.small{font-size:15px}.diagram{min-height:0;max-height:none}.present-dock{gap:5px!important;padding:8px!important;bottom:8px!important}.present-dock button{font-size:13px;padding:8px}.present-dock output{min-width:42px;font-size:14px}body.presenting .hero.current-slide{min-height:0}body.presenting .chapter.current-slide{min-height:calc(100dvh - 120px)}}
@media print{body{font-size:11pt;padding-bottom:0!important}body>header,main,body>footer{width:100%;max-width:none}.hero{min-height:0!important;margin:0;padding:16px}.hero-art{opacity:1}.hero h1,html[lang="en"] .hero h1{font-size:28pt}body.presenting .hero{display:grid!important}body.presenting main,body.presenting .hero.current-slide+main{display:block!important}body.presenting .chapter{display:block!important;min-height:0!important;margin-bottom:16px}.toolbar,.present-dock{display:none!important}.diagram{max-height:none}.prep-notes{display:none}table{font-size:10pt}h2{font-size:20pt}.thesis{font-size:14pt}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
