/* The book inherits the SAFEHOMO shell; these rules affect its editorial surface. */
.safe-whitepaper { --book-navy:#263f52; --book-copper:#9a7d59; }
.safe-whitepaper .book-nav { margin-bottom:0; }
.book-detail { max-width:1180px; margin:0 auto; padding:0 36px; }
.book-profile { display:grid; grid-template-columns:330px minmax(0,1fr); gap:66px; padding:54px 0 52px; align-items:center; }
.book-cover-stage { display:flex; align-items:center; justify-content:center; min-height:430px; background:#eeeff0; border:1px solid #e5e7e8; }
.book-cover-wrap { position:relative; width:244px; flex:none; }
.book-cover-image { width:100%; height:auto; display:block; transform:perspective(1300px) rotateY(-5deg); box-shadow:10px 14px 19px -8px #16253445,1px 1px 2px #23394b60; border-radius:1px 3px 3px 1px; }
.book-description { min-width:0; }
.book-kicker { color:var(--muted); font-size:11px; letter-spacing:.12em; font-weight:600; }
.book-description h1 { margin:14px 0 3px; font-size:clamp(29px,3.2vw,40px); line-height:1.5; letter-spacing:0; color:var(--secondary-color); font-weight:600; }
.book-period-label { font-family:var(--titillium); font-size:25px; letter-spacing:.07em; color:var(--book-copper); }
.book-description .book-deck { margin:13px 0 24px; font-size:16px; color:var(--muted); line-height:1.8; }
.book-metadata { display:grid; grid-template-columns:1fr 1.5fr; margin:0; gap:8px 30px; padding:19px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:13px; line-height:1.8; }
.book-metadata>div { display:flex; gap:18px; }
.book-metadata dt { color:var(--muted); font-weight:400; min-width:4em; }
.book-metadata dd { margin:0; color:var(--ink); }
.book-description .book-introduction { margin-top:24px; font-size:15px; line-height:1.95; color:var(--muted); }
.book-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:25px; align-items:center; }
.book-access-badge { position:absolute; top:-17px; right:-20px; width:78px; height:78px; display:grid; place-items:center; color:#62400f; text-align:center; transform:rotate(10deg); filter:drop-shadow(1px 3px 3px #10233040); }
.book-access-badge::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,#f8e8b0 0%,#eac76f 28%,#d5a340 53%,#f1d78e 76%,#bf8b2e 100%); clip-path:polygon(50.00% 0.00%,55.87% 5.38%,62.94% 1.70%,67.22% 8.43%,75.00% 6.70%,77.39% 14.30%,85.36% 14.64%,85.70% 22.61%,93.30% 25.00%,91.57% 32.78%,98.30% 37.06%,94.62% 44.13%,100.00% 50.00%,94.62% 55.87%,98.30% 62.94%,91.57% 67.22%,93.30% 75.00%,85.70% 77.39%,85.36% 85.36%,77.39% 85.70%,75.00% 93.30%,67.22% 91.57%,62.94% 98.30%,55.87% 94.62%,50.00% 100.00%,44.13% 94.62%,37.06% 98.30%,32.78% 91.57%,25.00% 93.30%,22.61% 85.70%,14.64% 85.36%,14.30% 77.39%,6.70% 75.00%,8.43% 67.22%,1.70% 62.94%,5.38% 55.87%,0.00% 50.00%,5.38% 44.13%,1.70% 37.06%,8.43% 32.78%,6.70% 25.00%,14.30% 22.61%,14.64% 14.64%,22.61% 14.30%,25.00% 6.70%,32.78% 8.43%,37.06% 1.70%,44.13% 5.38%); }
.book-access-badge::after { content:""; position:absolute; inset:8px; border:1px solid #9f722780; border-radius:50%; box-shadow:inset 0 0 0 2px #f9e8b075; }
.book-access-badge>span { position:relative; z-index:1; font-size:11px; line-height:1.5; letter-spacing:.16em; padding-left:.16em; font-weight:600; text-shadow:0 1px #fff0c580; }
.book-access-badge strong { display:block; font-size:18px; line-height:1.3; letter-spacing:.07em; }
.book-actions a { text-decoration:none; padding:11px 25px; font-size:14px; line-height:1.5; border-radius:3px; }
.book-actions .book-primary { background:var(--book-navy); color:white; border:1px solid var(--book-navy); display:flex; gap:30px; justify-content:space-between; min-width:164px; }
.book-actions .book-primary:hover { background:#3b566a; }
.book-actions .book-secondary { border:1px solid var(--line); background:var(--paper); }
.book-about { display:grid; grid-template-columns:160px 1fr; gap:34px; padding:34px 0 40px; border-top:1px solid var(--line); }
.book-detail h2 { font-size:22px; color:var(--secondary-color); font-weight:600; }
.book-about p { font-size:15px; line-height:2; color:var(--muted); }
.book-directory { padding:36px 0; border-top:1px solid var(--line); scroll-margin-top:24px; }
.book-section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.book-section-heading>span { color:var(--muted); font-size:12px; }
.book-directory-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px 58px; align-items:start; }
.book-directory-group { break-inside:avoid; }
.book-directory-group h3 { color:var(--book-copper); font-size:13px; font-weight:600; letter-spacing:.04em; padding:12px 0; border-bottom:1px solid var(--line); }
.book-directory-group ol { list-style:none; margin:6px 0 0; padding:0; }
.book-directory-group li a { display:flex; gap:18px; align-items:baseline; padding:11px 0; font-size:15px; line-height:1.8; color:var(--ink); text-decoration:none; }
.book-directory-group li a:hover { color:var(--accent); text-decoration:underline; }
.book-directory-group li span { flex:none; font-family:var(--titillium); font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.book-supplements { display:grid; grid-template-columns:160px 1fr; gap:34px; border-top:1px solid var(--line); padding:30px 0 8px; }
.book-supplements>div { display:flex; flex-wrap:wrap; gap:12px 36px; align-items:center; }
.book-supplements a { font-size:14px; text-decoration:none; }
.book-supplements a span { padding-left:10px; }

.book-reader { display:grid; grid-template-columns:230px minmax(0,830px); gap:54px; max-width:1230px; padding:35px 32px 0; margin:0 auto; align-items:start; }
.book-reader-sidebar { position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; scrollbar-width:thin; padding-right:17px; overscroll-behavior:contain; }
.book-back-link { display:block; font-size:12px; text-decoration:none; padding:0 0 22px; }
.book-navigation-block { border-top:1px solid var(--line); margin-top:4px; }
.book-navigation-block>summary { font-size:12px; font-weight:600; color:var(--secondary-color); padding:15px 0; }
.book-navigation-block nav { padding-bottom:14px; font-size:12px; line-height:1.8; }
.book-navigation-block nav a { display:block; color:var(--muted); text-decoration:none; padding:7px 0; overflow-wrap:anywhere; }
.book-navigation-block nav a:hover,.book-navigation-block nav a.is-active { color:var(--secondary-color); }
.book-navigation-block nav a.is-active { font-weight:600; }
.book-toc-section { margin:0; }
.book-toc-section>summary { display:flex; align-items:baseline; gap:6px; list-style:none; }
.book-toc-section>summary::-webkit-details-marker { display:none; }
.book-toc-section>summary:before { content:'›'; flex:none; color:var(--muted); width:8px; }
.book-toc-section[open]>summary:before { transform:rotate(90deg); }
.book-toc-section>div { border-left:1px solid var(--line); padding-left:12px; margin:1px 0 9px 3px; }
.book-toc-section>div a { font-size:11px; }
.book-toc-part>summary { padding:8px 0; color:var(--ink); font-size:12px; }
.book-toc-part a { display:flex!important; gap:9px; }
.book-toc-part a span { font-size:11px; flex:none; }
.book-toc-part a[aria-current] { font-weight:600; color:var(--secondary-color); }
.book-manuscript { min-width:0; background:var(--paper); padding:34px 44px 38px; border:1px solid var(--line); }
.book-running-head { display:flex; justify-content:space-between; gap:20px; font-size:10px; line-height:1.8; letter-spacing:.03em; color:var(--muted); }
.book-running-head a { color:var(--muted); text-decoration:none; }
.book-running-head a span { padding-left:8px; }
.book-running-head>span { flex:none; }
.book-chapter-header { padding:32px 0 25px; border-bottom:1px solid var(--line); margin-bottom:22px; }
.book-chapter-header>p { font-size:12px; color:var(--book-copper); line-height:1.8; }
.book-chapter-header h1 { font-size:30px; font-weight:600; line-height:1.55; color:var(--secondary-color); margin:12px 0 0; letter-spacing:0; }
.book-chapter-body { font-size:16px; line-height:2; color:var(--ink); overflow-wrap:anywhere; }
.book-chapter-body p { font-size:inherit; line-height:inherit; margin:0 0 22px; }
.book-chapter-body h2 { font-size:23px; line-height:1.65; font-weight:600; margin:43px 0 23px; color:var(--secondary-color); scroll-margin-top:30px; }
.book-chapter-body h3 { font-size:19px; line-height:1.7; font-weight:600; margin:30px 0 18px; color:var(--secondary-color); scroll-margin-top:30px; }
.book-chapter-body h4 { font-size:16px; font-weight:600; line-height:1.9; margin:24px 0 14px; scroll-margin-top:30px; }
.book-chapter-body strong { font-weight:600; }
.book-chapter-body ul,.book-chapter-body ol { margin:10px 0 25px; padding-left:1.6em; }
.book-chapter-body li { padding-left:4px; margin:8px 0; }
.book-chapter-body li>p { margin-bottom:8px; }
.book-chapter-body blockquote { margin:25px 0; padding:5px 0 5px 20px; border-left:2px solid #a0acb4; color:var(--muted); }
.book-chapter-body pre { background:var(--wash); border:1px solid var(--line); padding:20px; overflow-x:auto; white-space:pre; font-size:13px; line-height:1.8; tab-size:2; }
.book-chapter-body code { font-size:.88em; }
.book-chapter-body hr { margin:30px 0; border:0; border-top:1px solid var(--line); }
.book-chapter-body .chapter-colophon p { font-size:11px; color:var(--muted); line-height:1.9; margin:0 0 8px; }
.chapter-colophon+.book-block:not(.chapter-colophon) { margin-top:28px; }
.book-citation { font-size:.82em; text-decoration:none; color:var(--accent); font-variant-numeric:tabular-nums; }
.book-table { max-width:100%; overflow-x:auto; margin:26px 0 30px; border:1px solid var(--line); scrollbar-width:thin; overscroll-behavior-x:contain; }
.book-table:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.book-table table { width:100%; min-width:560px; border-collapse:collapse; font-size:13px; line-height:1.85; table-layout:auto; }
.book-table th { background:#f1f3f4; color:var(--secondary-color); font-weight:600; text-align:left; vertical-align:top; }
.book-table th,.book-table td { border-bottom:1px solid var(--line); border-right:1px solid var(--line); padding:12px 13px; min-width:95px; max-width:360px; overflow-wrap:anywhere; vertical-align:top; }
.book-table th:last-child,.book-table td:last-child { border-right:0; }
.book-table tbody tr:last-child td { border-bottom:0; }
.book-table td:first-child { color:var(--secondary-color); }
.book-chapter-body .chapter-reference { font-size:13px; line-height:1.9; scroll-margin-top:30px; }
.chapter-reference p { margin-bottom:18px; }
.chapter-reference h3 { font-size:15px; }
.chapter-reference a:not(.book-citation) { overflow-wrap:anywhere; }
.chapter-reference:target { background:#f5f0e8; outline:10px solid #f5f0e8; }
.book-pagination { display:grid; grid-template-columns:1fr 1fr; gap:25px; padding-top:25px; margin-top:45px; border-top:1px solid var(--line); }
.book-pagination a { font-size:13px; line-height:1.85; text-decoration:none; }
.book-pagination small { font-size:11px; display:block; color:var(--muted); margin-bottom:7px; }
.book-pagination a:last-child { text-align:right; }
.book-mobile-navigation { display:none; }
.book-reference-page { max-width:1050px; padding:42px 36px 0; margin:auto; }
.book-reference-page>h1 { font-size:34px; margin:16px 0 36px; color:var(--secondary-color); }
.book-source-directory>details { border-top:1px solid var(--line); padding:8px 0; }
.book-source-directory>details>summary { display:flex; gap:20px; align-items:baseline; font-size:16px; line-height:1.85; padding:17px 0; list-style:none; }
.book-source-directory>details>summary::-webkit-details-marker { display:none; }
.book-source-directory>details>summary:after { content:'+'; color:var(--muted); }
.book-source-directory>details[open]>summary:after { content:'−'; }
.book-source-directory .book-source-number { color:var(--book-copper); font-size:13px; flex:none; }
.book-source-directory summary small { margin-left:auto; font-size:11px; white-space:nowrap; }
.book-source-chapter { display:block; margin:8px 0 8px 36px; font-size:12px; text-decoration:none; }
.book-source-directory ul { list-style:none; padding:0; margin:20px 0 0; }
.book-source-directory li { font-size:13px; line-height:1.9; margin:16px 0; overflow-wrap:anywhere; }
.book-source-directory li a { text-decoration:none; }
.book-appendix-directory { padding:0; list-style:none; }
.book-appendix-directory li { padding:22px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:24px; }
.book-appendix-directory a { font-size:16px; text-decoration:none; }
.book-appendix-directory span { color:var(--muted); font-size:12px; flex:none; }
@media(max-width:1100px) {
  .book-profile { grid-template-columns:280px minmax(0,1fr); gap:38px; }
  .book-cover-stage { min-height:390px; }.book-cover-wrap { width:220px; }
  .book-reader { grid-template-columns:200px minmax(0,1fr); gap:30px; padding-left:24px; padding-right:24px; }
  .book-manuscript { padding:30px; }.book-chapter-header h1 { font-size:28px; }
  .book-directory-grid { gap:28px 35px; }
}
@media(max-width:800px) {
  .book-detail { padding:0 22px; }
  .book-profile { grid-template-columns:1fr; gap:28px; padding:28px 0 32px; }
  .book-cover-stage { min-height:0; padding:28px; }.book-cover-wrap { width:178px; }
  .book-access-badge { width:68px; height:68px; top:-15px; right:-17px; }
  .book-access-badge strong { font-size:16px; }
  .book-description h1 { font-size:29px; }.book-period-label { font-size:23px; }
  .book-description .book-deck { font-size:15px; margin-bottom:18px; }
  .book-metadata { gap:8px 16px; font-size:12px; }.book-metadata>div { gap:8px; }
  .book-description .book-introduction { font-size:14px; margin-top:20px; }
  .book-about,.book-supplements { grid-template-columns:1fr; gap:18px; padding:27px 0; }
  .book-about p { font-size:14px; }.book-detail h2 { font-size:20px; }
  .book-directory { padding:28px 0; }.book-directory-grid { grid-template-columns:1fr; gap:20px; }
  .book-directory-group li a { font-size:14px; padding:10px 0; }
  .book-reader { display:block; padding:20px 0 0; }.book-reader-sidebar { display:none; }
  .book-manuscript { padding:24px 21px 30px; border-left:0; border-right:0; }
  .book-mobile-navigation { display:block; border-bottom:1px solid var(--line); margin-top:15px; padding:12px 0; font-size:13px; }
  .book-mobile-navigation>summary { color:var(--accent); }
  .book-mobile-navigation>.book-reader-navigation { margin-top:20px; }
  .book-mobile-navigation .book-navigation-block nav { font-size:13px; }
  .book-mobile-navigation .book-toc-section>div a { font-size:12px; }
  .book-chapter-header { padding:25px 0 22px; }.book-chapter-header h1 { font-size:26px; }
  .book-chapter-body { font-size:16px; line-height:1.95; }
  .book-chapter-body h2 { font-size:22px; margin-top:35px; }
  .book-chapter-body h3 { font-size:18px; margin-top:27px; }
  .book-table th,.book-table td { padding:11px; }.book-table table { font-size:12px; }
  .book-reference-page { padding:28px 22px 0; }.book-reference-page>h1 { font-size:28px; }
  .book-appendix-directory li { display:block; }.book-appendix-directory span { display:block; margin-top:8px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media print {
  .book-reader { display:block; max-width:none; padding:0; }.book-reader-sidebar,.book-mobile-navigation,.book-pagination { display:none; }
  .book-manuscript { border:0; padding:0; }.book-chapter-body { font-size:10.5pt; line-height:1.8; }
  .book-table { overflow:visible; }.book-table table { min-width:0; font-size:8pt; }.book-table th,.book-table td { min-width:0; padding:5px; }
  .book-table tr { break-inside:avoid; }.book-table thead { display:table-header-group; }
  .book-chapter-body h2,.book-chapter-body h3,.book-chapter-body h4 { break-after:avoid; }
  .book-actions { display:none; }.book-cover-image { transform:none; box-shadow:none; }
}
