/* chapter-dress.css: the look of a dressed chapter page of the book online (scripts/dress-chapter-pages.py). 16 Nov 2026.
   All rules are .chx-. The chapter's own markup keeps the builder's classes (.bk-wrap and so on). */
header.chx-hero .stx-stand { font-size: 1rem; max-width: 36rem; color: #c8b896; }
header.chx-hero .stx-stand a { color: #e8cd8a; }
header.chx-hero + nav.stx-pills ul { max-width: 76rem; }
main.bk-wrap.chx { max-width: 46rem; padding-top: 1.4rem; font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.chx [id] { scroll-margin-top: calc(var(--stx-navh, 0px) + 4.2rem); }
/* the first paragraph */
.bk-wrap.chx p.chx-lead { font-size: 1.27rem; line-height: 1.58; color: #1c2a3f; margin: 0.9rem 0 1.5rem; text-wrap: pretty; }
.bk-wrap.chx p.chx-lead::first-letter { float: left; font-size: 3.5em; line-height: 0.82; font-weight: 700; color: #8a6420; padding: 0.06em 0.09em 0 0; }
/* the folded list of headings */
.chx-toc { margin: 0 0 1.6rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 5px; background: #fffaf0; font-size: 0.98rem; }
.chx-toc > summary { cursor: pointer; padding: 0.7rem 1.05rem; font-weight: 700; color: #1c2a3f; letter-spacing: 0.01em; }
.chx-toc[open] > summary { border-bottom: 1px solid rgba(190, 150, 70, 0.45); }
.bk-wrap.chx .chx-toc ol { margin: 0; padding: 0.7rem 1.05rem 0.9rem 2.6rem; columns: 2; column-gap: 2.4rem; }
.bk-wrap.chx .chx-toc li { margin: 0; padding: 0.2rem 0; break-inside: avoid; line-height: 1.4; }
.bk-wrap.chx .chx-toc a { text-decoration: none; color: #1c2a3f; }
.bk-wrap.chx .chx-toc a:hover { text-decoration: underline; color: #7a5514; }
/* the chapter's summary box */
.bk-wrap.chx .note.chx-brief { background: #fffaf0; border: 1px solid rgba(190, 150, 70, 0.6); border-top: 3px solid #d8b366; border-radius: 5px; padding: 1.15rem 1.4rem 0.6rem; margin: 0 0 2.2rem; }
.bk-wrap.chx .chx-brief p.chx-brief-title { margin: 0 0 0.5rem; font-size: 1.5rem; line-height: 1.2; color: #1c2a3f; }
.bk-wrap.chx .chx-brief p.chx-row { margin: 0; padding: 0.85rem 0 0.2rem; border-top: 1px solid rgba(190, 150, 70, 0.35); }
.bk-wrap.chx .chx-brief p.chx-row > b:first-child { display: block; margin: 0 0 0.2rem; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a6420; font-weight: 700; }
.bk-wrap.chx .chx-brief p:not(.chx-row):not(.chx-brief-title) { margin: 0.5rem 0 0.2rem; }
.bk-wrap.chx .chx-brief ul { margin: 0.4rem 0 0.5rem; padding-left: 1.3rem; }
.bk-wrap.chx .chx-brief > :last-child { padding-bottom: 0.6rem; }
/* headings of the chapter */
.bk-wrap.chx h3[id] { margin: 2.7rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(190, 150, 70, 0.55); font-size: 1.52rem; line-height: 1.22; color: #1c2a3f; }
.bk-wrap.chx .chx-fold h3 { margin: 1.8rem 0 0.5rem; font-size: 1.2rem; color: #1c2a3f; }
/* figures and tables */
.bk-wrap.chx figure.fig { margin: 2rem 0 2.2rem; padding: 0.6rem 0.6rem 0.75rem; background: #fffaf0; border: 1px solid rgba(190, 150, 70, 0.55); border-radius: 5px; }
.bk-wrap.chx figure.fig img { border-radius: 2px; }
.bk-wrap.chx figure.fig figcaption { padding: 0.65rem 0.4rem 0; font-size: 0.92rem; line-height: 1.5; }
.bk-wrap.chx figure.fig .credit { margin-top: 0.25rem; }
.bk-wrap.chx p.tbl-title { margin: 2rem 0 0.4rem; font-size: 1rem; color: #1c2a3f; }
.bk-wrap.chx table { border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 5px; background: #fffaf0; font-size: 0.9rem; line-height: 1.5; }
.bk-wrap.chx th { background: #f3e7c9; border: 0; border-bottom: 1px solid rgba(190, 150, 70, 0.7); padding: 0.55rem 0.7rem; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6f5320; }
.bk-wrap.chx td { border: 0; border-top: 1px solid rgba(190, 150, 70, 0.3); padding: 0.55rem 0.7rem; }
.bk-wrap.chx td.note { background: rgba(216, 179, 102, 0.1); border-radius: 0; margin: 0; }
.bk-wrap.chx td .why { display: block; font-size: 0.86em; color: #5a4c38; }
.chx-v { display: inline-block; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid rgba(123, 108, 84, 0.5); color: #5a4c38; white-space: nowrap; }
.chx-v.for { background: #e9f0e4; border-color: #7f9a6b; color: #36522a; }
.chx-v.against { background: #f7e7e2; border-color: #c08a7a; color: #7a3524; }
.chx-v.open { background: #f7ece0; border-color: #c39a6a; color: #6f4a17; }
/* the notes and the sections kept online */
.bk-wrap.chx p.chx-extras { margin: 3rem 0 0.2rem; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6420; font-weight: 700; }
.bk-wrap.chx details.chx-fold { margin: 0.7rem 0 0; padding: 0; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 5px; background: #fffaf0; }
.bk-wrap.chx details.chx-fold.bk-notes { margin-top: 3rem; font-size: 0.9rem; }
.bk-wrap.chx details.chx-fold > summary { cursor: pointer; padding: 0.85rem 1.1rem; list-style-position: inside; }
.bk-wrap.chx details.chx-fold > summary h2 { display: inline; margin: 0; padding: 0; border: 0; font-size: 1.18rem; line-height: 1.3; color: #1c2a3f; }
.bk-wrap.chx details.chx-fold > summary small { margin-left: 0.6rem; font-size: 0.86rem; color: #5a4c38; font-weight: 400; }
.bk-wrap.chx details.chx-fold[open] > summary { border-bottom: 1px solid rgba(190, 150, 70, 0.45); }
.bk-wrap.chx details.chx-fold > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; }
.bk-wrap.chx details.chx-fold > ol, .bk-wrap.chx details.chx-fold > ul { padding-left: 1.6rem; }
.bk-wrap.chx details.chx-fold > table { width: calc(100% - 2.2rem); }
.bk-wrap.chx details.chx-fold > :last-child { margin-bottom: 1.1rem; }
.bk-wrap.chx details.chx-fold li:target { background: rgba(216, 179, 102, 0.28); }
/* the chapters before and after */
.bk-wrap.chx nav.chx-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.8rem; align-items: stretch; margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(190, 150, 70, 0.5); font-family: inherit; font-size: 1rem; }
.bk-wrap.chx nav.chx-pager a { display: flex; flex-direction: column; justify-content: center; padding: 0.7rem 1rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 5px; background: #fffaf0; text-decoration: none; color: #1c2a3f; }
.bk-wrap.chx nav.chx-pager a:hover { border-color: #b8893a; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.bk-wrap.chx nav.chx-pager a.n { text-align: right; }
.bk-wrap.chx nav.chx-pager a span { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6420; font-weight: 700; }
.bk-wrap.chx nav.chx-pager a b { line-height: 1.3; }
/* dark theme */
html.theme-dark .bk-wrap.chx p.chx-lead, html.theme-dark .chx-toc > summary, html.theme-dark .bk-wrap.chx .chx-toc a, html.theme-dark .bk-wrap.chx .chx-brief p.chx-brief-title,
html.theme-dark .bk-wrap.chx h3[id], html.theme-dark .bk-wrap.chx .chx-fold h3, html.theme-dark .bk-wrap.chx p.tbl-title, html.theme-dark .bk-wrap.chx details.chx-fold > summary h2,
html.theme-dark .bk-wrap.chx nav.chx-pager a { color: #f6f1e7; }
html.theme-dark .bk-wrap.chx p.chx-lead::first-letter, html.theme-dark .bk-wrap.chx .chx-brief p.chx-row > b:first-child, html.theme-dark .bk-wrap.chx p.chx-extras,
html.theme-dark .bk-wrap.chx nav.chx-pager a span, html.theme-dark .bk-wrap.chx th { color: #d8b366; }
html.theme-dark .chx-toc, html.theme-dark .bk-wrap.chx .note.chx-brief, html.theme-dark .bk-wrap.chx figure.fig, html.theme-dark .bk-wrap.chx table,
html.theme-dark .bk-wrap.chx details.chx-fold, html.theme-dark .bk-wrap.chx nav.chx-pager a { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .bk-wrap.chx .note.chx-brief { border-top-color: #d8b366; }
html.theme-dark .bk-wrap.chx th { background: #18263a; border-bottom-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .bk-wrap.chx td { border-top-color: rgba(216, 179, 102, 0.22); }
html.theme-dark .bk-wrap.chx td.note { background: rgba(216, 179, 102, 0.08); color: inherit; }
html.theme-dark .bk-wrap.chx td .why, html.theme-dark .bk-wrap.chx details.chx-fold > summary small { color: #c8b896; }
html.theme-dark .chx-v { background: transparent; color: #e9dfc8; border-color: rgba(200, 184, 150, 0.5); }
html.theme-dark .chx-v.for { color: #b9d3a6; border-color: #7f9a6b; } html.theme-dark .chx-v.against { color: #e6b0a2; border-color: #b07868; } html.theme-dark .chx-v.open { color: #e8cd8a; border-color: #b8975a; }
@media (max-width: 760px) {
  .bk-wrap.chx p.chx-lead { font-size: 1.17rem; }
  .bk-wrap.chx .chx-toc ol { columns: 1; }
  .bk-wrap.chx .note.chx-brief { padding: 1rem 1rem 0.4rem; }
  .bk-wrap.chx h3[id] { font-size: 1.36rem; }
  .bk-wrap.chx figure.fig { padding: 0.4rem 0.4rem 0.6rem; }
  .bk-wrap.chx table th, .bk-wrap.chx table td { min-width: 9.5rem; }
  .bk-wrap.chx table td.num, .bk-wrap.chx table th.num { min-width: 5rem; }
  .bk-wrap.chx nav.chx-pager { grid-template-columns: 1fr; }
  .bk-wrap.chx nav.chx-pager a.n { text-align: left; }
  .bk-wrap.chx nav.chx-pager i { display: none; }
}
@media print { .chx-toc { display: none; } }
/* DRESS40, 19 Nov 2026 (every chapter dressed; Parts One to Three in full): the housekeeping line at the head of a
   section kept online is set quietly, the builder's list of supplements keeps its place and its look, and the
   label over the kept sections is no smaller than 13px. */
.bk-wrap.chx details.chx-fold > p.bk-summary-note { background: none; border: 0; padding: 0; margin-top: 0.9rem; margin-bottom: 0.9rem; font-size: 0.86rem; font-style: italic; color: #5a4c38; -webkit-text-fill-color: #5a4c38; }
html.theme-dark .bk-wrap.chx details.chx-fold > p.bk-summary-note { color: #c8b896; -webkit-text-fill-color: #c8b896; }
.bk-wrap.chx section.bk-supp { margin-top: 3rem; }
.bk-wrap.chx p.chx-extras { font-size: 0.82rem; }
