:root {
  color-scheme: light;
  --ink: #172d25;
  --forest: #244a3d;
  --forest-deep: #163b2e;
  --muted: #51645a;
  --stone: #6a746d;
  --rust: #964934;
  --paper: #fff;
  --tint: #f2f6f1;
  --warm: #faf5ef;
  --rule: #cbd6cc;
  --fine: #e1e7df;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", Georgia, "Songti SC",
    "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.1rem, 4.6vw, 4.25rem);
  --anchor: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--anchor); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
  line-break: strict;
}
::selection { color: var(--ink); background: #d5e5cf; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #95521c; outline-offset: 4px; }
.wrap {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 75rem);
  margin-inline: auto;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.34; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
figure > picture { display: block; }
a { color: var(--forest); text-underline-offset: .21em; text-decoration-thickness: .075em; }
a:hover { color: var(--rust); }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
strong, b { font-weight: 650; }
:where(section, article, h2, h3, li, dt, div)[id] { scroll-margin-top: .8rem; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: .65rem;
  left: var(--gutter);
  z-index: 100;
  padding: .55rem 1rem;
  background: white;
  border: 1px solid var(--forest);
}

/* Masthead */
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; min-height: 4.7rem; }
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: .66rem;
  color: var(--forest-deep);
  font-weight: 710;
  font-size: 1.01rem;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: .015em;
}
.brand svg { display: block; flex: none; width: 2rem; height: 2rem; }
.topnav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.75rem,2.1vw,2rem); }
.topnav a, .chapter-subnav a {
  color: var(--muted);
  font-size: .89rem;
  font-weight: 550;
  text-decoration: none;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: .25rem;
  white-space: nowrap;
}
.topnav a:hover, .topnav a.active, .topnav a[aria-current="page"], .chapter-subnav a:hover {
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: .46em;
}
.topnav .pdf-link {
  min-height: 2.26rem;
  padding: .32rem .85rem;
  border: 1px solid #abbeac;
  border-radius: .22rem;
  color: var(--forest-deep);
}
.topnav .pdf-link:hover { background: var(--tint); text-decoration: none; }

