.chapter-byline {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  padding-bottom: 12px;
}

.chapter-byline p {
  margin: 0;
}

.chapter-lead {
  color: #303b4b;
  font-size: 19px;
  line-height: 1.7;
}

.formula {
  background: var(--soft);
  border-left: 4px solid var(--brand);
  color: var(--brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  padding: 12px 18px;
}

.program-listing {
  padding: 0;
  text-align: left;
}

.program-listing pre {
  margin: 0;
}

.program-listing figcaption {
  padding: 10px 16px 12px;
}

.figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.figure-pair figure {
  min-width: 0;
}

.table-scroll {
  margin: 24px 0;
  overflow-x: auto;
}

.table-scroll table {
  margin: 0;
  min-width: 640px;
}

.comparison-table th:first-child {
  min-width: 10rem;
}

.test-sequence {
  padding-left: 24px;
}

.test-sequence li {
  margin-bottom: 12px;
}

.references a {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .chapter-lead {
    font-size: 18px;
  }

  .figure-pair {
    grid-template-columns: 1fr;
  }

  .table-scroll {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
  }
}
