/* Rising Maple learn pages (public/learn/*.html, written by scripts/seo/gen-learn-pages.mjs).
   Loaded after /landing/home.css and shares its look: the same header, footer, buttons, type, white
   cards with a tinted drop edge and maple accents. Only what the home page does not have is here:
   a small sky header band (a hill edge and a few leaves, no big picture), breadcrumbs, and the
   unit, standards, game and grade lists. Mobile first. */
.learn .footer { padding-bottom: 48px; }
.learn .footer nav a[aria-current] { text-decoration: underline; }
.learn .footer small a { color: #fff; }

/* Header band */
.learn-hero { position: relative; overflow: hidden; padding: 18px 0 clamp(72px, 11vw, 120px); background: linear-gradient(180deg, #bfe6ff 0, #d9f0ff 60%, #e6f4ff 100%); }
.learn-hero .wrap { position: relative; z-index: 1; }
.learn-hero h1 { margin-top: 14px; max-width: 17em; font-size: clamp(2rem, 7.6vw, 3.25rem); letter-spacing: -0.02em; text-wrap: balance; }
.learn-hero .lead { max-width: 40em; }
.hero-leaf { position: absolute; z-index: 0; right: -34px; bottom: 26px; width: 170px; height: 145px; fill: #fff; stroke: #fff; opacity: 0.5; transform: rotate(-14deg); pointer-events: none; }
.hero-leaf.small { display: none; right: 26%; bottom: auto; top: 40px; width: 34px; height: 29px; fill: var(--amber); stroke: var(--amber); opacity: 0.95; transform: rotate(18deg); }

.crumbs { margin-bottom: 18px; font-size: 0.9375rem; font-weight: 700; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; opacity: 0.6; }
.crumbs a { color: var(--heading); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--heading); font-weight: 700; font-size: 0.9375rem; box-shadow: 0 2px 0 var(--edge); }
.price { margin-top: 16px; max-width: 40em; font-size: 0.9375rem; color: var(--muted); text-wrap: pretty; }

/* Sections: headings and their lead lines sit in the middle, as on the home page */
.learn .band .lead, .learn .final .lead { margin-left: auto; margin-right: auto; text-align: center; }
.learn .band .fine { max-width: 46em; margin-left: auto; margin-right: auto; text-align: center; }
.learn .band:not(.tint) .callout { background: var(--paper); box-shadow: var(--card); }
.learn code { font: 700 0.8125rem/1 var(--body); color: var(--teal); background: #e3f4f1; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }

/* Units and their lessons */
.units, .grid-index { margin-top: 36px; display: grid; gap: 18px; }
.unit, .grid-index > li { background: var(--paper); border-radius: 24px; padding: 22px 22px 20px; box-shadow: var(--card); }
.unit h3 small { font: 700 0.9375rem var(--body); color: var(--muted); }
.count { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; }
.unit ul { margin-top: 14px; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.unit li::marker { color: var(--leaf); }
.unit li span { display: block; color: var(--muted); font-size: 0.9375rem; }

/* Standards in plain words, games */
.std, .chips { margin-top: 30px; display: grid; gap: 12px; }
.std li, .chips li { background: var(--sky); border-radius: 18px; padding: 16px 18px; }
.band:not(.tint) .chips li, .band:not(.tint) .std li { background: var(--paper); box-shadow: 0 3px 0 var(--edge); }
.std b { display: block; margin-bottom: 2px; font: 600 1.1875rem/1.3 var(--display); color: var(--heading); }
.std span { color: var(--ink); }
.chips b { font: 600 1.125rem/1.2 var(--display); color: var(--heading); }

/* Other ways to practise: the home page's promise cards */
.more { margin-top: 30px; display: grid; gap: 14px; }
.more > div { background: var(--paper); border: 1px solid var(--outline); border-radius: 20px; padding: 18px 20px; box-shadow: var(--card-lift); }
.more h3 { font-size: 1.25rem; margin-bottom: 6px; }

/* Links to other grades and subjects */
.grade-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.grade-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); color: var(--heading); font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--edge); }
.grade-links a:hover { text-decoration: underline; }
.grid-index h3 { font-size: 1.5rem; }
.grid-index .grade-links { margin-top: 12px; }
.grid-index .grade-links a { background: var(--sky); box-shadow: 0 3px 0 var(--sky-deep); }

/* The closing band */
.learn .final .actions, .learn .final .grade-links { justify-content: center; }
.learn .final .price { margin-left: auto; margin-right: auto; }
.learn .final h3 { margin-top: 40px; }

@media (min-width: 700px) {
  .learn-hero { padding-top: 26px; }
  .hero-leaf { right: 4%; bottom: 44px; width: 240px; height: 205px; }
  .hero-leaf.small { display: block; }
  .units, .grid-index, .chips, .std { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
