/* Light, low-contrast surfaces; contrast belongs to text and controls. */
:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --white: #fff;
  --ink: #1e2821;
  --muted: #4f5d53;
  --green: #286047;
  --green-strong: #174c35;
  --tint: #e8f0e6;
  --line: #cfd9ce;
  --max: 1140px;
  --read: 760px;
  --pad: clamp(18px, 4vw, 48px);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-block-start: 0; }
a { color: var(--green-strong); text-decoration-thickness: .075em; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--green-strong); outline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .55; }
img { max-inline-size: 100%; height: auto; display: block; }
strong { font-weight: 680; }
code {
  border-radius: 4px;
  padding: .075em .28em;
  background: var(--tint);
  color: #204930;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}
pre { overflow-x: auto; border-radius: 7px; padding: .9rem 1rem; background: var(--tint); }
pre code { padding: 0; background: none; }
.shell { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.reader { max-width: var(--read); min-width: 0; margin-inline: auto; padding-block: clamp(28px, 5vw, 62px); }
.skip, .skip-link { position: absolute; top: 12px; left: var(--pad); z-index: 3; padding: .6rem .85rem; background: var(--white); transform: translateY(-160%); }
.skip:focus, .skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header > .shell, .site-header .header-inner {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-brand { color: var(--ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
.site-nav, .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .88rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--green-strong); text-decoration: underline; }
.breadcrumbs { margin-block-end: 1.18rem; color: var(--muted); }
.eyebrow { color: var(--green-strong); font-size: .82rem; font-weight: 690; margin-block-end: .5rem; }
.page-title {
  font-size: clamp(2rem, 6.4vw, 3.55rem);
  letter-spacing: -.035em;
  line-height: 1.09;
  font-weight: 760;
  text-wrap: balance;
  margin-block-end: .65rem;
}
.lead { max-width: 62ch; margin-block-end: 1.35rem; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.18rem); }
.text-link { font-weight: 650; }
.quiet { color: var(--muted); }
.jump-target, section[id], article[id], h2[id], h3[id] { scroll-margin-top: 15px; }

.course-hero { background: #e9efe6; border-bottom: 1px solid var(--line); }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 6vw, 83px);
  padding-block: clamp(30px, 4.9vw, 62px);
}
.hero-copy .page-title { max-width: 17ch; font-size: clamp(2.48rem, 5.5vw, 4.2rem); text-wrap: initial; }
.hero-copy .lead { max-width: 41ch; margin-block-start: 1rem; color: #43554a; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.course-meta { margin: 1rem 0 0; font-size: .91rem; color: #43554a; }
.cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  border-radius: 7px;
  background: var(--green-strong);
  color: white;
  font-weight: 670;
  text-decoration: none;
}
.cta:hover { background: #103d2a; text-decoration: none; }
.cta:active { transform: scale(.98); }

.program, .home-materials, .labs { padding-block: clamp(29px, 5.2vw, 65px); }
.program h2, .home-materials h2, .labs h2 {
  font-size: clamp(1.75rem, 4.3vw, 2.55rem);
  letter-spacing: -.028em;
  line-height: 1.13;
  margin-block-end: .75rem;
}
.program > .shell > p { max-width: 64ch; margin-bottom: 1.15rem; }
.module-nav {
  display: flex;
  gap: .22rem .6rem;
  flex-wrap: wrap;
  padding-block-end: .74rem;
  border-bottom: 1px solid var(--line);
}
.module-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: .45rem .7rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.module-nav a[aria-current], .module-nav a:hover { color: var(--green-strong); background: var(--tint); }
.module-nav a[aria-current] { border-color: #b8ccba; }
.program-body { max-width: 900px; }
.search-field { margin-block: 1.1rem .38rem; }
.search-field label { display: block; color: var(--muted); font-size: .82rem; font-weight: 670; margin-block-end: .24rem; }
.search-field input {
  width: min(100%, 30rem);
  min-height: 44px;
  padding: .48rem .68rem;
  border: 1px solid #9cac9e;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.search-field input::placeholder { color: #627165; }
.search-status { min-height: 1.35em; margin: .15rem 0; color: var(--muted); font-size: .84rem; }
.chapter { padding-block-start: 1.55rem; }
.chapter + .chapter { margin-top: 1.7rem; }
.chapter h3 { font-size: clamp(1.45rem, 3.7vw, 1.95rem); letter-spacing: -.021em; line-height: 1.16; margin-bottom: .33rem; }
.chapter p { margin-block-end: .6rem; }
.chapter ul, .resource-list, .labs ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.lesson-row, .resource-list li, .labs li { border-top: 1px solid var(--line); }
.lesson-row:last-child, .resource-list li:last-child, .labs li:last-child { border-bottom: 1px solid var(--line); }
.lesson-row a {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 1.1rem;
  gap: .5rem .7rem;
  align-items: start;
  padding: .73rem .32rem;
  color: var(--ink);
  text-decoration: none;
}
.lesson-row a:hover { background: #edf1e9; }
.lesson-row a:hover .row-title { color: var(--green-strong); text-decoration: underline; text-underline-offset: .18em; }
.row-number, .row-arrow { color: var(--green-strong); font-size: .88rem; font-weight: 670; font-variant-numeric: tabular-nums; }
.row-title { display: block; font-size: 1.04rem; font-weight: 700; line-height: 1.34; }
.row-description { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; margin-top: .1rem; }
.row-arrow { justify-self: end; }
.home-materials { border-block: 1px solid var(--line); background: #edf1e9; }
.resource-list li, .labs li { padding: .7rem 0; }
.resource-list a { font-weight: 680; }
.resource-list span, .labs li p { display: block; margin: .09rem 0 0; color: var(--muted); }
.labs li strong { display: block; }
.site-footer, footer { padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.site-footer p, footer p { margin: 0; }
 
.lesson-nav, .section-nav {
  display: flex;
  gap: .25rem .75rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-block: 1.25rem 1.45rem;
}
.lesson-nav a, .lesson-nav button, .section-nav a, .section-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: .45rem .44rem;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 665;
}
.lesson-nav a[aria-current], .lesson-nav [aria-selected=true], .section-nav a[aria-current] {
  color: var(--green-strong);
  border-bottom-color: var(--green-strong);
}
.lesson-nav a:hover, .section-nav a:hover { color: var(--green-strong); text-decoration: underline; }
.lesson-pane { min-width: 0; }
.lesson-pane > h2, .prose h2 {
  font-size: clamp(1.42rem, 3.9vw, 1.92rem);
  letter-spacing: -.02em;
  line-height: 1.16;
  margin-block: 1.6rem .58rem;
}
.prose { font-size: 1.055rem; line-height: 1.68; overflow-wrap: anywhere; }
.prose > :first-child { margin-block-start: 0; }
.prose h3 { color: var(--ink); font-size: 1.19rem; line-height: 1.27; margin-block: 1.4rem .46rem; }
.prose p, .prose ul, .prose ol { margin-block-end: .82rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose img { border-radius: 7px; }
.prose blockquote, .spoken {
  margin: .5rem 0 1.05rem;
  padding: .65rem .9rem;
  background: #e8f0e6;
  color: #1e3b29;
  border: 0;
  border-radius: 7px;
}
.prose blockquote p:last-child, .spoken p:last-child { margin-bottom: 0; }
.prose table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); text-align: start; vertical-align: top; padding: .44rem .58rem; }
.prose th { background: var(--tint); }
.outcome { padding: .85rem .98rem; border-radius: 8px; background: var(--tint); margin-block: 1rem 1.5rem; }
.prose .outcome h2 { margin-block: 0 .35rem; font-size: 1.32rem; }
.outcome p { margin: .22rem 0 0; }
.timeline { margin: 1.1rem 0 1.5rem; padding: 0; list-style: none; }
.timeline-step { border-top: 1px solid var(--line); padding-block: 1.07rem; }
.timeline-step:last-child { border-bottom: 1px solid var(--line); }
.timeline-step > p:last-child { margin-bottom: 0; }
.timeline-step h3 { margin-block: .25rem .44rem; }
.step-time { display: inline-block; color: var(--green-strong); font-size: .82rem; font-weight: 710; font-variant-numeric: tabular-nums; }
.step-role { color: var(--green-strong); font-weight: 680; }
.lesson-pane details { padding-block: .68rem; border-block: 1px solid var(--line); }
.lesson-pane details summary { cursor: pointer; color: var(--green-strong); font-weight: 680; }
.lesson-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1rem; padding-top: 1rem; margin-top: 1.65rem; border-top: 1px solid var(--line); }
 
@media (max-width: 750px) {
  .hero-layout { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 1.75rem; }
  .hero-figure { max-width: 37rem; }
  .hero-copy .lead { margin-top: .62rem; margin-bottom: .88rem; }
  .course-meta { margin-top: .65rem; }
  .site-header > .shell, .site-header .header-inner { gap: .5rem; }
}
@media (max-width: 430px) {
  .site-header > .shell, .site-header .header-inner { flex-wrap: wrap; padding-block: .68rem; }
  .site-nav { gap: .28rem .68rem; font-size: .81rem; }
  .module-nav a { min-height: 38px; padding-inline: .46rem; font-size: .86rem; }
  .lesson-row a { grid-template-columns: 1.8rem minmax(0, 1fr) .85rem; gap: .36rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .cta:active { transform: none; }
}
@media print {
  body { background: white; }
  .site-header, .site-footer, .site-nav, .lesson-nav, .section-nav, .lesson-pager, .skip { display: none !important; }
  .shell, .reader { width: 100%; max-width: none; }
  .reader { padding: 0; }
  .prose h2, .prose h3 { break-after: avoid; }
  .outcome, .spoken { break-inside: avoid; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reader > .section-nav { position: sticky; top: 0; z-index: 2; background: var(--paper); scroll-margin-top: 0; }
.prose h2[id^="script-"] { scroll-margin-top: 64px; }
.prose .script-jump ol { margin-block: .65rem .12rem; }
.prose .script-jump li { margin-bottom: .25rem; }
.prose .speech-caption { margin-block: .65rem .12rem; color: var(--green-strong); font-size: .91rem; }
.prose .home-practice { margin-block: 1.5rem; }
.timeline-step .stage-actions p { margin-block: .4rem; }
.timeline-step .stage-single .step-role { display: none; }
.timeline-step .stage-content h5 { margin: .25rem 0 .45rem; font-size: 1.13rem; }
.lesson-question { margin-top: 1.15rem; }
@media (max-width: 430px) {
  .reader > .section-nav { gap: .1rem .38rem; }
  .reader > .section-nav a { padding-inline: .35rem; }
}

