/* =====================================================================
   lesson-pages.css — shared components for the 14 Nourish 2.0 lesson pages
   Sits on top of Design-System/styles.css (v1.7). Link AFTER it.

   v2.0 · 2026-08-28
   Extracted from layout-lesson-es06-editorial.html (page-local prototype)
   per TOPIC_PAGE_CONVENTIONS — one shared sheet, never per-page copies.

   Changes from the prototype, per ITALICS-GUIDELINES_2026-08-21:
   · .lesson-hero .lede  serif-italic 26px → Sans 400 19px  (lede retired)
   · .step-card em, look-fors, stems  italic sans → upright, quoted
   · italic reserved for Playfair display headings ≥26px + titles of works
   New components: .lesson-toc, .lesson-pager, .approach-cards,
   .four-farms, .vocab imagery, .hero-credit / .break-credit.
   Print: portrait letter (teachers print portrait).
   ===================================================================== */

/* ---------- HERO: full-bleed photo + title overlay ---------- */
.lesson-hero {
  position: relative; min-height: 74vh;
  background-size: cover; background-position: center;
  background-color: var(--soil);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.lesson-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.28) 40%,
    rgba(0,0,0,0.58) 68%, rgba(0,0,0,0.84) 100%);
  pointer-events: none;
}
.lesson-hero .wrap {
  position: relative; z-index: 1;
  padding-top: 80px; padding-bottom: 56px;
  color: var(--paper);
}
.lesson-hero .crumb {
  /* 2026-09-16: 15px / 18px, to sit on the family. Measured off the rendered references, the
     lesson hero had 22px of gap above the headline where Explore, Learn and Manifesto have
     18-19px, and a 14px eyebrow where every other photo hero is 15px. Smaller type at a wider
     gap reads as much further off than four pixels. */
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey);
  display: block; margin-bottom: 18px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.lesson-hero .crumb a { color: var(--honey); text-decoration: none; }
.lesson-hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 7vw, 96px); line-height: 1.0; color: #fff; margin: 0 0 18px;
  max-width: 900px;
}
/* Lede: sans, upright — p.lede serif italic is retired (Italics Guidelines) */
.lesson-hero .lede {
  font-family: var(--sans); font-weight: 400; font-style: normal;
  font-size: 19px; color: rgba(255,255,255,0.94); margin: 0 0 22px;
  max-width: 720px; line-height: 1.55;
}
.hero-credit {
  position: absolute; right: 20px; bottom: 14px; z-index: 2;
  /* 2026-09-17: 10px to 12px and the white from 85% to 92%. Ten-pixel type at 85% over a
     photograph is the smallest thing on the page and the hardest to read; size and contrast both
     move, because on a photograph the second matters as much as the first. */
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.92);
}

/* ---------- STICKY SECTION NAV ---------- */
.lesson-toc {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.lesson-toc .wrap {
  display: flex; gap: 6px; align-items: center;
  padding-top: 0; padding-bottom: 0;
}
.lesson-toc a {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soil); text-decoration: none;
  padding: 15px 12px; white-space: nowrap;
  border-bottom: 3px solid transparent;
  min-height: 44px; display: inline-flex; align-items: center;
}
.lesson-toc a:hover { color: var(--lagoon); border-bottom-color: var(--lagoon); }
section[id] { scroll-margin-top: 64px; }

/* ---------- AT-A-GLANCE band ---------- */
/* 2026-09-17: 44px to 32px, and the label-to-value gap 14px to 10px. The band measured 180px
   and now measures 152px, 16% shorter, with the same copy in it. Kirk wants this strip to cost as
   little vertical room as it can while still reading as a band rather than a rule. */
/* 2026-09-29: 32px to 20px, and the label-to-value gap 10px to 6px (Kirk, option B of
   _Library/TEACH_meta-strip_options_2026-09-29.png): 149px to 121px at 1280, 19% shorter. */
