/* jyotish.vip — the books pages, and the levels and books sections of the desk. Tokens and type roles:
   /assets/canon.css; layout of the reading pages: /assets/tool.css. Values here are var(--…) only. */
.books .book-hero{margin-bottom:var(--space-8)}
.books .book-hero .answer{max-width:44em}
.crumbs{font-size:var(--fs-small);line-height:var(--lh-dense);color:var(--text-muted);margin:0 0 var(--space-4);overflow-wrap:anywhere}
.crumbs a{color:var(--text-body)}
.book-section{margin:0 0 var(--space-10);min-width:0}
.book-section>p{max-width:44em;color:var(--text-body)}
/* Shelf: four cards, a cover beside the words from 700 px, under it below */
.book-grid{list-style:none;margin:0 0 var(--space-10);padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr));gap:var(--space-4)}
.book-card{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);background-color:var(--surface-card);border:1px solid var(--hairline);border-radius:var(--radius-card);padding:var(--space-5);min-width:0;transition:border-color var(--duration-fast) var(--ease-inout)}
.book-card:hover{border-color:var(--accent-struct)}
@media(min-width:700px){.book-card{grid-template-columns:160px minmax(0,1fr)}}
.book-card-body{min-width:0}
.book-card-body p{color:var(--text-body)}
.book-cover-link{display:block;max-width:220px}
.book-cover{display:block;width:100%;height:auto;border-radius:var(--radius-inner);border:1px solid var(--hairline);box-shadow:var(--shadow-card)}
.book-vol{font-family:var(--font-mono);font-weight:500;font-size:var(--fs-caption);line-height:var(--lh-dense);text-transform:uppercase;letter-spacing:var(--track-caps);color:var(--accent-struct-text);margin:0 0 var(--space-1)}
.book-title{margin:0 0 var(--space-3)}
.book-title a{color:var(--text-ink);text-decoration:none}
.book-title a:hover{color:var(--accent-struct-text)}
.book-nums{color:var(--text-ink);margin:0 0 var(--space-3)}
.book-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0 0 var(--space-3)}
.book-actions a{text-decoration:none}
.book-links{font-size:var(--fs-small);margin:0}
/* One wax button a screen: the other volumes of the shelf download with the action button */
.btn-act{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:var(--space-2) var(--space-4);border:0;border-radius:var(--radius-inner);font-family:var(--font-body);font-weight:500;font-size:var(--fs-body);line-height:var(--lh-snug);text-align:center;text-decoration:none;cursor:pointer;background-color:var(--accent-action);color:var(--text-on-action);transition:filter var(--duration-fast) var(--ease-inout)}
.btn-act:hover{filter:brightness(1.08);color:var(--text-on-action)}
/* Lists of the books pages are interface text, set in the body face */
.books .reading li,.books .book-section li{font-family:var(--font-body);font-size:var(--fs-body)}
.books .mono li{font-family:var(--font-mono);font-size:var(--fs-caption)}
.book-start li{margin-bottom:var(--space-2)}
/* Chapter map: three columns, a stack of cards on a phone (canon table.stack) */
.book-map td:last-child a{white-space:nowrap}
@media(max-width:600px){.book-map td:last-child a{white-space:normal}}
/* Checksums: long hashes break anywhere */
.book-sums{margin:var(--space-3) 0 0;min-width:0}
.book-sums summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:500;color:var(--text-body)}
.book-sums ul{list-style:none;margin:var(--space-2) 0 0;padding:0;font-size:var(--fs-caption);line-height:var(--lh-dense)}
.book-sums li{margin:0 0 var(--space-2);overflow-wrap:anywhere;word-break:break-all;color:var(--text-body)}
.sum-name{color:var(--text-ink)}
/* Volume page: the download panel */
.book-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-5);margin:0 0 var(--space-10)}
.book-panel>.book-cover{max-width:240px}
@media(min-width:700px){.book-panel{grid-template-columns:220px minmax(0,1fr);align-items:start}.book-panel>.book-cover{max-width:none}}
.book-panel-body{min-width:0}
.book-edition{font-size:var(--fs-small);color:var(--text-muted);margin:0}
.book-contents h3{margin:var(--space-5) 0 var(--space-2)}
.book-toc{margin:0 0 var(--space-3);padding-left:var(--space-6);color:var(--text-body)}
.book-toc li{margin:0 0 var(--space-2);line-height:var(--lh-dense)}
.book-toc ol{margin:var(--space-2) 0 0;padding-left:var(--space-5)}
.book-appx,.book-toc[start]{list-style:none;padding-left:0}
.book-check{display:inline-flex;flex-wrap:wrap;gap:var(--space-1) var(--space-3);margin-left:var(--space-2);font-size:var(--fs-small)}
.book-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:var(--space-4);max-width:560px}
.book-previews figure{margin:0}
.book-previews img{display:block;width:100%;height:auto;border:1px solid var(--hairline);border-radius:var(--radius-inner)}
.book-author{margin:0 0 var(--space-8)}
.book-author p{max-width:44em}
.book-end{font-size:var(--fs-small);color:var(--text-body);margin:0 0 var(--space-4)}
.book-ref{font-size:var(--fs-small)}
/* Desk: the levels and the four covers */
.levels-list{margin:0;padding-left:var(--space-6);color:var(--text-body)}
.levels-list li{margin:0 0 var(--space-3);max-width:48em}
.book-covers{list-style:none;margin:var(--space-4) 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-4)}
@media(max-width:700px){.book-covers{grid-template-columns:repeat(2,minmax(0,1fr))}}
.book-covers a{display:flex;flex-direction:column;gap:var(--space-2);text-decoration:none;color:var(--text-body);font-size:var(--fs-small)}
.book-covers a:hover{color:var(--accent-struct-text)}
#levels,#books{margin-bottom:var(--space-10)}
