/* Resoluções Albert Einstein: explicação curta, seguida do cálculo correspondente. */
.ac-resolucao-reveal > p { line-height: 1.65; }
.einstein-equacao, .einstein-equacao-texto { margin: 16px 0; }
.einstein-equacao .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.einstein-equacao-texto { line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .einstein-equacao .katex-display { text-align: left; }
  .einstein-equacao .katex-display > .katex { text-align: left; }
}

/* O selo discursivo deve caber inteiro e manter contraste sobre o cabeçalho. */
.ac-selo-discursiva { color: #f0cf6d; }
@media (max-width: 600px) {
  .ac-card-header { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .ac-card-header > div { min-width: 0; }
  .ac-card-header .ac-selo-discursiva { grid-column: 2; margin-left: 0; justify-self: start; white-space: normal; max-width: 100%; }
}

/* Q38: comparar o exame e a fibra sem prolongar a rolagem no desktop. */
@media (min-width: 1024px) {
  .einstein-figuras-duplas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: 24px auto;
  }
  .einstein-figuras-duplas > .ac-figura { width: 100%; min-width: 0; margin: 0; }
  .einstein-figuras-duplas img { display: block; width: auto; max-width: 100%; max-height: 420px; height: auto; margin: 0 auto; }
}
