/* Reading controls are separate from the manuscript and its printable text. */
.reader-primary-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0;font:15px/1.5 var(--sans,system-ui,sans-serif)}
.reader-primary-actions>a,.reader-primary-actions>button{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:10px 19px;border:1px solid #222;border-radius:4px;background:#fff;color:#222;text-decoration:none;font:inherit}
.reader-primary-actions>#reader-start-action{background:#202020;color:#fff;border-color:#202020}
.reader-primary-actions>#reader-share-top{border-color:#b4212b;color:#a81e28}
.reader-resume-label{flex-basis:100%;font-size:12px;color:#666;line-height:1.65;overflow-wrap:anywhere}
.reader-resume-label[hidden],#reader-status[hidden]{display:none!important}
.reader-more-entry>summary{display:none}
.reader-research-details>summary{display:none}
.reader-mobile-bar{display:none}
#reader-status{position:fixed;z-index:150;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;padding:10px 16px;border-radius:5px;background:#222;color:#fff;font:14px/1.6 system-ui,sans-serif;box-shadow:0 4px 18px #0002;pointer-events:none}
#reader-share-dialog{width:min(520px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);padding:0;border:1px solid #ddd;border-radius:9px;background:#fff;color:#222;font-family:var(--sans,system-ui,sans-serif);overflow:auto}
#reader-share-dialog::backdrop{background:#0006}
.reader-share-dialog-body{padding:24px}
#reader-share-title{font-size:20px;line-height:1.5;margin:0 0 10px}
#reader-share-help{font-size:14px;line-height:1.6;color:#666;margin:0 0 16px}
#reader-share-text{display:block;box-sizing:border-box;width:100%;max-width:100%;font:16px/1.7 system-ui,sans-serif;padding:12px;border:1px solid #bbb;border-radius:4px;resize:vertical;background:#fafafa;color:#222;overflow-wrap:anywhere}
.reader-share-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.reader-share-dialog-actions button{font:15px/1.5 system-ui,sans-serif;min-height:44px;padding:10px 18px;border:1px solid #bbb;border-radius:4px;background:#fff;color:#222}
.reader-share-dialog-actions #reader-share-copy{background:#222;border-color:#222;color:#fff}
@media(max-width:760px){
 html{scroll-padding-top:0}
 html[data-reader-font="standard"]{--reader-text-size:18px}
 html[data-reader-font="large"]{--reader-text-size:20px}
 html[data-reader-font="largest"]{--reader-text-size:22px}
 body,#manuscript{font-size:var(--reader-text-size,18px);line-height:1.85}
 .plc-site-header.reader-bar{position:relative;top:auto}
 .reader-mobile-bar{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:45;width:100%;min-height:48px;padding:0 18px;border-bottom:1px solid #ddd;background:rgba(255,255,255,.98);font:14px/1.5 var(--sans,system-ui,sans-serif)}
 .reader-mobile-bar>.mobile-menu{display:block;position:static;top:auto;z-index:auto;border:0;background:transparent;padding:0;flex:1;min-width:0;font:inherit}
 .reader-mobile-bar>.mobile-menu>summary{display:list-item;width:max-content;min-height:46px;line-height:46px;padding:0 8px;color:#222;cursor:pointer}
 .reader-mobile-bar>.mobile-menu>nav{position:absolute;left:0;top:100%;width:100%;max-height:calc(100dvh - 125px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-bottom:1px solid #ccc;padding:12px 24px 24px;box-shadow:0 12px 24px #0001}
 .reader-mobile-bar .mobile-menu a,.reader-mobile-bar .toc-group>details>summary{display:block;padding:9px 0;line-height:1.6;min-height:42px;font-size:15px}
 .reader-mobile-actions{display:flex;align-items:center;gap:6px}
 .reader-mobile-actions .reader-home-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;min-width:44px;padding:9px 6px;color:#555;text-decoration:none;font:14px/1.5 var(--sans,system-ui,sans-serif)}
 .reader-mobile-actions button{font:14px/1.5 var(--sans,system-ui,sans-serif);min-height:46px;min-width:52px;padding:9px 8px;background:transparent;color:#333;border:0;border-radius:3px}
 #reader-share-page{color:#ad202b}
 main{padding-top:24px}
 .book-cover h1{font-size:36px;line-height:1.25;margin-bottom:10px}
 .book-cover .reader-kicker{font-size:10px;margin-bottom:14px}
 .book-cover .reader-subtitle{font-size:16px;margin-bottom:14px}
 .book-cover .edition{margin:0 0 12px;font-size:11px}
 .reader-primary-actions{margin:18px 0 12px;gap:10px}
 .reader-primary-actions>a,.reader-primary-actions>button{flex:1;padding:11px 12px;min-width:0;font-size:14px}
 .reader-more-entry{border-top:1px solid #e2e2e2;margin:0;padding:0}
 .reader-more-entry>summary{display:list-item;font:14px/1.6 var(--sans,system-ui,sans-serif);padding:12px 0;min-height:46px;cursor:pointer;color:#555}
 .reader-more-entry .reader-start{display:grid;gap:2px;margin:0 0 12px;font-size:14px}
 .reader-more-entry .reader-start a{padding:9px 0;min-height:42px}
 .reader-more-entry .reader-downloads{margin:4px 0 12px;font-size:13px}
 .reader-research-entry{border:0;border-top:1px solid #e2e2e2;padding:0;margin:0;font:15px/1.8 var(--sans,system-ui,sans-serif)}
 .reader-research-entry>h2{display:none}
 .reader-research-details>summary{display:list-item;font:14px/1.6 var(--sans,system-ui,sans-serif);padding:12px 0;min-height:46px;cursor:pointer;color:#a91e2a}
 .reader-research-details>p{font-size:15px;margin:8px 0 14px}
 .reader-research-links{display:grid;gap:10px;padding-bottom:16px}
 .reader-contents{margin-top:0}
 .reader-contents>summary{padding:12px 0;min-height:46px}
 #manuscript h2[id],#manuscript h3[id],#manuscript h4[id],.back-matter [id]{scroll-margin-top:62px}
 .table-scroll[data-reader-overflow="true"]::before{content:"左右滑动查看完整表格";display:block;position:sticky;left:0;width:max-content;max-width:100%;font:12px/1.5 var(--sans,system-ui,sans-serif);color:#777;margin:0 0 8px}
 .table-scroll table{font-size:calc(var(--reader-text-size,18px) - 4px)}
 .reader-share-dialog-body{padding:20px}
}
@media(max-width:350px){.book-cover h1{font-size:32px}.reader-mobile-bar{padding:0 12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.reader-research-entry>h2{display:block!important}.reader-primary-actions,.reader-mobile-bar,#reader-status,#reader-share-dialog,.reader-more-entry{display:none!important}.reader-research-details>summary{display:none!important}.reader-research-details>*:not(summary){display:block!important}}

.reader-open-note{max-width:680px;margin:18px 0 24px;color:#505050;font:15px/1.85 var(--sans,system-ui,sans-serif)}
.reader-open-note p{margin:0 0 10px}
.reader-open-note strong{color:#222}
.reader-open-note a{color:#a91e2a}
