:root {
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #555555;
  --accent: #1f4e8c;
  --accent-dark: #173c6c;
  --rule: #d9d9d9;
  --field-border: #767676;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  max-width: 66rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2rem;
}

header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.columns {
  display: grid;
  gap: 2.25rem;
}

.text {
  max-width: 34rem;
}

section + section {
  margin-top: 1.25rem;
}

p {
  margin: 0 0 0.85rem;
}

section p:last-child,
.text > p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-dark);
}

.contact {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.9rem;
}

label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.9rem;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

button {
  font: inherit;
  font-size: 1rem;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.after-form {
  margin: 1rem 0 0;
}

footer {
  margin-top: 2.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}

footer p {
  margin: 0;
}

/* Data and methods page (data/index.html) */

h1 a.home {
  color: inherit;
  text-decoration: none;
}

h1 a.home:hover {
  color: var(--accent-dark);
}

.doc .page-title {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.doc section {
  margin-top: 1.75rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}

.files {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.files li {
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
}

code {
  font-family: Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 0.85rem;
}

table.dates {
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
  font-variant-numeric: lining-nums tabular-nums;
}

table.dates th,
table.dates td {
  text-align: left;
  vertical-align: top;
  padding: 0.35rem 0.9rem 0.35rem 0;
  border-bottom: 1px solid var(--rule);
}

table.dates th {
  font-weight: 600;
  border-bottom-color: var(--muted);
}

table.dates th:last-child,
table.dates td:last-child {
  padding-right: 0;
}

.nw {
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 40rem) {
  table.dates td {
    white-space: nowrap;
  }
}

@media (min-width: 60rem) {
  .page {
    padding: 2.5rem 3rem 2rem;
  }

  .columns {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3.5rem;
    align-items: start;
  }

  .contact {
    border-top: 0;
    padding-top: 0;
  }
}
