/* The handbook shares the comic folios and their image viewer with the gallery. */
:root {
  --md-primary-fg-color:#253e71;
  --md-primary-fg-color--dark:#1c3059;
  --md-accent-fg-color:#315fc1;
  --md-typeset-a-color:#254e97;
  --md-text-font:system-ui;
  --blue:#294f96;
  --muted:#56667a;
  --line:#d4dae3;
}
.md-grid {max-width:84rem}
.md-header__title {font-weight:630;letter-spacing:.025em}
.md-nav {font-size:.71rem}
.md-nav__link {line-height:1.48}
.md-sidebar__scrollwrap {scrollbar-width:thin}
.md-nav__link--active {font-weight:700}
.md-typeset {font-size:.83rem;line-height:1.85}
.md-typeset h1,.md-typeset h2 {font-family:"Songti SC","Noto Serif CJK SC",serif;font-weight:680;letter-spacing:-.025em;text-wrap:balance;color:#1d2d49}
.md-typeset h1 {font-size:1.85rem;margin:.25rem 0 .6rem}
.md-typeset h2 {font-size:1.22rem;padding-top:.7rem;border-top:1px solid #d4dae3;margin-top:1.65rem}
.md-typeset h3 {line-height:1.55}
.handbook-path {display:flex;flex-wrap:wrap;gap:.42rem;align-items:center;font-size:.64rem;line-height:1.6;color:#63758a;margin:.15rem 0 .8rem}
.handbook-lead {color:var(--muted)}
.md-typeset .proof-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:.8rem .6rem}
.md-typeset .proof-grid figure {margin:0;width:100%;display:block}
.md-typeset .proof-grid figcaption {max-width:none;margin:0;text-align:left;font-style:normal;font-size:.69rem}
.md-typeset .proof-image {width:100%;display:block}
.md-typeset .proof-image img {margin:0;display:block;height:clamp(175px,19vw,330px);max-width:100%}
.md-typeset .proof-grid .wide-evidence img,.md-typeset .proof-grid figure:only-child img {height:auto;max-height:470px}
.md-typeset .proof-log li {margin-left:0}
.doc-pager {border-top:1px solid var(--line);margin-top:2rem;font-size:.75rem}
.doc-data th,.doc-data td {white-space:nowrap}
#image-dialog {position:fixed;inset:0;margin:auto;padding:0;width:min(1050px,96vw);height:91dvh;max-height:94vh;border:0;border-radius:6px;overflow:auto;background:#eeeff1;color:#243653}
#image-dialog::backdrop {background:#172336e8}
#image-dialog .dialog-bar {position:sticky;top:0;background:white;display:flex;align-items:center;justify-content:space-between;padding:.45rem .8rem;border-bottom:1px solid var(--line);z-index:1}
#image-dialog button {font:inherit;color:var(--blue);cursor:pointer;padding:.2rem .5rem}
#image-dialog img {display:block;width:auto;max-width:100%;margin:auto}
.md-typeset .guide-start {grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr))}
.md-typeset .guide-start>a {padding:.55rem;gap:.7rem}
.guide-start img {width:75px;height:97px}
.md-typeset .guide-start strong {font-size:.9rem;line-height:1.4}
.book-catalog .filter-line {display:flex;align-items:center;justify-content:space-between;gap:1em;margin:.4rem 0}
.book-catalog .result-count,.book-catalog .module-code {font-size:.66rem;color:var(--muted)}
.book-catalog input[type=search] {display:block;width:100%;background:#f7f9fb;border:1px solid #b7c4d4;border-radius:4px;padding:.4rem .65rem;font:inherit}
.book-catalog .filter-chips {display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.book-catalog .filter-chips button {font:inherit;font-size:.67rem;cursor:pointer;color:var(--blue);background:white;border:1px solid #ccd5e2;padding:.18rem .48rem;border-radius:3px}
.book-catalog .filter-chips button[aria-pressed=true] {background:var(--md-primary-fg-color);color:white}
.book-catalog .module-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:12px}
.book-catalog .module-card {padding:12px;border:1px solid var(--line);border-radius:4px}
.book-catalog .module-card h3 {margin:0;font-size:.94rem}
.book-catalog .module-card>p {margin:.3rem 0;font-size:.72rem}
.book-catalog .module-card:target,.book-catalog .technique-row:target {outline:2px solid var(--blue)}
.book-catalog [hidden] {display:none!important}
.book-catalog .index-evidence img {height:56px;width:52px}
.book-catalog .index-evidence strong {font-size:.73rem}
.md-typeset .technique-row {border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:none;padding:0;margin:0}
.md-typeset .technique-row summary {display:grid;grid-template-columns:2rem 1fr auto;gap:.3rem;align-items:center;background:none;margin:0;padding:.7rem .3rem;font-size:.75rem;line-height:1.5}
.md-typeset .technique-row summary:before,.md-typeset .technique-row summary:after {display:none}
.technique-row summary small,.technique-row summary span {color:var(--muted)}
.md-typeset .technique-row[open] summary {background:#eef3fa}
.index-open {padding:12px 8px 18px}
.record-row {display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:.4rem 1rem;border-top:1px solid var(--line);padding:.5rem 0}
.record-row .record-name {grid-row:span 2}
.record-row .record-name h2,.record-row .record-name h3 {border:0;margin:0;padding:0;font-size:.93rem}
.record-row p {margin:0;font-size:.71rem}
.record-links a {margin-right:.5rem;font-size:.7rem}
.md-typeset .doc-prompts details {border:1px solid var(--line);box-shadow:none;padding:.4rem .6rem;margin:.3rem 0}
.md-typeset .doc-prompts summary {position:static;background:transparent;margin:0;padding:0;list-style:revert;font-size:.73rem}
.md-typeset .doc-prompts summary:before,.md-typeset .doc-prompts summary:after {display:none}
.md-typeset .doc-prompts pre {max-height:22rem;overflow:auto;white-space:pre-wrap;background:#f7f8fa;padding:.65rem}
@media(max-width:600px) {
 .md-typeset h1 {font-size:1.48rem}
 .md-typeset .proof-grid {grid-template-columns:1fr}
 .md-typeset .proof-image img {height:auto;max-height:450px}
 .md-typeset .technique-row summary {grid-template-columns:2rem 1fr}
 .md-typeset .technique-row summary small {grid-column:2}
 .record-row {display:block}.record-links {margin-top:.35rem}
}
@media(min-width:900px){
 .md-typeset .proof-grid:has(>.wide-evidence:nth-child(4)) {grid-template-columns:repeat(3,minmax(0,1fr))}
 .md-typeset .proof-grid:has(>.wide-evidence:nth-child(4)) .proof-image img {height:auto}
}
