/* Reading candidate: fixed search rail + single-column reading stream over inherited reader.css. */
body.reader-c{--rc-paper:#f6f4ed;--rc-sheet:#fffdf7;--rc-ink:#222721;--rc-muted:#566057;--rc-line:#d8d9cf;--rc-green:#426548;--rc-green-dark:#2f4b33;--rc-tint:#e8eee3;background:var(--rc-paper);color:var(--rc-ink)}
.reader-c .wrap{width:min(1100px,calc(100% - 64px))}
.reader-c .trial-brand{min-height:44px}
.reader-c footer .brand{display:inline-flex;align-items:center;min-height:44px}

/* Intro: one compact band so the search is visible in the first screen. */
.reader-c .rc-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 48px;padding-block:34px 26px;border-bottom:1px solid var(--rc-line)}
.reader-c .rc-intro .eyebrow{margin:0 0 10px;color:#536e56;font-size:13px;letter-spacing:.08em}
.reader-c .rc-intro h1{margin:0 0 8px;font:400 clamp(28px,3vw,40px)/1.32 "Songti SC",STSong,"Noto Serif CJK SC",serif;letter-spacing:-.04em}
.reader-c .rc-intro h1 span{display:inline-block;color:var(--rc-green)}
.reader-c .library-lead{max-width:36em;margin:0;color:#4e584f;font-size:16px;line-height:1.65}
.reader-c .rc-intro-side{display:grid;justify-items:end;gap:6px;flex:none}
.reader-c .rc-stats{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px 18px;margin:0;color:var(--rc-muted);font-size:14px}
.reader-c .rc-stats strong{margin-right:4px;color:#345739;font-size:24px;font-weight:650;font-variant-numeric:tabular-nums}
.reader-c .rc-stats-note{flex-basis:100%;text-align:right;font-size:13px}
.reader-c .rc-back-link{display:inline-flex;align-items:center;min-height:44px;color:#345739;font-size:15px;font-weight:650;text-decoration:underline;text-underline-offset:4px}
.reader-c .rc-back-link:hover{color:#253f29}

/* Workbench: the rail keeps search and filters reachable while reading. */
.reader-c .rc-workbench{display:grid;grid-template-columns:292px minmax(0,1fr);gap:40px;align-items:start;padding-block:28px 8px;scroll-margin-top:8px}
.reader-c .rc-panel-inner{display:grid;gap:22px}
.reader-c .rc-panel-title{margin:0;font:400 24px/1.4 "Songti SC",STSong,serif;letter-spacing:-.02em}
.reader-c .rc-label{margin:0 0 8px;color:#4c5a4d;font-size:13px;font-weight:700;letter-spacing:.04em}

.reader-c .search-box{gap:8px;padding:5px 5px 5px 13px;border:1px solid #8fa58f;border-radius:6px;background:var(--rc-sheet)}
.reader-c .search-box>span{font-size:22px}
.reader-c .search-box input[type=search]{flex:1 1 auto;width:0;min-width:0;min-height:44px;padding:8px 0;font-size:16px}
.reader-c .search-box .btn{flex:none;min-height:44px;padding:8px 14px;border-radius:5px;font-size:15px}
.reader-c .search-box .btn:hover{transform:none}

.reader-c .rc-topic-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.reader-c .rc-topic-list .scene{position:static;display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:44px;padding:8px 10px;border:1px solid var(--rc-line);border-radius:5px;background:var(--rc-sheet);color:#2c3a2e;transition:border-color .15s,background .15s}
.reader-c .rc-topic-list .scene:hover{transform:none;box-shadow:none;border-color:#668268;background:#f2f6ee}
.reader-c .rc-topic-list .scene strong{font-size:15px;font-weight:650;line-height:1.3;white-space:nowrap}
.reader-c .rc-topic-list .scene-arrow{position:static;color:var(--rc-green);font-size:15px;line-height:1}

.reader-c .rc-filters{display:grid;gap:8px;margin:0;color:#334235;font-size:15px}
.reader-c .rc-filters .rc-label{margin-bottom:0}
.reader-c .rc-filters .rc-select{display:grid;grid-template-columns:2.6em minmax(0,1fr);align-items:center;gap:8px;min-height:44px}
.reader-c .rc-select-name{color:var(--rc-muted);font-size:14px;white-space:nowrap}
.reader-c .rc-filters select{width:100%;max-width:none;min-height:44px;padding:8px 30px 8px 11px;border:1px solid #c5cfc0;border-radius:6px;background-color:var(--rc-sheet);color:#27372a;font-size:16px}
.reader-c .rc-toggles{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.reader-c .rc-filters .check{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;padding:8px 10px;border:1px solid #c5cfc0;border-radius:6px;background:var(--rc-sheet);color:#2c3a2e;font-size:15px;cursor:pointer}
.reader-c .rc-filters .check:has(input:checked){border-color:var(--rc-green);background:var(--rc-tint);color:#24402a;font-weight:650}
.reader-c .rc-filters .check:has(input:focus-visible){outline:3px solid #b36d16;outline-offset:2px}
.reader-c .rc-filters input[type=checkbox]{flex:none;width:19px;height:19px;margin:0;accent-color:var(--rc-green)}
.reader-c .rc-filters .text-button{justify-self:start;min-height:44px;padding:8px 2px;color:#345739;font-size:15px}

.reader-c .reading-note{margin:0;padding:14px 0 0;border-top:1px solid var(--rc-line)}
.reader-c .reading-note .rc-label{margin-bottom:4px}
.reader-c .reading-note p:last-child{margin:0;color:#5b665c;font-size:14px;line-height:1.7}

/* Reading stream: one suggestion per row, measured line length. */
.reader-c .rc-reading{min-width:0;max-width:780px}
.reader-c .result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:4px 16px;flex-wrap:wrap;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--rc-line)}
.reader-c .result-status{margin:0;color:#46524a;font-size:15px;font-variant-numeric:tabular-nums}
.reader-c .results{display:grid;grid-template-columns:1fr;gap:12px}

.reader-c .entry{display:flex;flex-wrap:wrap;align-items:center;gap:0 22px;padding:22px 26px 14px;border:1px solid var(--rc-line);border-radius:6px;background:var(--rc-sheet);scroll-margin-top:16px}
.reader-c .entry>.entry-top,.reader-c .entry>h3,.reader-c .entry>.entry-summary,.reader-c .entry>details{flex:1 0 100%;min-width:0}
.reader-c .entry:target{border-color:var(--rc-green);box-shadow:0 0 0 2px #4265482e}
.reader-c .entry-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.reader-c .entry-meta{color:#536a55;font-size:14px;line-height:1.5}
.reader-c .save{flex:none;min-height:44px;padding:8px 14px;border:1px solid #c3cdbf;border-radius:6px;background:transparent;color:#36533a;font-size:14px}
.reader-c .save:hover{border-color:#7f9a80;background:#f2f5ee}
.reader-c .save[aria-pressed=true]{border-color:var(--rc-green);background:var(--rc-tint);color:#24402a;font-weight:650}
.reader-c .entry h3{margin:0 0 8px;color:#1f2a21;font:650 21px/1.5 "PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;letter-spacing:-.01em;overflow-wrap:anywhere}
.reader-c .entry-summary{max-width:42em;margin:0;color:#38443a;font-size:16px;line-height:1.8}

.reader-c .entry details{margin-top:14px;padding-top:0;border-top:1px solid #e3e3d9;color:#38443a}
.reader-c .entry summary{min-height:48px;display:flex;align-items:center;gap:8px;color:#345739;font-size:15px;font-weight:650;cursor:pointer;list-style:none}
.reader-c .entry summary::-webkit-details-marker{display:none}
.reader-c .entry summary:hover{color:#203a24}
.reader-c .entry summary::after{content:"＋";margin-left:auto;font-size:18px}
.reader-c .entry details[open]>summary::after{content:"−"}
.reader-c .entry dl{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:0;margin:0 0 6px}
.reader-c .entry dt{margin:0;padding:12px 12px 12px 0;border-top:1px solid #ecebe2;color:#3c6041;font-size:14px;font-weight:700;line-height:1.7}
.reader-c .entry dd{margin:0;padding:12px 0;border-top:1px solid #ecebe2;color:#333e35;font-size:16px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.reader-c .entry dd a{color:#345f3a;text-decoration:underline;text-underline-offset:3px;word-break:break-word}

/* Action row keeps DOM order for keyboard users; the action button sits at the row end. */
.reader-c .entry>.source-link{display:inline-flex;align-items:center;min-height:44px;margin:4px 0 0!important;color:#345f3a;font-size:15px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.reader-c .entry>.source-link[href*="index.html?entry="]{margin-left:auto!important;padding:8px 16px;border:1px solid var(--rc-green);border-radius:6px;background:var(--rc-green);color:#fffdf7;font-weight:650;text-decoration:none}
.reader-c .entry>.source-link[href*="index.html?entry="]:hover{background:var(--rc-green-dark);border-color:var(--rc-green-dark)}
.reader-c .empty{padding:32px 26px;border:1px dashed #b9c2b4;border-radius:6px;background:var(--rc-sheet);color:#4f5b51;font-size:16px;text-align:left}
.reader-c .load-more{display:flex;width:100%;min-height:48px;margin:16px 0 0;border-color:#9dab99;font-size:15px}
.reader-c .load-more:hover{transform:none}

.reader-c .formats{padding-top:64px}
.reader-c .formats h2{font-size:29px}
.reader-c .format-list>a{min-height:60px}
.reader-c footer.wrap{grid-template-columns:auto minmax(0,1fr) auto;gap:24px}

@media(min-width:1000px) and (min-height:720px){
.reader-c .rc-panel{position:sticky;top:16px}
}
@media(max-width:999px){
.reader-c .rc-workbench{grid-template-columns:1fr;gap:20px}
.reader-c .rc-panel,.reader-c .rc-panel-inner{display:contents}
.reader-c .rc-workbench{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 28px}
.reader-c .rc-panel-title,.reader-c #search-form,.reader-c .rc-reading,.reader-c .reading-note{grid-column:1/-1}
.reader-c .rc-reading{order:1;margin-top:6px}
.reader-c .reading-note{order:2}
.reader-c .rc-reading{max-width:none}
}
@media(max-width:700px){
.reader-c .wrap{width:calc(100% - 40px)}
.reader-c .rc-intro{display:block;padding-block:24px 18px}
.reader-c .rc-intro h1{font-size:clamp(26px,7.4vw,34px)}
.reader-c .rc-intro-side{justify-items:start;margin-top:10px}
.reader-c .rc-stats{justify-content:flex-start}
.reader-c .rc-stats-note{flex-basis:auto;text-align:left}
.reader-c .rc-workbench{grid-template-columns:minmax(0,1fr)}
.reader-c .rc-panel-title{font-size:22px}
.reader-c .entry{padding:18px 18px 12px;gap:0 18px}
.reader-c .entry h3{font-size:19px}
.reader-c .entry dl{grid-template-columns:1fr}
.reader-c .entry dt{padding:12px 0 0}
.reader-c .entry dd{padding:4px 0 12px;border-top:0}
.reader-c .formats{padding-top:48px}
.reader-c footer.wrap{display:block}
}
@media(max-width:430px){
.reader-c .wrap{width:calc(100% - 32px)}
.reader-c .search-box{flex-wrap:nowrap;gap:6px;padding:5px 5px 5px 10px}
.reader-c .search-box input[type=search]{width:0}
.reader-c .search-box .btn{width:auto;padding:8px 12px}
.reader-c .search-box>span{display:none}
.reader-c .rc-topic-list .scene{padding:8px}
.reader-c .entry{padding:16px 15px 10px}
.reader-c .entry-top{align-items:flex-start}
.reader-c .entry>.source-link[href*="index.html?entry="]{flex:1 0 100%;justify-content:center}
}
