/* Author profiles and book contents: Knigo's library hierarchy, adapted to Chinese. */
.author-page,.author-page[data-theme=night]{background:#fdfbf6;color:#27312b;--paper:#fdfbf6;--line:#dedbd0;--muted:#66685f;--accent:#365543}
.author-page .header,.author-page footer{background:#fdfbf6;border-color:#dedbd0}
.knigo-author{padding:4px 0 38px}
.knigo-author>h1{font:32px/1.3 var(--serif);margin:0}
.knigo-author .author-profile{display:flex;align-items:flex-start;gap:36px;margin:28px 0 34px;padding:0 0 30px;border-bottom:1px solid var(--line)}
.knigo-author .author-photo{flex:0 0 180px;width:180px;margin:0}
.knigo-author .author-photo img{display:block;width:180px;height:220px;object-fit:cover;object-position:center;background:#eee7d8;border:1px solid var(--line)}
.knigo-author .author-photo figcaption{font:12px/1.5 var(--serif);color:var(--muted);margin-top:9px}
.knigo-author .author-photo figcaption a{text-decoration:underline;text-underline-offset:3px}
.knigo-author .author-biography{max-width:76ch;min-width:0}
.knigo-author .author-profile.no-author-photo .author-biography{max-width:100%}
.knigo-author .author-biography h2{font:24px/1.4 var(--serif);margin:0 0 14px}
.knigo-author .author-biography>p{font:18px/1.7 var(--serif);margin:0}
.knigo-author .author-biography>p+p{margin-top:14px}
.knigo-author .author-biography .author-source{font:13px/1.6 var(--serif);color:var(--muted);margin-top:18px}
.knigo-author .author-source a{text-decoration:underline;text-underline-offset:3px}
.directory-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 15px}
.directory-section-title h2{font:27px/1.4 var(--serif);margin:0}
.directory-section-title>span{font-size:13px;color:var(--muted);white-space:nowrap}
.knigo-author .author-works-title{font:28px/1.4 var(--serif);margin:0 0 13px}
.author-work-list{columns:2;column-gap:48px;margin:0;padding-left:26px}
.author-work-list>li{break-inside:avoid;padding:10px 0 12px;border-bottom:1px solid var(--line);font:15px/1.6 var(--serif)}
.author-work-list>li::marker{color:var(--ink);font-size:15px}
.author-work-list h3{font:21px/1.35 var(--serif);margin:0 0 5px}
.author-work-list p{font-size:15px;color:var(--muted);line-height:1.55;margin:3px 0}
.author-catalog-link{margin:15px 0 0;font:14px/1.6 var(--serif)}
.author-catalog-link a{display:inline-flex;align-items:center;min-height:40px}
.knigo-book-page .book-detail{grid-template-columns:280px minmax(0,1fr);gap:40px;padding:4px 0 30px;align-items:start}
.knigo-book-page .book-cover-panel{position:relative;border:1px solid #576c57;border-radius:4px;padding:25px 28px;background:radial-gradient(ellipse at 50% 20%,#526c53,#294133 85%)}
.knigo-book-page .book-cover-panel:after{content:'';position:absolute;inset:8px;border:1px solid #c9b99870;pointer-events:none}
.knigo-book-page .library-cover{width:174px;height:254px;flex:none;padding:25px 16px;background:#263f32;border-left:6px solid #1b2f24;border-right:3px solid #c5bea6;box-shadow:3px 3px 0 #b6b29b,9px 14px 20px #10221760;border-radius:1px 3px 3px 1px}
.knigo-book-page .library-cover:before{inset:10px;border-color:#caba8b80}
.knigo-book-page .library-cover strong{font-size:29px;letter-spacing:4px}
.knigo-book-page .library-cover>span{font-size:12px;color:#eee7d3}
.knigo-book-page .library-cover .cover-ornament{font-size:16px;color:#cbbb91;line-height:1}
.knigo-book-page .library-cover>span:last-child{font-size:9px;letter-spacing:1px}
.knigo-book-page .book-detail-info{padding:9px 0 0}
.knigo-book-page .book-detail-info .eyebrow{font-size:12px;margin-bottom:12px;letter-spacing:2px}
.knigo-book-page .book-author{font:19px/1.5 var(--serif);color:var(--accent)}
.knigo-book-page .book-author>span{font-size:15px;color:var(--muted)}
.knigo-book-page .book-detail h1{font:38px/1.35 var(--serif);margin:10px 0 15px}
.knigo-book-page .book-summary{font-size:16px;line-height:1.8;max-width:650px;margin:0 0 20px}
.knigo-book-page .book-facts{border:0;padding:0;margin:0 0 23px;gap:20px 42px;font-size:14px}
.knigo-book-page .book-facts dt{font-size:12px;margin-bottom:5px}
.knigo-book-page .book-facts dd{margin:0}
.book-actions{display:flex;align-items:center;gap:25px;flex-wrap:wrap}
.knigo-book-page .book-start{gap:36px;padding:11px 22px;min-height:46px;font-size:15px}
.book-author-link{font-size:14px;color:var(--accent);padding-block:10px}
.knigo-contents{border-top:3px double #b9c5b9;padding:22px 0 0;margin-bottom:28px;scroll-margin-top:20px}
.contents-sheet{border:1px solid var(--line);background:#fff;padding:12px 20px 16px;border-radius:3px}
.contents-sheet>h3{font:19px/1.5 var(--serif);color:var(--accent);margin:0 0 3px;padding:6px 0 12px;border-bottom:3px double var(--line)}
.chapter-list{column-count:1;column-gap:28px;list-style:none;padding:0;margin:0}
@media(min-width:761px){
 .chapter-list:where(.toc-two,.toc-three,.toc-four){column-count:2}
}
@media(min-width:1000px){
 .chapter-list:where(.toc-three,.toc-four){column-count:3}
}
@media(min-width:1220px){
 .chapter-list:where(.toc-four){column-count:4}
}
.chapter-list li{break-inside:avoid}
.chapter-list a{display:flex;gap:12px;align-items:flex-start;min-height:48px;padding:10px 7px;border-bottom:1px dotted var(--line);font-size:16px;line-height:1.55}
.chapter-list a>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.chapter-list a:hover{background:#f2f6f2;text-decoration:none}
.chapter-number{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:19px;padding-top:3px}
.chapter-arrow{margin-left:auto;font-size:14px;color:var(--muted);flex:none}
@media(max-width:760px){
 .knigo-author>h1{font-size:29px}
 .knigo-author .author-profile{margin:20px 0 26px;padding-bottom:22px}
 .knigo-author .author-photo{flex-basis:130px;width:130px}
 .knigo-author .author-photo img{width:130px;height:160px}
 .knigo-author .author-biography>p{font-size:17px}
 .knigo-author .author-works-title{font-size:25px}
 .author-work-list{columns:1}
 .directory-section-title h2{font-size:24px}
 .work-line h3{font-size:22px}
 .knigo-book-page .book-detail{grid-template-columns:160px minmax(0,1fr);gap:22px}
 .knigo-book-page .book-cover-panel{padding:21px 17px}
 .knigo-book-page .library-cover{width:120px;height:195px;padding:23px 10px}
 .knigo-book-page .library-cover strong{font-size:23px;letter-spacing:3px}
 .knigo-book-page .library-cover>span:last-child{font-size:8px;letter-spacing:0}
 .knigo-book-page .book-detail h1{font-size:30px}
 .knigo-book-page .book-facts{gap:14px 23px}
 .chapter-list{column-count:1}
 .contents-sheet{padding:10px 13px 14px}
}
@media(max-width:600px){
 .knigo-author .author-profile{flex-direction:column;gap:20px}
 .knigo-author .author-photo{display:flex;align-items:flex-start;gap:14px;flex-basis:auto;width:100%}
 .knigo-author .author-photo img{flex:none;width:110px;height:135px}
 .knigo-author .author-photo figcaption{margin-top:2px;max-width:24ch}
}
@media(max-width:520px){
 .knigo-book-page .book-detail{grid-template-columns:1fr;gap:22px}
 .knigo-book-page .book-cover-panel{width:100%;padding:22px}
 .knigo-book-page .library-cover{width:140px;height:212px}
 .knigo-book-page .book-detail-info{padding:0}
 .knigo-book-page .book-summary{font-size:15px;margin-bottom:16px}
 .knigo-book-page .book-facts{margin-bottom:18px}
 .knigo-book-page .book-start{min-height:46px}
}

/* Thread-bound Chinese book: cloth cover, paper title slip and four-hole binding. */
.knigo-book-page .book-cover-panel{background:#f4f5f2;border:1px solid #e1e4dd;padding:26px 28px;overflow:visible}
.knigo-book-page .book-cover-panel:after{display:none}
.antique-cover{--cloth:#364d5b;position:relative;isolation:isolate;flex:none;width:174px;height:254px;background:repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#00000004 0 1px,transparent 1px 4px),var(--cloth);border:1px solid #243943;border-radius:1px 2px 2px 1px;box-shadow:2px 1px 0 #d7cdb5,4px 2px 0 #f0e8d4,5px 3px 0 #b4aa92,7px 7px 12px #26352220}
.antique-cover:before{content:'';position:absolute;inset:0 auto 0 14%;width:1px;background:#c8d0c132;box-shadow:2px 0 3px #00000012}
.cover-sanwen{--cloth:#526057;border-color:#35483d}
.cover-mengxue{--cloth:#776249;border-color:#594833}
.cover-slip{position:absolute;top:9%;right:12%;width:43%;height:76%;display:flex;flex-direction:row-reverse;align-items:flex-start;justify-content:center;gap:7px;padding:14px 8px;background:#ede3c8;color:#34362d;border:1px solid #b1a78e;outline:1px solid #b1a78e;outline-offset:-5px;box-shadow:0 1px 2px #15241c20}
.cover-slip strong{writing-mode:vertical-rl;font:normal 27px/1.15 var(--serif);letter-spacing:3px;white-space:nowrap;margin:0}
.cover-slip small{writing-mode:vertical-rl;font:11px/1.2 var(--serif);letter-spacing:2px;margin-top:3px;color:#64624f;white-space:nowrap}
.cover-binding{position:absolute;left:9%;top:15%;bottom:15%;width:1px;background:#d6cba5;box-shadow:1px 0 1px #00000050}
.cover-binding i{position:absolute;right:0;width:17px;height:2px;background:#e0d3ae;box-shadow:0 1px 1px #00000050}
.cover-binding i:after{content:'';position:absolute;right:-1px;top:-1px;width:3px;height:4px;border-radius:50%;background:#e0d3ae}
.cover-binding i:nth-child(1){top:0}.cover-binding i:nth-child(2){top:33%}.cover-binding i:nth-child(3){top:66%}.cover-binding i:nth-child(4){bottom:0}
.compact-cover{width:56px;height:86px}
.compact-cover .cover-slip{top:8%;right:11%;width:47%;height:82%;padding:5px 3px;outline-offset:-3px}
.compact-cover .cover-slip strong{font-size:10px;line-height:1.1;letter-spacing:0}
.compact-cover .cover-slip small{display:none}
.compact-cover .cover-binding i{width:6px;height:1px}
.compact-cover .cover-binding i:after{width:2px;height:2px;top:0}
@media(max-width:760px){
 .knigo-book-page .book-cover-panel{padding:22px 16px}
 .knigo-book-page .antique-cover{width:120px;height:195px}
 .knigo-book-page .cover-slip{gap:3px;padding:11px 6px}
 .knigo-book-page .cover-slip strong{font-size:21px;letter-spacing:2px}
 .knigo-book-page .cover-slip small{font-size:9px;letter-spacing:1px}
 .knigo-book-page .cover-binding i{width:12px}
 .compact-cover{width:44px;height:76px}
 .compact-cover .cover-slip strong{font-size:9px}
}
@media(max-width:520px){
 .knigo-book-page .antique-cover{width:150px;height:222px}
 .knigo-book-page .cover-slip{gap:5px;padding:13px 7px}
 .knigo-book-page .cover-slip strong{font-size:25px}
 .knigo-book-page .cover-slip small{font-size:10px}
 .knigo-book-page .cover-binding i{width:15px}
}