.glance { background: var(--fern-text, #367A46); color: #fff; padding: 20px 0; }
/* 2026-09-16: four cells, the first of them narrow. The lesson number moved here out of the
   hero — it was the only static label sitting in a hero anywhere on the site, against 77 heroes
   that are eyebrow, headline and deck — and SUBJECTS moved out, because on all fourteen pages it
   listed exactly the subjects the Standards section below carries, while that section adds the
   framework and the codes. Summary above and detail beneath is why TIME and FINAL PRODUCT stay. */
/* 2026-09-17: four equal columns. The 116px first column made LESSON's cell narrow and every
   other gap look wider than the first — Kirk read it as uneven spacing, and it was. Equal
   columns cost LESSON some empty room, which is cheaper than a rhythm that reads as a mistake. */
.glance .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px; }
.glance .stat .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.glance .stat .icon {
  width: 20px; height: 20px; flex-shrink: 0;
  filter: brightness(0) invert(1); opacity: 0.88;
}
.glance .stat .lbl {
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #fff; /* R8, 23 Sep: 0.85 white was 4.27:1 */
}
.glance .stat .val {
  display: block; font-family: var(--sans); font-weight: 600;
  font-size: 21px; line-height: 1.3; color: #fff;
}
.glance .stat .val .nw { white-space: nowrap; } /* 2026-09-29: "3-minute", "50–60" never split at the hyphen (Kirk) */
.glance .stat .sub {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 15px;
  color: rgba(255,255,255,0.88); margin-top: 10px; line-height: 1.6;
}

/* ---------- Sections ---------- */
.sec { padding: 56px 0; } /* Kirk, 30 Sep: option B (was 80px) */
/* A section ends with the space it starts with: the last child drops its bottom margin. */
.sec .wrap > :last-child, .sec .sec-head:last-child { margin-bottom: 0; }
.sec.cream { background: var(--cream); }
.sec.paper { background: var(--paper); }
.sec-head { margin-bottom: 28px; } /* was 36px */
.sec-head .eye, .sub-eye {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lagoon-text, #257877);
  display: block; margin-bottom: 14px;
}
.sub-eye { margin: 0 0 18px; }
.sub-eye.muted { color: var(--muted-text, #716C63); }  /* 19 Oct 2026: was --muted, 3.4:1 */
.sec-head h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: var(--soil); margin: 0 0 10px;
}
.sec-head .deck {
  font-family: var(--sans); font-weight: 400; font-size: 18px;
  color: #46443e; max-width: 800px; line-height: 1.6; margin: 0;
}
.sec-head .deck .title { font-style: italic; } /* titles of works only */
/* 2026-09-29: Activity Overview and Background run to 2-3 paragraphs (Kirk); 22px between them,
   as in the site's other long-form body text (How We Use AI, Privacy). */
.sec-head .deck + .deck { margin-top: 22px; }

/* ---------- Big idea / essential question ---------- */
.big-idea { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.big-idea .card {
  padding: 32px 36px; background: #fff;
  border-left: 4px solid var(--card-color, var(--lagoon));
}
.big-idea .card.eq { --card-color: var(--harvest); }
/* Text inks: the eyebrow takes the -text version of the card colour; the border keeps the bright one. Kirk, 23 Sep (K2). */
.big-idea .card { --card-ink: var(--lagoon-text); }
.big-idea .card.eq { --card-ink: var(--harvest-text); }
.big-idea .card .eye {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--card-ink, var(--card-color));
  display: block; margin-bottom: 14px;
}
.big-idea .card p {
  font-family: var(--sans); font-weight: 400;
  font-size: 20px; line-height: 1.5; color: var(--soil); margin: 0;
}

/* ---------- Standards cards ---------- */
.standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.std-card {
  background: #fff; padding: 24px; min-height: 240px;
  display: flex; flex-direction: column;
}
.std-card .subj {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--std-ink, var(--std-color, var(--fern)));
  margin-bottom: 14px;
}
.std-card.s1 { --std-color: var(--fern); }
.std-card.s2 { --std-color: var(--lagoon); }
.std-card.s3 { --std-color: var(--harvest); }
.std-card.s4 { --std-color: var(--ember); }
.std-card.s1 { --std-ink: var(--fern-text); }
.std-card.s2 { --std-ink: var(--lagoon-text); }
.std-card.s3 { --std-ink: var(--harvest-text); }
.std-card.s4 { --std-ink: var(--ember-text); }
/* Math, added 2026-09-17. The four above are positional; this one is by subject, because Math
   appears in slot 4 on ES Lesson 6 where Health would otherwise be, and inheriting ember made one
   colour mean two things. --plum is a Design System token scoped to the Standards cards and the
   Standards Map. Placed AFTER .s4 so it wins on source order at equal specificity. */
.std-card.math { --std-color: var(--plum); --std-ink: var(--plum); }
.std-card h4 {
  font-family: var(--sans); font-weight: 600;
  font-size: 15px; color: var(--soil); margin: 0 0 12px; line-height: 1.3;
}
.std-card p {
  font-family: var(--sans); font-size: 15px; color: #46443e;
  line-height: 1.6; margin: 0 0 12px;
}
.std-card .codes {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em; color: var(--soil);
}

/* ---------- Four approaches: photo cards (teacher background) ---------- */
.approach-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.approach-card { background: #fff; display: flex; flex-direction: column; }
.approach-card .ph {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background-color: var(--mist);
}
.approach-card .body { padding: 20px 22px 24px; }
.approach-card h4 {
  font-family: var(--sans); font-weight: 700; font-size: 17px;
  color: var(--soil); margin: 0 0 8px; letter-spacing: 0.01em;
}
.approach-card p {
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  color: #46443e; margin: 0;
}

/* ---------- Q&A card (soil panel — honey accents only, per Foundation) ---------- */
.bg-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.bg-grid .prose > p {
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  color: #46443e; margin: 0 0 14px;
}
.qa-card { background: var(--soil); color: var(--cream); padding: 32px 34px; }
.qa-card .eye {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey);
  display: block; margin-bottom: 18px;
}
.qa-card h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 20px; color: #fff; margin: 0 0 18px; line-height: 1.3;
}
.qa-card .qa { margin-bottom: 18px; }
.qa-card .qa:last-child { margin-bottom: 0; }
.qa-card .qa .q {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: var(--honey); margin: 0 0 6px; line-height: 1.4;
}
.qa-card .qa .a {
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  color: #e2dccb; margin: 0;
}

