/* Módulo 4 — Comensuráveis e incomensuráveis (estende o módulo 1) */
@import url("../modulo-1/modulo.css");

/* Pergunta com borda em L */
.math-prompt-l {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem 1.15rem 1.25rem;
  background: var(--surface);
  border-left: 8px solid var(--math-orange);
  border-bottom: 8px solid var(--math-orange);
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Nota lateral (fundo amarelo-claro) */
.math-note-yellow {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: #fffde7;
  border: 1px solid #ffe082;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  line-height: 1.55;
}

[data-theme="dark"] .math-note-yellow {
  background: rgba(255, 253, 231, 0.08);
  border-color: rgba(255, 224, 130, 0.35);
}

.math-note-yellow strong {
  color: var(--math-navy);
}

[data-theme="dark"] .math-note-yellow strong {
  color: var(--math-orange);
}

/* Figuras de segmentos */
.math-seg-figure {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, #1e88e5 8%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.math-seg-figure__caption {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.math-seg-figure svg {
  display: block;
  min-width: 260px;
  min-height: 56px;
  margin: 0 auto;
}

.math-mdc-step {
  margin: 1.5rem 0;
  padding: 0 0 0.5rem;
  border-left: 3px solid var(--math-orange);
  padding-left: 1rem;
}

.math-mdc-step h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--math-orange);
}

.math-formula-line {
  margin: 0.5rem 0 0.75rem;
  font-size: 1rem;
  font-family: var(--mono);
}

/* Segmentos: AB com traço superior */
.math-overline {
  text-decoration: overline;
  text-decoration-thickness: 1.2px;
  text-underline-offset: 0.15em;
  padding: 0 0.08em;
}
