/* Academy (sohub skin) - the visual classroom. Page layout only:
   slab visuals (.sim-slab/.sim-cap/.sim-hint/.sim-note/.sim-seq), pills and
   tags come from base.css. Zero borders, zero shadows. */

/* ---------- Page header ---------- */

.academy-head { padding-top: calc(var(--nav-height) + clamp(2rem, 6vh, 4rem)); }

.section-lede {
  margin-top: 1.75rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

/* WhatsApp community CTA in the hero negative space, left-aligned under the lede */
.academy-join { margin-top: clamp(1.75rem, 4vh, 2.75rem); }

/* Sub-exhibit sections (fluid, poisson) sit closer than full sections */
.academy-sub.section { padding-block: clamp(3rem, 8vh, 5rem); }

/* Small eyebrow above sub-exhibit slabs */
.sub-eyebrow {
  display: block;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  margin-bottom: 1.5rem;
}

/* Compact section head (eyebrow only) above grids */
.section-head-sm { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* ---------- Module grid: what you'll learn ---------- */

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .module-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.module {
  background: var(--soft);
  border-radius: var(--r-panel);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.module .module-no { font-weight: 600; letter-spacing: 0.04em; }
.module h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  letter-spacing: var(--track-3);
  line-height: 1.15;
}
.module p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: #3c4c78;
  max-width: 40ch;
}

/* ---------- Science you can see: two-column bio block ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .bio-grid { grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 4vw, 4rem); }
  /* Genome reads its canvas clientWidth/Height at boot, so the canvas must
     genuinely fill the 4:3 slab instead of keeping the 1180/420 strip ratio. */
  .bio-grid .sim-slab { aspect-ratio: 4 / 3; display: grid; }
  .bio-grid .sim-slab canvas { aspect-ratio: auto; width: 100%; height: 100%; }
}

.bio-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  align-content: center;
}
.bio-h {
  font-size: clamp(1.75rem, 3.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: var(--track-5);
  line-height: 1;
  text-wrap: balance;
}
.bio-copy p {
  max-width: 46ch;
  line-height: 1.6;
  color: #3c4c78;
}
@media (max-width: 560px) {
  .bio-copy .tag { white-space: normal; text-align: left; }
}

/* ---------- AI in the classroom ---------- */

.class-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .class-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.class-card {
  background: var(--soft);
  border-radius: var(--r-panel);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.class-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: var(--track-3);
  line-height: 1.2;
}
.class-card p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: #3c4c78;
  max-width: 40ch;
}

/* ---------- Syllabus band: dark ink mega panel ---------- */

.syllabus-panel {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-mega);
  padding: clamp(2.5rem, 7vw, 6rem);
  display: grid;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  justify-items: start;
}
.syllabus-h {
  font-size: var(--text-statement);
  font-weight: 600;
  letter-spacing: var(--track-7);
  line-height: 1;
  color: var(--on-dark);
  max-width: 18ch;
  text-wrap: balance;
}
.syllabus-panel p {
  max-width: 60ch;
  line-height: 1.6;
  color: #e7eeff;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.syllabus-panel .pill { margin-top: 0.75rem; }
@media (max-width: 560px) {
  .syllabus-panel .pill .pill-label { white-space: normal; line-height: 1.25; text-align: left; }
}

/* ---------- Airfoil sim controls ---------- */
.sim-controls { margin-top: 1.1rem; display: grid; gap: 1rem; }
@media (min-width: 760px) {
  .sim-controls { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 2rem; }
  .sim-controls .simc-shapes { grid-column: 1 / -1; }
}
.simc-shapes { display: flex; flex-wrap: wrap; gap: 8px; }
.simc-shapes button { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 8px 15px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); cursor: pointer; transition: background-color 0.15s ease; }
.simc-shapes button.active { background: #0054ff; color: #fff; }
.simc-shapes button:hover:not(.active) { background: #c7dbff; }
.simc-ctrl { display: grid; gap: 7px; }
.simc-ctrl > span { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.simc-ctrl b { color: #0054ff; font-weight: 700; }
.simc-ctrl input[type=range] { width: 100%; accent-color: #0054ff; }
.simc-lift { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.simc-lift > b { color: #0054ff; font-size: 1.15rem; font-weight: 700; min-width: 3.2ch; }
.simc-lift > b span { color: var(--muted); font-size: 0.6em; font-weight: 600; }
.simc-bar { flex: 1; height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.simc-bar i { display: block; height: 100%; width: 0; background: #0054ff; border-radius: 6px; transition: width 0.2s ease; }

/* ---------- Training CTA row ---------- */

.academy-cta-section.section { padding-top: 0; }
.academy-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ---------- Literacy exam band (top of /academy) ----------------------------
   Deliberately the heaviest block on the page: deep-blue slab, sat directly
   under the hero copy so the exam is offered before the simulations. */

.academy-exam {
  margin: clamp(2rem, 5vh, 3.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  background: linear-gradient(135deg, #2f6bff 0%, #12317f 100%);
  color: var(--on-dark);
  border-radius: var(--r-mega);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 1024px) { .academy-exam { grid-template-columns: 1.25fr 0.75fr; } }

.ax-eyebrow {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 0.9rem;
}
.ax-h {
  font-size: clamp(1.75rem, 4vw, 3.1rem); font-weight: 600; line-height: 1.02;
  letter-spacing: var(--track-7); margin-bottom: 1rem; text-wrap: balance;
}
.ax-p {
  max-width: 52ch; line-height: 1.6; color: rgba(239, 245, 255, 0.9);
  margin-bottom: 1.4rem;
}
.ax-p strong { color: #fff; font-weight: 700; }

.ax-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.ax-chip {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #eaf1ff;
}

.ax-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ax-cta .pill-light { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ax-cta .pill-light .pill-chip { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* score bands, as a small visual promise of what the exam returns */
.ax-band {
  background: rgba(4, 16, 48, 0.34);
  border-radius: var(--r-panel);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  display: grid; gap: 0.75rem;
}
.ax-band-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 0.35rem 0.75rem; font-size: 0.82rem; color: rgba(239, 245, 255, 0.78);
}
.ax-band-row span { font-weight: 600; }
.ax-band-row b { font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(239, 245, 255, 0.6); font-size: 0.76rem; }
.ax-band-row i {
  grid-column: 1 / -1; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.16); position: relative; display: block;
}
.ax-band-row i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  border-radius: 3px; background: rgba(156, 192, 255, 0.75);
}
.ax-band-row.on { color: #fff; }
.ax-band-row.on b { color: #fff; }
.ax-band-row.on i::after { background: #fff; }
