.compact-title h1 {
  font-size: clamp(30px,3.4vw,51px);
  margin: 5px 0 9px;
}
#knowledge-page, #crops-page {padding-top: clamp(15px,2.85vh,32px)}
.lesson-content {border-top: 0; padding-top: 0}
.lesson-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(155px,24vh,255px);
  display: flex;
  align-items: end;
  border: 1px solid #665a49;
  border-radius: 8px;
  background: #192336;
}
.lesson-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 28%;
  overflow: hidden;
}
.lesson-backdrop::before {
  content: "";
  position: absolute;
  top: 52%;
  left: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  transform: translateY(-50%);
  background: url(lesson-backdrops.webp) var(--sheet-x) var(--sheet-y) / 200% 200%;
}
.lesson-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#121d2d 8%,#152032ed 30%,#15203251 67%,#1520320d),
    linear-gradient(0deg,#111a29b0,transparent 75%);
}
.lesson-caption {padding: 18px clamp(16px,2.7vw,35px) 19px}
.lesson-caption .eyebrow {color: #ffe0b0}
.lesson-caption h2 {
  margin: 3px 0 6px;
  font-size: clamp(28px,3.7vw,54px);
  text-shadow: 0 1px 10px #050a14cc;
}
.lesson-caption p {
  margin: 0;
  font-size: clamp(14px,1.42vw,21px);
  line-height: 1.45;
  color: #f5eada;
  text-shadow: 0 1px 5px #080e18;
}
.lesson-grid {margin-top: 12px; gap: 9px 13px}
.lesson-grid article {
  display: grid;
  grid-template-columns: clamp(62px,8vw,102px) minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 13px 8px 8px;
  border: 1px solid #35465a;
  border-radius: 6px;
  background: #132136;
}
.lesson-tile {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #23334a url(lesson-tiles.webp) var(--sheet-x) var(--sheet-y) / 400% 400%;
}
.lesson-grid h3 {margin-bottom: 3px; font-size: clamp(16px,1.44vw,21px)}
.lesson-grid p {font-size: clamp(13px,1.25vw,18px); line-height: 1.5}
.lesson-content details {margin-top: 10px; padding-block: 8px}
.lesson-link {margin-bottom: 0}

#crop-choices button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 4px;
}
.crop-specimen {
  display: inline-block;
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid #6470845c;
  border-radius: 4px;
  background: #1b2a3a url(crop-plate.webp) var(--sheet-x) var(--sheet-y) / 300% 200%;
}
.atlas {
  grid-template-columns: minmax(0,1fr) minmax(245px,29%);
  gap: clamp(11px,1.6vw,24px);
}
.atlas-board {border-color:#476478; background:#0b1a2b; box-shadow:0 9px 28px #030b1590}
.map-head {display:flex; min-height:54px; flex-wrap:wrap; padding:7px 12px;
  background:linear-gradient(100deg,#172e43,#112236 65%,#173148)}
.map-head strong {color:#fff0d9}
#map-period {color:#aed5e2}
.play-crops {
  padding:6px 12px;
  background:#204456a0;
  border:1px solid #72a8c3a0;
  border-radius:5px;
  font-size:13px;
  font-weight:680;
  white-space:nowrap;
  color:#dafaff;
}
.play-crops:hover:not(:disabled) {background:#31586d}
.crop-stage {
  height:clamp(295px,46vh,610px);
  background:#10283d;
}
.map-foot {font-size:12px; padding-block:7px}
.map-foot span:last-child {color:#9bbacb;font-size:11px}
.crop-routes {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:6px;
  padding:7px 9px 9px;
  border-top:1px solid #314456;
}
.crop-routes button {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  border:1px solid #3c4e61;
  border-top:2px solid var(--track-color);
  border-radius:4px;
  padding:6px 8px;
  background:linear-gradient(135deg,#173145,#122135);
  gap:2px;
  line-height:1.35;
}
.crop-routes button:hover,.crop-routes button[aria-pressed=true] {
  background:linear-gradient(135deg,#25475d,#17283b);border-color:var(--track-color);
}
.crop-routes strong {font-size:14px;color:var(--track-color)}
.crop-routes span {font-size:12px;color:#f1e5ce}
.crop-routes small,.crop-routes p {font-size:11px;color:#bac8d8;margin:0}
.crop-routes button[aria-pressed=false] small {display:none}
.crop-reading {
  border:1px solid #42546a;
  border-radius:7px;
  padding:11px 13px;
  background:#142033;
}
.crop-profile {display:grid;grid-template-columns:auto minmax(0,1fr); gap:10px;align-items:center}
.crop-profile .crop-specimen {width:64px}
.crop-profile h2 {margin:3px 0 0;font-size:clamp(24px,2.65vw,39px)}
.crop-profile h2 small {margin-top:4px}
.crop-profile .eyebrow {font-size:11px;letter-spacing:.04em}
.crop-reading p.crop-summary {margin-top:10px;font-size:clamp(13px,1.16vw,16px)}
.document-list {margin-top:11px;border-top:1px solid #35475c;padding-top:9px}
.document-list h3 {font-size:15px;margin-bottom:5px}
.document-list details {background:#0f1a2a;border:1px solid #2f4156;border-radius:4px;margin-bottom:5px}
.document-list summary {padding:6px 7px;cursor:pointer;font-size:13px;font-weight:650;line-height:1.4;color:#f3e4ce}
.crop-reading .document-list p {padding:0 7px 7px;font-size:13px;line-height:1.47}
.document-list a,.crop-reading .crop-sources {font-size:12px;color:#c6daed}
.crop-reading .crop-sources {margin-top:9px}

.route-groups {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:-4px 0 8px;
}
.route-groups a {
  padding:5px 8px;
  border:1px solid #415470;
  border-radius:4px;
  text-decoration:none;
  color:#bfcddd;
  font-size:12px;
  white-space:nowrap;
}
.route-groups a[aria-current=true] {border-color:var(--route);color:#ffebc7;background:#2e3543}
.route-groups a:hover {background:#203148}
[data-group=other] .brief h1 {font-size:clamp(29px,3vw,51px)}
[data-group=other] #routes {gap:4px}
[data-group=other] .route {min-height:35px;padding-block:5px}
[data-group=other] .route .dot {height:20px}
[data-group=other] .route small {margin-top:2px}
.transport .textbook-stop {border-color:#5e6f83;color:#f3dcb9}

@media(max-width:850px) {
  .atlas {grid-template-columns:minmax(0,1fr) minmax(204px,31%);gap:9px}
  .crop-profile .crop-specimen {width:50px}
  .crop-stage {height:clamp(255px,44vh,420px)}
  .crop-routes {grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
}
@media(max-width:635px) {
  .lesson-backdrop {left:0}
  .lesson-hero::after {background:linear-gradient(90deg,#101a2be8,#101a2b63),linear-gradient(0deg,#101a2be0,transparent)}
  .atlas {grid-template-columns:1fr}
  #crop-choices button {gap:5px;padding:3px 7px 3px 3px}
  #crop-choices .crop-specimen {width:26px}
  .crop-stage {height:clamp(225px,39vh,400px)}
}

/* Classroom projection uses the same reading size at every viewport. */
:root {--teaching-size:20pt}
.chapter-page {width:min(1760px,100%);padding-inline:clamp(16px,2.5vw,46px)}
.chapter-nav a,.pills button,.map-head strong,.play-crops,
.lesson-caption p,.lesson-grid h3,.lesson-grid p,.lesson-content details,.lesson-link,
.crop-profile h2 small,.crop-reading p.crop-summary,.document-list h3,.document-list summary,
.crop-reading .document-list p,.document-list a,.crop-reading .crop-sources,
.crop-routes strong,.crop-routes span,.crop-routes small,.crop-routes p,
.intro,.log p,.log .record p,.record a,.log .voyage-question,.route strong,.transport .stop {
  font-size:var(--teaching-size);
}
.chapter-nav {gap:clamp(1px,.6vw,12px)}
.chapter-nav a {padding-inline:clamp(6px,.9vw,16px)}
.top {min-height:60px}
.pills {gap:9px}
.pills button {padding:6px 12px}
#crop-choices button {padding:5px 11px 5px 6px}
.crop-reading {padding:15px 17px;overflow-wrap:anywhere}
.crop-reading p.crop-summary {line-height:1.48}
.crop-profile .eyebrow {font-size:16px;letter-spacing:0}
.crop-profile h2 {font-size:clamp(36px,3.2vw,53px)}
.crop-profile h2 small {line-height:1.23}
.document-list summary {padding:8px 9px}
.crop-reading .document-list p {padding:0 9px 10px}
.atlas {grid-template-columns:minmax(0,1fr) minmax(340px,34%);gap:clamp(14px,1.5vw,25px)}
.map-head {min-height:66px;padding:8px 12px}
.map-head small {font-size:16px}
.map-foot {font-size:17px}
.crop-stage {height:clamp(345px,55vh,670px);background:#0d1e2d}
.crop-routes {grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.crop-routes button {gap:5px;padding:9px 10px}
.crop-routes strong,.crop-routes span,.crop-routes small {line-height:1.36}
.lesson-grid article {align-items:start;grid-template-columns:clamp(56px,6vw,94px) minmax(0,1fr)}
.lesson-grid p {line-height:1.45}
.log h2 {font-size:clamp(30px,2.45vw,42px)}
.transport .stop {padding:4px 9px}
.route small,.route-groups a {font-size:17px}
.route strong {line-height:1.2}
@media(max-width:1100px) {
  .atlas {grid-template-columns:minmax(0,1fr)}
  .crop-stage {height:clamp(350px,59vh,630px)}
}
@media(max-width:850px) {
  .top {height:auto;flex-wrap:wrap;gap:5px;padding-block:5px}
  .chapter-nav {order:3;width:100%;justify-content:center;min-height:43px}
  .lesson-grid {grid-template-columns:1fr}
}
@media(max-width:635px) {
  .chapter-page {padding-inline:12px}
  .crop-stage {height:clamp(290px,46vh,430px)}
  .crop-profile h2 small {display:block}
  .map-head {gap:6px}
}
@media(max-width:420px) {
  .chapter-nav a {padding-inline:2px}
}
