/* Estilos das paginas de aula/materia do EstudaMath */
/* Aula detalhada: padrao visual inspirado no layout de estudo */
.lesson-studio-page {
  background: #ffffff !important;
}

.lesson-studio {
  padding: 38px 0 70px;
}

.studio-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: end;
  padding: 42px 0 30px;
}

.studio-intro h1 {
  margin: 0;
  color: #071943;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 5.35rem);
  line-height: .94;
  letter-spacing: -.075em;
  font-weight: 900;
}

.studio-kicker {
  margin: 8px 0 0 !important;
  color: #52617d !important;
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.35 !important;
  font-weight: 500;
}

.studio-intro p:not(.studio-kicker) {
  max-width: 660px;
  margin: 20px 0 0;
  color: #53627d;
  font-size: 1.02rem;
  line-height: 1.75;
}

.studio-decoration {
  position: relative;
  min-height: 132px;
}

.dot-matrix {
  position: absolute;
  top: 8px;
  left: 12px;
  width: 78px;
  height: 100px;
  opacity: .72;
  background-image: radial-gradient(circle, #81bfff 2.5px, transparent 3px);
  background-size: 18px 18px;
}

.wire-cube {
  position: absolute;
  right: 28px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border: 2px solid #c7e3ff;
  border-radius: 8px;
  transform: rotate(-12deg) skewY(-8deg);
}

.wire-cube::before,
.wire-cube::after {
  content: "";
  position: absolute;
  border: 2px solid #d7ecff;
  border-radius: 7px;
}

.wire-cube::before {
  inset: 10px -13px -13px 10px;
}

.wire-cube::after {
  width: 58px;
  height: 2px;
  left: 10px;
  top: 10px;
  border-width: 0 0 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.studio-main {
  display: grid;
  gap: 20px;
}

.study-card,
.studio-side-card {
  background: #fff;
  border: 1px solid #dcebf8;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(8, 24, 61, .045);
}

.study-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  align-items: start;
}

.study-card h2,
.studio-side-card h2 {
  margin: 0;
  color: #071943;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 850;
}

.study-card p,
.study-card li,
.studio-side-card p,
.studio-side-card li {
  color: #53627d;
  font-size: .96rem;
  line-height: 1.72;
}

.study-card p {
  margin: 10px 0 0;
}

.study-icon,
.side-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #0975f2;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  background: linear-gradient(145deg, #eef7ff, #e3f1ff);
  border: 1px solid #d5eaff;
  box-shadow: 0 12px 30px rgba(7, 117, 242, .08);
}

