:root {
  --forest: #264305;
  --forest-deep: #1E3604;
  --field: #497205;
  --soil: #431A07;
  --dirt: #813F1C;
  --wheat: #CB772F;
  --navy: #27405C;
  --cream: #F5EFE0;
  --page: #F7F1E3;
  --paper: #FFFDF8;
  --ink: #111111;
  --ink-soft: #3E463D;
  --ink-muted: #586157;
  --marigold: #F2B41C;
  --highlight: #F7D23E;
  --red: #B7351C;
  --true: #3F7A1E;
  --tint-green: #E4EED6;
  --tint-tan: #F4E8D2;
  --tint-blue: #DCE9F2;
  --tint-pink: #F6E0D8;
  --tint-yellow: #FBF0CC;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Sora, system-ui, sans-serif; }
button { font-family: inherit; }
button:not([disabled]) { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lesson { max-width: 1120px; margin: 0 auto; background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.hdr { position: relative; min-height: 240px; background: #BFD9EE center top / cover no-repeat; display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.hdr-note { font-family: Caveat, cursive; font-weight: 700; font-size: 25px; line-height: 1.02; color: var(--forest-deep); white-space: pre-line; width: 140px; flex-shrink: 0; }
.hdr-note.left { transform: rotate(-7deg); }
.hdr-note.right { transform: rotate(-6deg); text-align: center; margin-left: auto; }
.hdr-logo { width: 340px; max-width: 42vw; height: auto; align-self: flex-start; }
.hdr-toggle { display: flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 50px; }
.hdr-toggle .for { font-size: 24px; font-weight: 800; color: var(--forest-deep); }
.aud-btn { display: flex; align-items: center; gap: 10px; height: 70px; padding: 0 30px 0 18px; border-radius: 999px; border: 4px solid rgba(255,255,255,0.6); background: #636A6A; color: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.aud-btn[aria-pressed="true"] { background: var(--forest); border-color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.25); }

/* Bars */
.bars { padding: 20px 32px 24px; display: flex; flex-direction: column; gap: 8px; }
.bar { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 16px; padding: 8px 22px 8px 12px; border-radius: 16px; border: 2px solid transparent; text-align: left; color: var(--forest-deep); }
.bar.green { background: var(--tint-green); } .bar.tan { background: var(--tint-tan); } .bar.blue { background: var(--tint-blue); }
.bar.open { background: #F4C534; border-color: #E0A800; border-radius: 16px 16px 0 0; }
.bar[disabled] { cursor: default; }
.bar-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 999px; border: 3px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.bar-title { flex-shrink: 0; width: 300px; font-size: 25px; font-weight: 800; }
.bar-sub { flex-grow: 1; font-size: 16px; color: var(--ink-soft); }
.bar-status { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.bar-status.locked { color: #4A5249; font-weight: 400; }
.bar-status.next { color: var(--dirt); }
.bar-chev { flex-shrink: 0; transition: transform 0.2s ease; }
.bar.open .bar-chev { transform: rotate(180deg); }
.panel { border: 2px solid #E0A800; border-top: none; border-radius: 0 0 16px 16px; overflow: hidden; padding: 22px; background: #DCEBD8 url('assets/farm-background.jpg') center bottom / cover no-repeat; }
.panel > .sec { background: rgba(255, 253, 247, 0.84); border: 4px solid rgba(255, 255, 255, 0.95); border-radius: 26px; box-shadow: 0 10px 28px rgba(20, 45, 20, 0.18); backdrop-filter: blur(3px); }
.panel > .sec.finish { background: rgba(38, 67, 5, 0.9); border-color: rgba(255, 255, 255, 0.6); }

/* Section basics */
.sec { padding: 30px 36px; display: flex; flex-direction: column; gap: 16px; }
.sec.split { flex-direction: row; gap: 32px; }
.sec .col { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lbl { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; color: var(--field); }
.chip { align-self: flex-start; padding: 8px 16px; border-radius: 6px; background: var(--dirt); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; }
.sec h2 { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; color: var(--forest); }
.intro { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.hl { align-self: flex-start; padding: 8px 22px; border-radius: 4px; background: var(--highlight); font-size: 28px; line-height: 1.15; font-weight: 800; transform: rotate(-1.2deg); }
.hl.soft { background: var(--cream); transform: none; font-size: 32px; }
.side-img { width: 330px; flex-shrink: 0; position: relative; }
.side-img img, .side-img .ph { width: 100%; height: 100%; min-height: 440px; object-fit: cover; border-radius: 22px; display: block; }
.note { position: absolute; font-family: Caveat, cursive; font-weight: 700; font-size: 22px; line-height: 1.05; white-space: pre-line; padding: 6px 12px; border-radius: 8px; }
.ph { border: 3px dashed #9AA39A; background: #EEF0EA; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 17px; font-weight: 700; color: var(--ink-muted); border-radius: 14px; }
.actions { margin-top: auto; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.actions.between { justify-content: space-between; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 30px; border-radius: 999px; border: none; background: var(--forest); color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; }
.btn.arrow { padding-right: 22px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--forest); background: var(--paper); color: var(--forest); font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-ghost[aria-pressed="true"] { background: var(--forest); color: #fff; }

/* Opening */
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.answer { height: 120px; border-radius: 16px; border: 5px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 22px; font-weight: 800; letter-spacing: 0.04em; transition: transform 0.15s ease, opacity 0.15s ease; }
.answer.true { background: var(--true); color: #fff; } .answer.false { background: var(--red); color: #fff; } .answer.not_sure { background: var(--marigold); color: #1E1A05; }
.answers.picked .answer { opacity: 0.55; }
.answers.picked .answer[aria-pressed="true"] { opacity: 1; border-color: var(--forest-deep); transform: scale(1.04); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* Try it */
.status-pill { align-self: flex-start; padding: 8px 18px; border-radius: 999px; background: var(--tint-yellow); font-size: 17px; font-weight: 700; color: var(--soil); }
.cows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cow { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 20px; border: 3px solid #D9CFB8; background: var(--tint-tan); text-align: left; }
.cow img, .cow .ph { width: 100%; height: 210px; object-fit: cover; object-position: center 30%; border-radius: 14px; display: flex; }
.cow-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 8px; }
.cow-name { font-size: 22px; font-weight: 800; color: var(--forest); }
.glass { position: relative; width: 64px; height: 92px; border: 4px solid #9FB2B8; border-top-width: 2px; border-radius: 4px 4px 14px 14px; background: rgba(220,236,242,0.5); overflow: hidden; }
.glass .milk { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #fff; box-shadow: inset 0 3px 0 #EDEDED; transition: height 0.9s ease; }
.glass.full .milk { height: 82%; }
.busted { display: flex; align-items: center; gap: 28px; padding: 18px 24px; border-radius: 18px; background: #FBEDE8; border: 2px solid #E9B7A8; }
.stamp { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 18px; border: 5px solid var(--red); border-radius: 10px; transform: rotate(-8deg); color: var(--red); animation: stamp 0.35s ease-out; }
.stamp small { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.stamp strong { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 48px; line-height: 1; }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.busted h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--forest); }
.busted p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

/* Try it: flip cards */
.flips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flip { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 18px; border: 3px dashed #D9CFB8; background: var(--tint-tan); text-align: center; transition: transform 0.2s ease; }
.flip:hover { transform: translateY(-2px); }
.flip.on { border: 3px solid #9FC27E; background: var(--tint-green); justify-content: flex-start; }
.flip.just { animation: flipin 0.35s ease-out; }
.flip-shelf { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flip-shelf small { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dirt); }
.flip-name { font-size: 24px; font-weight: 800; color: var(--forest); }
.flip-hint { font-size: 14px; color: var(--ink-muted); }
.flip img, .flip .ph { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; display: flex; font-size: 14px; }
.flip-farm { font-size: 20px; font-weight: 800; color: var(--forest); }
.flip-fact { font-size: 15px; line-height: 1.45; color: #2B3329; }
@keyframes flipin { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }

/* Poll */
.poll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.poll-card { padding: 16px 18px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.poll-card .k { font-size: 18px; font-weight: 800; letter-spacing: 0.05em; }
.poll-card .v { font-size: 40px; font-weight: 800; }
.poll-card .track { width: 100%; height: 14px; border-radius: 999px; overflow: hidden; }
.poll-card .fill { height: 100%; border-radius: 999px; width: 0; transition: width 0.8s ease; }
.poll-card.true { background: var(--tint-green); } .poll-card.true .k { color: #2F5E12; } .poll-card.true .track { background: #CBD9BC; } .poll-card.true .fill { background: var(--true); }
.poll-card.false { background: var(--tint-pink); } .poll-card.false .k { color: #9A2C16; } .poll-card.false .track { background: #EAC7BB; } .poll-card.false .fill { background: var(--red); }
.poll-card.not_sure { background: var(--tint-yellow); } .poll-card.not_sure .k { color: #7A5600; } .poll-card.not_sure .track { background: #EFDFA6; } .poll-card.not_sure .fill { background: #E0A300; }
.poll-summary { margin: 0; font-size: 18px; font-weight: 700; }
.natpoll { padding: 14px 18px; border-radius: 14px; background: var(--tint-blue); border-left: 0; display: flex; flex-direction: column; gap: 4px; }
.natpoll-lbl { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--navy); }
.natpoll p { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.natpoll a { font-size: 14px; color: var(--navy); }

/* Get the dirt */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.card.center { align-items: center; text-align: center; }
.card.green { background: var(--tint-green); } .card.blue { background: var(--tint-blue); } .card.tan { background: var(--tint-tan); } .card.yellow { background: var(--tint-yellow); } .card.pink { background: var(--tint-pink); }
.card { position: relative; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top .ico { flex-shrink: 0; }
.card-go { position: absolute; right: 16px; bottom: 16px; display: flex; }
.card-go svg circle { fill: var(--forest); } .card-go svg path { stroke: #fff; }
.card-img { position: relative; border-radius: 18px; overflow: hidden; min-height: 200px; }
.card-img img, .card-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .ico { width: 58px; height: 58px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.card.green .ico.solid { background: var(--true); } .card.blue .ico.solid { background: var(--navy); } .card.tan .ico.solid { background: var(--dirt); }
.card .ico.white { background: #fff; }
.card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.card.green h3 { color: var(--forest); } .card.blue h3 { color: var(--navy); } .card.tan h3 { color: var(--dirt); }
.card h3.plain { font-size: 20px; letter-spacing: 0; color: var(--forest); }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: #2B3329; }
.steps { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 16px 20px; border-radius: 18px; background: var(--cream); flex-wrap: wrap; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--forest); }
.step .circ { width: 84px; height: 84px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid #fff; }
.step .circ img { width: 100%; height: 100%; object-fit: cover; }

/* Field */
.field-row { display: flex; gap: 22px; }
.video { position: relative; width: 560px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #1E2A18; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .ph-label { position: absolute; left: 20px; top: 18px; font-size: 15px; font-weight: 700; color: #C9D3C0; }
.video .play { position: relative; z-index: 1; width: 86px; height: 86px; border-radius: 999px; border: none; background: var(--true); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.video .meta { z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; display: flex; justify-content: space-between; align-items: flex-end; background: rgba(0,0,0,0.55); color: #fff; }
.video .meta strong { display: block; font-size: 17px; }
.video .meta span { font-size: 14px; color: #E4E8DF; }
.quote { margin: 0; padding: 22px 24px; border-radius: 18px; background: var(--tint-tan); border: 2px solid #E3D2B0; display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; }
.quote figcaption { font-size: 15px; color: var(--ink-muted); }
.transcript { padding: 16px 18px; border-radius: 14px; background: var(--cream); font-size: 15px; line-height: 1.55; color: #2B3329; }

.video .video-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voices-wrap { display: flex; flex-direction: column; gap: 10px; }
.voices-head { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--field); }
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.voice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 2px solid #E3D2B0; background: var(--tint-tan); text-align: left; }
.voice:hover { border-color: var(--forest); }
.voice-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; }
.voice-txt { display: flex; flex-direction: column; gap: 2px; }
.voice-txt strong { font-size: 16px; color: var(--forest); }
.voice-txt small { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }

/* Say it back */
.answer-card { padding: 24px 26px; border-radius: 18px; background: var(--tint-green); border: 2px solid #C5D8AE; display: flex; flex-direction: column; gap: 14px; }
.answer-card p { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 800; color: var(--forest-deep); }
.bubble { position: absolute; left: -18px; bottom: 36px; padding: 10px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--forest); font-family: Caveat, cursive; font-weight: 700; font-size: 24px; line-height: 1.05; color: var(--forest-deep); white-space: pre-line; transform: rotate(-4deg); }

/* Check the dirt */
.src-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.badge { padding: 10px 20px; border-radius: 10px; background: var(--marigold); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; color: var(--forest-deep); white-space: nowrap; }
.src-box { padding: 22px; border-radius: 22px; background: var(--forest); display: flex; flex-direction: column; gap: 16px; }
.src { padding: 20px 22px; border-radius: 16px; background: var(--paper); display: flex; gap: 18px; }
.src .n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--wheat); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }
.src .body { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.src h3 { margin: 0; font-size: 21px; font-weight: 800; color: var(--forest); }
.src .t { font-size: 16px; }
.src .sup { padding: 12px 16px; border-radius: 10px; background: var(--cream); font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.src a { align-self: flex-start; }

/* Got the dirt */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.choice { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 4px solid transparent; text-align: left; }
.choice.pink { background: var(--tint-pink); } .choice.green { background: #E4F2E0; } .choice.yellow { background: var(--tint-yellow); }
.choice .row { display: flex; align-items: flex-start; gap: 12px; }
.choice .letter { flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.choice.pink .letter { background: #7A2A12; } .choice.green .letter { background: var(--forest); } .choice.yellow .letter { background: #8A6100; }
.choice .txt { font-size: 19px; line-height: 1.3; font-weight: 800; }
.choice img { width: 100%; height: 130px; object-fit: contain; }
.choice.right { border-color: #2F7A1E; box-shadow: 0 6px 16px rgba(47,122,30,0.3); }
.choice.wrong { border-color: var(--red); }
.result { display: flex; align-items: center; gap: 20px; padding: 16px 24px; border-radius: 18px; }
.result.ok { background: var(--tint-green); } .result.no { background: var(--tint-pink); }
.result .dot { flex-shrink: 0; width: 60px; height: 60px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.result.ok .dot { background: #2F7A1E; } .result.no .dot { background: var(--red); }
.result h3 { margin: 0 0 4px; font-size: 26px; font-weight: 800; }
.result.ok h3 { color: var(--forest-deep); } .result.no h3 { color: #7A2A12; }
.result p { margin: 0; font-size: 17px; line-height: 1.45; color: #2B3329; }

/* Feedback */
.fb-q { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 20px; padding: 14px 20px; border-radius: 16px; }
.fb-q:nth-child(1) { background: var(--tint-green); } .fb-q:nth-child(2) { background: var(--tint-blue); } .fb-q:nth-child(3) { background: var(--tint-tan); }
.fb-q .p { font-size: 18px; font-weight: 700; }
.fb-q .opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pill { height: 46px; min-width: 0; padding: 0 10px; white-space: nowrap; border-radius: 999px; border: 2px solid var(--forest); background: #fff; color: var(--forest); font-size: 16px; font-weight: 700; }
.pill[aria-pressed="true"] { background: var(--forest); color: #fff; }
.fb-comment { display: flex; flex-direction: column; gap: 8px; font-size: 17px; font-weight: 700; }
.fb-comment span span { font-weight: 400; color: var(--ink-muted); }
.fb-comment textarea { height: 84px; padding: 12px 14px; border-radius: 12px; border: 2px solid #CFC6B1; background: #fff; font-family: inherit; font-size: 16px; resize: vertical; }

/* Finish */
.finish { background: var(--forest); color: #fff; }
.finish h2 { color: #fff; }
.finish .intro { color: #E2EAD6; }
.finish .lbl { color: var(--marigold); display: flex; align-items: center; gap: 14px; }
.finish .star { width: 48px; height: 48px; border-radius: 999px; background: var(--marigold); display: flex; align-items: center; justify-content: center; }
.fin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fin-btn { height: 62px; border-radius: 999px; border: 2px solid var(--paper); background: var(--paper); color: var(--forest); text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.fin-btn.outline { background: transparent; color: #fff; }
.inquiry { padding: 20px 24px; border-radius: 18px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.inquiry h3 { margin: 0; font-size: 21px; font-weight: 800; color: var(--forest); }
.inquiry p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

/* Footer */
.ftr { position: relative; margin-top: auto; min-height: 200px; background: #1E4A1C center top / cover no-repeat; color: #fff; display: flex; flex-direction: column; align-items: center; padding: 8px 36px 18px; }
.sign { width: 540px; max-width: 100%; min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 14px; border-radius: 8px; background: repeating-linear-gradient(180deg, #7A4424 0px, #6A3A1E 9px, #5E3219 11px, #744022 22px); border: 3px solid #4A2712; box-shadow: 0 6px 14px rgba(0,0,0,0.35); transform: rotate(-1.4deg); }
.sign span { font-family: Caveat, cursive; font-weight: 700; font-size: 32px; color: #FFF6E3; text-align: center; }
.ftr-row { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.ftr-row a, .ftr-row button { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; background: none; border: none; }
.ftr-row .right { display: flex; align-items: center; gap: 18px; }
.ftr-row .divider { width: 2px; height: 34px; background: rgba(255,255,255,0.7); }
.ftr-legal { width: min(980px, 100%); margin-top: 12px; text-align: center; font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,0.9); }
.ftr-legal a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Small screens */
@media (max-width: 860px) {
  .hdr { flex-wrap: wrap; min-height: 0; justify-content: center; padding-bottom: 60px; }
  .hdr-note { display: none; }
  .hdr-logo { max-width: 70vw; }
  .hdr-toggle { margin-top: 0; align-self: center; }
  .aud-btn { height: 56px; font-size: 20px; padding: 0 20px 0 12px; }
  .bars { padding: 16px; }
  .bar { flex-wrap: wrap; gap: 10px; }
  .bar-title { width: auto; font-size: 20px; }
  .bar-sub { flex-basis: 100%; order: 5; }
  .sec { padding: 22px 18px; }
  .panel { padding: 10px; }
  .sec.split, .field-row { flex-direction: column; }

  /* On phones, put the section image before the Next button so Next is truly
     the last control in the open lesson block. display:contents changes only
     layout boxes; it does not alter the DOM, content, analytics, or images. */
  .sec.split > .col { display: contents; }
  .sec.split > .side-img { order: 90; }
  .sec.split > .col > .actions { order: 100; }

  .side-img { width: 100%; }
  .side-img img, .side-img .ph { min-height: 260px; height: 260px; }

  /* Let long navigation labels wrap inside the button instead of overflowing
     a fixed 58px height. Make mobile navigation controls full-width and stable. */
  .actions { width: 100%; margin-top: 8px; flex-direction: column; align-items: stretch; }
  .actions.between { justify-content: flex-start; }
  .actions .btn,
  .actions .btn-ghost {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 58px;
    padding: 12px 20px;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }
  .actions .btn > span,
  .actions .btn-ghost > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .actions .btn svg,
  .actions .btn-ghost svg { flex: 0 0 auto; }
  .actions.between > .btn.arrow { order: 20; }
  .answers, .cows, .poll, .cards3, .choices, .fin-grid { grid-template-columns: minmax(0, 1fr); }

  /* Keep all Got the Dirt answer markers/images on the same center line on phones. */
  .choice .row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .choice .letter {
    align-self: center;
    justify-self: center;
  }
  .choice .txt {
    min-width: 0;
  }
  .choice img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-position: center center;
  }
  /* Keep Get the Dirt process icons in a two-column phone grid so an
     odd final item starts at the left instead of centering by itself. */
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-items: start;
    gap: 18px 14px;
  }
  .step {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .step:last-child:nth-child(odd) {
    grid-column: 1;
  }

  .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voices { grid-template-columns: minmax(0, 1fr); }
  .fb-q { grid-template-columns: minmax(0, 1fr); }
  .busted { flex-direction: column; align-items: flex-start; }
  .sec h2 { font-size: 28px; }
  .hl { font-size: 22px; }
  .sign span { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
