
:root {
  --ink: #1d1c1a;
  --muted: #5c574e;
  --paper: #f4efe6;
  --desk: #e8e2d8;
  --panel: #fffdf8;
  --rule: #c9c0b0;
  --accent: #8a3b12;
  --link: #6e2f0e;
  /* Screen column: ~44rem so laptop reading is not print-measure narrow. */
  --text-width: 44rem;
  --sidebar-width: 14rem;
  --layout-gap: 1.75rem;
  --page-padding: 1.4rem;
  --layout-max: calc(var(--sidebar-width) + var(--layout-gap) + var(--text-width) + 2 * var(--page-padding));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; hyphens: manual; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--desk);
  line-height: 1.45;
  font-size: 10.5pt;
}
a { color: var(--link); }
a.cite {
  color: inherit;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 0.18em;
}
a.cite:hover { color: var(--accent); }
a.ext { overflow-wrap: anywhere; word-break: break-word; }
sup.fn { font-size: 0.75em; line-height: 0; }
sup.fn a { text-decoration: none; }
.footnotes {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footnotes hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 0.9rem;
}
.footnotes ol { padding-left: 1.3rem; margin: 0; }
.footnotes li { margin: 0.45rem 0; }
.footnotes .fn-back a { text-decoration: none; margin-right: 0.25rem; }
.wrap {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--text-width));
  gap: var(--layout-gap);
  width: min(var(--layout-max), 100%);
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 2rem var(--page-padding) 5rem;
  background: var(--paper);
  min-width: 0;
}
main {
  min-width: 0;
  max-width: min(var(--text-width), 100%);
  overflow-wrap: break-word;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  word-spacing: -0.01em;
}
main h1, main h2, main h3, main h4, main h5, main h6,
main .chap-kicker, main .byline, main .crumb,
main .pager, main .chap-index, main .titlepage {
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}
main pre, main table, main .figure-placeholder {
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}
nav.toc {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.35;
  padding-right: 0.6rem;
}
nav.toc .toc-home {
  display: block;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin: 0 0 0.85rem;
  line-height: 1.25;
}
nav.toc .toc-cover {
  width: 4.8rem;
  height: auto;
  display: block;
  margin: 0 0 0.65rem;
}
nav.toc .toc-home:hover { color: var(--accent); }
nav.toc h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
nav.toc a { color: var(--muted); text-decoration: none; }
nav.toc a:hover { color: var(--ink); }
nav.toc ol { list-style: none; margin: 0; padding: 0; }
nav.toc li { margin: 0.28rem 0; }
nav.toc li.chap { margin-top: 0.7rem; font-weight: 650; color: var(--ink); }
nav.toc li.chap:first-child { margin-top: 0; }
nav.toc li.current > details > summary > a,
nav.toc li.current > a { color: var(--ink); }
nav.toc .h2 { font-weight: 400; }
nav.toc .h3 { font-size: 0.78rem; font-weight: 400; }
nav.toc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
nav.toc summary > a {
  flex: 1;
  min-width: 0;
}
nav.toc summary::-webkit-details-marker { display: none; }
nav.toc summary::after {
  content: "▸";
  color: var(--muted);
  font-size: 0.62rem;
  width: 0.75rem;
  flex: none;
  transform: translateY(-0.05em);
}
nav.toc details[open] > summary::after { content: "▾"; }
nav.toc details > ol { margin: 0.15rem 0 0.35rem 0.75rem; }
nav.toc li.bib { margin-top: 0.9rem; }
nav.toc li.idx { margin-top: 0.35rem; }
nav.toc li.pdf { margin-top: 0.65rem; }
nav.toc li.pdf a { font-weight: 650; }
nav.toc li.practitioner {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-style: italic;
}
nav.toc li.practitioner a { font-weight: 500; color: var(--muted); }
nav.toc li.practitioner a:hover { color: var(--ink); }
.titlepage {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
  padding: 1.2rem 0 1.8rem;
}
.titlepage h1 {
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.titlepage .subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2.4rem;
}
.titlepage .editor { font-size: 1rem; }
.titlepage .license {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.titlepage .license a { color: var(--link); }
.how-to-cite {
  margin: 1.6rem auto 0;
  max-width: 32rem;
  text-align: left;
  font-size: 0.92rem;
}
.how-to-cite h2 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
.how-to-cite p { margin: 0; color: var(--ink); }
.titlepage .pdf-link {
  margin: 1.15rem 0 0;
  font-size: 1rem;
}
.titlepage .pdf-link a {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.titlepage .pdf-link a:hover { color: var(--accent); }
.titlepage .cover-art {
  width: min(100%, 22rem);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
article.chapter { margin: 0 0 2rem; }
.crumb { font-size: 0.82rem; margin: 0 0 1.1rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
.pager a { text-decoration: none; }
.pager a:hover { color: var(--accent); }
.pager .dir { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chap-index { list-style: none; padding: 0; margin: 2rem 0 0; }
.chap-index li { margin: 0 0 1.15rem; }
.chap-index a { text-decoration: none; color: inherit; }
.chap-index a:hover .full { color: var(--accent); }
.chap-index .kicker { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.chap-index .full { display: block; font-weight: 650; margin-top: 0.15rem; }
.chap-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
article.chapter > h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--ink);
}
.byline { color: var(--muted); font-size: 0.95rem; }
.abstract {
  margin: 1.3rem 1.1rem 2rem;
  padding: 0.2rem 0;
  color: #2a2824;
  font-size: 0.94rem;
}
h2 { font-size: 1.28rem; margin: 2.1rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem; font-style: normal; font-weight: 700; margin: 1.2rem 0 0.4rem; }
h5 { font-size: 0.98rem; font-style: normal; font-weight: 700; margin: 1rem 0 0.35rem; }
h6 { font-size: 0.95rem; font-style: normal; font-weight: 700; margin: 0.85rem 0 0.3rem; }
.num { color: var(--accent); font-style: normal; font-weight: 700; }
p { margin: 0 0 0.85rem; }
blockquote.defquote {
  margin: 0.6rem 0 1rem 0.4rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 2px solid var(--rule);
  color: #2a2824;
  font-style: italic;
}
blockquote.defquote p { margin: 0; }
aside.practitionernotes {
  margin: 1.6rem 0 1.8rem;
  padding: 0.85rem 1rem 0.95rem;
  background: #f0ebe1;
  border: 1.5px solid #2a6f78;
}
aside.practitionernotes h3 {
  margin: 0 0 0.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #6a7342;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #2a6f78;
}
aside.practitionernotes ul { margin: 0.2rem 0 0.2rem 1.05rem; }
aside.practitionernotes p:last-child { margin-bottom: 0; }
ul, ol { margin: 0.3rem 0 1rem 1.1rem; padding: 0; }
li { margin: 0.35rem 0; }
.equation {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  padding: 0.2rem 0;
  text-align: center;
}
span.math { white-space: nowrap; }
mjx-container[jax="CHTML"][display="true"] { margin: 0.4rem 0; }
figure {
  position: relative;
  margin: 1.4rem 0 1.6rem;
  padding: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  max-width: 100%;
  min-width: 0;
}
.figure-inset {
  margin: 0.15rem 0 0.35rem;
  padding: 0.85rem 1rem 0.95rem;
  background: #f7f3eb;
  border: 1.5px solid #2a6f78;
  font-size: 0.92rem;
  line-height: 1.45;
}
.figure-inset > p:first-child {
  margin: 0 0 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #6a7342;
  color: #2a6f78;
  font-weight: 650;
}
.figure-inset p { margin: 0 0 0.55rem; }
.figure-inset p:last-child { margin-bottom: 0; }
figure .zoom-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0;
}
figure .zoom-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.figure-longdesc {
  /* Screen-reader / aria-describedby target only; not shown in the figure layout. */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  top: 0;
  left: 0;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1.25rem;
  border: 0;
  background: rgba(20, 18, 14, 0.82);
  backdrop-filter: blur(2px);
  cursor: zoom-out;
  box-sizing: border-box;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop {
  background: transparent;
}
.lightbox__frame {
  position: relative;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  margin: 0;
  cursor: default;
}
.lightbox__img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.lightbox__close {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.lightbox__close:hover { color: var(--accent); }
.lightbox__hint {
  position: absolute;
  left: 50%;
  bottom: -1.7rem;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #f0ebe1;
  white-space: nowrap;
  opacity: 0.85;
}
figure.transcript .transcript-body,
figure.transcript pre {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 100%;
  background: #f7f4ef;
  border: 1px solid var(--rule);
}
figure.transcript .transcript-body {
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
figure.transcript .transcript-note {
  margin: 0 0 0.75rem;
  font-style: normal;
  font-family: inherit;
}
figure.transcript .turn {
  margin: 0.3rem 0;
  padding-left: 4.5em;
  text-indent: -4.5em;
  font-family: inherit;
}
figure.transcript .speaker { font-weight: 700; }
figure.transcript pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: auto;
}
.figure-placeholder {
  border: 2px dashed var(--rule);
  background: #faf6f0;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.figure-placeholder code { font-size: 0.88em; word-break: break-all; }
.figure-placeholder .placeholder-hint { margin: 0.5rem 0 0; font-size: 0.85rem; }
figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.7rem; }
figure.table { overflow-x: auto; }
dl.glossary { margin: 1rem 0 1.5rem; }
dl.glossary dt {
  font-weight: 650;
  margin-top: 0.85rem;
  color: var(--ink);
  scroll-margin-top: 4.5rem;
}
dl.glossary dt:target,
.index-target:target {
  background: #f3e2cf;
  outline: 2px solid #e0c29a;
}
a.index-target {
  scroll-margin-top: 4.5rem;
}
dl.glossary dd {
  margin: 0.25rem 0 0 0;
  color: var(--muted);
}
ul.gloss-refs {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
ul.gloss-refs li {
  margin: 0 0 0.7rem;
  padding-left: 1.4rem;
  text-indent: -1.4rem;
}
table.book {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.15rem 0 0.25rem;
}
table.book.fixed-cols { table-layout: fixed; }
figure.table .table-notes {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}
figure.table .table-notes sup { font-size: 0.75em; }
table.book th, table.book td {
  border-top: 1px solid var(--rule);
  padding: 0.4rem 0.55rem;
  vertical-align: top;
  text-align: left;
}
table.book thead th {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 650;
}
table.book td.section {
  font-weight: 650;
  background: var(--panel);
  border-top: 1px solid var(--ink);
}
table.book tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
pre.rule, p.generated {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  background: var(--panel);
  border-left: 3px solid var(--rule);
  padding: 0.45rem 0.7rem;
  overflow-x: auto;
}
p.generated { letter-spacing: 0.04em; }
#bibliography h2 { border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; }
#subject-index h2 { border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; }
.idx-lead { font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 1.1rem; }
.letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  font-weight: 650;
}
.letter-nav a { text-decoration: none; }
.subject-index h2 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.45rem;
  scroll-margin-top: 4.5rem;
}
.idx-row { margin: 0.2rem 0; font-size: 0.95rem; line-height: 1.45; }
a.idx-term { text-decoration: none; }
a.idx-term.primary { font-weight: 650; }
.idx-locs { white-space: nowrap; }
a.idx-loc { text-decoration: none; margin-left: 0.15rem; font-variant-numeric: tabular-nums; }
a.idx-loc.primary { font-weight: 700; }
.refs { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; line-height: 1.35; }
.refs li { margin: 0; padding-left: 1.4rem; text-indent: -1.4rem; }
.refs li:target { background: #f3e2cf; outline: 2px solid #e0c29a; }
.cite-locs { white-space: nowrap; font-size: 0.92em; margin-left: 0.25rem; }
a.cite-loc { text-decoration: none; margin-left: 0.12rem; font-variant-numeric: tabular-nums; }
a.cite:target { background: #f3e2cf; outline: 2px solid #e0c29a; }
a.doi { font-size: 0.85em; }
@media (min-width: 1041px) {
  .wrap {
    box-shadow: 0 1px 2px rgba(29, 28, 26, 0.05), 0 10px 36px rgba(29, 28, 26, 0.07);
  }
}
@media (max-width: 1040px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  main {
    margin: 0 auto;
    max-width: 100%;
  }
  nav.toc { position: relative; max-height: none; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
  figure, table.book, pre { max-width: 100%; }
}