/* Cover and chapter portraits */
.hero, .chapter-hero {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: clamp(2rem,5.25vw,5.4rem);
  align-items: center;
}
.hero { padding-block: clamp(3rem,5vw,6.2rem) clamp(3.1rem,5vw,5.4rem); }
.hero-copy, .chapter-lead { min-width: 0; }
.eyebrow, .kicker, .card-meta, .call-label {
  display: block;
  color: var(--rust);
  font-size: .8rem;
  font-weight: 675;
  letter-spacing: .115em;
  line-height: 1.55;
}
.eyebrow { margin-bottom: 1rem; }
.hero h1, .chapter-hero h1, .section-head h1, .section-head h2, .lesson > h2, .feature-strip h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.045em;
}
.hero h1 {
  color: var(--forest-deep);
  font-size: clamp(3.25rem,6.15vw,6.15rem);
  line-height: 1.1;
}
.hero h1 em { display: block; font-weight: 500; font-style: normal; }
.hero h1 em:lang(en) { font-style: italic; }
.hero .intro, .chapter-hero .intro {
  margin-top: 1.4rem;
  max-width: 37em;
  font-size: clamp(1rem,1.3vw,1.16rem);
  line-height: 1.9;
  color: #40564b;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.9rem; }
a.primary, a.secondary, button.primary, button.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.85rem;
  padding: .58rem 1.25rem;
  border: 1px solid var(--forest);
  border-radius: .2rem;
  font-size: .94rem;
  font-weight: 625;
  line-height: 1.45;
  text-decoration: none;
}
.primary { color: #fff; background: var(--forest-deep); }
.primary:hover { background: #28563f; color: #fff; }
.secondary { color: var(--forest-deep); background: white; }
.secondary:hover { background: var(--tint); color: var(--forest-deep); }
.hero-plate, .chapter-hero .photo { min-width: 0; margin: 0; }
.hero-plate > img, .hero-plate > picture > img, .chapter-hero .photo > img, .chapter-hero .photo > picture > img {
  width: 100%;
  object-fit: cover;
  background: var(--tint);
  border-radius: .18rem;
}
.hero-plate > img, .hero-plate > picture > img { aspect-ratio: 1.4; }
.chapter-hero .photo > img, .chapter-hero .photo > picture > img { aspect-ratio: 1.65; }
figcaption { color: var(--muted); font-size: .85rem; line-height: 1.67; }
.hero-plate figcaption, .chapter-hero .photo figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .3rem 1rem;
  padding-top: .7rem;
}
figcaption b, figcaption strong { color: var(--forest); }
.hero-plate figcaption b { font-weight: 590; }
.chapter-hero { padding-block: clamp(2.5rem,4.5vw,5rem); }
.chapter-hero h1 { font-size: clamp(2.8rem,5.5vw,5.1rem); line-height: 1.16; }
.chapter-hero .question { margin-top: 1.15rem; color: var(--forest-deep); font-size: clamp(1.19rem,1.8vw,1.6rem); font-weight: 600; line-height: 1.5; }
.chapter-hero .intro { margin-top: .9rem; }

/* Learning route */
.route, .feature-strip { padding-block: clamp(2.5rem,5.2vw,5rem); border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(1.6rem,2.9vw,2.8rem); }
.section-head .eyebrow { margin-bottom: .5rem; }
.section-head h1, .section-head h2 { color: var(--forest-deep); font-size: clamp(2.1rem,3.9vw,3.7rem); line-height: 1.25; }
.section-head p:not(.eyebrow) { margin-top: .7rem; max-width: 49em; color: var(--muted); font-size: 1.05rem; }
.chapter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.65rem clamp(1.2rem,2.2vw,2rem); }
.chapter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.chapter-card .thumb {
  display: block;
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
  aspect-ratio: 1.82;
  border-radius: .18rem;
  background: var(--tint);
}
.thumb img, .thumb picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-meta { margin-bottom: .33rem; color: var(--rust); font-size: .79rem; letter-spacing: .055em; }
.chapter-card h3 { margin: 0; font: 700 clamp(1.42rem,2vw,1.88rem)/1.35 var(--serif); letter-spacing: -.025em; }
.chapter-card p { margin-top: .4rem; color: var(--muted); line-height: 1.68; }
.chapter-card .card-index { align-self: flex-start; color: var(--rust); font: 600 .87rem/1.5 var(--mono); letter-spacing: .05em; }
.chapter-card:hover h3 { color: var(--rust); text-decoration: underline; text-underline-offset: .21em; text-decoration-thickness: 1px; }
.feature-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(2.5rem,5vw,5rem); row-gap: 1.7rem; }
.feature-strip h2 { margin: .2rem 0 .5rem; font-size: clamp(1.5rem,2.2vw,2.1rem); }
.feature-strip p { color: var(--muted); max-width: 42em; }
.feature-strip a { text-underline-offset: .27em; }

