.bk-tools{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 12px}
.bk-tools input,.bk-tools select{font:inherit;padding:10px 12px;border-radius:10px;border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit;min-width:0}
.bk-tools input{flex:1 1 240px}
.bk-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.bk-chips button{font:inherit;font-size:13px;padding:6px 12px;border-radius:999px;border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit;cursor:pointer}
.bk-chips button[aria-pressed="true"]{background:#f5a623;border-color:#f5a623;color:#111}
.bk-count{font-size:13px;opacity:.7;margin:6px 0 10px}
.bk-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.bk-list li{border:1px solid rgba(128,128,128,.28);border-radius:12px;padding:12px;display:flex;gap:12px;min-width:0}
.bk-pic{flex:none;width:84px;height:126px;border-radius:6px;overflow:hidden;background:rgba(128,128,128,.16);display:flex;align-items:center;justify-content:center}
.bk-pic img{width:100%;height:100%;object-fit:cover;display:block}
.bk-pic.none{font-size:34px;font-weight:800;color:#f5a623;background:linear-gradient(160deg,rgba(245,166,35,.22),rgba(128,128,128,.12))}
.bk-body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.bk-topic{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--link);font-weight:700}
.bk-list h3{margin:0;font-size:15.5px;line-height:1.35;overflow-wrap:anywhere}
.bk-meta{font-size:13px;opacity:.75;margin:0}
.bk-list a{margin-top:auto;font-size:13px;font-weight:600;align-self:flex-start}
.bk-note{font-size:12.5px;opacity:.7;margin:26px 0 8px}
.bk-list.full{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}
.bk-list.full .bk-pic{width:110px;height:165px;text-decoration:none}
.bk-pic.none{position:relative;flex-direction:column;gap:7px;padding:12px 9px 10px 14px;font-family:Georgia,"Times New Roman",serif;color:#ecd9a6;background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(0,0,0,0) 9px,rgba(255,255,255,.06) 11px,rgba(0,0,0,0) 14px),#5b2222;box-shadow:inset 0 0 0 1px rgba(0,0,0,.4),inset 0 0 0 5px transparent,inset 0 0 0 6px rgba(236,217,166,.35)}
.bk-pic.none.c1{background-color:#1f3d33}.bk-pic.none.c2{background-color:#22324f}.bk-pic.none.c3{background-color:#4a3520}
.bk-pic.none span{display:block;text-align:center;color:inherit;font-weight:400;padding:0}
.bk-pic.none .ct{font-size:11px;line-height:1.3;font-weight:700;letter-spacing:0;overflow-wrap:break-word}
.bk-list .bk-pic{margin-top:0;align-self:flex-start}
.bk-pic.none i{width:26px;height:1px;background:currentColor;opacity:.6}
.bk-pic.none .ca{font-size:10px;font-style:italic;line-height:1.2}
.bk-pic.none .cy{font-size:9.5px;opacity:.7;margin-top:auto;letter-spacing:.1em}
.bk-blurb{font-size:13.5px;margin:0;opacity:.85}
.bk-list h3 a{color:inherit;text-decoration:none}
.bk-list .btn{margin-top:auto;align-self:flex-start;font-size:13px;padding:7px 12px}
/* ----- the reader: a book with pages ----- */
.rd{max-width:1180px;margin:0 auto;padding:10px 12px 24px}
.rd-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:4px 0 10px}
.rd .back{font-size:14px}
.rd-tools{display:flex;gap:8px;align-items:center;min-width:0}
.rd-tools button,.rd-tools select{font:inherit;font-size:14px;padding:6px 10px;border-radius:8px;border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit;cursor:pointer;min-width:0}
.rd-tools select{max-width:min(46vw,300px)}
.rd-tools select option{color:#111}
.rd-stage{display:flex;align-items:center;gap:8px}
.rd-nav{flex:none;width:40px;height:64px;border-radius:10px;border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.rd-nav:disabled{opacity:.25;cursor:default}
.rd-book{position:relative;flex:1;min-width:0;height:min(calc(100vh - 210px),760px);min-height:380px;background:#f7f1e3;color:#2b2520;border-radius:6px;padding:44px 52px 40px;box-shadow:0 18px 50px rgba(0,0,0,.45),inset 0 0 0 1px rgba(0,0,0,.08);overflow:hidden;outline:none}
.rd-book.spread::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:60px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(0,0,0,.10) 46%,rgba(0,0,0,.20) 50%,rgba(0,0,0,.10) 54%,transparent);pointer-events:none}
.rd-book::after{content:"";position:absolute;inset:0;border-radius:6px;box-shadow:inset 14px 0 18px -14px rgba(0,0,0,.25),inset -14px 0 18px -14px rgba(0,0,0,.25);pointer-events:none}
.rd-flow{height:100%;overflow:hidden;column-fill:auto;font-family:Georgia,"Iowan Old Style","Times New Roman",serif;line-height:1.62;text-align:justify;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
.rd-flow p{margin:0;text-indent:1.5em;orphans:2;widows:2}
.rd-flow p.first{text-indent:0}
.rd-flow p.first::first-letter{font-size:3.1em;line-height:.85;float:left;padding:.06em .08em 0 0;font-weight:700}
.rd-flow h2{font-size:1.25em;text-align:center;margin:1.6em 0 1.4em;font-weight:700;letter-spacing:.04em;break-after:avoid;hyphens:none}
.rd-flow h2 span{display:block}.rd-flow h2 .sub{font-size:.8em;font-weight:400;font-style:italic;letter-spacing:0;margin-top:.4em}
.rd-flow h3{font-size:1.02em;text-align:center;margin:1.5em 0 .8em;font-weight:700;letter-spacing:.03em;break-after:avoid;hyphens:none;text-indent:0}
.rd-verse{margin:.9em 0 .9em 2.2em;font-style:italic;font-size:.95em;text-align:left;hyphens:none;break-inside:avoid}
.rd-verse span{display:block;padding-left:1.2em;text-indent:-1.2em}
.rd-table{margin:1em 0;font:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.62em;line-height:1.45;white-space:pre;overflow-x:auto;text-align:left;hyphens:none;background:rgba(0,0,0,.045);border-radius:4px;padding:.7em .8em;color:inherit}
.rd-flow .rd-orn{text-indent:0;text-align:center;margin:1.1em 0;opacity:.6}
.rd-flow .rd-fn{text-indent:0;font-size:.82em;line-height:1.5;margin:.5em 0 .5em 1.2em;opacity:.85;text-align:left}
.rd-flow sup{font-size:.62em;line-height:0;vertical-align:super;margin-left:1px;opacity:.75}
.rd-titlepage{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;break-after:column;hyphens:none}
.rd-titlepage h1{font-size:2em;line-height:1.2;margin:0 0 .8em;color:inherit;font-family:inherit}
.rd-titlepage .by{font-size:1.15em;text-indent:0;font-style:italic}.rd-titlepage .yr{text-indent:0;margin-top:.4em;opacity:.7}.rd-titlepage .pub{text-indent:0;margin-top:3em;font-size:.8em;letter-spacing:.2em;text-transform:uppercase;opacity:.6}
.rd-loading{text-indent:0!important;text-align:center;margin-top:30%!important;opacity:.6}
.rd-foot{display:flex;align-items:center;gap:12px;font-size:13px;opacity:.8;margin:12px 48px 0}
.rd-foot #rdWhere{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-bar{flex:none;width:120px;height:4px;border-radius:2px;background:rgba(128,128,128,.3);overflow:hidden}.rd-bar i{display:block;height:100%;background:#f5a623;width:0}
.rd-note{margin:14px 48px 0}
@media (max-width:899px){
  .rd{padding:8px 8px 18px}
  .rd-nav{display:none}
  .rd-book{height:calc(100vh - 190px);height:calc(100dvh - 190px);padding:28px 22px 24px}
  .rd-flow{text-align:left;hyphens:manual;-webkit-hyphens:manual}
  .rd-foot,.rd-note{margin-left:4px;margin-right:4px}
  .rd-bar{width:70px}
}
/* One book's own page */
.bk-page{max-width:820px}
.bk-page .crumbs{font-size:13px;opacity:.75;margin:0 0 14px}
.bk-page .crumbs a{color:inherit}
.bk-hero{display:flex;gap:22px;align-items:flex-start;margin-bottom:10px}
.bk-hero h1{margin:6px 0 8px;line-height:1.15}
.bk-hero .lede{margin:12px 0 14px}
.bk-pic.big{width:150px;height:225px;border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.28)}
.bk-pic.big .ct{font-size:15px}
.bk-pic.big .ca{font-size:12.5px}
.bk-pic.big .cy{font-size:11.5px}
.bk-pic.big i{width:36px}
.bk-small{font-size:13.5px;opacity:.75}
.bk-page h2{margin-top:30px}
.bk-page ul li,.bk-page .bk-toc li{margin:6px 0;line-height:1.55}
.bk-toc{columns:2;column-gap:28px;padding-left:22px}
.bk-toc li{break-inside:avoid}
.bk-more{margin-top:22px;font-size:14px}
@media (max-width:620px){.bk-hero{flex-direction:column;align-items:center;text-align:center}.bk-hero .lede{margin-left:auto;margin-right:auto}.bk-toc{columns:1}}
.bk-page p{margin:0 0 12px;line-height:1.65}
.bk-page .bk-toc{margin-top:8px}.bk-page .bk-toc li{margin:0 0 6px}
.bk-page .cta-box{margin-top:26px;padding:18px 20px;border:1px solid rgba(245,166,35,.45);border-radius:14px;background:rgba(245,166,35,.08)}
.bk-page .cta-box h3{margin:0 0 6px}
