.club-book-panel { margin:1rem 0; padding:.75rem; border:1px solid currentColor; border-radius:.6rem; }
.club-book-panel > summary,.club-book-chapter > summary { cursor:pointer; font-weight:650; padding:.45rem 0; }
.club-book-panel input { width:100%; box-sizing:border-box; padding:.55rem; font:inherit; }
.club-book-chapter { margin:.65rem 0; padding:.5rem; border:1px solid color-mix(in srgb,currentColor 25%,transparent); border-radius:.4rem; overflow-wrap:anywhere; }
.club-book-chapter[hidden] { display:none; }
.club-book-chapter h5,.club-book-figure h5 { font-size:1rem; margin:.8rem 0 .35rem; }
.club-book-figure { margin:1rem 0; }
.club-book-figure svg { display:block; width:100%; height:auto; }
.club-book-figure figcaption { font-size:.9rem; margin:.4rem 0; }
.club-book-bar { display:flex; min-height:1.7rem; overflow:hidden; border-radius:.3rem; }
.club-book-bar span { display:flex; justify-content:center; align-items:center; color:#fff; font-size:.85rem; }
.club-book-bar-a { background:#263e77; }.club-book-bar-b { background:#426b94; }
.club-book-flow { display:grid; gap:.4rem; text-align:center; }.club-book-flow strong,.club-book-branches span { padding:.5rem; border:1px solid currentColor; border-radius:.3rem; }
.club-book-branches { display:grid; gap:.4rem; grid-template-columns:1fr 1fr; }

/* Reading and navigation inside the existing knowledge modal. */
.book-whole-search { margin:1rem 0; padding:.75rem; border:1px solid currentColor; border-radius:.6rem; }
.book-whole-search h4 { margin:0 0 .65rem; }
.book-whole-search input { display:block; width:100%; box-sizing:border-box; font:inherit; min-height:44px; padding:.55rem; }
.book-search-results,.book-search-matches ul,.book-chapter-toc ul { list-style:none; padding:0; margin:.5rem 0; }
.book-search-results:empty { display:none; }
.book-search-results>li { margin:.35rem 0; }
.book-section-nav { display:flex; flex-wrap:wrap; gap:.4rem; }
.book-whole-search button,.book-chapter-toc button { max-width:100%; min-height:44px; font:inherit; overflow-wrap:anywhere; text-align:left; padding:.5rem; cursor:pointer; }
.book-search-result { display:block; width:100%; }
.book-search-result small { display:block; font-size:.85em; margin-top:.25rem; }
.book-search-matches { margin:.25rem 0 .5rem .5rem; }
.book-search-matches summary,.book-chapter-toc summary,.book-detail-source summary { cursor:pointer; padding:.4rem 0; }
.book-search-matches button,.book-chapter-toc button { width:100%; }
.book-chapter-toc { border-block:1px solid color-mix(in srgb,currentColor 25%,transparent); margin:.75rem 0; }
.book-detail-source { font-size:.85rem; margin:0 0 1rem; overflow-wrap:anywhere; }
.club-book-chapter>p { line-height:1.55; max-width:75ch; }
.club-book-chapter [data-book-detail] { scroll-margin-top:1rem; }
