/* Percentage dedicated runtime extras — Math golden reference. math.css holds core math-* styles. */

body.layout-family-math .ui-card__title,
body.layout-family-math .math-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ds-color-text);
}

body.layout-family-math .math-card__hint {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
}

body.layout-family-math .math-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ds-color-border);
}

body.layout-family-math .math-examples {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  body.layout-family-math .math-examples {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  body.layout-family-math .math-examples {
    grid-template-columns: repeat(4, 1fr);
  }
}
