/* Section bands (Jared, 2026-11-02): the closing sections of a lesson sit in colored blocks so the page visibly winds down.
   Practice Problems = accent-colored band + tinted panel (problems, solutions button, "Play to Practice" game rows). Keep Exploring = gold band + cream panel.
   Uses the site's --accent, so one file serves every Just___ site. Standard lives in JustScience-Shared/Shared Layout Resources/Lesson Layout/.
   Headings use the site's standard body font (Jared, 2026-11-02); only the small square marker keeps the retro touch. */
.lesson-body h2#more-videos-on-this-concept,
.lesson-body h2#practice-problems,
.lesson-body h2#worth-a-pause,
.further-reading h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.5rem 0 0;
  padding: 14px 18px;
  font-family: inherit;
  font-size: var(--fs-h2, 1.5rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  border-radius: 6px 6px 0 0;
}
@media (min-width: 540px) {
  .lesson-body h2#more-videos-on-this-concept,
  .lesson-body h2#practice-problems,
  .lesson-body h2#worth-a-pause,
  .further-reading h2 { padding: 16px 22px; }
}

/* A square pixel marker instead of a glyph, so it stays sharp at any size */
.lesson-body h2#more-videos-on-this-concept::before,
.lesson-body h2#practice-problems::before,
.lesson-body h2#worth-a-pause::before,
.further-reading h2::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

/* More Videos on This Concept: a teal band over the extra videos (the videos themselves are the panel) */
.lesson-body h2#more-videos-on-this-concept {
  background: #17806f;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
}
.lesson-body h2#more-videos-on-this-concept + figure.video-embed { margin-top: 1.25rem; }

/* Worth a Pause: a purple band, with the paragraph(s) under it (the reflection and the "In one line" takeaway) in a tinted panel */
.lesson-body h2#worth-a-pause {
  background: #6b4fbb;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.lesson-body h2#worth-a-pause + p,
.lesson-body h2#worth-a-pause + p + p {
  margin: 0;
  padding: 1.2rem 1.2rem 0.4rem;
  background: #f3effb;
  border: 3px solid #6b4fbb;
  border-top: 0;
}
.lesson-body h2#worth-a-pause + p + p { border-radius: 0 0 6px 6px; padding-top: 0.4rem; padding-bottom: 1.2rem; margin-bottom: 1.5rem; }
.lesson-body h2#worth-a-pause + p:has(+ :not(p)) { border-radius: 0 0 6px 6px; padding-bottom: 1.2rem; margin-bottom: 1.5rem; }
/* the first paragraph sits directly under the band, with a gap above it */
.lesson-body h2#worth-a-pause + p { margin-top: 4px; }

/* Practice Problems block: band, numbered problems, solutions button, then the "Play to Practice" sub-section with the game rows.
   Every sibling after the band is part of one tinted panel; the last element of the page closes it. */
.lesson-body h2#practice-problems {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
html body .lesson-body h2#practice-problems ~ * {
  margin: 0;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 0 solid var(--accent);
  border-left-width: 3px;
  border-right-width: 3px;
  border-radius: 0;
}
html body .lesson-body h2#practice-problems + ol,
html body .lesson-body h2#practice-problems + ul { padding: 1.2rem 1.2rem 0.7rem 2.6rem; }
.lesson-body h2#practice-problems + ol li,
.lesson-body h2#practice-problems + ul li { margin-bottom: 0.7rem; }
html body .lesson-body p.solutions-inline { padding: 0.3rem 1.2rem 1rem; }
html body .lesson-body h3#play-to-practice {
  padding: 1.1rem 1.2rem 0.5rem;
  font-size: var(--fs-h3, 1.25rem);
  font-weight: 700;
  color: var(--accent);
}
html body .lesson-body h3#play-to-practice::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background: currentColor;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}
html body .lesson-body h2#practice-problems ~ div.try-row {
  padding: 0.6rem 1.2rem;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border-left: 3px solid var(--accent);
  border-radius: 0;
}
html body .lesson-body h2#practice-problems ~ *:last-child {
  border-bottom: 3px solid var(--accent);
  border-radius: 0 0 6px 6px;
  margin-bottom: 1.5rem;
}
html body .lesson-body h2#practice-problems ~ ol:last-child { padding-bottom: 0.7rem; }
html body .lesson-body h2#practice-problems ~ div.try-row:last-child { padding-bottom: 1.2rem; }

/* Keep Exploring (the "another take" resources) */
.further-reading {
  margin-top: 2.5rem;
  padding: 0;
  border: 3px solid #e0b92a;
  border-radius: 8px;
  background: #fffbea;
  overflow: hidden;
}
.further-reading h2 {
  margin: 0;
  background: #ffd23f;
  color: #2a1a08;
  border-radius: 0;
  box-shadow: 0 4px 0 #b8860b;
}
.further-reading ul { margin: 0; padding: 1rem 18px 1rem calc(18px + 1.4rem); }
.further-reading p.reading-intro { margin: 0; padding: 1.2rem 18px 0; }
@media (min-width: 540px) {
  .further-reading ul { padding-left: calc(22px + 1.4rem); padding-right: 22px; }
  .further-reading p.reading-intro { padding-left: 22px; padding-right: 22px; }
}
.further-reading a { color: #000; text-decoration: underline; }
.further-reading a:hover { text-decoration-thickness: 2px; }