/* ---------- Vocabulary — image cards ---------- */
.vocab-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 32px;
}
.vocab {
  background: #fff; border-top: 3px solid var(--vc, var(--lagoon));
  display: flex; flex-direction: column;
}
.vocab .ph {
  aspect-ratio: 3 / 2; background-size: cover; background-position: center;
  background-color: var(--mist);
}
.vocab .body { padding: 18px 22px 22px; }
.vocab .term {
  font-family: var(--sans); font-weight: 700;
  font-size: 17px; color: var(--soil); margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.vocab .def {
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  color: #46443e; margin: 0;
}
.vocab.v1 { --vc: var(--fern); }
.vocab.v2 { --vc: var(--lagoon); }
.vocab.v3 { --vc: var(--harvest); }
.vocab.v4 { --vc: var(--ember); }
.vocab.v5 { --vc: var(--meadow); }
.vocab.v6 { --vc: var(--honey); }

.vocab-b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vocab.b {
  background: var(--paper); border-top: none; border-left: 2px solid var(--line);
  padding: 0; flex-direction: row; align-items: stretch;
}
.vocab.b .ph {
  aspect-ratio: auto; width: 108px; flex-shrink: 0;
}
.vocab.b .body { padding: 14px 18px; }
.vocab.b .term { font-size: 15px; }
.vocab.b .def { font-size: 14px; }

/* ---------- Four Farms figure (guessing-game grid) ---------- */
.four-farms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.four-farms figure { margin: 0; }
.four-farms .ph {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background-color: var(--mist);
}

/* These three photo boxes are empty flex items in `flex-direction: column` parents, so a browser
   stretches each to its container's width and `width: 100%` changes nothing you can see. It is
   here for renderers that do not stretch: WeasyPrint gives such an item no width, and at 390px the
   four vocabulary photographs on ES Lesson 6 computed to zero and vanished from the visual
   reference while looking correct in every browser. Kirk approved the line on 2026-09-15 as the
   honest fix — the layout does mean "fill the card" — in preference to a workaround in the
   generator. Verified before and after: zero-size boxes 4 -> 0 at 390px, unchanged at 1280px. */
.vocab .ph,
.approach-card .ph,
.four-farms .ph { width: 100%; }
.four-farms figcaption {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted-text, #716C63); padding: 10px 2px 0; font-style: normal;
}
.four-farms figcaption strong {
  font-weight: 700; color: var(--soil); margin-right: 6px;
}

/* ---------- Materials + Preparation checklists ---------- */
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.checklist h3 {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lagoon-text, #257877);
  margin: 0 0 20px;
}
.checklist ul { padding: 0; margin: 0; }
.checklist li {
  list-style: none;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: #46443e;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 14px; height: 14px; border: 1.5px solid var(--lagoon);
  border-radius: 2px;
}
.checklist li strong { color: var(--soil); font-weight: 600; }
.checklist li .title { font-style: italic; } /* film titles only */

/* ---------- DAY chapter break ---------- */
.day-break {
  position: relative; min-height: 56vh;
  background-size: cover; background-position: center;
  background-color: var(--soil);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
/* 2026-09-30: the hero's feathered scrim (styles.css HERO TEXT BLOCK), not a full-band wash (Kirk).
   Drawn from the eyebrow: clear --db-f above it, --db-a at the eyebrow, --db-b from the top of "Day N"
   down; full strength across the text and fading out to its right; no sideways fade on a phone.
   --db-a/-b (-am/-bm on a phone) and --db-w are fitted per photograph by _Library/tools/fit_day_scrim.py
   (eyebrow 5:1; "Day N" and the title 3.5:1) and written onto each band by the lesson builder. */
.day-break::after { content: none; }
.day-break { --db-f: 140px; }
.day-break .wrap { isolation: isolate; }
.day-break .pre { --sa: var(--db-a, 0.35); --sb: var(--db-b, var(--db-a, 0.35)); text-shadow: none; }
.day-break .pre::before {
  content: ""; display: block; position: absolute; z-index: -1; pointer-events: none;
  width: 300vw; height: 300vh; margin: calc(-1 * var(--db-f)) 0 0 -100vw;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,calc(var(--sa) * 0.55)) calc(var(--db-f) * 0.6),
    rgba(0,0,0,var(--sa)) var(--db-f), rgba(0,0,0,var(--sb)) calc(var(--db-f) + 1lh + 16px), rgba(0,0,0,var(--sb)) 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100vw + min(var(--db-w, 760px), 100vw)),
    transparent calc(100vw + min(var(--db-w, 760px), 100vw) + min(400px, 30vw)));
          mask-image: linear-gradient(to right, #000 0, #000 calc(100vw + min(var(--db-w, 760px), 100vw)),
    transparent calc(100vw + min(var(--db-w, 760px), 100vw) + min(400px, 30vw)));
}
@media (max-width: 700px) {
  .day-break { --db-f: 100px; }
  .day-break .pre { --sa: var(--db-am, var(--db-a, 0.35)); --sb: var(--db-bm, var(--db-am, var(--db-b, 0.35))); }
  .day-break .pre::before { -webkit-mask-image: none; mask-image: none; }
}
/* 2026-09-29: padding-block, not `padding: 64px 0 48px`, whose 0 zeroed the .wrap's side padding;
   the band's text now keeps the hero's left edge at every width (Kirk). */
