:root {
  --ink:#163a5f;
  --body:#243f53;
  --muted:#526878;
  --sky:#e9f7fc;
  --blue:#196b92;
  --line:#d6e8ef;
  --gold:#e7c979;
  --paper:#fff;
  --serif:Georgia,'Songti SC','Noto Serif CJK SC',serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  --mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;
}
* {
  box-sizing:border-box;
}
html {
  scroll-padding-top:100px;
}
body {
  margin:0;
  color:var(--body);
  background:var(--paper);
  font:16px/1.75 var(--sans);
  -webkit-font-smoothing:antialiased;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input {
  font:inherit;
}
button {
  cursor:pointer;
}
button,a,input,summary {
  -webkit-tap-highlight-color:transparent;
}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible {
  outline:none;
  background-color:var(--sky);
  box-shadow:inset 0 -3px 0 var(--blue);
  text-decoration:underline;
  text-underline-offset:4px;
}
[tabindex="-1"]:focus {
  outline:none;
}
button {
  color:var(--ink);
}
img {
  max-width:100%;
  height:auto;
}
h1,h2,h3,p {
  margin-top:0;
}
h1,h2,h3 {
  color:var(--ink);
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  background:var(--ink);
  color:white;
  z-index:20;
  padding:12px 20px;
}
.skip-link:focus {
  top:8px;
}
.page-width {
  max-width:1160px;
  margin-inline:auto;
  padding-inline:32px;
}
.eyebrow {
  font:600 11px/1.5 var(--sans);
  letter-spacing:.15em;
  color:var(--muted);
}
.site-header {
  height:90px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:40px;
  padding-inline:max(32px,calc((100vw - 1400px)/2));
  position:sticky;
  top:0;
  z-index:8;
  background:rgba(255,255,255,.96);
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  flex-shrink:0;
}
.brand>span {
  font:23px/1.1 var(--serif);
  letter-spacing:-.6px;
}
.brand i {
  font-weight:normal;
}
.brand small {
  font:10px/1.4 var(--sans);
  letter-spacing:.08em;
  display:block;
  margin-top:6px;
  color:var(--muted);
}
.header-links {
  display:flex;
  gap:27px;
  margin-left:auto;
  font-size:13px;
}
.header-links a:hover,.text-link:hover {
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:6px;
}
.header-actions {
  display:flex;
  gap:12px;
}
.search-trigger {
  display:flex;
  align-items:center;
  gap:9px;
  background:#f5fafc;
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 12px;
  font-size:12px;
  color:var(--muted);
}
kbd {
  font:11px var(--mono);
  border:1px solid var(--line);
  padding:1px 5px;
  border-radius:3px;
  margin-left:12px;
}
.menu-trigger {
  display:none;
  background:none;
  border:0;
  font-size:13px;
  padding:8px;
}
.search-trigger[hidden],.menu-trigger[hidden] {
  display:none;
}
.hero {
  display:grid;
  grid-template-columns:1.12fr 1fr;
  align-items:center;
  min-height:535px;
  padding-top:44px;
  padding-bottom:42px;
  gap:10px;
}
.hero .eyebrow {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:26px;
}
.gold-line {
  width:29px;
  height:2px;
  background:var(--gold);
}
.hero h1 {
  font:500 clamp(45px,4.6vw,64px)/1.3 var(--serif);
  letter-spacing:.02em;
  margin-bottom:25px;
}
.hero h1 em {
  font-style:normal;
  color:#277da5;
}
.hero-description {
  font-size:16px;
  line-height:1.95;
  margin-bottom:26px;
}
.hero-actions {
  display:flex;
  align-items:center;
  gap:22px;
}
.start-reading {
  display:flex;
  align-items:center;
  gap:15px;
  min-height:78px;
  padding:0 15px 0 13px;
  border:1px solid #bddfe9;
  border-radius:5px 22px 22px 5px;
  background:#f0f9fc;
  box-shadow:0 4px 0 #e5f1f5;
  color:var(--ink);
  transition:background-color .18s,box-shadow .18s;
}
.start-bookmark {
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:35px;
  padding-top:13px;
  margin-bottom:12px;
  background:#d8eef7;
  border-radius:0 0 14px 14px;
  color:#37748e;
  font:italic 22px var(--serif);
}
.start-bookmark svg { width:26px; margin-top:5px; fill:none; stroke:#6dacc4; stroke-width:1.2; }
.start-copy small { display:block; font-size:11px; color:var(--muted); margin-bottom:4px; letter-spacing:.08em; }
.start-copy strong { display:block; font:600 18px/1.5 var(--serif); }
.start-arrow { display:grid; place-items:center; width:31px; height:31px; margin-left:3px; border-radius:50%; background:#f7e8b9; color:#685c36; font-size:18px; transition:transform .18s; }
.start-reading:hover { background:#e3f4fb; box-shadow:0 5px 0 #d7eaf2; }
.start-reading:hover .start-arrow { transform:translateX(3px); }
.start-reading:focus-visible { box-shadow:inset 0 -3px 0 var(--blue),0 4px 0 #e5f1f5; }
.browse-chapters { font-size:13px; color:var(--muted); padding-block:10px; white-space:nowrap; }
.browse-chapters span { display:inline-block; margin-left:5px; color:var(--blue); }
.browse-chapters:hover { color:var(--blue); text-decoration:underline; text-underline-offset:6px; }
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  border-radius:5px;
  padding:13px 20px;
  font-size:13px;
  font-weight:550;
}
.primary {
  background:var(--ink);
  color:#fff;
}
.primary:hover {
  background:#245578;
}
.primary:focus-visible {
  color:var(--ink);
}
.text-link {
  font-size:13px;
  font-weight:550;
  color:var(--ink);
}
.hero-note {
  font-size:12px;
  color:var(--muted);
  margin:18px 0 0;
}
.hero-art {
  position:relative;
  width:100%;
  aspect-ratio:1.13;
  align-self:center;
}
.hero-art>img {
  position:absolute;
  inset:-3% 0 0;
  width:100%;
  height:100%;
  object-fit:contain;
  mix-blend-mode:multiply;
}
.sky-scene {
  position:absolute;
  width:100%;
  height:100%;
  inset:0;
}
.art-note {
  position:absolute;
  bottom:0;
  right:15%;
  font:italic 15px var(--serif);
  color:#66869d;
  transform:rotate(-4deg);
}
.chapter-section {
  padding-block:38px 28px;
  scroll-margin-top:20px;
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:32px;
}
.section-heading .eyebrow {
  margin-bottom:10px;
}
.section-heading h2 {
  font:500 29px/1.45 var(--serif);
  margin:0;
}
.section-heading>p {
  font-size:12px;
  line-height:1.9;
  margin:0;
  color:var(--muted);
}
.chapter-jumps {
  display:flex;
  flex-wrap:wrap;
  gap:12px 27px;
  padding:0 0 25px;
  font-size:12px;
}
.chapter-jumps a { display:flex; align-items:center; gap:8px; padding-block:5px; color:var(--ink); }
.chapter-jumps a>span { font:italic 13px var(--serif); color:var(--blue); }
.chapter-jumps a:hover { text-decoration:underline; text-underline-offset:5px; }
.chapter-shelves { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:23px; align-items:start; }
.chapter-shelf { --shelf-tint:#f1f9fc; --shelf-accent:#badce9; border:1px solid var(--line); border-radius:3px 22px 3px 3px; overflow:hidden; scroll-margin-top:20px; }
.shelf-gold { --shelf-tint:#fffbf0; --shelf-accent:#ebd8a0; }
.shelf-tide { --shelf-tint:#eef7f9; --shelf-accent:#afd1de; }
.shelf-heading { padding:24px 23px 22px; background:var(--shelf-tint); position:relative; border-bottom:1px solid var(--line); }
.shelf-tab { display:flex; align-items:center; gap:13px; color:var(--ink); font-size:11px; letter-spacing:.04em; margin-bottom:24px; }
.shelf-tab>span { font:italic 12px var(--serif); color:var(--muted); }
.shelf-tab::before { content:''; width:18px; height:3px; background:var(--shelf-accent); }
.shelf-heading h3 { font:500 24px/1.5 var(--serif); margin:0 0 8px; }
.shelf-heading p { font-size:13px; line-height:1.85; color:var(--muted); margin:0; }
.shelf-icon { position:absolute; right:18px; top:14px; width:41px; height:41px; fill:none; stroke:#648aa0; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.shelf-icon .icon-glow { stroke:#b39248; }
.chapter-entries { list-style:none; padding:0 19px; margin:0; }
.chapter-entries li+li { border-top:1px solid var(--line); }
.chapter-entry { display:grid; grid-template-columns:25px minmax(0,1fr) 10px; align-items:baseline; gap:10px; padding:22px 0; min-height:144px; transition:background-color .15s; }
.entry-number { color:#4e8096; font:italic 20px var(--serif); }
.chapter-entry h4 { margin:0 0 9px; font-size:15px; font-weight:600; line-height:1.7; color:var(--ink); }
.chapter-entry p { font-size:13px; line-height:1.9; color:var(--muted); margin:0; }
.entry-arrow { color:#5b8ca3; font-size:15px; transition:transform .15s; }
.chapter-entry:hover { background:var(--shelf-tint); }
.chapter-entry:hover h4 { color:var(--blue); }
.chapter-entry:hover .entry-arrow { transform:translateX(3px); }
.contents-note { text-align:center; margin:25px 0 0; font-size:12px; color:var(--muted); }
.contents-note span { color:#ad8a3e; font-size:22px; margin-right:8px; vertical-align:middle; }
.chapter-section+.first-page-note { margin-top:0; margin-bottom:55px; }
.map-section {
  background:#f1f9fc;
  border-block:1px solid #e3f0f6;
  padding-block:60px;
}
.map-layout {
  display:grid;
  grid-template-columns:1fr 1.55fr;
  gap:58px;
  align-items:center;
}
.map-copy h2 {
  font:500 34px/1.5 var(--serif);
  margin-bottom:20px;
}
.map-copy>p:not(.eyebrow) {
  font-size:13px;
  line-height:1.95;
  margin-bottom:24px;
}
.map-caption {
  display:block;
  font-size:10px;
  margin-top:20px;
  color:var(--muted);
}
.map-preview {
  display:block;
  background:#fff;
  border:1px solid #cde2ed;
  border-radius:8px;
  padding:12px;
  box-shadow:0 10px 35px #32688b0b;
  transform:rotate(-1deg);
}
.map-preview img {
  display:block;
  width:100%;
  height:auto;
}
.map-preview>span {
  border-top:1px solid var(--line);
  padding:10px 4px 0;
  margin-top:7px;
  display:flex;
  justify-content:space-between;
  font-size:10px;
}
.map-preview b {
  font-weight:550;
}
.tool-section {
  padding-block:65px 45px;
}
.tool-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
}
.tool-link {
  display:flex;
  gap:24px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.tool-mark {
  display:grid;
  place-items:center;
  background:var(--sky);
  color:var(--blue);
  width:52px;
  height:52px;
  border-radius:12px;
  flex-shrink:0;
  font:22px var(--mono);
}
.tool-link small {
  font-size:10px;
  letter-spacing:.12em;
  color:var(--muted);
}
.tool-link h3 {
  font-size:19px;
  font-weight:550;
  margin:8px 0;
}
.tool-link p {
  font-size:13px;
  line-height:1.9;
  max-width:340px;
  margin-bottom:12px;
}
.tool-link:hover .text-link {
  color:var(--blue);
}
.reading-note {
  display:flex;
  align-items:center;
  gap:25px;
  padding-block:28px;
  margin-bottom:65px;
  margin-top:5px;
  background:#fffaf0;
  border-radius:6px;
}
.note-spark {
  font-size:37px;
  color:#b59548;
}
.reading-note p {
  font-size:13px;
  margin:0;
  color:var(--ink);
}
.reading-note p span {
  font-size:12px;
  color:var(--muted);
}
.reading-note>a {
  margin-left:auto;
  font-size:12px;
  white-space:nowrap;
}
.site-footer {
  max-width:1400px;
  margin:auto;
  border-top:1px solid var(--line);
  padding:37px 32px 40px;
  display:flex;
  justify-content:space-between;
  gap:30px;
  font-size:11px;
  color:var(--muted);
}
.footer-title {
  font:italic 22px var(--serif);
  color:var(--ink);
}
.site-footer p {
  margin:10px 0;
}
.footer-links {
  display:flex;
  gap:22px;
  justify-content:flex-end;
  align-content:center;
  align-items:center;
  flex-wrap:wrap;
  max-width:480px;
}
.footer-links span {
  width:100%;
  text-align:right;
  font-size:10px;
}
.reader-layout {
  max-width:1500px;
  display:grid;
  grid-template-columns:220px minmax(0,790px) 195px;
  column-gap:38px;
  padding:0 32px;
  margin:auto;
}
.sidebar {
  border-right:1px solid var(--line);
  padding:32px 18px 45px 0;
  position:sticky;
  top:90px;
  height:calc(100vh - 90px);
  overflow-y:auto;
  scrollbar-width:thin;
}
.sidebar h3,.mobile-nav h3 {
  font-size:11px;
  letter-spacing:.05em;
  color:var(--ink);
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  margin:25px 0 9px 9px;
}
.sidebar-label { font:500 18px var(--serif); color:var(--ink); margin:0 0 26px 9px; }
.sidebar h3 .ui-icon,.mobile-nav h3 .ui-icon { width:17px; height:17px; color:#5d92a8; }
.ui-icon,.heading-icon,.link-cue { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.sidebar ul,.mobile-nav ul {
  list-style:none;
  padding:0;
  margin:0;
}
.sidebar a,.mobile-nav a {
  display:flex;
  gap:11px;
  align-items:baseline;
  font-size:13px;
  line-height:1.7;
  padding:9px;
  border-radius:4px;
}
.sidebar a:hover,.mobile-nav a:hover {
  background:#f6fafc;
}
.sidebar a[aria-current],.mobile-nav a[aria-current] {
  color:var(--ink);
  font-weight:600;
  background:var(--sky);
  border-left:2px solid var(--blue);
  padding-left:7px;
}
.nav-number {
  font:11px var(--mono);
  color:#77a5ba;
}
.reader {
  min-width:0;
  padding:36px 0 40px;
}
.article-header { margin-bottom:10px; }
.reader-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:9px; color:var(--muted); font-size:12px; margin-bottom:25px; }
.reader-breadcrumb a { color:var(--blue); }
.reader-breadcrumb a:hover { text-decoration:underline; text-underline-offset:4px; }
.reading-location { font-size:11px; color:#786b49; background:#fcf6e5; padding:2px 8px; border-radius:3px; }
.article-title-row { display:grid; grid-template-columns:45px minmax(0,1fr); gap:15px; }
.article-emblem { display:grid; place-items:center; align-self:start; width:45px; height:49px; border-radius:4px 13px 13px 4px; background:#eaf6fb; color:#427a95; box-shadow:2px 3px 0 #dceef4; }
.article-emblem .ui-icon { width:27px; height:27px; }
.article-header h1 { font:600 32px/1.5 var(--serif); letter-spacing:.01em; margin:0 0 13px; }
.article-header h1>.headerlink { display:none; }
.article-summary { color:var(--muted); font-size:15px; line-height:1.85; margin:0 0 18px; }
.article-summary:empty { display:none; }
.prose details { margin:22px 0; padding:14px 18px; background:#f5fafd; border:1px solid #dceaf1; border-radius:8px; font-size:14px; }
.prose details summary { color:var(--ink); font-weight:550; cursor:pointer; }
.prose details[open] summary { padding-bottom:10px; border-bottom:1px solid #dceaf1; }
.prose details p { font-size:14px; line-height:1.9; margin:12px 0 0; }
.repository-source { margin-left:auto; display:flex; align-items:center; gap:6px; color:var(--ink); white-space:nowrap; }
.repository-source .ui-icon { width:15px; height:15px; }
.repository-source .ui-icon:last-child { width:12px; height:12px; color:var(--muted); }
.repository-source:hover { text-decoration:underline; text-underline-offset:4px; }
.link-guide { margin:0 0 29px; padding:12px 0; border-block:1px solid var(--line); font-size:13px; }
.link-guide summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; cursor:pointer; list-style:none; color:var(--muted); }
.link-guide summary::-webkit-details-marker { display:none; }
.link-guide summary::after { content:'⌄'; margin-left:auto; color:var(--blue); }
.link-guide[open] summary::after { content:'⌃'; }
.link-guide summary>span { display:flex; align-items:center; gap:4px; }
.link-guide .ui-icon { width:17px; height:17px; color:#5e8295; }
.link-guide-label { margin-right:3px; color:var(--ink); font-weight:600; }
.link-guide ul { list-style:none; padding:20px 17px 5px; margin:12px 0 0; background:#f4fafc; border-radius:3px 12px 12px 3px; display:grid; grid-template-columns:1fr 1fr; gap:15px 25px; }
.link-guide li { display:flex; gap:9px; padding-bottom:15px; align-items:start; }
.link-guide li .ui-icon { margin-top:3px; }
.link-guide strong { display:block; color:var(--ink); font-weight:600; margin-bottom:4px; }
.toc-label { display:flex; gap:8px; align-items:center; color:var(--ink); font-size:13px; font-weight:600; padding-bottom:12px; border-bottom:1px solid var(--line); margin-bottom:17px; }
.toc-label .ui-icon { width:19px; height:19px; color:#a48b51; }
.page-toc {
  position:sticky;
  top:90px;
  height:calc(100vh - 90px);
  overflow:auto;
  scrollbar-width:thin;
  padding:36px 0 30px;
  font-size:13px;
  line-height:1.85;
}
.toc ul {
  padding-left:0;
  list-style:none;
}
.toc li {
  margin:9px 0;
}
.toc ul ul {
  border-left:1px solid var(--line);
  padding-left:13px;
  margin-left:2px;
}
.toc a {
  display:block;
  color:var(--muted);
}
.toc a:hover,.toc a.active {
  color:var(--blue);
}
.inline-toc {
  display:none;
}
.prose {
  font-size:17px;
  line-height:1.95;
  overflow-wrap:anywhere;
}
.prose>p {
  margin:0 0 22px;
}
.prose h2 {
  position:relative;
  font-size:25px;
  line-height:1.55;
  font-weight:600;
  margin:50px 0 23px;
  padding:22px 0 0 41px;
  border-top:1px solid var(--line);
  scroll-margin-top:20px;
}
.prose>h2:first-child { border-top:0; margin-top:26px; padding-top:0; }
.prose>h2:first-child>.heading-icon { top:5px; }
.prose h3 {
  position:relative;
  scroll-margin-top:20px;
  font-size:20px;
  padding-left:28px;
  line-height:1.65;
  margin:30px 0 16px;
}
.prose h2>.heading-icon { position:absolute; width:27px; height:27px; left:0; top:27px; color:#52849c; background:#edf7fb; border-radius:6px; padding:3px; }
.prose h3>.heading-icon { position:absolute; width:17px; height:17px; left:0; top:8px; color:#b49448; }
.prose h4 {
  font-size:16px;
}
.prose li {
  margin-block:7px;
}
.prose li>p {
  margin-block:7px;
}
.prose ul,.prose ol {
  padding-left:25px;
  margin-block:18px 26px;
}
.prose a {
  color:var(--blue);
  text-decoration:underline;
  text-decoration-color:#aad3e5;
  text-underline-offset:4px;
}
.prose a:hover {
  text-decoration-color:var(--blue);
}
.prose strong {
  font-weight:600;
  color:var(--ink);
}
.prose .headerlink {
  font:14px var(--sans);
  margin-left:9px;
  text-decoration:none;
  opacity:0;
  color:var(--blue);
}
.prose :is(h2,h3):hover .headerlink,.prose .headerlink:focus {
  opacity:1;
}
.prose code {
  font:.86em/1.7 var(--mono);
  color:#256782;
  background:#edf6fa;
  padding:2px 5px;
  border-radius:3px;
  box-decoration-break:clone;
}
.prose pre {
  position:relative;
  background:#183a53;
  color:#edf7fd;
  border-radius:7px;
  margin:22px 0 28px;
  overflow:auto;
  padding:42px 21px 21px;
  tab-size:2;
  line-height:1.8;
}
.prose pre code {
  font:13px/1.8 var(--mono);
  color:inherit;
  background:none;
  padding:0;
  white-space:pre;
}
.code-copy {
  position:absolute;
  right:12px;
  top:9px;
  border:1px solid #658394;
  border-radius:3px;
  background:#244a64;
  color:#e7f3f8;
  font:10px var(--sans);
  padding:4px 9px;
}
.code-copy:hover {
  background:#32627c;
}
.code-copy:focus-visible {
  color:var(--ink);
}
.code-language {
  position:absolute;
  left:21px;
  top:12px;
  font:9px var(--mono);
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#a8c7da;
}
.prose blockquote {
  margin:25px 0;
  padding:14px 21px;
  border-left:3px solid var(--gold);
  background:#fffbf1;
  font-size:14px;
  line-height:1.9;
}
.prose blockquote p:last-child {
  margin-bottom:0;
}
.table-scroll {
  overflow:auto;
  border:1px solid var(--line);
  border-radius:5px;
  margin:25px 0 28px;
}
.prose table {
  border-collapse:collapse;
  width:100%;
  font-size:14px;
  line-height:1.85;
  min-width:540px;
}
.prose th {
  background:#edf7fb;
  color:var(--ink);
  font-weight:600;
  text-align:left;
}
.prose td,.prose th {
  padding:12px 15px;
  vertical-align:top;
  border-bottom:1px solid var(--line);
  min-width:110px;
}
.prose tr:last-child td {
  border-bottom:0;
}
.prose table code {
  font-size:12px;
}
.prose img {
  border:1px solid var(--line);
  border-radius:6px;
  background:white;
  display:block;
  margin:28px auto 12px;
}
.prose hr {
  border:0;
  border-top:1px solid var(--line);
  margin:35px 0;
}
.chapter-pager {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  border-top:1px solid var(--line);
  margin-top:55px;
  padding-top:25px;
  font-size:13px;
  color:var(--ink);
}
.chapter-pager a:last-child {
  text-align:right;
}
.chapter-pager small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:8px;
}
.chapter-pager a:hover {
  color:var(--blue);
}
.article-end {
  font-size:11px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  margin-top:38px;
}
.article-end>span {
  font-family:var(--serif);
  font-style:italic;
}
.not-found {
  max-width:800px;
  padding:100px 32px;
  margin:auto;
  min-height:60vh;
}
.not-found h1 {
  font:32px var(--serif);
}
dialog {
  border:1px solid var(--line);
  border-radius:12px;
  padding:26px;
  color:var(--ink);
  box-shadow:0 25px 100px #163a5f22;
  max-width:calc(100vw - 30px);
}
dialog::backdrop {
  background:#143b5866;
  backdrop-filter:blur(3px);
}
.search-dialog {
  width:660px;
  max-height:80vh;
  margin:10vh auto;
}
.dialog-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:20px;
}
.dialog-top h2 {
  font:24px/1.4 var(--serif);
  margin:0;
}
.dialog-close {
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:12px;
  padding:8px;
}
.search-dialog input {
  display:block;
  width:100%;
  border:1px solid #a6c7d7;
  border-radius:5px;
  background:#f8fcfe;
  color:var(--ink);
  font-size:16px;
  padding:13px 14px;
}
.search-dialog input:focus {
  outline:0;
  border-color:var(--blue);
  box-shadow:0 2px 0 var(--blue);
}
.search-status {
  font-size:12px;
  color:var(--muted);
  margin:15px 0;
}
.search-results {
  max-height:44vh;
  overflow:auto;
}
.search-result {
  display:block;
  border-top:1px solid var(--line);
  padding:16px 5px;
}
.search-result:hover,.search-result:focus-visible {
  background:#eff8fc;
}
.search-result small {
  color:var(--muted);
  font-size:10px;
}
.search-result strong {
  font-size:14px;
  display:block;
  margin:5px 0;
}
.search-result p {
  font-size:12px;
  line-height:1.8;
  color:var(--body);
  margin:0;
}
.search-result mark {
  background:#fff0bc;
  color:var(--ink);
  padding:1px 0;
}
.search-hint {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  border-top:1px solid var(--line);
  margin-top:15px;
  padding-top:15px;
}
.menu-dialog {
  width:360px;
  max-height:90vh;
}
.mobile-nav a {
  font-size:14px;
  padding-block:11px;
}
/* Moonlight notes: semantic reading aids, with the same quiet blue-and-gold palette. */
.brand-mark { flex:none; }
.title-detail { display:block; margin-top:7px; font:400 20px/1.6 var(--sans); color:var(--body); letter-spacing:0; }
.first-page-note { position:relative; display:flex; align-items:center; gap:44px; padding:28px 34px; margin:44px auto 0; max-width:1096px; background:#fffcf3; border:1px solid #eadfba; border-radius:3px 12px 12px 3px; box-shadow:3px 5px 0 #f5f0df; }
.first-page-note h2 { font:600 25px/1.5 var(--serif); margin-bottom:8px; }
.first-page-note p:not(.eyebrow) { max-width:710px; margin:0; font-size:15px; line-height:1.9; }
.first-page-note .eyebrow { font-size:11px; color:#756039; margin-bottom:10px; }
.first-page-note>a { flex:none; font-size:14px; }
.pin { position:absolute; width:11px; height:11px; border:2px solid #bb9550; background:#efda9f; border-radius:50%; left:24px; top:-6px; box-shadow:1px 2px 0 #d6c5a3; }
.pin::after { content:''; position:absolute; width:1px; height:9px; background:#9c8b69; top:7px; left:2px; transform:rotate(20deg); }
.prose .chapter-orientation { margin:0 0 26px; padding:0 0 0 19px; border-left:3px solid #8ac6dc; }
.prose .chapter-orientation h2 { border:0; padding:0; margin:0 0 9px; font-size:16px; }
.prose .chapter-orientation p { font-size:15px; margin:0; line-height:1.95; }
.prose .pinned-note { position:relative; margin:34px 0; padding:23px 25px 20px; background:#fffcf1; border:1px solid #e6d9b4; border-radius:3px 12px 12px 3px; box-shadow:3px 4px 0 #f5f0df; font-size:15px; line-height:1.9; }
.prose .note-note { background:#f1f9fc; border-color:#c8e2ed; box-shadow:3px 4px 0 #e9f3f7; }
.note-title { font-size:16px; font-weight:650; color:var(--ink); margin-bottom:9px; }
.prose .pinned-note p { margin:0; }
.prose .pinned-note p+p { margin-top:12px; }
.prose .concept-map { margin:28px 0 36px; }
.prose .concept-map img { margin:0; width:100%; border:0; border-radius:10px; }
.concept-map figcaption { margin:11px 0 0; padding-inline:2px; display:flex; gap:20px; justify-content:space-between; font-size:13px; line-height:1.7; color:var(--body); }
.concept-map figcaption>a { flex:none; white-space:nowrap; }
.prose .link-cue { display:inline-block; width:14px; height:14px; margin-left:3px; vertical-align:0; color:#60889b; }
.prose .term-link { text-decoration-style:dotted; text-decoration-thickness:1.5px; text-decoration-color:#5b91a9; text-underline-offset:5px; }
.prose .cue-term { background:#e6f3f9; border-radius:50%; width:15px; height:15px; vertical-align:-1px; }
.prose .cue-repository { color:#6c7092; }
.prose .cue-external { color:#8e7846; }
.prose .link-external { text-decoration-color:#d4c393; }
.prose .link-repository { text-decoration-color:#bdbed3; }
.prose .term-link:hover { background:#e5f3f9; border-radius:2px; }
.prose .table-hint { font-size:12px; color:var(--muted); margin:26px 0 -15px; }
.prose tbody tr:nth-child(even) { background:#f7fbfd; }
.prose tbody td:first-child { color:var(--ink); font-weight:550; }
.term-dialog { width:min(520px,calc(100% - 36px)); padding:28px 30px; background:#fffdf7; border-color:#e6d9b4; }
.term-dialog .eyebrow { color:#78643f; margin:0; font-size:10px; }
.term-dialog h2 { font:600 30px/1.3 var(--serif); margin:18px 0; }
.term-definition { font-size:17px; line-height:1.95; }
.term-more { font-size:14px; }
.article-end>span::before { content:'☾'; color:#b18e48; font-size:22px; margin-right:10px; vertical-align:middle; }
@media(max-width:1100px) { .first-page-note { margin-inline:32px; } }
@media(max-width:1000px) { .concept-map picture { display:block; max-width:420px; margin-inline:auto; } }
@media(max-width:700px) {
 .first-page-note { display:block; margin:32px 23px 0; padding:25px 23px; }
 .first-page-note h2 { font-size:22px; }
 .first-page-note>a { display:inline-block; margin-top:16px; }
 .title-detail { font-size:18px; }
 .prose .pinned-note { padding:23px 20px 20px; }
 .prose .concept-map { margin-inline:-5px; }
 .concept-map figcaption { display:block; padding-inline:5px; }
 .concept-map figcaption>a { display:block; margin-top:6px; }
 .term-dialog { padding:22px; }
 .term-dialog .dialog-top { gap:10px; }
 .term-dialog .eyebrow { font-size:9px; }
 .term-definition { font-size:16px; }
}
@media(min-width:1600px) {
  .hero {
    padding-top:60px;
    padding-bottom:60px;
  }
}
@media(max-width:1250px) {
  .reader-layout {
    grid-template-columns:210px minmax(0,760px);
    max-width:1120px;
    gap:34px;
  }
  .page-toc {
    display:none;
  }
  .inline-toc {
    display:block;
    border:1px solid var(--line);
    border-radius:5px;
    background:#f7fbfd;
    padding:12px 17px;
    margin-bottom:30px;
    font-size:12px;
  }
  .inline-toc summary { cursor:pointer; font-size:13px; color:var(--ink); }
  .inline-toc summary .ui-icon { width:17px; height:17px; vertical-align:-4px; margin:0 5px; }
  .inline-toc .toc {
    padding-top:8px;
  }
  .reader {
    padding-top:38px;
  }
}
@media(max-width:900px) {
  .site-header {
    height:76px;
    padding-inline:24px;
    gap:20px;
  }
  .brand>span {
    font-size:21px;
  }
  .header-links {
    gap:17px;
  }
  .search-trigger span,.search-trigger kbd {
    display:none;
  }
  .search-trigger {
    padding:10px;
  }
  .reader-layout {
    grid-template-columns:185px minmax(0,1fr);
    padding-inline:24px;
    gap:27px;
  }
  .sidebar {
    top:76px;
    height:calc(100vh - 76px);
    padding-right:12px;
  }
  .sidebar a {
    font-size:12px;
    gap:8px;
  }
  .hero h1 {
    font-size:48px;
  }
  .hero {
    min-height:485px;
  }
  .hero-actions {
    gap:16px;
    flex-wrap:wrap;
  }
  .hero-description {
    font-size:14px;
  }
  .chapter-shelves { grid-template-columns:1fr; gap:25px; }
  .chapter-shelf { display:grid; grid-template-columns:205px minmax(0,1fr); }
  .shelf-heading { border-bottom:0; border-right:1px solid var(--line); padding:28px 20px; }
  .shelf-tab { margin-bottom:64px; }
  .shelf-icon { top:64px; left:19px; }
  .shelf-heading h3 { font-size:23px; }
  .shelf-heading p br { display:none; }
  .chapter-entry { min-height:0; padding-block:19px; }
  .map-layout {
    gap:30px;
  }
  .section-heading h2 {
    font-size:26px;
  }
  .map-copy h2 {
    font-size:29px;
  }
  .tool-grid {
    gap:30px;
  }
  .tool-link {
    gap:16px;
  }
  .article-header h1 { font-size:29px; }
}
@media(max-width:680px) {
  html {
    scroll-padding-top:80px;
  }
  .page-width {
    padding-inline:23px;
  }
  .site-header {
    height:70px;
    padding-inline:19px;
    gap:12px;
  }
  .brand {
    gap:8px;
  }
  .brand-mark {
    width:27px;
  }
  .brand>span {
    font-size:20px;
  }
  .brand small {
    font-size:8px;
    letter-spacing:.025em;
    margin-top:4px;
  }
  .header-links {
    display:none;
  }
  .header-actions {
    margin-left:auto;
    gap:2px;
  }
  .menu-trigger {
    display:block;
    white-space:nowrap;
    font-size:11px;
    padding:10px 5px;
  }
  .search-trigger {
    border:0;
    background:none;
    padding:10px;
  }
  .hero {
    grid-template-columns:1fr;
    position:relative;
    min-height:0;
    padding-top:38px;
    padding-bottom:29px;
    gap:0;
  }
  .hero .eyebrow {
    font-size:8px;
    letter-spacing:.13em;
    margin-bottom:24px;
    gap:9px;
  }
  .gold-line {
    width:20px;
  }
  .hero h1 {
    font-size:43px;
    line-height:1.35;
    margin-bottom:22px;
    max-width:100%;
  }
  .hero-description {
    font-size:12px;
    line-height:1.95;
    max-width:55%;
    position:relative;
    z-index:1;
  }
  .hero-copy {
    position:relative;
    z-index:1;
  }
  .hero-art {
    width:165px;
    height:160px;
    position:absolute;
    right:8px;
    top:150px;
    opacity:1;
    z-index:0;
  }
  .hero-art>img {
    inset:0;
    width:100%;
    height:100%;
  }
  .hero-art .sky-scene {
    opacity:.7;
  }
  .art-note {
    display:none;
  }
  .hero h1 {
    max-width:280px;
  }
  .hero h1 em {
    background:#ffffffb0;
  }
  .hero-actions { gap:17px; margin-top:26px; flex-wrap:wrap; }
  .start-reading { min-height:74px; gap:12px; }
  .start-copy strong { font-size:17px; }
  .browse-chapters { font-size:13px; }
  .button {
    padding:12px 15px;
    gap:20px;
    font-size:12px;
  }

  .hero-note {
    font-size:11px;
    margin-top:17px;
  }
  .hero-description {
    margin-bottom:0;
  }
  .desktop-break {
    display:none;
  }
  .chapter-section { padding-block:25px 22px; }
  .section-heading {
    display:block;
    margin-bottom:22px;
  }
  .section-heading h2 {
    font-size:25px;
    line-height:1.55;
    letter-spacing:-.025em;
  }
  .section-heading .eyebrow {
    font-size:9px;
    margin-bottom:10px;
  }
  .section-heading>p {
    font-size:11px;
    margin-top:14px;
  }
  .section-heading>p br {
    display:none;
  }
  .chapter-jumps { gap:6px 17px; font-size:12px; padding-bottom:22px; }
  .chapter-jumps a { gap:5px; }
  .chapter-jumps a>span { font-size:12px; }
  .chapter-shelf { display:block; }
  .shelf-heading { border-right:0; border-bottom:1px solid var(--line); padding:23px; }
  .shelf-tab { margin-bottom:20px; }
  .shelf-icon { top:15px; left:auto; right:20px; }
  .shelf-heading h3 { font-size:25px; }
  .shelf-heading p { max-width:240px; }
  .chapter-entries { padding-inline:20px; }
  .chapter-entry { padding-block:21px; }
  .contents-note { text-align:left; font-size:12px; line-height:1.9; }
  .chapter-section+.first-page-note { margin-bottom:35px; }
  .map-section {
    padding-block:36px;
  }
  .map-layout {
    grid-template-columns:1fr;
    gap:26px;
  }
  .map-copy h2 {
    font-size:29px;
  }
  .map-copy h2 br {
    display:none;
  }
  .map-copy>p:not(.eyebrow) {
    font-size:12px;
    margin-bottom:18px;
  }
  .map-caption {
    font-size:9px;
    margin-top:13px;
  }
  .map-preview {
    transform:none;
    padding:7px;
  }
  .map-preview>span {
    font-size:9px;
  }
  .tool-section {
    padding-block:42px 32px;
  }
  .tool-grid {
    grid-template-columns:1fr;
    gap:28px;
  }
  .tool-link {
    gap:17px;
    padding-top:22px;
  }
  .tool-mark {
    width:43px;
    height:43px;
    font-size:18px;
  }
  .tool-link h3 {
    font-size:18px;
  }
  .tool-link p {
    font-size:12px;
  }
  .reading-note {
    margin:0 19px 38px;
    padding:20px 18px;
    gap:14px;
    flex-wrap:wrap;
  }
  .reading-note p {
    font-size:12px;
  }
  .reading-note p span {
    font-size:10px;
  }
  .note-spark {
    font-size:25px;
  }
  .reading-note>a {
    margin-left:39px;
    font-size:11px;
  }
  .site-footer {
    padding:29px 23px;
    display:block;
    font-size:10px;
  }
  .footer-links {
    margin-top:28px;
    justify-content:flex-start;
    gap:14px;
  }
  .footer-links span {
    text-align:left;
    font-size:9px;
  }
  .reader-layout {
    display:block;
    padding-inline:23px;
  }
  .sidebar {
    display:none;
  }
  .reader {
    padding-top:31px;
  }
  .article-header h1 { font-size:27px; line-height:1.5; }
  .reader-breadcrumb { font-size:11px; gap:7px; margin-bottom:21px; }
  .article-title-row { grid-template-columns:33px minmax(0,1fr); gap:11px; }
  .article-emblem { width:33px; height:40px; border-radius:3px 10px 10px 3px; }
  .article-emblem .ui-icon { width:22px; height:22px; }
  .article-summary { font-size:14px; line-height:1.85; }
  .link-guide { font-size:12px; margin-bottom:22px; }
  .link-guide summary { gap:9px; }
  .link-guide-label { margin-right:0; }
  .link-guide .ui-icon { width:16px; height:16px; }
  .link-guide ul { grid-template-columns:1fr; gap:0; padding:17px 15px 0; font-size:13px; }
  .inline-toc {
    margin-bottom:26px;
    padding:11px 14px;
  }
  .prose {
    font-size:16px;
    line-height:1.95;
  }
  .prose h2 {
    font-size:21px;
    margin-top:37px;
    padding-left:35px;
  }
  .prose h2>.heading-icon { top:24px; width:25px; height:25px; }
  .prose h3 {
    font-size:17px;
  }
  .prose pre {
    margin-inline:-4px;
    padding-inline:15px;
  }
  .prose pre code {
    font-size:12px;
  }
  .code-language {
    left:15px;
  }
  .prose blockquote {
    font-size:13px;
    padding:13px 17px;
  }
  .chapter-pager {
    gap:18px;
    font-size:12px;
  }
  .article-end {
    font-size:10px;
  }
  .search-dialog {
    padding:19px;
    margin:5vh auto;
    max-height:90vh;
  }
  .dialog-top h2 {
    font-size:22px;
  }
  .search-results {
    max-height:53vh;
  }
  .search-hint {
    font-size:9px;
  }
  .search-hint span {
    display:none;
  }
  .not-found {
    padding:65px 25px;
  }
  .not-found h1 {
    font-size:27px;
  }
}
@media(max-width:390px) {
  .brand>span {
    font-size:18px;
  }
  .hero-art {
    width:155px;
    height:155px;
    right:8px;
    top:150px;
  }
  .hero h1 {
    font-size:40px;
  }
  .hero-description {
    max-width:55%;
  }
  .hero-actions {
    gap:15px;
  }

}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}
@media print {
  .site-header,.sidebar,.page-toc,.inline-toc,.site-footer,.chapter-pager,.article-end,dialog,.code-copy,.headerlink {
    display:none!important;
  }
  .reader-layout {
    display:block;
    max-width:none;
    padding:0;
  }
  .reader {
    padding:0;
  }
  .prose pre {
    white-space:pre-wrap;
    background:#f3f7f9;
    color:#163a5f;
    overflow:visible;
  }
  .prose pre code {
    white-space:pre-wrap;
  }
  .table-scroll {
    overflow:visible;
  }
  .prose table {
    min-width:0;
  }
  .article-header {
    break-after:avoid;
  }
  .prose h2,.prose h3 {
    break-after:avoid;
  }
  .prose img {
    break-inside:avoid;
  }
}
