/* ==========================================================================
   Learn: Classroom and Courses (agent E, 2026-11-09). Coming-soon pages with
   the course intro animations of js/motifs.js. The motif containers have no
   border or background: the canvas paints the deep-blue Signals field and
   feathers it into the page (plan sections 12-14).
   ========================================================================== */

.learn-title { display: flex; align-items: center; gap: var(--space-4); }
.learn-title h1 { margin: 0; }
.hero-head > .learn-title { grid-column: 1; }

/* A motif stage: the canvas fills it; no frame, radius, shadow or fill. */
.motif-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  background: none;
}
.motif-stage > canvas { position: absolute; inset: 0; }

/* The Classroom hero motif spans the whole band, edge to edge; js/motifs.js lays the lessons out for the band's
   aspect (two panels up to 2:1, three, four from 3:1; stacked on phones). */
.learn-hero-band { padding-block: calc(var(--ff-y) * 0.7); }
.learn-hero-motif { width: 100%; max-width: none; aspect-ratio: auto; height: min(calc(var(--band-hero-h) - 2 * var(--ff-y, 80px)), 30vw); min-height: 300px; }
.learn-hero-band.band-hero { min-height: 0; }   /* the band is as tall as its drawing */
@media (max-width: 760px) { .learn-hero-motif { height: min(118vw, 68svh); } }

.learn-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-6);
  list-style: none; margin: 0; padding: 0; }
.learn-list > li { border-top: 1px solid var(--rule-strong, var(--color-divider)); padding-top: var(--space-4); }
.learn-list h3 { font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.learn-list p { margin: 0; }

/* Courses: four tracks, each its motif above the text, in the water band. Two columns on laptops, all four
   in one row on wide screens (never 3 + 1), one column on phones. */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--stack);
}
@media (min-width: 1800px) { .track-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.track {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: clamp(1rem, 0.6rem + 1vw, 1.75rem);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid var(--rule);
}
.track .motif-stage { margin-bottom: var(--space-2); }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.track h2 { font-size: var(--fs-h3); margin: 0; }
.track p { margin: 0; max-width: var(--measure); color: var(--on-water); }
.track-lessons { margin: 0; padding-left: 1.1em; font-size: var(--fs-small); }

.notify-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.notify-band p { margin: 0; max-width: 60ch; }

@media (max-width: 760px) {
  .track-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .motif-stage { aspect-ratio: 4 / 5; }
}

/* Courses: the Classroom block (the Learn landing page links both). */
.learn-classroom { display: flex; gap: var(--space-6); align-items: flex-start; }
.learn-classroom h2 { margin: 0 0 var(--space-2); }
.learn-classroom p { margin: 0 0 var(--space-3); max-width: 64ch; }
.learn-classroom .chip { margin-left: var(--space-2); vertical-align: 0.3em; }
/* Courses: the notify card beside the Classroom block (one section). */
.learn-next { align-items: stretch; }
.notify-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: clamp(var(--space-4), 1rem + 1vw, var(--space-8));
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.notify-card p { margin: 0; max-width: 52ch; }
.notify-h { margin: 0; font-size: var(--fs-h3); }
.learn-classroom .card-meta { color: var(--accent); }
.notify-band .actions { margin-top: 0; }

/* Classroom: the closing line sits inside the "What it holds" band (no section of its own). */
.notify-inline { margin-top: var(--head-gap); padding-top: var(--space-6); border-top: 1px solid var(--rule); }
