/* Módulo 2 — Números irracionais (estende o tema do módulo 1) */
@import url("../modulo-1/modulo.css");

/* Caixa de citação tipo manual (fundo areia) */
.math-quote-tan {
  margin: 1.35rem 0;
  padding: 1.1rem 1.2rem;
  background: #f5e6d3;
  border-top: 1px solid #a1887f;
  border-bottom: 1px solid #a1887f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.65;
}

[data-theme="dark"] .math-quote-tan {
  background: rgba(245, 230, 211, 0.12);
  border-color: color-mix(in srgb, var(--border) 60%, #a1887f);
}

.math-quote-tan cite {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--muted);
  font-family: var(--font);
}

/* Dica “Lembre-se” ao lado do texto (em ecrã largo) */
.math-layout-tip {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: start;
}

@media (min-width: 720px) {
  .math-layout-tip {
    grid-template-columns: 1fr minmax(200px, 32%);
  }
}

.math-tip-bubble {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--math-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.math-tip-bubble strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--math-orange);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cartão com pentagrama (diagrama simples) */
.math-pentagram-card {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 420px;
}

.math-pentagram-card svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 280px;
  margin: 0 auto;
}

.math-prompt-bubble {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--math-orange) 55%, var(--border));
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Grelha de triângulos (exercícios) */
.math-triangle-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 560px) {
  .math-triangle-grid--2x2 {
    grid-template-columns: 1fr 1fr;
  }
}

.math-triangle-slot {
  min-height: 140px;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--math-orange) 6%, var(--surface));
  font-size: 0.88rem;
  color: var(--muted);
}

.math-ex-num {
  color: var(--math-orange);
  font-weight: 800;
  font-size: 1.05rem;
  margin-right: 0.25rem;
}
