/* Book overviews: quiet manuscript typography, direct access to the text. */
.book-page{max-width:1160px;width:100%;margin:0 auto;padding:24px 28px 72px}
.book-breadcrumb{font-size:12px;color:var(--ink-2);margin-bottom:32px;display:flex;gap:12px;flex-wrap:wrap}
.book-breadcrumb a{text-decoration:none}
.book-hero{display:grid;grid-template-columns:1fr;gap:26px;margin-bottom:26px}
.book-hero>div{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:clamp(28px,3vw,44px);row-gap:12px;align-items:center}
.book-hero>div>.book-eyebrow{grid-column:1 / -1;grid-row:1;margin:0}
.book-hero>div>h1{grid-column:1;grid-row:2;margin:0;text-wrap:balance;overflow-wrap:normal;word-break:normal}
.book-hero-intro{grid-column:2;grid-row:2;min-width:0;max-width:460px;display:flex;flex-direction:column;gap:16px}
.book-hero-intro .book-tagline,.book-hero-intro .book-deck{max-width:none;margin:0}
.book-hero-intro .book-tagline{text-wrap:balance}
.book-eyebrow{font:600 10px/1.5 var(--sans);letter-spacing:.15em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.book-hero h1{font:400 clamp(48px,5vw,68px)/1.08 var(--serif);letter-spacing:-.045em;margin:0 0 18px}
.book-tagline{font:italic 1.25rem/1.35 var(--serif);color:var(--ink-2);max-width:26ch}
.book-deck{font-size:14px;color:var(--ink-2);margin:16px 0 22px;max-width:38ch}
.book-hero figure{margin:0;min-width:0}
.book-hero img{display:block;width:100%;height:auto;border-radius:3px}
.book-hero figcaption{font-size:10px;color:var(--ink-2);margin-top:9px}
.book-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:13px}
.book-actions a{min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px}
.book-actions .book-primary{background:var(--accent);color:var(--accent-ink);padding:11px 18px;text-decoration:none;gap:20px;border-radius:3px}
.book-sequence{display:flex;gap:32px;border-block:1px solid var(--line);padding:14px 0;margin-bottom:44px;flex-wrap:wrap}
.book-sequence a{text-decoration:none;color:var(--ink-2);font-size:13px;padding:5px 0}
.book-sequence a span{font:11px var(--mono);margin-right:7px;color:var(--accent)}
.book-sequence a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:9px}
.book-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:72px}
.book-sidebar{align-self:start;position:sticky;top:24px}
.book-sidebar nav{display:grid;gap:3px}
.book-sidebar nav a{font-size:12px;color:var(--ink-2);text-decoration:none;padding:7px 0}
.book-sidebar nav a:hover{color:var(--accent);text-decoration:underline}
.book-sidebar dl{margin-top:26px;border-top:1px solid var(--line);padding-top:20px}
.book-sidebar dt{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--accent);margin-top:16px}
.book-sidebar dd{font-size:12px;line-height:1.6;margin-top:5px;color:var(--ink-2)}
.book-article{min-width:0;max-width:740px}
.book-article section{padding-bottom:36px;margin-bottom:36px;border-bottom:1px solid var(--line)}
.book-article h2{font:400 33px/1.2 var(--serif);letter-spacing:-.025em;margin:0 0 20px}
.book-article h3{font:400 23px/1.3 var(--serif);margin:26px 0 10px}
.book-article p{font-size:15px;line-height:1.85;margin-bottom:18px}
.book-article p.book-eyebrow{font-size:10px;line-height:1.5;margin-bottom:12px}
.book-article .book-summary{padding:26px 30px 30px;background:#f1ebdf;border:0;border-left:2px solid var(--accent)}
.book-summary p:not(.book-eyebrow){font:400 22px/1.65 var(--serif)}
.book-refs{font:12px/1.8 var(--sans);color:var(--ink-2)}
.book-refs a{white-space:normal;text-decoration-color:var(--line-2);text-underline-offset:3px}
.book-article .book-note{font-size:12px;line-height:1.75;color:var(--ink-2)}
.book-outline{list-style:none}
.book-outline li{border-top:1px solid var(--line)}
.book-outline a{display:grid;grid-template-columns:55px 1fr 12px;gap:18px;padding:21px 0;text-decoration:none;color:var(--ink)}
.book-outline a:hover strong{text-decoration:underline;text-underline-offset:4px;color:var(--accent)}
.book-outline strong{display:block;font:400 22px/1.3 var(--serif);margin-bottom:7px}
.book-outline a span span{display:block;font:13px/1.65 var(--sans);color:var(--ink-2)}
.book-range{color:var(--accent);font:italic 22px/1.4 var(--serif)}
.book-passage{padding:0 0 20px;border-bottom:1px solid var(--line)}
.book-passage>a{font-size:13px}
.book-passage>a.book-mem{margin-left:8px;padding:3px 10px;border:1px solid var(--line-2);border-radius:999px;font-weight:600;text-decoration:none}
.book-passage>a.book-mem:hover{border-color:var(--accent)}
.book-passage p{margin-bottom:6px}
.book-question{margin-top:25px}
.book-question summary{font:400 22px/1.4 var(--serif);cursor:pointer;padding:10px 0}
.book-background-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 22px}
.book-background-facts dt{font:600 12px/1.5 var(--sans);color:var(--ink-2);margin-bottom:5px}
.book-background-facts dd{margin:0;font:16px/1.65 var(--sans)}
.book-background-details{border-block:1px solid var(--line);padding:14px 0}
.book-background-details summary{font:400 22px/1.4 var(--serif);cursor:pointer}
.book-background-details[open] summary{margin-bottom:20px}
.book-summary .book-edition-note{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.book-summary .book-edition-note strong{font:600 14px/1.6 var(--sans)}
.book-article .book-summary .book-edition-note p{font:15px/1.7 var(--sans);margin:7px 0 0}
@media(max-width:600px){.book-background-facts{grid-template-columns:1fr;gap:14px}}
.book-question p{padding-top:15px}
.book-chapters{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px}
.book-chapters a{min-height:44px;display:grid;place-items:center;border:1px solid var(--line);text-decoration:none;font-size:13px;border-radius:2px}
.book-chapters a:hover{background:var(--card-2);border-color:var(--accent)}
.book-sources ol{padding-left:22px;font-size:12px;line-height:1.9}
.book-sources li{padding:0 0 16px 5px;overflow-wrap:anywhere}
.citation{font:12px var(--sans);vertical-align:super;text-decoration:none}
.book-next{display:flex;justify-content:space-between;gap:22px;flex-wrap:wrap;font-size:13px}
.book-next span{color:var(--ink-2)}
@media(max-width:760px){.book-page{padding:22px 22px 48px}.book-hero{grid-template-columns:1fr;gap:25px}.book-hero img{height:auto}.book-hero h1{font-size:clamp(40px,14.8vw,62px)}.book-tagline{font-size:1.25rem;max-width:none}.book-deck{max-width:none}.book-layout{grid-template-columns:1fr;gap:28px}.book-sidebar{position:static}.book-sidebar nav{display:flex;gap:5px 17px;flex-wrap:wrap}.book-sidebar nav a{min-height:34px}.book-sidebar dl{display:none}.book-sequence{gap:20px;margin-bottom:26px}.book-article h2{font-size:29px}.book-article .book-summary{padding:22px}.book-summary p:not(.book-eyebrow){font-size:21px}.book-outline a{grid-template-columns:44px 1fr 12px;gap:10px}.book-outline strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.book-view-nav{display:flex;gap:28px;flex-wrap:wrap;border-top:1px solid var(--line);padding:14px 0}
.book-view-nav a{font-size:13px;color:var(--ink-2);text-decoration:none;padding:8px 0}
.book-view-nav a[aria-current]{color:var(--accent);text-decoration:underline;text-underline-offset:8px}
.book-view-nav+.book-sequence{border-top:0}

@media(max-width:1000px){.book-hero>div{display:block}.book-hero>div>.book-eyebrow{margin-bottom:12px}.book-hero>div>h1{margin-bottom:18px}.book-hero-intro{max-width:580px}.book-hero{gap:22px}}
@media(max-width:760px){.book-hero h1{font-size:clamp(32px,10vw,62px)}}

/* A bounded book picker keeps the navigation compact as the collection grows. */
.book-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-block:1px solid var(--line);padding:12px 0;margin-bottom:36px}
.book-toolbar .book-view-nav{border:0;padding:0}
.book-switcher{position:relative;min-width:240px;max-width:100%}
.book-switcher summary{list-style:none;cursor:pointer;position:relative;padding:8px 32px 8px 12px;border:1px solid var(--line);border-radius:3px}
.book-switcher summary::-webkit-details-marker{display:none}
.book-switcher summary>span{display:block;font:10px/1.5 var(--sans);color:var(--ink-2)}
.book-switcher summary strong{display:block;font:400 14px/1.6 var(--sans);color:var(--accent)}
.book-switcher summary::after{content:'';position:absolute;right:14px;top:24px;width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
.book-switcher[open] summary::after{transform:rotate(225deg);top:28px}
.book-switcher-panel{position:absolute;right:0;top:calc(100% + 8px);width:320px;max-width:calc(100vw - 44px);z-index:20;padding:12px;background:var(--bg,#faf7f1);border:1px solid var(--line);border-radius:4px;box-shadow:0 10px 24px #30261914}
.book-switcher-search{display:block;font:11px/1.5 var(--sans);color:var(--ink-2);margin-bottom:8px}
.book-switcher-search input{display:block;box-sizing:border-box;width:100%;min-height:42px;margin-top:5px;padding:9px 10px;border:1px solid var(--line);border-radius:2px;background:transparent;color:var(--ink);font:14px var(--sans)}
.book-switcher-search select{display:block;box-sizing:border-box;width:100%;min-height:42px;margin-top:5px;padding:9px 10px;border:1px solid var(--line);border-radius:2px;background:var(--bg);color:var(--ink);font:14px var(--sans)}
.book-switcher .book-sequence{display:block;max-height:300px;max-height:min(300px,45vh);overflow-y:auto;overscroll-behavior:contain;border:0;padding:0;margin:0}
.book-switcher .book-sequence a{display:flex;align-items:center;min-height:44px;padding:8px 10px;box-sizing:border-box;border-radius:2px;font-size:13px}
.book-switcher .book-sequence a:hover,.book-switcher .book-sequence a[aria-current]{background:#eee6d8;text-decoration:none;color:var(--accent)}
.book-switcher :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.book-switcher-empty{font-size:13px;padding:14px 10px;color:var(--ink-2)}
.book-switcher [hidden]{display:none!important}
@media(max-width:600px){.book-toolbar{align-items:stretch;flex-direction:column;gap:12px;margin-bottom:26px}.book-switcher{width:100%;min-width:0}.book-switcher-panel{width:100%;max-width:100%;box-sizing:border-box}.book-toolbar .book-view-nav{gap:24px}}
