/* Book paper and brass rules carry the same material palette as the playing table. */
.manual{width:min(760px,calc(100vw - 24px));padding:clamp(15px,3vw,28px);scrollbar-width:thin;max-height:90dvh}
.manual h2{font-size:clamp(27px,4vw,38px);line-height:1.13;margin:5px 0 12px}
.manual h3{font-size:23px;line-height:1.2;color:#304838;margin:13px 0 4px}
.manual p,.manual li,.manual dd{font-size:15px;line-height:1.5}
.manual p.intro{max-width:62ch;color:#566454}.manual button:not(.icon-close){min-height:36px}
#book-nav,.book-foot,.turn-choices,.lesson-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#book-nav{padding:3px 0 12px;border-bottom:1px solid #daccb2;margin-bottom:12px}
#book-nav button,.book-foot button:not(.primary),.turn-choices button:not(.primary),.lesson-crumb button{background:#f1eadb;border:1px solid #d6c9ad;padding:6px 11px;font-size:13px}
#book-nav button[aria-pressed=true],.turn-choices button[aria-pressed=true],.piece-picker button[aria-pressed=true]{background:#dbe4ce;border-color:#7e916d;color:#244b37}
.book-foot{margin-top:16px;justify-content:space-between}.book-foot .done{margin:0}
.book-split,.book-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:14px}
.book-split{grid-template-columns:minmax(140px,.7fr) 1.3fr}
.manual .opening-plan,.manual .practice-board{display:block;width:100%;height:auto;stroke:none;fill:none;overflow:visible}
.opening-plan{max-height:205px;margin:auto}.arc,.radial{fill:none;stroke:#ad8e60;stroke-width:1.45}.radial{stroke:#ad9674;stroke-width:1.1}
.arc.hot{stroke:#bc8535;stroke-width:5}
.opening-plan text,.practice-board text{font:600 14px Georgia,serif;fill:#61503a;text-anchor:middle;stroke:none}
.practice{background:radial-gradient(ellipse at 50% 32%,#fff4d9,#e8d8b6);border:1px solid #ccba93;border-radius:8px;margin:12px 0 6px;overflow:hidden}
.practice figcaption{padding:7px 12px;color:#564931;background:#e4d5b7;font-size:12px;line-height:1.3}
.practice figcaption span{float:right;color:#645d4f}.manual .practice-board{max-height:clamp(205px,34vh,340px)}
.practice .stud{fill:#b28f5f}.practice .goal,.practice .option,.practice .source,.practice .forecast{stroke-width:2.5;stroke:#318657;fill:#8dc59144}
.practice .source,.practice .forecast{stroke:#aa762a;fill:#f7d58672}.practice .source.picked{stroke:#3c8157}
.practice .option{stroke-width:1.8;fill:#96cc9b99}.practice .route{fill:none;stroke:#507f57;stroke-width:3;stroke-dasharray:6 4}
.practice .node{cursor:pointer;outline:none}.practice .node circle{fill:transparent;stroke:none}
.practice .node:hover circle,.practice .node:focus-visible circle{fill:#7eab7626;stroke:#41704c;stroke-width:2;stroke-dasharray:4}
.carving{display:inline-block;flex:none;width:62px;height:62px;background:url(carvings.png) no-repeat;background-size:600% 200%;background-position:calc(var(--piece) * 20%) calc(var(--row) * 100%)}
.piece-lead{display:flex;align-items:center;gap:12px;margin:10px 0;padding:6px 10px;background:#eadfc9;border-radius:7px}
.piece-lead span:not(.carving){font:19px/1.15 Georgia,serif}.piece-lead small{display:block;margin-top:4px;color:#505d4b;font:14px/1.4 "Segoe UI",sans-serif}
.piece-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:12px}
.piece-picker button{display:grid;place-items:center;padding:4px 1px 6px;background:#eee4d1;border:1px solid #d3c4a8;font-size:12px}
.piece-picker .carving{width:48px;height:48px}.chapters{display:grid;gap:8px;margin-top:16px}
.chapters button{display:flex;text-align:left;align-items:center;width:100%;gap:14px;border:1px solid #d2c5ab;padding:12px;background:linear-gradient(110deg,#f1e7d3,#fbf6e9)}
.chapters button:hover,.piece-picker button:hover{border-color:#91966d;background-color:#e9e9d5}
.chapters b,.chapters small{display:block}.chapters b{font:20px Georgia,serif}.chapters small{color:#616654;font-size:13px;margin-top:4px}
.folio{color:#a28653;font:23px Georgia,serif;border-right:1px solid #d6c6a8;padding-right:12px}
.tally{margin-left:auto;white-space:nowrap;color:#637653;font-size:12px}.lesson-crumb{justify-content:space-between;margin:8px 0}.lesson-crumb span{font-size:12px;color:#726d58}
.feedback{background:#ede9d9;border-left:3px solid #a78851;padding:9px 12px}.feedback.success{background:#e0ead7;border-color:#698659}
.turn-choices{margin-top:10px}.finish-mark{font-size:38px;color:#638359}.flow{padding-left:24px}.flow li{padding-left:3px;margin:7px 0}
.controls-list dt{font-weight:650;margin-top:9px}.controls-list dd{margin:2px 0 0}
@media(max-width:560px){
  .mast nav .plain svg{display:none}.mast nav .plain,.mast nav .primary{padding:6px;font-size:11px}.mast nav .primary svg{display:none}
  .manual{max-height:93dvh}.manual p,.manual li,.manual dd{font-size:14px}.piece-picker{grid-template-columns:repeat(3,1fr)}
  .book-split{grid-template-columns:1fr}.book-pair{grid-template-columns:1fr;gap:2px}.book-split .opening-plan{max-height:152px}
  .chapters button{padding:9px;gap:8px}.chapters b{font-size:18px}.manual .practice-board{max-height:244px}
}
