/* Learning Library course header palettes */
.nervous-system-art {
  display: grid;
  place-items: center;
  background: #dff3ff;
}

.nervous-system-art img {
  object-fit: contain;
  object-position: center;
}

.page[data-page="learning-library"] .course-launch-head:not([style]) {
  background: linear-gradient(135deg, #214b9a, #3975d8);
}

.page-hero.learning-library-hero {
  background: linear-gradient(125deg, #eef5ff 0%, #dceaff 55%, #f5f9ff 100%) !important;
  background-image: none !important;
  color: #111827;
  overflow: hidden;
}

.learning-library-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  align-items: center;
  gap: 42px;
}

.library-hero-copy { max-width: 820px; }
.learning-library-hero .route-tag { color: #2858cc; }
.learning-library-hero h1 { color: #111827; }
.learning-library-hero p { color: #52627b; }

.library-hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 16px;
  width: min(100%, 390px);
  margin-inline: auto;
  padding: 24px 10px;
}

.library-hero-tile {
  display: flex;
  min-height: 144px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 32px rgba(44,79,138,.12);
  color: #24324a;
  font-size: 13px;
  font-weight: 800;
}

.library-hero-tile:nth-child(1) { transform: translateY(8px) rotate(-3deg); }
.library-hero-tile:nth-child(2) { transform: translateY(-5px) rotate(3deg); }
.library-hero-tile:nth-child(3) { transform: translateY(2px) rotate(2deg); }
.library-hero-tile:nth-child(4) { transform: translateY(-8px) rotate(-2deg); }
.library-hero-tile svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.library-hero-tile-energy { color: #2865d8; }
.library-hero-tile-nutrition { color: #14966a; }
.library-hero-tile-movement { color: #e28a21; }
.library-hero-tile-nerves { color: #7957c8; }
.library-hero-spark { position: absolute; color: #4385ed; font-size: 26px; font-weight: 800; }
.library-hero-spark-one { top: 0; right: 28px; }
.library-hero-spark-two { bottom: 2px; left: 16px; color: #f0a83b; }

@media (max-width: 760px) {
  .learning-library-hero .wrap { grid-template-columns: 1fr; gap: 22px; }
  .library-hero-art { width: min(100%, 350px); padding: 10px 6px; }
  .library-hero-tile { min-height: 124px; }
}