.day-break .wrap { position: relative; z-index: 1; padding-block: 64px 48px; color: #fff; }
.day-break .pre {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #fff; /* 2026-09-29: white, the one eyebrow on every photograph (Kirk, 23 Sep) */
  display: block; margin-bottom: 16px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.day-break .num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(84px, 11vw, 140px); line-height: 0.9; color: #fff; margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.day-break h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; color: #fff; margin: 0 0 14px;
}
.day-break .meta {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey);
}
/* 2026-09-30: below the photograph, right-aligned, 12px, on the Cream of the section that follows,
   like every hero credit (Kirk, 25 Sep: "below, 12px"; 30 Sep: the day bands too). */
.break-credit {
  display: block; position: static; margin: 0; padding: 12px 32px 0; text-align: right;
  background: var(--cream, #F4EFE3); line-height: 1.65; color: #716C63 !important;
  /* 2026-09-17: 10px to 12px and the white from 85% to 92%. Ten-pixel type at 85% over a
     photograph is the smallest thing on the page and the hardest to read; size and contrast both
     move, because on a photograph the second matters as much as the first. */
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.92);
}

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 20px; padding: 36px 0 12px; }
.step-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: flex-start;
  padding: 26px 28px; background: #fff;
}
.step-card .badge {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--day-acc, var(--fern)); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 18px;
}
.steps.day2 { --day-acc: var(--harvest); }
.step-card .body { display: flex; flex-direction: column; gap: 14px; }
.step-card .head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.step-card .head h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 22px; color: var(--soil); margin: 0; line-height: 1.25;
  letter-spacing: -0.005em;
}
.step-card .head .dur {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-text, #716C63);
}
.step-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 8px; }
.step-card .col h4 {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-text, #716C63);
  margin: 0 0 14px;
}
.step-card .col p, .step-card .col li {
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: #46443e; margin: 0 0 10px;
}
.step-card .col ul { padding-left: 20px; margin: 0; }
/* Prompts and stems: upright, quoted, Sans 600 — never italic (Italics Guidelines) */
.step-card .col .stem {
  font-style: normal; font-weight: 600; color: var(--soil);
}
.step-card .col .title { font-style: italic; } /* titles of works only */