.idea-icon { background: #eef7ff; }
.fx-icon { color: #0969e8; font-size: 2.05rem; font-style: italic; }
.graph-icon { color: #0969e8; }
.pencil-icon { color: #19a77a; background: #e9fbf5; border-color: #d4f3e7; }
.people-icon { color: #7b62db; background: #f3edff; border-color: #e4dafe; }
.star-icon { color: #ffa51f; background: #fff7df; border-color: #ffe6a3; }
.rocket-icon { color: #0969e8; background: #edf6ff; }

.big-formula {
  margin-top: 18px;
  padding: 22px 24px;
  color: #071943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-style: italic;
  text-align: center;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  border: 1px solid #b9d9ff;
  border-radius: 10px;
}

.formula-caption {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem !important;
  color: #213250 !important;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.mini-note {
  min-height: 148px;
  padding: 18px;
  border: 1px solid #dcebf8;
  border-radius: 12px;
  background: #fff;
}

.mini-note strong {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 10px;
  color: #16a77c;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
  font-style: italic;
  font-weight: 500;
  background: transparent;
  border-radius: 0;
}

.mini-note.purple strong {
  color: #775bd6;
}

.mini-note ul,
.summary-card ul,
.formulas-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.visual-study-card .study-card-body,
.quiz-study-card .study-card-body {
  min-width: 0;
}

.set-diagram,
.number-line-studio {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
}

.set-label {
  fill: #0969e8;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 900;
}

.set-label.small { font-size: 30px; }
.purple-text { fill: #7057d9; }
.set-caption {
  fill: #5f6c84;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.axis-line,
.axis-arrow,
.ticks line {
  fill: none;
  stroke: #12244d;
  stroke-width: 4;
  stroke-linecap: round;
}

.tick-labels {
  fill: #12244d;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.point-blue { fill: #0969e8; }
.point-green { fill: #31bf91; }

.two-column-card {
  grid-template-columns: 74px minmax(0, .85fr) minmax(260px, 1fr);
  align-items: stretch;
}

.worked-panel {
  padding: 18px 20px;
  background: linear-gradient(135deg, #f6fbff 0%, #f1f8ff 100%);
  border: 1px solid #dcebf8;
  border-radius: 12px;
}

.green-panel {
  background: linear-gradient(135deg, #f2fcf8 0%, #ecfaf4 100%);
  border-color: #d5f1e6;
}

.purple-panel {
  background: linear-gradient(135deg, #faf7ff 0%, #f3edff 100%);
  border-color: #e4dafe;
}

.worked-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.worked-panel li::marker {
  color: #0969e8;
  font-weight: 900;
}

.result-line {
  margin-top: 14px !important;
  padding: 10px 12px;
  color: #23415d !important;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(30, 185, 140, .28);
  border-radius: 9px;
}

.summary-card li::marker {
  color: #ffa51f;
}

.quiz-study-card .lesson-question {
  margin-top: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.studio-bottom-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 4px;
}

.studio-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 22px;
}

.studio-side-card {
  padding: 24px;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.side-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.1rem;
}

.side-icon.orange {
  color: #ffa51f;
  background: #fff7df;
  border-color: #ffe6a3;
}

.progress-track {
  height: 11px;
  overflow: hidden;
  background: #e9eef5;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0969e8, #0878ff);
  border-radius: inherit;
  transition: width .18s ease;
}

.progress-card p {
  margin: 14px 0 0;
  font-size: .88rem;
}

.formulas-card ul {
  display: grid;
  gap: 14px;
  padding: 18px 22px 18px 38px;
  background: linear-gradient(135deg, #fffaf0 0%, #fff7e3 100%);
  border: 1px solid #ffe0a8;
  border-radius: 12px;
}

.formulas-card li {
  color: #263755;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
}

.formulas-card li::marker {
  color: #ffa51f;
}

.steps-card ol {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps-card li {
  position: relative;
  padding-left: 44px;
  color: #253653;
  font-weight: 700;
  transition: color .18s ease;
}

.steps-card li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #66738a;
  font-weight: 900;
  background: #eef3f8;
  border-radius: 50%;
}

.steps-card li.done::before {
  content: "\2713";
  color: #fff;
  background: #42bf91;
}

.steps-card li.active::before {
  color: #fff;
  background: #0969e8;
}

.practice-box {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(145deg, #f3f8ff, #eef6ff);
  border: 1px solid #d9eaff;
  border-radius: 14px;
}

.practice-box span {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
}

.practice-box strong {
  display: block;
  color: #071943;
  font-size: 1.05rem;
}

.practice-box a {
  display: inline-flex;
  margin-top: 14px;
  color: #0969e8;
  font-weight: 900;
  text-decoration: none;
}

.tip-card p {
  margin: 0;
}

@media (max-width: 1040px) {
  .studio-intro,
  .studio-layout,
  .two-column-card {
    grid-template-columns: 1fr;
  }

  .studio-decoration {
    display: none;
  }

  .studio-sidebar {
    position: static;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .lesson-studio {
    padding-top: 24px;
  }

  .study-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .study-icon {
    width: 52px;
    height: 52px;
  }

  .mini-grid,
  .quiz-study-card .lesson-question,
  .studio-bottom-nav {
    grid-template-columns: 1fr;
  }

  .studio-side-card {
    padding: 20px;
  }
}

/* Ajuste fino das paginas de aula: tipografia mais arredondada, sem aparencia de Arial Black */
.lesson-studio-page .studio-intro h1 {
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.042em;
  line-height: .98;
  max-width: 860px;
}

.lesson-studio-page .study-card h2,
.lesson-studio-page .studio-side-card h2 {
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 850;
  letter-spacing: -0.026em;
}

.lesson-studio-page .breadcrumb,
.lesson-studio-page .studio-kicker,
.lesson-studio-page .study-card p,
.lesson-studio-page .study-card li,
.lesson-studio-page .studio-side-card p,
.lesson-studio-page .studio-side-card li {
  font-family: "Inter", Arial, sans-serif;
}

.lesson-studio-page .studio-kicker {
  font-weight: 500;
  letter-spacing: -0.015em;
}
.math-block,
.math-text,
.math-line {
  font-family: Georgia, "Times New Roman", serif;
  color: #071943;
  font-style: italic;
  letter-spacing: .01em;
}

.math-block {
  margin-top: 16px;
  padding: 16px 18px;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  border: 1px solid #b9d9ff;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.compact-formula {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}

.math-text {
  font-size: 1.08rem;
  line-height: 1.6;
}

.math-line {
  font-size: 1.28rem;
  text-align: center;
}

.formula-panel {
  display: grid;
  align-content: center;
  gap: 8px;
}

.formula-panel .math-text {
  margin: 0 !important;
  color: #071943 !important;
  overflow-wrap: anywhere;
}

.overline {
  text-decoration: overline;
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
}

.lesson-table {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #dcebf8;
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.lesson-table th,
.lesson-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8f1fb;
  color: #53627d;
  font-size: .94rem;
  line-height: 1.55;
  vertical-align: top;
}

.lesson-table th {
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 850;
  background: #f6fbff;
  text-align: left;
}

.lesson-table tr:last-child td {
  border-bottom: 0;
}

.lesson-table td:first-child {
  color: #071943;
  font-weight: 800;
}

.inline-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0969e8;
  font-size: .78rem;
  font-weight: 850;
  background: #eef7ff;
}

.card-list,
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.card-list li,
.check-list li {
  padding: 12px 14px;
  color: #53627d;
  line-height: 1.55;
  border: 1px solid #dcebf8;
  border-radius: 12px;
  background: #fbfdff;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  background: #42bf91;
  border-radius: 50%;
}

.exercise-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.exercise-item {
  padding: 16px;
  border: 1px solid #dcebf8;
  border-radius: 14px;
  background: #fff;
}

.exercise-item h3 {
  margin: 0 0 8px;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 850;
}

.exercise-item p {
  margin: 0;
}

.exercise-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.exercise-options span {
  padding: 10px 12px;
  color: #253653;
  font-weight: 700;
  border: 1px solid #dcebf8;
  border-radius: 10px;
  background: #f8fbff;
}

.answer-highlight {
  margin-top: 12px !important;
  padding: 10px 12px;
  color: #116b51 !important;
  font-weight: 800;
  border: 1px solid #ccefe2;
  border-radius: 10px;
  background: #eefbf6;
}

.difficulty-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  color: #0969e8;
  font-size: .76rem;
  font-weight: 850;
  border-radius: 999px;
  background: #eef7ff;
}

.difficulty-badge.medium {
  color: #9a6a00;
  background: #fff4d8;
}

.difficulty-badge.hard {
  color: #a23838;
  background: #fff0f0;
}

.method-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  counter-reset: method;
}

.method-list li {
  position: relative;
  padding: 12px 14px 12px 46px;
  color: #53627d;
  line-height: 1.55;
  border: 1px solid #dcebf8;
  border-radius: 12px;
  background: #fff;
}

.method-list li::before {
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  background: #0969e8;
  border-radius: 50%;
  counter-increment: method;
  content: counter(method);
}

.full-width-card {
  grid-template-columns: 74px minmax(0, 1fr);
}

.lesson-note {
  margin-top: 14px;
  padding: 14px 16px;
  color: #53627d;
  line-height: 1.6;
  border: 1px solid #dcebf8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdff, #f6fbff);
}

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

  .lesson-table {
    display: block;
    overflow-x: auto;
  }

  .full-width-card {
    grid-template-columns: 1fr;
  }
}
.lesson-page-layout {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.lesson-page-layout .studio-main {
  grid-column: 1;
  grid-row: 1;
}

.lesson-mobile-anchor-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
  background: #ffffff;
  border: 1px solid #dcebf8;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(8, 24, 61, .05);
  cursor: pointer;
}

.lesson-mobile-anchor-toggle::after {
  content: "↓";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #0969e8;
  background: #eef7ff;
  border-radius: 50%;
  transition: transform .18s ease;
}

.lesson-mobile-anchor-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.lesson-anchor-nav {
  position: sticky;
  top: 104px;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  width: 240px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  scrollbar-width: thin;
  transform: translateX(calc(-100% - 28px));
}

.lesson-anchor-card {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dcebf8;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(8, 24, 61, .045);
}

.lesson-anchor-title {
  margin: 0 0 14px;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.lesson-anchor-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lesson-anchor-link {
  display: block;
  padding: 9px 10px;
  color: #53627d;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.lesson-anchor-link:hover,
.lesson-anchor-link:focus-visible {
  color: #0969e8;
  background: #f4f9ff;
  border-color: #d9eaff;
  outline: none;
}

.lesson-anchor-link.active,
.lesson-anchor-link[aria-current="location"] {
  color: #0969e8;
  background: #eef7ff;
  border-color: #cfe5ff;
}

.lesson-anchor-target {
  position: relative;
  top: -120px;
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 1500px) {
  .lesson-page-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }

  .lesson-anchor-nav {
    grid-column: 1;
    transform: none;
    width: auto;
  }

  .lesson-page-layout .studio-main {
    grid-column: 2;
  }
}

@media (max-width: 1040px) {
  .lesson-mobile-anchor-toggle {
    display: flex;
  }

  .lesson-page-layout {
    grid-template-columns: 1fr;
  }

  .lesson-anchor-nav {
    display: none;
    position: static;
    max-height: 58vh;
    margin-bottom: 18px;
  }

  .lesson-anchor-nav.open {
    display: block;
  }
}
.lesson-mobile-anchor-toggle::after {
  content: "\2193";
}

.lesson-studio [id] {
  scroll-margin-top: 118px;
}

@media (max-width: 1040px) {
  .lesson-studio [id] {
    scroll-margin-top: 92px;
  }
}
/* Interatividade leve das aulas */
.lesson-studio-page .study-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.lesson-studio-page .study-card:hover {
  transform: translateY(-3px);
  border-color: #c7e2ff;
  box-shadow: 0 22px 56px rgba(8, 24, 61, .075);
}

.lesson-studio-page .study-icon {
  transition: transform .22s ease, box-shadow .22s ease;
}

.lesson-studio-page .study-card:hover .study-icon {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 34px rgba(7, 117, 242, .12);
}

.lesson-motion {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.lesson-motion.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lesson-studio-page .mini-note,
.lesson-studio-page .exercise-item,
.lesson-studio-page .lesson-table tr {
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.lesson-studio-page .mini-note:hover,
.lesson-studio-page .exercise-item:hover {
  transform: translateY(-2px);
  border-color: #cfe5ff;
  background: #fbfdff;
}

.interactive-venn .venn-region {
  cursor: pointer;
  transition: opacity .18s ease, filter .18s ease, stroke-width .18s ease;
}

.interactive-venn .venn-region:hover,
.interactive-venn .venn-region:focus,
.interactive-venn .venn-region.is-active {
  opacity: 1;
  filter: drop-shadow(0 8px 12px rgba(9, 105, 232, .18));
  stroke-width: 6;
  outline: none;
}

.interactive-venn .venn-intersection {
  animation: vennPulse 2.8s ease-in-out infinite;
}

.venn-feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dcebf8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdff, #f3f8ff);
}

.venn-feedback strong {
  display: block;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 850;
}

.venn-feedback p {
  margin-top: 5px;
}

.exercise-options span {
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.exercise-options span:hover,
.exercise-options span:focus-visible {
  transform: translateY(-1px);
  color: #0969e8;
  border-color: #b9d9ff;
  background: #eef7ff;
  outline: none;
}

.exercise-options span.is-selected {
  color: #071943;
  border-color: #8fcaff;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px rgba(9, 105, 232, .16);
}

@keyframes vennPulse {
  0%, 100% { opacity: .68; }
  50% { opacity: .95; }
}

@media (prefers-reduced-motion: reduce) {
  .lesson-studio-page .study-card,
  .lesson-studio-page .study-icon,
  .lesson-motion,
  .lesson-studio-page .mini-note,
  .lesson-studio-page .exercise-item,
  .interactive-venn .venn-region,
  .interactive-venn .venn-intersection,
  .exercise-options span {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .lesson-motion {
    opacity: 1;
  }
}
/* Diagrama de Venn revisado */
.visual-study-card .study-card-body > p + p {
  margin-top: 6px;
}

.interactive-venn {
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 0 0;
}

.interactive-venn text,
.interactive-venn path {
  pointer-events: none;
}

.venn-set-letter {
  fill: #0969e8;
  font-family: "Nunito", "Inter", sans-serif;
  font-size: 42px;
  font-weight: 900;
}

.venn-region-label,
.venn-formula-label,
.venn-small-label {
  font-family: "Nunito", "Inter", sans-serif;
  font-weight: 850;
}

.venn-region-label {
  fill: #53627d;
  font-size: 18px;
}

.venn-region-label.small {
  fill: #27755d;
  font-size: 15px;
}

.venn-formula-label {
  fill: #0969e8;
  font-size: 30px;
}

.venn-small-label {
  fill: #64728b;
  font-size: 16px;
}

.venn-union-mark {
  fill: none;
  stroke: #0969e8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  opacity: .42;
}

.venn-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.venn-chip {
  min-height: 38px;
  padding: 0 14px;
  color: #253653;
  font: inherit;
  font-weight: 850;
  border: 1px solid #dcebf8;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.venn-chip:hover,
.venn-chip:focus-visible,
.venn-chip.is-active {
  transform: translateY(-1px);
  border-color: #8fcaff;
  outline: none;
}

.venn-chip.blue,
.venn-chip.blue.is-active { background: #eef7ff; color: #0969e8; }
.venn-chip.green,
.venn-chip.green.is-active { background: #edf9f4; color: #168768; }
.venn-chip.yellow,
.venn-chip.yellow.is-active { background: #fff7df; color: #9b6b00; }
.venn-chip.gray,
.venn-chip.gray.is-active { background: #f4f7fb; color: #53627d; }

.venn-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.venn-steps li {
  padding: 13px 14px;
  color: #53627d;
  line-height: 1.55;
  border: 1px solid #dcebf8;
  border-radius: 12px;
  background: #fbfdff;
}

.venn-steps strong {
  color: #071943;
}

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

  .venn-region-label {
    font-size: 16px;
  }

  .venn-formula-label {
    font-size: 25px;
  }
}
/* Aula em bloco único, sem cards principais arredondados */
.lesson-studio-page .studio-main {
  gap: 0;
  background: #fff;
  border: 1px solid #dcebf8;
  border-radius: 0;
  box-shadow: 0 18px 46px rgba(8, 24, 61, .04);
  overflow: hidden;
}

.lesson-studio-page .studio-main .study-card {
  margin: 0;
  padding: 30px 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e4edf7;
  border-radius: 0;
  box-shadow: none;
}

.lesson-studio-page .studio-main .study-card:last-of-type {
  border-bottom: 0;
}

.lesson-studio-page .studio-main .study-card:hover {
  transform: none;
  border-color: #e4edf7;
  box-shadow: none;
}

.lesson-studio-page .studio-main .study-card:hover .study-icon {
  transform: none;
}

.lesson-studio-page .studio-main .study-icon,
.lesson-studio-page .studio-main .mini-note,
.lesson-studio-page .studio-main .lesson-table,
.lesson-studio-page .studio-main .worked-panel,
.lesson-studio-page .studio-main .result-line,
.lesson-studio-page .studio-main .math-block,
.lesson-studio-page .studio-main .card-list li,
.lesson-studio-page .studio-main .check-list li,
.lesson-studio-page .studio-main .lesson-note,
.lesson-studio-page .studio-main .exercise-item,
.lesson-studio-page .studio-main .exercise-options span,
.lesson-studio-page .studio-main .answer-highlight,
.lesson-studio-page .studio-main .venn-feedback,
.lesson-studio-page .studio-main .venn-chip,
.lesson-studio-page .studio-main .venn-steps li {
  border-radius: 0;
}

.lesson-studio-page .studio-main .mini-note:hover,
.lesson-studio-page .studio-main .exercise-item:hover {
  transform: none;
}

@media (max-width: 760px) {
  .lesson-studio-page .studio-main .study-card {
    padding: 24px 20px;
  }
}
/* Leitura visual para os passos da aula de Potenciação */
.lesson-studio-page .studio-main .power-steps {
  display: grid;
  gap: 10px;
}

.lesson-studio-page .studio-main .power-steps p {
  margin: 0 !important;
  padding: 2px 0 2px 14px;
  color: #23415d;
  line-height: 1.6;
  border-left: 3px solid #9bc9ff;
}

.lesson-studio-page .studio-main .power-steps p:first-child {
  color: #071943;
  font-weight: 800;
  border-left-color: #0969e8;
}

.lesson-studio-page .studio-main .power-steps p:last-child {
  color: #075f48;
  font-weight: 800;
  border-left-color: #42bf91;
}
/* Numeração simples nos marcadores das seções */
.lesson-studio-page .studio-main {
  counter-reset: lesson-section;
}

.lesson-studio-page .studio-main .study-card {
  counter-increment: lesson-section;
}

.lesson-studio-page .studio-main .study-icon {
  color: #0969e8;
  font-size: 0 !important;
  font-style: normal;
  background: #eef7ff;
  border-color: #d5eaff;
  box-shadow: none;
}

.lesson-studio-page .studio-main .study-icon::before {
  content: counter(lesson-section);
  color: #0969e8;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}
/* Sem marcadores/cards laterais nas seções */
.lesson-studio-page .studio-main .study-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.lesson-studio-page .studio-main .study-icon {
  display: none !important;
}

.lesson-studio-page .studio-main .study-icon::before {
  content: none;
}
/* Breadcrumb clicável da aula */
.lesson-studio-page .breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.lesson-studio-page .breadcrumb a:hover,
.lesson-studio-page .breadcrumb a:focus-visible {
  color: #075fd1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  outline: none;
}

.lesson-studio-page .breadcrumb [aria-current="page"] {
  color: #071943;
}
/* Exemplos simples sem cards coloridos */
.lesson-examples {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4edf7;
}

.lesson-examples h3 {
  margin: 0 0 8px;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 850;
}

.lesson-examples p {
  margin-top: 7px;
}

.lesson-examples strong {
  color: #071943;
}
/* Diagrama de Venn com aparência de material didático */
.interactive-venn .venn-universe-letter {
  fill: #071943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-style: italic;
  font-weight: 900;
}

.interactive-venn .venn-set-letter {
  font-size: 64px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.interactive-venn .venn-region-label {
  fill: #071943;
  font-size: 28px;
  font-weight: 700;
}

.interactive-venn .venn-formula-label {
  font-size: 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 900;
}

.interactive-venn .venn-small-label {
  fill: #53627d;
  font-size: 22px;
  font-weight: 750;
}
.venn-image {
  width: min(100%, 820px);
  max-width: 820px;
  height: auto;
  margin: 22px auto 0;
  border: 1px solid #dcebf8;
  background: #f8fbff;
}
.element-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .7fr);
  gap: 14px;
  margin-top: 18px;
}

.element-set-box,
.element-outside-box {
  padding: 18px;
  border: 1px solid #dcebf8;
  background: #fbfdff;
}

.element-set-box {
  border-color: #b9d9ff;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.element-outside-box {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-color: #ffe1a8;
  background: #fffaf0;
}

.element-set-name,
.element-outside-box strong {
  display: block;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 900;
}

.element-braces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: #071943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-style: italic;
}

.element-chip {
  display: inline-grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 900;
  background: #0969e8;
  border: 1px solid #075bd0;
}

.element-chip.outside {
  margin-bottom: 8px;
  background: #ffa51f;
  border-color: #e08a00;
}

.element-demo p {
  margin-top: 12px !important;
}

.element-rules {
  display: grid;
  margin-top: 16px;
  border: 1px solid #dcebf8;
  background: #fff;
}

.element-rules p {
  display: grid;
  grid-template-columns: minmax(170px, .38fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0 !important;
  padding: 13px 14px;
  border-bottom: 1px solid #e8f1fb;
}

.element-rules p:last-child {
  border-bottom: 0;
}

.element-rules strong {
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 900;
}

.element-rules span {
  color: #53627d;
}

.element-question {
  margin-top: 14px !important;
  padding: 13px 14px;
  color: #31415f !important;
  background: #fffaf0;
  border: 1px solid #ffe1a8;
  border-left: 5px solid #ffa51f;
}

@media (max-width: 760px) {
  .element-demo,
  .element-rules p {
    grid-template-columns: 1fr;
  }
}
.notation-example {
  margin-top: 16px;
  padding: 14px 16px;
  color: #31415f;
  background: #fbfdff;
  border: 1px solid #dcebf8;
  border-left: 5px solid #0969e8;
}

.notation-example p {
  margin: 0 !important;
}

.notation-example p + p {
  margin-top: 8px !important;
}
.notation-translate {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.notation-translate > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(130px, .35fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #dcebf8;
  background: #fbfdff;
}

.notation-phrase {
  color: #53627d;
}

.notation-arrow {
  color: #0969e8;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 900;
}

.notation-symbol {
  color: #071943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
}

.notation-note,
.representation-note {
  margin-top: 14px !important;
  padding: 13px 14px;
  color: #31415f !important;
  background: #f8fbff;
  border: 1px solid #dcebf8;
  border-left: 5px solid #0969e8;
}

.representation-example {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dcebf8;
  background: #fbfdff;
}

.representation-example > p {
  margin: 0 0 12px !important;
}

.representation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.representation-grid div {
  padding: 13px 14px;
  border: 1px solid #dcebf8;
  background: #fff;
}

.representation-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 900;
}

.representation-grid span {
  color: #53627d;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .notation-translate > div,
  .representation-grid {
    grid-template-columns: 1fr;
  }

  .notation-arrow,
  .notation-symbol {
    text-align: left;
  }
}

.types-grid .mini-note {
  display: grid;
  align-content: start;
  gap: 8px;
}

.types-grid .mini-note p {
  margin: 0;
}

.types-grid .mini-note.wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.mini-note.green strong {
  color: #00a37a;
}

.mini-note.blue strong {
  color: #0969e8;
}

.mini-note.yellow strong {
  color: #b77900;
}

.mini-note.teal strong {
  color: #0f8f9f;
}

.mini-note.orange strong {
  color: #d16b00;
}

.type-example {
  color: #071943 !important;
  font-weight: 760;
}

@media (max-width: 760px) {
  .types-grid .mini-note.wide {
    grid-column: auto;
  }
}
.single-formula-panel {
  overflow-x: auto;
}

.single-formula-panel .math-text {
  min-width: max-content;
  white-space: nowrap;
}
#exercicios.is-training-quiz .exercise-grid {
  min-height: 260px;
}

#exercicios.is-training-quiz .exercise-item {
  display: none;
}

#exercicios.is-training-quiz .exercise-item.is-active {
  display: block;
}

#exercicios.is-training-quiz .exercise-item.is-attention {
  border-color: #ffbf47;
  background: #fffaf0;
}

.training-quiz-status {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dcebf8;
  background: #fbfdff;
}

.training-quiz-status strong {
  display: block;
  color: #071943;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  font-weight: 900;
}

.training-quiz-status p {
  margin-top: 4px;
  color: #53627d;
}

.training-quiz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.training-quiz-controls .button[disabled] {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

#exercicios .training-answer-key.is-locked {
  display: none;
}

#exercicios .training-answer-key.is-unlocked {
  display: block;
}
.training-quiz-controls .button {
  border-style: solid;
  font: inherit;
}
#exercicios .exercise-options span.is-correct {
  color: #075f46;
  border-color: #7ed8b8;
  background: #e9fbf4;
  box-shadow: inset 0 0 0 1px rgba(66, 191, 145, .22);
}

#exercicios .exercise-options span.is-wrong {
  color: #8f1f1f;
  border-color: #f5a3a3;
  background: #fff0f0;
  box-shadow: inset 0 0 0 1px rgba(224, 65, 65, .16);
}

#exercicios .training-question.is-correct {
  border-color: #9be4c8;
}

#exercicios .training-question.is-wrong {
  border-color: #f3b1b1;
}
#exercicios.is-training-finished .exercise-options span {
  cursor: default;
}
/* Frações em notação vertical nas aulas */
.math-fraction {
  display: inline-grid;
  grid-template-rows: auto auto;
  min-width: 1.45em;
  margin: 0 .12em;
  vertical-align: middle;
  text-align: center;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
}

.math-fraction > span:first-child {
  padding: 0 .13em .09em;
  border-bottom: 1.5px solid currentColor;
}

.math-fraction > span:last-child {
  padding: .09em .13em 0;
}
/* Inequações: retas e tabela de sinais */
.ineq-visuals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.ineq-visual-card{padding:14px;border:1px solid #dcebf8;background:#fbfdff;text-align:center}.ineq-visual-card.wide{grid-column:1/-1}.ineq-line{position:relative;height:66px}.ineq-line::before{content:"";position:absolute;left:4%;right:4%;top:28px;height:3px;background:#9db0c8}.ineq-segment{position:absolute;top:28px;height:3px;background:#0969e8}.ineq-segment.ray-right{left:var(--point);right:4%}.ineq-segment.ray-left{left:4%;right:calc(100% - var(--point))}.ineq-segment.bounded{left:var(--start);right:calc(100% - var(--end))}.ineq-point{position:absolute;z-index:2;left:var(--point);top:20px;width:16px;height:16px;border:3px solid #0969e8;border-radius:50%;transform:translateX(-50%)}.ineq-point.open{background:#fff}.ineq-point.closed{background:#0969e8}.ineq-label{position:absolute;left:var(--point);top:43px;transform:translateX(-50%);color:#53627d;font-weight:800}.ineq-arrow{position:absolute;top:19px;color:#0969e8;font-size:1.2rem;font-weight:900}.ineq-arrow.right{right:1%}.ineq-arrow.left{left:1%}.ineq-visual-card>strong{display:block;margin-top:4px;color:#071943}.ineq-table-wrap{max-width:100%;margin-top:16px;overflow-x:auto}.ineq-table-wrap .lesson-table{min-width:560px}@media(max-width:760px){.ineq-visuals{grid-template-columns:1fr}.ineq-visual-card.wide{grid-column:auto}}

/* Geometry lesson visual polish */
.geometry-visual-card{margin:18px 0;padding:12px 12px 9px;border:1px solid #d9e8f7;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(18,78,145,.07);overflow:hidden}.geometry-visual-card svg{display:block;width:100%;height:auto}.geometry-visual-card figcaption{text-align:center;color:#53627d;font-size:.88rem;line-height:1.45;margin:8px 8px 2px}.angle-classification-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:18px}.angle-classification-card{display:flex;min-height:112px;flex-direction:column;justify-content:center;gap:5px;padding:15px 14px;border:1px solid #d9e8f7;border-radius:15px;background:linear-gradient(145deg,#fff,#f5f9ff);box-shadow:0 7px 20px rgba(18,78,145,.06)}.angle-classification-card strong{font-family:Nunito,Inter,sans-serif;color:#071943;font-size:1rem}.angle-classification-card span{color:#0969e8;font-size:.96rem;font-weight:800;white-space:nowrap}.angle-classification-card small{color:#64748b;font-size:.76rem;line-height:1.25}.angle-classification-card.featured{border-color:#f2c85b;background:linear-gradient(145deg,#fffdf3,#fff8d9)}.geometry-formula-strip{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.geometry-formula-strip span{padding:10px 14px;border:1px solid #cfe2f7;border-radius:999px;background:#f6faff;color:#0a4da8;font-weight:800;font-size:.93rem}.angle-relation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:16px 0}.angle-relation-grid>div{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-left:4px solid #1769e0;border-radius:10px;background:#f6faff}.angle-relation-grid strong{color:#071943}.angle-relation-grid span{color:#53627d;font-size:.9rem}@media(max-width:760px){.angle-classification-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.angle-classification-card{min-height:100px}.angle-relation-grid{grid-template-columns:1fr}.geometry-formula-strip span{width:100%;text-align:center}.geometry-visual-card{padding:8px 8px 7px;border-radius:14px}}

/* Android/celulares: legibilidade sem alterar a composição de desktop. */
@media (max-width: 760px) {
  .lesson-studio-page .breadcrumb {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 4px;
    line-height: 1.35;
  }

  .geometry-visual-card svg[aria-labelledby^="cevianas-title"] text,
  .geometry-visual-card svg[aria-labelledby^="classificacao-triangulos-title"] text {
    font-size: 30px !important;
  }

  .geometry-visual-card svg[aria-labelledby^="centros-triangulo-title"] text {
    font-size: 27px !important;
  }

  .geometry-visual-card svg[aria-labelledby^="potencia-ponto-title"] text {
    font-size: 32px !important;
  }

  .geometry-visual-card svg[aria-labelledby^="angulos-bissetriz-title"] text,
  .geometry-visual-card svg[aria-labelledby^="triangle-congruence-title"] text,
  .geometry-visual-card svg[aria-labelledby^="polygon-diagonals-title"] text,
  .geometry-visual-card svg[aria-labelledby^="quadrilateral-hierarchy-title"] text,
  .geometry-visual-card svg[aria-labelledby^="thales-triangle-title"] text,
  .geometry-visual-card svg[aria-labelledby^="thales-transversals-title"] text {
    font-size: 22px !important;
  }

  .geometry-visual-card figcaption {
    margin-inline: 2px;
    font-size: .9rem;
  }
}