:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #141414;
  --muted: #6f6a61;
  --line: #ded9cf;
  --soft: #efebe1;
  --accent: #8f3f25;
  --reader-serif: ui-serif, Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --reader-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--reader-serif);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .table-scroll:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:target { scroll-margin-top: 88px; }
.reader-skip {
  position: fixed; top: 8px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--paper); transform: translateY(-160%);
}
.reader-skip:focus { transform: none; }
.reader-topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .97); border-bottom: 1px solid var(--line);
}
.reader-topbar-inner {
  width: min(100% - 40px, 1080px); min-height: 64px; margin: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--reader-sans); font-size: 13px;
}
.reader-topbar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.reader-topbar a:hover { text-decoration: underline; }
.reader-wordmark { color: var(--ink); font-weight: 650; }
.reader-directory-link { color: var(--muted); white-space: nowrap; }
.book-main { width: min(100% - 40px, 880px); margin: 0 auto; }
.book-introduction { padding: clamp(48px, 8vw, 88px) 0 48px; }
.book-edition, .chapter-group, .book-subtitle, .chapter-metadata { color: var(--muted); }
.book-edition, .book-subtitle, .chapter-metadata, .chapter-group { margin: 0; }
.book-edition, .chapter-group { font-family: var(--reader-sans); font-size: 13px; letter-spacing: .04em; }
.book-introduction h1 {
  margin: 16px 0 20px; font-size: clamp(32px, 5vw, 50px);
  line-height: 1.35; font-weight: 500; overflow-wrap: anywhere;
}
.book-subtitle { max-width: 42em; font-size: 18px; line-height: 1.85; }
.contents-start { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.contents-label { margin: 0; font-size: 23px; font-weight: 500; }
.contents-count { margin: 0; font: 13px/1.6 var(--reader-sans); color: var(--muted); }
.reader-search { margin: 22px 0 40px; font-family: var(--reader-sans); }
.reader-search label { display: block; margin-bottom: 9px; font-size: 14px; }
.reader-search-controls { display: flex; gap: 10px; }
.reader-search input {
  width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line);
  border-radius: 3px; padding: 10px 13px; color: var(--ink); background: #fffefa; font-size: 16px;
}
.reader-search input::placeholder { color: var(--muted); }
.reader-search button {
  min-width: 72px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line);
  border-radius: 3px; background: transparent; color: var(--ink); font-size: 14px;
}
.reader-search button:hover:not(:disabled) { background: var(--soft); }
.search-help { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.toc-group { margin: 38px 0 46px; }
.toc-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.toc-group-heading h2 { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.toc-group-heading > span { flex: 0 0 auto; color: var(--muted); font: 12px/1.5 var(--reader-sans); }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item { border-bottom: 1px solid var(--line); }
.toc-entry { display: block; padding: 17px 0 16px; text-decoration: none; }
.toc-title { display: block; color: var(--ink); font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.toc-entry:hover .toc-title, .toc-entry:focus-visible .toc-title { color: var(--accent); text-decoration: underline; }
.toc-meta { display: block; margin-top: 5px; color: var(--muted); font: 12px/1.65 var(--reader-sans); overflow-wrap: anywhere; }
.toc-components { margin: -2px 0 17px; }
.toc-components > summary { width: fit-content; max-width: 100%; padding: 7px 0; color: var(--muted); cursor: pointer; font: 13px/1.7 var(--reader-sans); }
.toc-components > summary:hover { color: var(--accent); }
.toc-component-list { list-style: none; margin: 6px 0 0 6px; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.toc-component + .toc-component { border-top: 1px solid var(--line); }
.toc-component .toc-entry { padding: 12px 0; }
.toc-component .toc-title { font-size: 16px; }
.toc-root.is-search-context > .toc-primary .toc-title { color: var(--muted); }
.reader-no-results { padding: 24px 0 48px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.chapter-main { width: min(100% - 40px, 760px); margin: 0 auto; }
.chapter-header { padding: clamp(42px, 7vw, 76px) 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.chapter-book-link { display: inline-block; margin-bottom: 26px; font: 13px/1.7 var(--reader-sans); }
.chapter-group { margin-bottom: 12px; }
.chapter-header h1 { margin: 0 0 22px; font-size: clamp(28px, 4vw, 42px); line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.chapter-metadata { font: 13px/1.8 var(--reader-sans); overflow-wrap: anywhere; }
.chapter-header.is-source-title { padding-bottom: 0; margin-bottom: 24px; border-bottom: 0; }
.chapter-header.is-source-title .chapter-book-link { margin-bottom: 0; }
.chapter-context, .chapter-context-title { margin: 12px 0 0; color: var(--muted); font: 13px/1.8 var(--reader-sans); overflow-wrap: anywhere; }
.chapter-context-title { color: var(--ink); }
.chapter-body { font-size: 18px; line-height: 1.9; overflow-wrap: break-word; }
.chapter-body p { margin: 0 0 1.25em; }
.chapter-body h1, .chapter-body h2, .chapter-body h3, .chapter-body h4, .chapter-body h5 { font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.chapter-body h1 { margin: 2em 0 1em; font-size: 1.65em; }
.chapter-body.source-title-body h1:first-of-type { margin: 0 0 22px; font-size: clamp(30px, 4vw, 40px); line-height: 1.45; font-weight: 500; }
.chapter-body .publication-metadata { margin: 0 0 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font: 13.5px/1.85 var(--reader-sans); }
.chapter-body .publication-metadata p { margin: 0 0 .35em; }
.chapter-body h2 { margin: 2.2em 0 1em; font-size: 1.35em; }
.chapter-body h3 { margin: 1.8em 0 .8em; font-size: 1.15em; }
.chapter-body h4 { margin: 1.6em 0 .7em; font-size: 1em; }
.chapter-body h5 { margin: 1.6em 0 .7em; font-size: .94em; }
.chapter-body ul, .chapter-body ol { margin: 0 0 1.25em; padding-left: 1.65em; }
.chapter-body li { margin: .35em 0; }
.chapter-body li > p { margin-bottom: .65em; }
.chapter-body blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--line); color: #4b4944; }
.chapter-body blockquote > :last-child { margin-bottom: 0; }
.chapter-body hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.chapter-body img, .chapter-body svg, .chapter-body video { max-width: 100%; height: auto; }
.chapter-body figure { margin: 1.75em 0; }
.chapter-body figcaption { margin-top: .75em; color: var(--muted); font-size: .85em; line-height: 1.8; }
.chapter-body a { overflow-wrap: anywhere; }
.chapter-body pre { max-width: 100%; overflow-x: auto; padding: 1em; background: var(--soft); font-size: .85em; line-height: 1.7; }
.chapter-body code { font-size: .88em; }
.chapter-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: .9em; line-height: 1.7; }
.chapter-body th, .chapter-body td { padding: .65em .85em; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 6em; max-width: 28em; }
.chapter-body th { border-top: 1px solid var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.chapter-body caption { text-align: left; padding-bottom: .7em; color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5em 0; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.table-scroll table { display: table; width: 100%; min-width: 100%; max-width: none; overflow: visible; margin: 0; }
.table-scroll-hint { color: var(--muted); font: 12px/1.7 var(--reader-sans); }
.chapter-body .table-scroll-hint { margin: 1.5em 0 .4em; }
.table-scroll-hint:not([hidden]) + .table-scroll { margin-top: 0; }
.chapter-body .footnotes, .chapter-body [role="doc-endnotes"] { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.85; color: #514e48; }
.chapter-body .footnotes hr, .chapter-body [role="doc-endnotes"] > hr { display: none; }
.chapter-body .footnote-ref, .chapter-body [role="doc-noteref"] { padding: 0 .12em; font-family: var(--reader-sans); font-size: .72em; line-height: 0; vertical-align: super; }
.chapter-body sup { line-height: 0; }
.chapter-body sup .footnote-ref, .chapter-body sup [role="doc-noteref"] { font-size: inherit; line-height: inherit; vertical-align: baseline; }
.chapter-body .footnotes li:target, .chapter-body [role="doc-endnote"]:target, .chapter-body aside[role="doc-footnote"]:target { background: var(--soft); }
.chapter-body .footnote-back, .chapter-body [role="doc-backlink"] { padding: .15em .3em; }
.chapter-source { margin: 38px 0 0; font: 13px/1.8 var(--reader-sans); }
.chapter-navigation { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.chapter-neighbor { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-decoration: none; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.chapter-neighbor:hover .neighbor-title { text-decoration: underline; }
.neighbor-label { color: var(--muted); font: 12px/1.6 var(--reader-sans); }
.neighbor-context { color: var(--muted); font: 12px/1.7 var(--reader-sans); }
.chapter-neighbor.is-unavailable { color: var(--muted); font-size: 14px; }
.chapter-return { margin: 30px 0 0; font: 13px/1.8 var(--reader-sans); }
.reader-footer { width: min(100% - 40px, 760px); margin: 72px auto 0; padding: 25px 0 30px; border-top: 1px solid var(--line); font: 12px/1.8 var(--reader-sans); color: var(--muted); }
.reader-footer p { margin: 0 0 7px; overflow-wrap: anywhere; }
.reader-footer-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }

@media (max-width: 600px) {
  .reader-topbar-inner, .book-main, .chapter-main, .reader-footer { width: calc(100% - 36px); }
  .reader-topbar-inner { min-height: 60px; gap: 16px; }
  .book-introduction { padding-top: 46px; padding-bottom: 36px; }
  .book-subtitle { font-size: 17px; }
  .contents-start, .toc-group-heading { flex-wrap: wrap; gap: 8px 18px; }
  .contents-count { max-width: 100%; }
  .toc-group-heading > span { flex-basis: 100%; }
  .chapter-header { padding-top: 40px; margin-bottom: 28px; padding-bottom: 28px; }
  .chapter-body { font-size: 17.5px; line-height: 1.85; }
  .chapter-body.source-title-body h1:first-of-type { font-size: 28px; }
  .chapter-body .footnotes, .chapter-body [role="doc-endnotes"] { font-size: 15px; }
  .chapter-navigation { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }
  .reader-footer { margin-top: 52px; }
}

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #444; --line: #bbb; color-scheme: light; }
  html { scroll-padding: 0; }
  body { background: #fff; }
  .reader-topbar, .reader-skip, .reader-search, .chapter-navigation, .chapter-return, .reader-no-results, .table-scroll-hint { display: none !important; }
  .book-main, .chapter-main, .reader-footer { width: 100%; max-width: none; }
  .chapter-header, .book-introduction { padding-top: 0; }
  .chapter-body { font-size: 11pt; line-height: 1.8; }
  .chapter-header h1 { font-size: 24pt; }
  .chapter-body h2, .chapter-body h3, .chapter-body h4, .chapter-body h5 { break-after: avoid; }
  .chapter-body.source-title-body h1:first-of-type { font-size: 24pt; }
  .chapter-body p { orphans: 3; widows: 3; }
  .table-scroll { overflow: visible; }
  .chapter-body table, .table-scroll table { display: table; width: 100%; min-width: 0; max-width: 100%; table-layout: auto; font-size: 8pt; }
  .chapter-body th, .chapter-body td { min-width: 0; padding: .35em; overflow-wrap: anywhere; }
  .chapter-body tr, .chapter-body img { break-inside: avoid; }
  .chapter-body .footnotes, .chapter-body [role="doc-endnotes"] { font-size: 9pt; }
  .reader-footer { margin-top: 28pt; padding-bottom: 0; font-size: 9pt; }
  .chapter-source a::after { content: "（" attr(href) "）"; overflow-wrap: anywhere; }
}
/* Original-source links and the separate translation-rights statement. */
.original-sources { margin: 1.4rem 0 2rem; padding: 1rem 1.2rem; border-left: 2px solid #8f3f25; background: #f1eee6; font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", sans-serif; font-size: .85rem; line-height: 1.75; }
.chapter-body .original-sources h2 { margin: 0 0 .45rem; font-size: .85rem; font-family: inherit; font-weight: 650; }
.original-sources ul { padding-left: 1.2rem; margin: 0; }
.original-sources p { margin: .45rem 0 0; color: #686258; }
.original-sources a { overflow-wrap: anywhere; }
.book-description { max-width: 42rem; color: #686258; font-size: 1rem; line-height: 1.9; }
.reader-footer .copyright-line { max-width: 48rem; line-height: 1.8; }
