.tm-chapter-three-lesson {
  --ch3-blue: #052b52;
  --ch3-violet: #6557ff;
  --ch3-orange: #ff8a00;
  --ch3-green: #20c76a;
  --ch3-magenta: #e83e8c;
  --ch3-soft: #fff8f2;
}
.tm-ch3-lesson-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 2rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(255,138,0,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,138,0,.20), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(232,62,140,.16), transparent 32%),
    linear-gradient(135deg, #fff, #fff8f2 46%, #f4fbff);
  box-shadow: 0 22px 55px rgba(255, 138, 0, .10);
}
.tm-ch3-lesson-banner span {
  display: inline-flex;
  margin-bottom: .75rem;
  padding: .42rem .78rem;
  border-radius: 999px;
  background: rgba(255,138,0,.14);
  color: #bd5b00;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.tm-ch3-lesson-banner h2 {
  margin: 0 0 .55rem !important;
  color: var(--ch3-blue);
  font-size: clamp(2rem, 4.4vw, 3.5rem) !important;
  line-height: 1.04 !important;
}
.tm-ch3-lesson-banner p {
  max-width: 790px;
  margin: 0;
  color: #61708a;
  line-height: 1.65;
}
.tm-chapter-three-lesson blockquote {
  margin: 1.2rem 0 1.6rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-left: 5px solid var(--ch3-orange);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,138,0,.08), rgba(101,87,255,.06));
  color: #10233f;
}
.tm-chapter-three-lesson .tm-lesson-figure,
.tm-chapter-three-lesson .tm-pdf-page-card {
  margin: 1.15rem 0 1.65rem;
  padding: clamp(.75rem, 2vw, 1.1rem);
  border: 1px solid rgba(5,43,82,.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fffaf5);
  box-shadow: 0 18px 42px rgba(5, 43, 82, .08);
  text-align: center;
  overflow: hidden;
}
.tm-chapter-three-lesson .tm-lesson-figure img,
.tm-chapter-three-lesson .tm-pdf-page-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 760px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
}
.tm-chapter-three-lesson .tm-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1rem 0;
  padding-bottom: .4rem;
  scrollbar-width: thin;
}
.tm-chapter-three-lesson .tm-table-scroll table {
  min-width: max-content;
  margin: 0;
}
.tm-chapter-three-lesson .math-wrap,
.tm-chapter-three-lesson .tm-table-scroll {
  scrollbar-width: thin;
}
.tm-chapter-three-lesson .math-wrap::-webkit-scrollbar,
.tm-chapter-three-lesson .tm-table-scroll::-webkit-scrollbar {
  height: 8px;
  width: 0;
}
.tm-chapter-three-lesson .tm-pdf-page-grid {
  display: grid;
  gap: 1.5rem;
}
.tm-chapter-three-lesson .tm-pdf-page-card span {
  display: inline-flex;
  margin-bottom: .75rem;
  color: #bd5b00;
  font-weight: 900;
}
@media (max-width: 680px) {
  .tm-ch3-lesson-banner {
    border-radius: 22px;
  }
  .tm-chapter-three-lesson .tm-lesson-figure,
  .tm-chapter-three-lesson .tm-pdf-page-card {
    border-radius: 20px;
  }
}
