body {
  max-width: 45rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  font:
    1.0625rem/1.55 Georgia,
    serif;
  color: #222;
  background: #fff;
}

h1,
h2 {
  line-height: 1.15;
}

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

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.375rem;
}

p,
ul {
  margin: 0.6rem 0;
}

.question {
  font-size: 1.3rem;
}

a {
  color: #184b87;
  text-underline-offset: 0.13em;
}

nav {
  margin-bottom: 1.5rem;
}

.note {
  font-size: 0.9375rem;
}

footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
}

footer a {
  margin-inline-start: auto;
  text-align: right;
}

code,
kbd {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

form {
  margin-top: 1rem;
}

label {
  display: block;
}

input,
button {
  max-width: 100%;
  font: inherit;
  margin: 0.3rem 0.3rem 0.3rem 0;
}

#status:empty {
  margin: 0;
}

.table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  min-width: 36rem;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

/* Shared column widths keep the results tables aligned with each other. */
.table th:nth-child(2) {
  width: 8rem;
}

.table th:nth-child(3),
.table th:nth-child(4) {
  width: 3.5rem;
}

.table th:nth-child(5) {
  width: 4.5rem;
}

.table th:nth-child(6) {
  width: 6.5rem;
}

th,
td {
  padding: 0.3rem 0.6rem 0.3rem 0;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

th {
  font-weight: normal;
  font-style: italic;
}

tfoot td {
  font-weight: bold;
  border-bottom: none;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* On narrow screens, keep each row on one line and let the table scroll. */
@media (max-width: 40rem) {
  table {
    width: auto;
    min-width: 0;
    table-layout: auto;
  }

  th,
  td {
    white-space: nowrap;
  }
}
