/* book.css - chapter chrome for the S-Tier book
 *
 * Loaded by docs/book/*.html after site.css and prose.css. Holds only what the
 * book adds on top of the reading archetype: numbered lists, chapter tables,
 * the pager, the contents rows and the stat row.
 *
 * These pages are generated by scripts/build-book-site.mjs from book/*.md.
 * Never hand-edit docs/book/*.html; edit the chapter or this file and re-run
 * the script.
 */

.book-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 28px; }
ol { list-style: none; counter-reset: item; margin: 0 0 16px; }
ol li { counter-increment: item; }
ol li::before { content: counter(item); top: 0; width: auto; height: auto; background: none; color: var(--gold); font-size: 13px; font-weight: 700; font-family: var(--mono); }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface); }
td:first-child code { white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
.panel.move { border-color: rgba(200, 169, 110, 0.45); background: rgba(200, 169, 110, 0.06); margin-top: 36px; }
.move-label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.pager a { display: block; max-width: 47%; min-width: 220px; flex: 1 1 220px; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pager a:hover { border-color: var(--gold); }
.pager .dir { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.pager .to { font-size: 15.5px; font-weight: 700; color: var(--cream); }
.pager .next { text-align: right; margin-left: auto; }
.part-head { margin: 52px 0 6px; }
.part-head .part-name { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); }
.part-head h2 { margin: 6px 0 4px; }
.part-blurb { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.toc { display: grid; gap: 10px; }
.toc-row { display: block; border: 1px solid var(--border); border-radius: 6px; padding: 16px 18px; background: var(--card); border-bottom: 1px solid var(--border); }
.toc-row:hover { border-color: var(--gold); }
.toc-num { font-size: 11px; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.toc-title { font-size: 18px; font-weight: 700; color: var(--cream); margin: 4px 0 6px; letter-spacing: -0.01em; }
.toc-dek { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 26px 0 8px; padding: 18px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--cream); }
.stat span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
