.equation-input {
  min-height: 92px;
}

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.equation.small {
  gap: 2px 8px;
  font-size: 15px;
}

.equation .term {
  white-space: nowrap;
}

.equation .coefficient {
  margin-right: 1px;
  color: var(--accent-text);
  font-weight: 700;
}

.equation sub,
.equation sup {
  font-size: 0.62em;
  line-height: 0;
}

.equation .state {
  margin-left: 1px;
  color: var(--text-subtle);
  font-size: 0.62em;
}

.equation .plus {
  color: var(--text-subtle);
}

.equation .arrow {
  padding-inline: 4px;
  color: var(--text-muted);
}

.equation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badges .badge {
  height: auto;
  min-height: 22px;
  white-space: normal;
}

.callout.with-action {
  flex-wrap: wrap;
  align-items: center;
}

.callout.with-action > span {
  flex: 1 1 220px;
}

.callout.with-action .button {
  flex: none;
}

.alternatives {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.alternatives summary {
  width: max-content;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.alternatives details[open] summary {
  margin-bottom: var(--space-2);
}

.independent {
  display: grid;
  gap: var(--space-2);
}

.halves {
  display: grid;
  margin: 0;
}

.halves > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.halves > div:first-child {
  padding-top: 0;
}

.halves dt {
  display: grid;
  font-size: 13.5px;
  font-weight: 600;
}

.halves dt small {
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 400;
}

.halves dd {
  min-width: 0;
  margin: 0;
}

[data-halves] > p,
[data-check] > p {
  font-size: 13px;
}

[data-check] .data-table td {
  vertical-align: middle;
}


.data-table .ok {
  display: inline-block;
  color: var(--success);
}

.data-table .off {
  display: inline-block;
  color: var(--danger);
}

@media (max-width: 560px) {
  .equation {
    font-size: 18px;
  }

  .halves > div {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }
}
