body {
  line-height: 1.4;
  margin: 0 auto;
  max-width: 72rem;
  padding: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.site-nav a,
.site-nav strong {
  display: block;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

main {
  min-width: 0;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

p,
ul {
  margin: 0.5rem 0;
}

.source-list {
  display: grid;
  gap: 0.25rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid #bbb;
  padding: 0.25rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.glossary-table th:first-child {
  width: 8rem;
}

.glossary-table td:nth-child(2) {
  width: 7rem;
}

.number {
  text-align: right;
  white-space: nowrap;
}

.frequency-table tfoot {
  font-weight: bold;
}

.frequency-table {
  max-width: 52rem;
}

.frequency-table th:first-child {
  width: 8rem;
}

.frequency-table td:nth-child(2) {
  width: 7rem;
}

.records-table {
  max-width: 60rem;
}

.records-table th:first-child,
.records-table td:nth-child(2),
.records-table td:nth-child(4),
.records-table td:nth-child(5) {
  white-space: nowrap;
}

.comparison-summary {
  margin-bottom: 1.25rem;
  max-width: 24rem;
}

.shared-phrases-table {
  max-width: 40rem;
}

.cooccurrence-table,
.speaker-table {
  max-width: 60rem;
}

.speaker-rules-table,
.verb-table {
  margin-bottom: 1.25rem;
  max-width: 48rem;
}

.source-location {
  margin: 0 0 0.15rem;
  white-space: nowrap;
}

.reading {
  font-weight: bold;
  margin-right: 0.5rem;
}

.context-list {
  margin: 1rem 0;
  padding-left: 2.25rem;
}

.context-list li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.context-text {
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 40rem) {
  body {
    padding: 0.75rem;
  }

  .source-list {
    display: block;
  }

  .source-list li {
    margin: 0.25rem 0;
  }

  .glossary-table th:first-child,
  .glossary-table td:nth-child(2) {
    width: auto;
  }
}
