:root {
  --paper: #fbfcfa;
  --white: #ffffff;
  --ink: #1c3026;
  --muted: #52665a;
  --water: #17613f;
  --mineral: #edf4ee;
  --green: #214c35;
  --line: #cbd7ce;
  --forest: #10271d;
  --inverse: #f6faf7;
  --inverse-muted: #c4d7c9;
  --rail: 13rem;
  --inset: clamp(1.5rem, 4.2vw, 4.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--forest); color: var(--ink); font: 1.0625rem/1.8 "Segoe UI", Arial, sans-serif; }
.forest-backdrop { position: absolute; z-index: -1; inset: 0 0 auto; height: max(100svh, 70rem); pointer-events: none; }
.forest-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
a { color: var(--water); text-underline-offset: .23em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--water); outline-offset: 4px; box-shadow: 0 0 0 7px var(--white); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .65rem 1rem; background: var(--white); }
.skip-link:focus { transform: none; }
.document { max-width: 90rem; margin: auto; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 3rem; padding: 3rem; align-items: start; }
.reading-rail { position: sticky; top: 2rem; align-self: start; max-height: calc(100dvh - 4rem); padding: .9rem; background: rgba(8, 24, 17, .94); border-radius: .8rem; overflow-y: auto; }
.reading-rail nav { display: grid; gap: .35rem; }
.nav-hint { display: none; }
.reading-rail nav a { display: block; padding: .65rem .75rem; line-height: 1.45; font-size: .875rem; text-decoration: none; color: var(--inverse-muted); border-radius: .35rem; }
.reading-rail nav a:hover { color: var(--inverse); background: #294333; }
.reading-rail nav a[aria-current="location"] { color: var(--green); font-weight: 650; background: var(--mineral); }
.rail-note { margin: 2rem .75rem 1.2rem; font-size: .8rem; color: var(--inverse-muted); line-height: 1.65; }
.print-button { border: 1px solid #829e8b; border-radius: .35rem; padding: .65rem .75rem; text-align: left; color: var(--inverse); background: transparent; font-size: .8rem; width: 100%; }
.print-button:hover { background: #294333; }
main { min-width: 0; }
section { scroll-margin-top: 2rem; padding: 4rem var(--inset); background: var(--paper); }
section + section { border-top: 1px solid var(--line); }
.opening { padding-top: 3.5rem; padding-bottom: 2.5rem; background: rgba(8, 24, 17, .78); color: var(--inverse); border-radius: .8rem .8rem 0 0; }
.opening a { color: #c9efcf; }
.opening .reading-route, .opening .source-line { color: var(--inverse-muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { max-width: 19ch; font-size: clamp(2.5rem, 4.5vw, 4.8rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.07; margin-bottom: 1.8rem; }
h2 { max-width: 29ch; font-size: clamp(1.9rem, 2.8vw, 2.65rem); letter-spacing: -.025em; margin-bottom: 1.6rem; font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: .85rem; }
p { max-width: 72ch; margin-bottom: 1.3rem; }
.standfirst { max-width: 65ch; font-size: 1.25rem; line-height: 1.7; color: var(--inverse); }
.finding { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem; border-top: 1px solid #829e8b; border-bottom: 1px solid #829e8b; padding: 1.6rem 0; margin: 2.2rem 0 1.6rem; }
.finding h2 { color: #d5ead9; font-size: 1.05rem; margin-bottom: .7rem; letter-spacing: 0; }
.finding p { margin-bottom: 0; font-size: .95rem; line-height: 1.7; color: var(--inverse); }
.finding > div + div { border-left: 1px solid #829e8b; padding-left: 1.8rem; }
.reading-route, .source-line, .bibliography-note { font-size: .9rem; color: var(--muted); }
.source-line a { white-space: normal; }
.table-wrap { margin: 2rem 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; line-height: 1.6; font-size: .95rem; text-align: left; }
caption { text-align: left; font-weight: 650; padding: 0 0 1rem; color: var(--ink); font-size: 1rem; }
th, td { padding: 1.15rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 11rem; }
thead th { color: var(--white); background: var(--green); font-weight: 600; }
tbody th { font-weight: 650; width: 25%; }
tbody tr:nth-child(even) { background: var(--mineral); }
.practical-note { margin: 2rem 0 0; padding: 1.5rem 1.8rem; background: var(--mineral); max-width: 75ch; }
.subsection-heading { margin-top: 2.8rem; }
.practical-note p { margin-bottom: 0; }
.transect { margin: 2.5rem 0; background: var(--white); padding: 1.2rem; border: 1px solid var(--line); }
.diagram-scroll { overflow-x: auto; }
.transect img { display: block; width: 100%; height: auto; }
figcaption { font-size: .85rem; line-height: 1.65; color: var(--muted); margin-top: 1rem; max-width: 80ch; }
.mechanism { margin-top: 3rem; }
.mechanism h3 { max-width: 50ch; }
details { max-width: 75ch; border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--water); padding-right: .5rem; }
summary:hover { color: var(--ink); }
details p { margin: 1rem 0 .25rem; padding-left: 1.2rem; }
.definition { padding: .7rem 0; font-size: .95rem; }
.condition-list { margin: 2.5rem 0; }
.condition-list > div { display: grid; grid-template-columns: minmax(11rem, 1fr) 2.2fr; gap: 2rem; border-top: 1px solid var(--line); padding: 1.5rem 0; }
dt { font-size: 1.05rem; font-weight: 650; line-height: 1.5; }
dd { margin: 0; max-width: 65ch; }
.distinction { background: var(--forest); color: var(--inverse); padding: 2rem; margin-top: 2rem; }
.distinction h3 { font-size: 1.65rem; max-width: 30ch; }
.distinction p { color: var(--inverse); margin-bottom: 0; }
.investigation { max-width: 75ch; padding-left: 1.8rem; margin-top: 2.5rem; }
.investigation li { padding-left: .7rem; margin-bottom: 2rem; }
.investigation li::marker { font-weight: 650; color: var(--water); }
.investigation h3 { margin-bottom: .65rem; }
.closing-statement { font-size: 1.25rem; line-height: 1.7; background: var(--mineral); padding: 1.8rem; margin: 2.5rem 0 0; max-width: 75ch; }
.source-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin: 2rem 0 1rem; }
.source-tools label { display: grid; gap: .4rem; font-size: .9rem; }
.source-tools input, .source-tools select { background: var(--white); border: 1px solid #829789; border-radius: .35rem; color: var(--ink); padding: .7rem .85rem; max-width: 100%; }
.source-tools input { min-width: 18rem; }
.source-tools input::placeholder { color: var(--muted); opacity: 1; }
.source-tools input:hover, .source-tools select:hover { border-color: var(--water); }
.source-count { font-size: .85rem; color: var(--muted); margin: .8rem 0 1.5rem; }
.source { padding: 1.9rem 0; border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
.source h3 { font-size: 1.15rem; line-height: 1.5; max-width: 75ch; margin-bottom: .4rem; text-wrap: initial; }
.source-meta { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.source p { font-size: .97rem; margin-bottom: .6rem; }
.source .limitation { color: var(--muted); }
.source:target { background: #e3efe5; animation: source-arrival .6s cubic-bezier(.16, 1, .3, 1); }
.source-link { font-size: .9rem; display: inline-block; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 2.5rem var(--inset); font-size: .85rem; color: var(--muted); background: var(--paper); border-radius: 0 0 .8rem .8rem; }
.image-credit { margin: 2rem 0 0; font-size: .8rem; }
@keyframes source-arrival { from { background: #cadfce; } to { background: #e3efe5; } }
@media (min-width: 1600px) { .document { padding-top: 4rem; padding-bottom: 4rem; } }
@media (max-width: 1100px) {
  :root { --rail: 11rem; --inset: 2rem; }
  .document { gap: 1.5rem; padding: 2rem; }
  .reading-rail { padding: .65rem; }
  .reading-rail nav a { padding: .6rem; font-size: .825rem; }
  .opening { padding-top: 2.5rem; }
  .finding { gap: 1.3rem; }
  .finding > div + div { padding-left: 1.3rem; }
}
@media (max-width: 840px) and (min-width: 721px) {
  :root { --rail: 9.5rem; --inset: 1.5rem; }
  .document { padding: 1.25rem; gap: 1rem; }
  .condition-list > div { display: block; }
  dt { margin-bottom: .6rem; }
  .finding { display: block; }
  .finding > div + div { border-left: 0; border-top: 1px solid #829e8b; padding: 1.25rem 0 0; margin-top: 1.25rem; }
}
@media (max-width: 720px) {
  :root { --inset: 1.25rem; }
  html { scroll-padding-top: 1rem; }
  body { font-size: 1rem; }
  .document { display: block; padding: 0; }
  .reading-rail { position: static; max-height: none; padding: .7rem 1.25rem; border-radius: 0; background: rgba(8, 24, 17, .94); }
  .reading-rail nav { display: flex; overflow-x: auto; gap: .35rem; padding: .35rem .35rem .7rem; scrollbar-color: #829e8b #10271d; }
  .reading-rail nav a { flex: 0 0 auto; font-size: .825rem; max-width: 11rem; }
  .nav-hint { display: block; margin: .35rem 0 .2rem; color: var(--inverse-muted); font-size: .75rem; line-height: 1.4; }
  .rail-note, .print-button { display: none; }
  .opening { border-radius: 0; padding-top: 2.5rem; padding-bottom: 2rem; background: rgba(8, 24, 17, .72); }
  h1 { font-size: clamp(2.3rem, 9vw, 3.3rem); max-width: 23ch; letter-spacing: -.03em; }
  h2 { font-size: 1.9rem; }
  .standfirst { font-size: 1.125rem; }
  section { padding-top: 3rem; padding-bottom: 3rem; }
  .finding { display: block; margin-top: 2rem; }
  .finding > div + div { border-left: 0; border-top: 1px solid #829e8b; padding: 1.25rem 0 0; margin-top: 1.25rem; }
  .condition-list > div { display: block; }
  dt { margin-bottom: .6rem; }
  .transect { padding: .75rem; margin-left: -.5rem; margin-right: -.5rem; }
  .transect img { min-width: 700px; }
  .distinction, .closing-statement, .practical-note { padding: 1.4rem; }
  .source-tools { display: grid; }
  .source-tools input { min-width: 0; width: 100%; }
  footer { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: black; font-size: 10pt; }
  .document { display: block; padding: 0; }
  .forest-backdrop, .reading-rail, .skip-link, .source-tools, .source-count { display: none; }
  main { padding: 0; }
  section, section + section { padding: 1.3rem 0; background: white; }
  .opening { background: white; color: black; padding: 1.3rem 0; border-radius: 0; }
  .opening a, .opening .standfirst, .opening .reading-route, .opening .source-line, .finding h2, .finding p { color: black; }
  .finding { display: block; }
  .finding > div + div { border: 0; padding: 1rem 0 0; }
  h1 { font-size: 27pt; max-width: 28ch; }
  h2 { font-size: 19pt; }
  h3, caption { break-after: avoid; }
  tr, .source { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  th, td { min-width: 0; padding: .5rem; }
  thead th { background: #e5e5e5; color: black; }
  .source[hidden] { display: block !important; }
  .transect { max-width: 40rem; }
  .transect img { min-width: 0; }
  .source-link::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  .distinction { background: #eee; color: black; }
  .distinction p { color: black; }
  footer { background: white; padding: 1.3rem 0; }
}
