:root {
  --bg: #0f1419;
  --panel: #1a2332;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #6eb5ff;
  --border: #2d3a4d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 1.05rem;
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #121820;
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.tag {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

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

.methodology ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.methodology li { margin-bottom: 0.5rem; }

.preset-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preset-list li { margin-bottom: 0.5rem; }

.preset-list a {
  color: var(--accent);
}

.filters fieldset {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}

.filters legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.filters label {
  display: block;
  margin-bottom: 0.65rem;
}

.filters label.check {
  margin: 1rem 0;
}

.filters input.wide {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
}

.filters input.short {
  width: 6rem;
  margin-right: 0.5rem;
}

.filters input[type="text"],
.filters select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.actions button {
  background: var(--accent);
  color: #0a0e14;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.actions button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.back a { color: var(--muted); }

.blurb { color: var(--muted); }

.highlight {
  text-align: center;
}

.big-stat {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--muted); font-size: 0.95rem; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

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

.table-scroll {
  overflow-x: auto;
  margin-top: 0.75rem;
}

table.dense { font-size: 0.85rem; }

.mono { font-family: ui-monospace, monospace; font-size: 0.8rem; }

.charges { max-width: 22rem; }

code {
  font-size: 0.88em;
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
