body {
  font-family: sans-serif;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  text-align: center;
}

select {
  display: block;
  margin: 0 auto 1.5rem;
  padding: 0.4rem;
  font-size: 1rem;
}

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

th, td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background: #222;
  color: #fff;
}

tbody tr:nth-child(even) {
  background: #f5f5f5;
}

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

.site-nav a {
  color: #222;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: #222;
}

/* Methodology page */

body.prose {
  max-width: 720px;
  line-height: 1.6;
  color: #222;
}

.prose h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #ddd;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose code {
  background: #f5f5f5;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.lede {
  font-size: 1.1rem;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pipeline li {
  flex: 1 1 110px;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
}

.pipeline span {
  display: block;
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

table.spec th {
  background: #f5f5f5;
  color: #222;
  white-space: nowrap;
  vertical-align: top;
}

table.spec tbody tr:nth-child(even) {
  background: none;
}

.formula {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.note {
  border-left: 3px solid #222;
  padding-left: 1rem;
  color: #555;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #666;
}
