/* Keep inline MathML and its closing punctuation on the same text baseline. */
.typography-unit {
  display: inline;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

/* Keep quantities comparable without changing their reported precision. */
table :is(th, td).numeric {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.table-number {
  display: inline-grid;
  grid-template-columns: auto 0.5ch var(--number-fraction-width, 0ch);
  white-space: nowrap;
  font: inherit;
  font-variant-numeric: tabular-nums lining-nums;
}

.table-number-integer { text-align: right; }
.table-number-separator, .table-number-fraction { text-align: left; }
