.guide-back{font-size:12px}
.guide-layout{max-width:1450px;margin:auto;display:grid;grid-template-columns:290px minmax(0,1fr);gap:6vw;padding:55px 5vw 85px}
.chapter-menu{position:sticky;top:24px;align-self:start;max-height:calc(100vh - 48px);overflow:auto;padding-right:15px}
.chapter-menu summary{font-size:14px;cursor:pointer;font-weight:bold;padding:0 0 18px;border-bottom:1px solid var(--line)}
#chapter-nav{display:grid}
#chapter-nav a{padding:11px 10px;font-size:12px;line-height:1.5;border-bottom:1px solid var(--line)}
#chapter-nav a[aria-current="page"]{background:var(--dark);color:var(--paper)}
.chapter{min-width:0;max-width:880px}
.chapter h1{font-size:clamp(34px,3.7vw,56px);line-height:1.14;margin:0 0 35px;overflow-wrap:break-word}
.chapter .eyebrow{color:var(--muted);margin-bottom:16px}
.chapter-body{font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.chapter-body p{margin:0 0 25px}
.chapter-body h2{font-size:32px;margin:35px 0 20px}
.chapter-body h3{font-size:24px;line-height:1.3}
.chapter-body a,.chapter-source a{border-bottom:1px solid currentColor}
.chapter-body img{display:block;max-width:100%;height:auto;margin:22px auto}
.chapter-body>img{max-height:800px;object-fit:contain}
.chapter-body ul,.chapter-body ol{padding-left:25px}
.chapter-body li{margin:9px 0}
.chapter-body table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}
.chapter-body th,.chapter-body td{padding:10px;border:1px solid var(--line)}
.chapter-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:30px 0 38px}
.chapter-gallery figure{margin:0;min-width:0}
.chapter-gallery a{display:block;border:0;background:#e7e3d9}
.chapter-gallery img{width:100%;aspect-ratio:4/3;object-fit:contain;margin:0}
.chapter-gallery figcaption{font-size:11px;color:var(--muted);padding-top:9px;line-height:1.6}
.chapter-source{margin:45px 0 30px;font-size:11px;color:var(--muted)}
.chapter-pagination{display:flex;justify-content:space-between;gap:25px;border-top:1px solid var(--line);padding-top:24px;font-size:12px}
.chapter-pagination a{max-width:46%;border-bottom:1px solid currentColor}
.chapter-pagination a:last-child{text-align:right;margin-left:auto}
.chapter-pagination a[hidden]{display:none}
#guide-viewer-image{display:block;width:100%;max-height:76vh;object-fit:contain}
@media(max-width:950px){.guide-layout{grid-template-columns:220px minmax(0,1fr);gap:35px}.chapter-body{font-size:14px}.chapter-gallery{gap:12px}}
@media(max-width:650px){.header .guide-back{order:3;width:100%;padding-top:14px;border-top:1px solid var(--line)}.guide-layout{display:block;padding:30px 6vw 55px}.chapter-menu{position:static;max-height:none;padding:0;margin-bottom:35px}.chapter-menu nav{max-height:300px;overflow:auto}.chapter-menu summary{padding:12px;background:#e6e1d6}.chapter h1{font-size:37px}.chapter-gallery{grid-template-columns:1fr;gap:22px}.chapter-body{line-height:1.85}.chapter-pagination{font-size:11px}.chapter .eyebrow{font-size:9px}}