/* Reader */
.reading-layout {
  display: grid;
  grid-template-columns: clamp(12rem,19%,15.6rem) minmax(0,1fr);
  align-items: start;
  column-gap: clamp(2.1rem,5.65vw,5.8rem);
  padding-block: 2.25rem 4.5rem;
  border-top: 1px solid var(--rule);
}
.side {
  position: sticky;
  top: calc(var(--anchor) - .5rem);
  max-height: calc(100vh - var(--anchor) - 1rem);
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--rule);
  padding: .2rem .6rem .35rem .9rem;
  scrollbar-width: thin;
}
.side h2, .side h3, .side .eyebrow { margin: 0 0 .7rem; font-size: .91rem; letter-spacing: .035em; }
.side nav { display: grid; gap: .15rem; }
.side nav a, .mobile-contents a {
  display: block;
  padding: .32rem .55rem;
  color: var(--muted);
  font-size: .91rem;
  text-decoration: none;
  line-height: 1.52;
  border-radius: .18rem;
  overflow-wrap: anywhere;
}
.side nav a:hover, .side nav a.active, .side nav a[aria-current], .mobile-contents a:hover { background: var(--tint); color: var(--forest-deep); }
.mobile-contents { display: none; }
.article { width: 100%; max-width: 54rem; min-width: 0; }
.lesson { padding-block: clamp(2rem,3.3vw,3.45rem); border-bottom: 1px solid var(--rule); }
.lesson:first-child { padding-top: 0; }
.lesson > .kicker { margin: 0 0 .45rem; }
.lesson > h2 { font-size: clamp(1.86rem,3.15vw,2.95rem); line-height: 1.32; }
.deck, .lesson > header > p { margin-top: .85rem; max-width: 47em; color: #41564a; font-size: clamp(1.04rem,1.3vw,1.13rem); line-height: 1.9; }
.unitbody { margin-top: 1.2rem; line-height: 1.88; }
.unitbody > * + * { margin-top: 1.13rem; }
.unitbody > p { max-width: 48em; }
.unitbody h3, .mini-card h3, .index-term h3, .credit-row h3 { font-size: 1.12rem; line-height: 1.5; }
.unitbody h3 + p, .notes p, .steps p { margin-top: .33rem; }
.unitbody :where(ol,ul):not(.steps,.ref-list) { padding-left: 1.4rem; }
.unitbody :where(ol,ul):not(.steps,.ref-list) > li + li { margin-top: .38rem; }
.diagram { width: 100%; min-width: 0; margin-inline: 0; }
.diagram img, .diagram > svg { display: block; width: 100%; height: auto; border-radius: .2rem; }
.diagram > a.figure-zoom { display: block; }
.diagram figcaption, .unitbody > figure:not(.diagram) figcaption { margin-top: .55rem; }
.unitbody .photo img, .unitbody > figure:not(.diagram) img { width: 100%; height: auto; }
.notes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap: 1rem 1.35rem; }
.notes > div { padding-top: .7rem; border-top: 2px solid #96afa0; }
.notes p, .mini-card p { color: #3b4c43; }
.callout, .lab-record, .formula-box {
  padding: .95rem 1.2rem;
  border-left: 3px solid #6e9580;
  background: var(--tint);
}
.callout .call-label { margin-bottom: .23rem; color: var(--forest); }
.callout p + p { margin-top: .4rem; }
.lab-record { border-color: #a26746; background: var(--warm); }
.formula-box { padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-left: 3px solid var(--forest); }
.formula-box > p:first-child, .formula-box .formula {
  margin: 0;
  color: var(--forest-deep);
  font: 600 clamp(1.2rem,2.05vw,1.7rem)/1.6 var(--serif);
  overflow-wrap: anywhere;
}
.formula-box p + p { margin-top: .55rem; }
.two, .study-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1.05rem 1.5rem; }
.two > *, .study-grid > * { min-width: 0; }
.mini-card { padding: .75rem 0 .45rem; border-top: 1px solid var(--rule); }
.mini-card h3 { margin-bottom: .3rem; }
.steps { counter-reset: recipe-step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: recipe-step;
  display: grid;
  grid-template-columns: 2.3rem minmax(0,1fr);
  gap: .8rem;
  align-items: baseline;
  padding: .95rem 0;
  border-top: 1px solid var(--fine);
}
.steps > li::before { content: counter(recipe-step, decimal-leading-zero); color: var(--rust); font: 550 1rem/1.55 var(--mono); }
.steps > li > div { min-width: 0; }
.flowrail, .chapter-subnav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.flowrail > span, .chapter-subnav a { display: inline-block; padding: .33rem .64rem; background: var(--tint); border: 1px solid var(--rule); border-radius: .15rem; line-height: 1.45; }
.flowrail > span { color: var(--forest); font-size: .92rem; font-weight: 600; }
.chapter-subnav { margin-block: .7rem; }
.table-scroll { width: 100%; overflow: auto; overscroll-behavior-x: contain; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; line-height: 1.67; font-variant-numeric: tabular-nums; }
th, td { padding: .65rem .78rem; vertical-align: top; overflow-wrap: anywhere; border-bottom: 1px solid var(--fine); }
th { color: var(--forest-deep); font-weight: 660; background: #edf2eb; }
thead th { border-bottom-color: #bacbbb; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fafbf8; }
tbody th { background: #f6f8f4; }
.table-scroll td:first-child { font-weight: 580; }
.numtable { font-variant-numeric: tabular-nums; }
.numtable td, .numtable th { padding-block: .46rem; }
caption { padding: .5rem .7rem; text-align: left; color: var(--muted); font-size: .85rem; }

.quiz-item { border-top: 1px solid var(--rule); }
.quiz-item:last-child { border-bottom: 1px solid var(--rule); }
.quiz-item + .quiz-item { margin-top: 0; }
.quiz-item summary {
  padding: .92rem .3rem .92rem .1rem;
  font-weight: 610;
  color: var(--forest);
  line-height: 1.6;
}
.quiz-item summary::marker, .mobile-contents summary::marker { color: var(--rust); }
.quiz-item[open] { background: #f7f9f4; }
.quiz-item[open] summary { padding-inline-start: .6rem; }
.quiz-item > p, .quiz-item > div { padding: 0 1rem 1rem 1.5rem; }
.exercise-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: end; padding: 1rem; background: var(--tint); }
.exercise-controls label { display: grid; flex: 1 1 8rem; min-width: 0; gap: .27rem; color: var(--forest); font-weight: 590; }
.exercise-controls input, .exercise-controls select, .searchbox input, input.searchbox {
  width: 100%;
  min-width: 0;
  padding: .55rem .7rem;
  min-height: 2.7rem;
  border: 1px solid #9bac9f;
  border-radius: .18rem;
  color: var(--ink);
  background: var(--paper);
}
.exercise-controls output { flex: 1 1 100%; color: var(--forest-deep); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Indexes, sources, and search */
.utility { padding-block: clamp(2.8rem,5vw,5rem); min-height: 60vh; }
.utility .section-head { max-width: 59rem; }
.searchbox { max-width: 42rem; margin-block: 1rem 1.6rem; }
label.searchbox, .searchbox label { display: block; font-weight: 600; }
.searchbox input { margin-top: .28rem; }
.searchbox input::placeholder { color: #637268; opacity: 1; }
.ref-list { margin: 0; padding-inline-start: 1.65rem; }
.ref-list > li { padding: .72rem .4rem .72rem .22rem; margin: 0; border-bottom: 1px solid var(--fine); overflow-wrap: anywhere; }
.ref-list > li::marker { color: var(--rust); font-weight: 670; }
.ref-list small, .source-set small, .credit-row small, .result-item small { color: var(--muted); font-size: .84rem; }
.ref-list p, .source-set p { margin-top: .22rem; }
.term-list, .terms-grid, .credit-grid { display: grid; gap: 1rem 1.65rem; }
.terms-grid, .credit-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); }
.term-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.term-list > div, .index-term, .credit-row, .source-set, .result-item { min-width: 0; padding-top: .85rem; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.term-list dt, .index-term dt { font-weight: 670; color: var(--forest); }
.term-list dd, .index-term dd, .credit-row p, .index-term p { margin-top: .26rem; color: var(--muted); }
.credit-row img { max-height: 12rem; object-fit: cover; margin-bottom: .65rem; }
.source-set { margin-top: 1.6rem; }
.jump-list { display: flex; flex-wrap: wrap; gap: .45rem .85rem; padding: 0; list-style: none; }
.jump-list a { display: inline-block; padding: .24rem 0; }
.results { display: grid; gap: .85rem; margin-block: 1rem; }
.result-item { display: block; padding: .8rem .15rem; color: var(--ink); }
.result-item p { margin-top: .24rem; color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .75rem 1.5rem; margin-top: 2.3rem; }
.pager a { display: block; min-height: 3.1rem; padding: .8rem 1rem; background: var(--tint); border: 1px solid var(--rule); color: var(--forest-deep); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--forest); text-decoration: underline; }
.footer { margin-top: 1rem; padding-block: 2rem; border-top: 1px solid var(--rule); background: #f5f7f2; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.5rem; color: var(--muted); font-size: .89rem; }
.footer .wrap > * { min-width: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.footer strong { color: var(--forest-deep); }

@media (max-width: 60rem) {
  .topnav { gap: .92rem; }
  .hero, .chapter-hero { gap: 2.1rem; }
  .hero h1 { font-size: clamp(3.1rem,6.5vw,4.3rem); }
  .chapter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reading-layout { grid-template-columns: 11.3rem minmax(0,1fr); column-gap: 1.9rem; }
  .notes { grid-template-columns: 1fr; gap: .75rem; }
  .notes > div { display: grid; grid-template-columns: minmax(5rem,24%) 1fr; gap: .8rem; align-items: baseline; border-top-width: 1px; }
  .notes > div p { margin: 0; }
  .study-grid { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  :root { --anchor: 7.3rem; }
  .bar { gap: .1rem .9rem; flex-wrap: wrap; padding-block: .55rem .25rem; min-height: 3.8rem; }
  .topnav { max-width: 100%; gap: .8rem; flex-wrap: wrap; justify-content: start; }
  .topnav a { min-height: 2.45rem; }
  .topnav .pdf-link { min-height: 1.96rem; padding: .19rem .55rem; }
  .hero, .chapter-hero { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero h1 { font-size: clamp(3.15rem,8.6vw,4.65rem); }
  .hero-plate > img, .hero-plate > picture > img { aspect-ratio: 1.75; }
  .chapter-hero .photo > img, .chapter-hero .photo > picture > img { aspect-ratio: 2; }
  .reading-layout { display: block; padding-top: 1.35rem; }
  .side { position: static; max-height: none; }
  .reading-layout:has(.mobile-contents) .side, body:has(.mobile-contents) .side { display: none; }
  .mobile-contents { display: block; }
  .mobile-contents, .reading-layout > .side { margin-bottom: 1.45rem; }
  .mobile-contents details, details.mobile-contents { padding: .45rem .8rem; background: var(--tint); border: 1px solid var(--rule); }
  .mobile-contents summary { min-height: 2.2rem; padding-block: .25rem; color: var(--forest); font-weight: 650; }
  .mobile-contents nav, .side nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-contents a, .side a { min-height: 2.35rem; }
  .hero .intro { max-width: 41em; }
  .article { max-width: none; }
  .feature-strip { column-gap: 1.5rem; }
}
@media (max-width: 35rem) {
  :root { --gutter: 1.05rem; --anchor: 7.55rem; }
  .bar { display: block; padding-top: .50rem; }
  .brand { min-height: 2rem; font-size: .95rem; }
  .brand svg { width: 1.65rem; height: 1.65rem; }
  .topnav { column-gap: clamp(.55rem,2.5vw,.88rem); row-gap: .06rem; }
  .topnav a { font-size: .83rem; }
  .hero { padding-block: 2rem 2.15rem; }
  .hero h1 { font-size: clamp(2.8rem,11.5vw,4rem); }
  .hero .intro, .chapter-hero .intro { margin-top: .9rem; font-size: 1rem; line-height: 1.8; }
  .actions { margin-top: 1.25rem; gap: .55rem; }
  .actions > a { padding-inline: .83rem; }
  .hero-plate > img, .hero-plate > picture > img { aspect-ratio: 1.43; }
  .chapter-hero .photo > img, .chapter-hero .photo > picture > img { aspect-ratio: 1.75; }
  .hero-plate figcaption, .chapter-hero .photo figcaption { display: block; font-size: .81rem; }
  .hero-plate figcaption > span + b, .chapter-hero .photo figcaption > span + b { margin-inline-start: .5em; }
  .route, .feature-strip { padding-block: 2rem; }
  .chapter-grid { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
  .chapter-card {
    display: grid;
    grid-template-columns: clamp(6.2rem,26vw,8.25rem) minmax(0,1fr);
    grid-auto-rows: min-content;
    align-content: start;
    align-items: start;
    column-gap: .9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--fine);
  }
  .chapter-card .thumb { grid-column: 1; grid-row: 1 / span 6; margin: 0; aspect-ratio: 1.05; }
  .chapter-card > :not(.thumb) { grid-column: 2; }
  .chapter-card .card-meta { font-size: .76rem; line-height: 1.4; margin-bottom: .12rem; }
  .chapter-card h3 { font-size: 1.32rem; }
  .chapter-card p { margin-top: .2rem; font-size: .92rem; line-height: 1.58; }
  .feature-strip, .two, .term-list { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 1.3rem; }
  .section-head h1, .section-head h2 { font-size: 2.02rem; }
  .chapter-hero { padding-block: 2rem; }
  .chapter-hero h1 { font-size: clamp(2.6rem,10.8vw,3.65rem); }
  .lesson > h2 { font-size: 1.85rem; }
  .notes > div { display: block; }
  .notes > div p { margin-top: .24rem; }
  .steps > li { grid-template-columns: 1.65rem minmax(0,1fr); gap: .5rem; }
  .table-scroll table:not(.numtable) { min-width: 31.5rem; }
  .table-scroll:has(.numtable) table, .table-scroll.numtable table { min-width: 0; }
  .table-scroll th, .table-scroll td { padding: .5rem .63rem; }
  .formula-box, .callout, .lab-record { padding: .8rem .9rem; }
  .footer .wrap { display: grid; gap: .65rem; }
}
@media (prefers-contrast: more) {
  :root { --ink: #081a11; --forest: #153c2b; --muted: #263e2e; --rule: #829486; --fine: #a6b4a8; --rust: #783521; }
  .topbar { background: #fff; }
  .side nav a.active, .side nav a[aria-current], .topnav a.active { text-decoration: underline; }
}
@media (forced-colors: active) {
  a.primary, a.secondary, .pdf-link, .table-scroll, .callout, .lab-record, .formula-box, .pager a { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  :root { --gutter: 0; --anchor: 0; }
  body { font: 10.5pt/1.65 var(--font); color: #17251c; }
  .topbar, .footer, .side, .mobile-contents, .chapter-subnav, .actions, .pager, .skip, .searchbox, .exercise-controls { display: none !important; }
  .wrap { width: 100%; max-width: none; }
  .reading-layout, .article { display: block; width: 100%; max-width: none; padding: 0; }
  .hero, .chapter-hero { padding: 0 0 1rem; grid-template-columns: 1.05fr .95fr; gap: .8rem; }
  .hero h1, .chapter-hero h1, .section-head h1 { font-size: 28pt; }
  .lesson { padding-block: 1rem; }
  .lesson > h2, .section-head h2 { font-size: 19pt; }
  h1, h2, h3, h4, figcaption { break-after: avoid-page; }
  figure, tr, .callout, .lab-record, .formula-box { break-inside: avoid-page; }
  .diagram img { max-height: 65mm; object-fit: contain; }
  .notes, .two, .study-grid, .term-list { display: block; }
  .notes > div, .mini-card, .term-list > div { margin-block: .55rem; }
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0 !important; }
  a { color: #17251c; }
}

/* Inline evidence, practical notes and interactive work. */
.topnav .pdf-link { gap: .35rem; }
.cite {
  margin-inline: .07em;
  color: #804631;
  font-size: .83em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c6a28d;
}
.doi { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ref-use, .term-list small { color: var(--muted); }
.term-list small { display: block; margin-top: .08em; font: 500 .88rem/1.45 var(--font); }
.ref-list .ref-use { font-size: .91rem; }
.goalbox { margin-block: 1.2rem; padding: 1rem 1.22rem; background: var(--tint); border-left: 3px solid #6e9580; }
.goalbox h3 { margin-bottom: .46rem; }
.goalbox li::marker { color: var(--rust); }
.case-observe { display: grid; grid-template-columns: minmax(7rem,27%) 1fr; align-items: center; gap: 1.1rem; padding-top: 1.15rem; border-top: 1px solid var(--rule); }
.case-observe .photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.case-observe p { margin-top: .27rem; }
.flowfig figcaption { margin-top: .5rem; }
.flowrail i { padding-inline-end: .42rem; color: var(--rust); font: 600 .82rem var(--mono); }
.exercise-controls { display: grid; align-items: start; }
.exercise-controls .fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); gap: .7rem .9rem; }
.exercise-controls output { display: block; }
.formula-box > div { margin-top: .35rem; }
.chapter-done { margin-top: 1rem; }
.chapter-done[aria-pressed="true"] { border-color: var(--forest); background: var(--tint); color: var(--forest); }
@media (max-width: 35rem) {
  .case-observe { grid-template-columns: minmax(5.5rem,30%) 1fr; gap: .8rem; }
}
.hero h1 br { display: none; }
.hero h1 em { color: var(--rust); font-weight: 650; }
.hero .eyebrow span, .chapter-lead .eyebrow span, .card-meta i {
  margin-inline: .16em;
  color: #788a77;
  font-style: normal;
}
.hero-plate figcaption i { font-family: var(--serif); font-size: 1.05em; font-weight: 500; }
.card-body { min-width: 0; }
.card-body .card-index, [data-read-indicator] {
  display: inline-block;
  margin: .55rem .65rem 0 0;
  color: var(--muted);
  font: 550 .82rem/1.5 var(--font);
  letter-spacing: .02em;
}
[data-read-indicator]:not([hidden]) { color: var(--forest); background: var(--tint); padding: .04rem .4rem; }
.chapter-lead > .question + p {
  margin-top: .85rem;
  color: var(--muted);
  font-size: clamp(1rem,1.3vw,1.12rem);
  line-height: 1.86;
}
.article > .lesson:first-of-type { padding-top: 0; }
.side .back-index { display: inline-block; margin: .8rem .55rem 0; color: var(--forest); font-size: .88rem; }
.term-group, #photography { margin-block: 2.35rem; }
.term-group > h2, .source-set > h2, #photography > h2 {
  margin-bottom: .8rem;
  color: var(--forest);
  font: 700 clamp(1.45rem,2.25vw,2rem)/1.4 var(--serif);
}
#photography > p { max-width: 51em; color: var(--muted); margin-bottom: 1.25rem; }
.credit-row { display: grid; grid-template-columns: 5.3rem minmax(0,1fr); align-items: center; gap: .85rem; }
.credit-row img { width: 5.3rem; aspect-ratio: 1.26; margin: 0; border-radius: .14rem; }
.credit-row h3 { font-size: 1rem; }
.term-count, .search-status { color: var(--muted); font-size: .91rem; }
.search-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap: .4rem 1.5rem; list-style: none; padding: 0; }
.search-hit { display: block; height: 100%; padding: .65rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.search-hit > small { margin-inline-start: .45em; font: 550 .78rem var(--mono); color: var(--rust); }
.search-hit > span { display: block; margin-top: .1rem; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.search-hit:hover strong { text-decoration: underline; }
.safety-sources { margin-top: 1rem; }
.safety-sources ul { padding-left: 1.35rem; }
@media (min-width: 42rem) and (max-width: 48rem) {
  .hero, .chapter-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; }
  .hero h1 { font-size: clamp(3.25rem,7vw,3.75rem); }
  .hero-plate > img, .hero-plate > picture > img { aspect-ratio: 1.13; }
  .chapter-hero .photo > img, .chapter-hero .photo > picture > img { aspect-ratio: 1.3; }
  .actions > a { padding-inline: .75rem; }
}
/* Plates and the two kitchen features are ordinary links, including offline. */
.eyebrow{letter-spacing:.04em;text-transform:none}
.hero-copy>.eyebrow{font:italic 1.48rem/1.2 Georgia,"Songti SC",serif;letter-spacing:.01em;color:#496657}
.quick-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem;margin-block:0 2.8rem}
.quick-picks>a{display:grid;grid-template-columns:clamp(4rem,7.1vw,6.1rem) minmax(0,1fr);gap:.95rem;align-items:center;padding:1.05rem 0;border-block:1px solid var(--rule);color:var(--ink);text-decoration:none}
.quick-picks img{width:100%;aspect-ratio:1;height:auto;object-fit:cover;border-radius:5px}
.quick-picks h2{font:660 clamp(1.04rem,1.5vw,1.35rem)/1.4 var(--serif);margin-bottom:.28rem}
.quick-picks p{font-size:.9rem;line-height:1.5;color:var(--muted)}
.quick-picks a:hover h2,.picture-grid a:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em}
.picture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem 1.25rem;margin:1rem 0 2.4rem}
.picture-grid>a{display:block;color:var(--ink);text-decoration:none;padding-bottom:.7rem;border-bottom:1px solid var(--rule)}
.picture-grid img{width:100%;aspect-ratio:2.48;height:auto;object-fit:contain;background:#f2f6f0;border-radius:5px}
.picture-grid small{display:block;font-size:.78rem;color:var(--rust);margin:.35rem 0 .13rem}
.picture-grid h3{font-size:1rem;line-height:1.45}
.gallery-term{display:block;margin-top:.15rem;color:#526b5d;font-size:.84rem;line-height:1.35;overflow-wrap:anywhere}
.chapter-terms{font-size:.94rem;line-height:1.75;margin:.75rem 0;overflow-wrap:anywhere}
.chapter-terms a{color:#346556;text-decoration-thickness:1px;text-underline-offset:.17em}
.figure-zoom{display:block;cursor:zoom-in}
.full-plate figcaption b,.diagram figcaption b{font-weight:680;color:var(--forest-deep)}
.oil-directory { margin: 1.15rem 0; border-top: 1px solid var(--rule); }
.oil-directory > div { padding: .8rem 0; border-bottom: 1px solid var(--fine); }
.oil-directory h3, .oil-entry h3 { margin: 0; color: var(--forest-deep); }
.oil-directory h3 a { font-size: 1.02rem; }
.oil-directory p { display: flex; flex-wrap: wrap; gap: .12rem .95rem; margin: .32rem 0 0; }
.oil-directory p a { display: inline-block; padding: .22rem 0; font-size: .94rem; }
.oil-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem 1.6rem; margin: 1.1rem 0; }
.oil-entry { border-top: 2px solid var(--rule); padding: .78rem 0 0; scroll-margin-top: 5.5rem; }
.oil-entry:target { border-color: var(--rust); }
.oil-en { display: block; margin-top: .15rem; color: var(--muted); font-size: .89rem; overflow-wrap: anywhere; }
.oil-entry p { margin: .45rem 0 0; font-size: 1rem; }
@media screen and (max-width: 40rem) { .oil-cards { grid-template-columns: 1fr; } }
.field-observation{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.2rem;align-items:center;margin-block:1.3rem}
.field-observation .photo{margin:0}.field-observation img{width:100%;max-height:15rem;min-height:8rem;object-fit:cover;border-radius:5px}
.field-observation h3,.special-unit h3{margin-bottom:.35rem}
.topic-link,.topic-cites{font-size:.95rem;margin-block:1rem}
.utility .special-unit{max-width:54rem;margin-inline:auto;font-size:1.07rem}
.utility .special-unit>.photo img{width:100%;max-height:22rem;object-fit:cover;border-radius:6px}
.utility .special-unit>.photo figcaption{font-size:.9rem}
.method-sources{padding-left:1.4rem}.method-sources li{margin:.45rem 0}.method-sources p{color:var(--muted);font-size:.92em}
.quick-answer { margin-top: .75rem; max-width: 38em; color: var(--ink); line-height: 1.75; }
.first-action { margin-top: .6rem; color: var(--muted); line-height: 1.7; }
.first-action b { margin-right: .25rem; color: var(--forest); }
.quick-links { display: flex; flex-wrap: wrap; gap: .2rem .95rem; margin-top: .75rem; }
.quick-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 600; }
.reader-controls { display: flex; justify-content: flex-end; }
.read-toggle { background: transparent; border: 1px solid var(--rule); border-radius: .22rem; color: var(--forest); padding: .35rem .82rem; min-height: 2.75rem; font-size: .9rem; }
.read-toggle:hover { background: var(--tint); }
.chapter-fold > summary { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 2.8rem; list-style: none; }
.chapter-fold > summary::-webkit-details-marker { display: none; }
.chapter-fold > summary::after { content: ""; width: .68rem; height: .68rem; flex: none; margin: 0 .4rem .32rem; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); }
.chapter-fold[open] > summary::after { transform: rotate(225deg); margin-bottom: -.32rem; }
.fold-heading { font: 700 clamp(1.5rem, 2.4vw, 2.3rem)/1.4 var(--serif); letter-spacing: -.025em; }
.fold-heading .kicker { font: 620 .79rem/1.6 var(--font); letter-spacing: .025em; margin-bottom: .18rem; }
.utility .reader-controls, .utility > .quick-links { max-width: 54rem; margin-inline: auto; }
.utility .guide-unit { max-width: 54rem; margin-inline: auto; }
.utility .section-head:has(+ .quick-links) { max-width: 54rem; margin-inline: auto; margin-bottom: .85rem; }
.table-scroll[data-scroll]::before { content: "左右滑动查看整表"; position: sticky; left: 0; display: block; padding: .25rem .55rem; color: var(--muted); background: var(--tint); font-size: .82rem; }
@media screen and (max-width: 48rem) {
  .chapter-hero { padding-block: 1.35rem; gap: 1rem; }
  .chapter-lead .eyebrow { margin-bottom: .35rem; }
  .chapter-hero .question { margin-top: .7rem; }
  .chapter-lead > .question + .quick-answer { font-size: 1rem; line-height: 1.7; margin-top: .5rem; }
  .mobile-contents { margin-bottom: .6rem; }
  .quick-links { margin-top: .4rem; gap: 0 .85rem; }
  .reader-controls { margin-bottom: .4rem; }
  .lesson.reader-unit, .article > .reader-unit:first-of-type { padding: .75rem 0; }
  .fold-heading { font-size: 1.22rem; line-height: 1.48; }
  .fold-body { padding: .15rem 0 1rem; }
  .special-opening { padding-block: 1rem; }
}
@media print {
  .reader-controls, .quick-links, .chapter-fold > summary::after, .table-scroll[data-scroll]::before { display: none; }
  .chapter-fold > .fold-body { display: block; }
  .chapter-fold::details-content { display: block; content-visibility: visible; }
}
@media(max-width:850px){.quick-picks{gap:.8rem}.quick-picks>a{display:block}.quick-picks img{width:100%;height:5.5rem;aspect-ratio:auto;margin-bottom:.65rem}.picture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.quick-picks{grid-template-columns:1fr;gap:0;margin-bottom:1.6rem}.quick-picks>a{display:grid;grid-template-columns:4.6rem 1fr;border-bottom:0;gap:.8rem;padding:.6rem 0}.quick-picks>a:last-child{border-bottom:1px solid var(--rule)}.quick-picks img{margin:0;height:3.9rem}.field-observation{grid-template-columns:1fr;gap:.55rem}.picture-grid{gap:.8rem}.picture-grid h3{font-size:.94rem}.utility .special-unit{font-size:1rem}.topnav{gap:.6rem}.topnav a{white-space:nowrap}}
