.formula-box {
  width: fit-content;
  max-width: 100%;
  margin: 0.9rem auto 1.1rem;
  padding: 12px 18px;
  border: 1px solid rgba(33, 58, 99, 0.28);
  background: #f6f8fb;
  color: #1f2530;
  text-align: center;
  line-height: 1.5;
}

.formula-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.formula-label {
  white-space: nowrap;
}

.formula-eq mjx-container {
  margin: 0 !important;
}

@media (max-width: 760px) {
  .formula-wide {
    flex-direction: column;
    gap: 0.25rem;
  }

  .formula-label {
    white-space: normal;
  }
}