/* ---------- Assessment + differentiation ---------- */
.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.close-card { background: #fff; padding: 28px 30px; border-top: 3px solid var(--cc, var(--lagoon)); }
.close-card.assess { --cc: var(--fern); }
.close-card.diff   { --cc: var(--lagoon); }
.close-card { --cc-ink: var(--lagoon-text); }
.close-card.assess { --cc-ink: var(--fern-text); }
.close-card .eye {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cc-ink, var(--cc));
  display: block; margin-bottom: 14px;
}
.close-card h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 22px; color: var(--soil); margin: 0 0 16px; line-height: 1.3;
}
.close-card p, .close-card li {
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: #46443e; margin: 0 0 8px;
}
.close-card ul { margin: 0 0 12px; padding-left: 20px; }
.close-card h4 {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.20em; text-transform: uppercase; color: var(--muted-text, #716C63);
  margin: 20px 0 8px;
}
.close-card .note { font-style: normal; color: var(--muted-text, #716C63); margin-top: 14px; font-size: 14px; }

/* ---------- Extensions ---------- */
.ext-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ext { background: var(--cream); padding: 22px 24px; border-top: 3px solid var(--ec, var(--lagoon)); }
.ext.e1 { --ec: var(--fern); }
.ext.e2 { --ec: var(--harvest); }
.ext.e3 { --ec: var(--lagoon); }
.ext.e4 { --ec: var(--ember); }
.ext.e5 { --ec: var(--meadow-text, #3D794A); }
.ext { --ec-ink: var(--lagoon-text); }
.ext.e1 { --ec-ink: var(--fern-text); }
.ext.e2 { --ec-ink: var(--harvest-text); }
.ext.e4 { --ec-ink: var(--ember-text); }
.ext.e5 { --ec-ink: var(--meadow-text, #3D794A); }
.ext .eye {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ec-ink, var(--ec));
  display: block; margin-bottom: 12px;
}
.ext h4 {
  font-family: var(--sans); font-weight: 600;
  font-size: 17px; color: var(--soil); margin: 0 0 10px; line-height: 1.25;
}
.ext p { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: #46443e; margin: 0; }

/* ---------- Closing strip ---------- */
.lesson-close { background: var(--soil); color: var(--cream); padding: 48px 0; }
.lesson-close .row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.lesson-close .left .eye {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey);
  display: block; margin-bottom: 12px;
}
.lesson-close .left h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 28px; color: #fff; margin: 0; line-height: 1.25;
}
.lesson-close .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lesson-close .actions a {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--honey);
  padding: 10px 18px; border: 1.5px solid var(--honey);
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.lesson-close .actions a:hover { background: var(--honey); color: var(--soil); }

/* ---------- Lesson-to-lesson pager ---------- */
.lesson-pager { background: var(--cream); border-top: 1px solid var(--line); }
.lesson-pager .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  padding-top: 28px; padding-bottom: 28px;
}
.lesson-pager a {
  text-decoration: none; display: block; min-height: 44px;
}
.lesson-pager .dir {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-text, #716C63);
  display: block; margin-bottom: 6px;
}
.lesson-pager .name {
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  color: var(--soil); line-height: 1.3;
}
.lesson-pager a:hover .name { color: var(--lagoon); }
.lesson-pager .next { text-align: right; }
.lesson-pager .pos {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-text, #716C63);
  text-align: center;
}

/* ---------- Small-label contrast: Foundation muted passes AA; token muted fails ---------- */
:root { --muted-aa: #6E6C65; }
.step-card .head .dur, .step-card .col h4, .four-farms figcaption,
.lesson-pager .dir, .lesson-pager .pos, .close-card h4,
.step-card .col ul ul li::before { color: var(--muted-aa); }

/* ---------- Top pager in the sticky section bar ---------- */
.lesson-toc .toc-pager { margin-left: auto; display: flex; gap: 2px; flex-shrink: 0; }
.lesson-toc .toc-pager .tp {
  color: var(--lagoon-text, #257877); border-left: 1px solid var(--line);
  letter-spacing: 0.08em;
}
.lesson-toc .toc-pager .tp:hover { border-bottom-color: var(--lagoon); }

/* ---------- Section bar: one row on a phone, scrolled sideways (Kirk, 11 Oct 2026) ----------
   styles.css §6 lets every flex row wrap below 900px, so on a phone this bar became three rows of
   sections plus a row for Lesson 3 / Lesson 5, about a third of the screen once it was pinned below
   the header. Held to one row, as on desktop; the bar already scrolls sideways (overflow-x: auto). */
@media (max-width: 900px) {
  .lesson-toc .wrap, .lesson-toc .toc-pager { flex-wrap: nowrap !important; }
  /* Scroll cue (Kirk, 27 Oct 2026, option A): the Videos theme pills' fade. The links row scrolls, not the bar,
     so the bar's background and rule stay solid; the edge with more links fades (script below each lesson). */
  .lesson-toc { overflow-x: visible; }
  .lesson-toc .wrap { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .lesson-toc .wrap.mid { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
                                  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
  .lesson-toc .wrap.end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
                                  mask-image: linear-gradient(to right, transparent, #000 40px); }
  .lesson-toc .wrap::-webkit-scrollbar { display: none; }
  .lesson-toc .wrap > a, .lesson-toc .wrap > .toc-pager { flex: none; }
}

/* ---------- Titles of works: italic everywhere (sanctioned exception) ---------- */
.title { font-style: italic; }

/* ---------- Eyebrow separator — NiA spec: spaced middot, softened ---------- */
/* inline-block so the run can wrap at the separator instead of overflowing */
.sep { display: inline-block; margin: 0 9px; opacity: 0.6; font-size: 1.2em; line-height: 1; vertical-align: -0.08em; }
.standards-grid > *, .approach-cards > *, .vocab-grid > *, .vocab-b-grid > *,
.ext-grid > *, .four-farms > *, .glance .grid > * { min-width: 0; }

/* ---------- Teacher sub-lists: children of a colon-ended move, en-dash marker ---------- */
.step-card .col ul ul { padding-left: 16px; margin: 6px 0 4px; list-style: none; }
.step-card .col ul ul li { position: relative; padding-left: 16px; margin: 0 0 6px; font-size: 16px; }
.step-card .col ul ul li::before {
  content: "\2013"; position: absolute; left: 0; color: var(--muted);
}

/* ---------- Inline resource links in extension cards ---------- */
.ext p a { color: var(--lagoon); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Count modifiers (generator emits .nN when a grid isn't the default count) ---------- */
.standards-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.approach-cards.n2 { grid-template-columns: repeat(2, 1fr); }
.approach-cards.n3 { grid-template-columns: repeat(3, 1fr); }
.approach-cards.n5, .approach-cards.n6 { grid-template-columns: repeat(3, 1fr); }
.ext-grid.n4 { grid-template-columns: repeat(4, 1fr); }
.ext-grid.n6 { grid-template-columns: repeat(3, 1fr); }
.four-farms.n9 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive (mirrors styles.css breakpoints: 900 / 560) ---------- */
@media (max-width: 900px) {
  .lesson-hero { min-height: 62vh; }
  .glance .grid, .standards-grid, .approach-cards, .four-farms,
  .vocab-grid, .vocab-b-grid, .ext-grid,
  .standards-grid.n3, .approach-cards.n2, .approach-cards.n3,
  .approach-cards.n5, .approach-cards.n6, .ext-grid.n4, .ext-grid.n6,
  .four-farms.n9 { grid-template-columns: repeat(2, 1fr); }
  .big-idea, .bg-grid, .mp-grid, .close-grid, .step-card .cols { grid-template-columns: 1fr; }
  .sec { padding: clamp(40px, 8vw, 56px) 0; } /* 40px on a phone (was 48px) */
  .step-card { grid-template-columns: 48px 1fr; padding: 20px; }
  .step-card .badge { width: 40px; height: 40px; font-size: 16px; }
  .lesson-pager .wrap { grid-template-columns: 1fr 1fr; }
  .lesson-pager .pos { display: none; }
}
@media (max-width: 560px) {
  .glance .grid, .standards-grid, .approach-cards, .four-farms,
  .vocab-grid, .vocab-b-grid, .ext-grid,
  .standards-grid.n3, .approach-cards.n2, .approach-cards.n3,
  .approach-cards.n5, .approach-cards.n6, .ext-grid.n4, .ext-grid.n6,
  .four-farms.n9 { grid-template-columns: 1fr; }
  .day-break { min-height: 44vh; }
  .lesson-close .row { grid-template-columns: 1fr; }
  .vocab.b .ph { width: 84px; }
}

/* ---------- Print: portrait letter ---------- */
@page { size: 8.5in 11in; margin: 0.5in; }
@media print {
  .site-nav, .site-footer, .lesson-toc, .lesson-pager, .lesson-close .actions { display: none; }
  body { margin: 0; }
  .lesson-hero, .day-break { min-height: 4.5in; }
  .day-break { break-before: page; }
  .sec.print-break { break-before: page; }
  .std-card, .vocab, .step-card, .close-card, .ext, .qa-card, .approach-card { break-inside: avoid; }
  .sec { padding: 28px 0; }
  .glance { padding: 22px 0; }
  a { text-decoration: none; color: inherit; }
}

/* "Before Day N" pre-work note (Perspectives, 5 Oct 2026; Kirk: yes) */
.prework { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 24px; margin: 0 0 28px; max-width: 820px; }
.prework .eye { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fern-text, #367A46); margin-bottom: 8px; }
.prework p { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: #46443e; }
.prework a { color: var(--fern-text, #367A46); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Lesson at-a-glance band on a phone: the four facts sat 52px apart, the laptop's column gap, which read
   as four separate bands once they stacked (Kirk, 15 Oct 2026). 28px keeps each fact a group. */
@media (max-width: 560px) { .glance .grid { row-gap: 28px; } }

/* 19 Oct 2026 (Kirk, readability): links in lesson text were Light (300) teal at 3.6:1 on cream.
   Regular weight in the darker teal, 4.5:1 on cream and 5.2:1 on white. */
.film-link, .sec li > a:not([class]), .sec p > a:not([class]), .ext p a { color: var(--lagoon-text, #257877); font-weight: 400; }
.sec li > strong > a:not([class]) { color: var(--lagoon-text, #257877); }
