/**
 * Fact. Sizes from dal.ca's program header: 16px, label regular, values bold,
 * linked values with a 2px underline.
 *
 * In a Fact header the row borrows the list's two columns (subgrid), so the
 * labels of all facts are equally wide. Elsewhere, and in browsers without
 * subgrid, the label sits beside or above the values at its own width.
 */
.fact {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  gap: 0 var(--space-s);
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
}

/* Each value is a row. The label spans them all (more rows than a fact has
 * values; unused rows have no height), so a label that wraps over two lines
 * does not push the second value down. */
.fact__label {
  grid-row: 1 / span 20;
  grid-column: 1;
  font-weight: var(--font-weight-regular);
  overflow-wrap: anywhere;
}

.fact__value {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  font-weight: var(--font-weight-bold);
  overflow-wrap: anywhere;
  /* A value of several lines (an office address) keeps its lines. */
  white-space: pre-line;
}

.fact__link {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.fact__link:hover,
.fact__link:focus-visible {
  text-decoration-thickness: 3px;
}
