*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0eeea;
  --text: #1a1a18;
  --muted: #6b6b67;
  --faint: #9b9b97;
  --accent: #1f3a5f;
  --accent-light: #e8eef5;
  --accent-mid: #4a6fa5;
  --border: #d8d6d0;
  --red: #b03a2e;
  --red-light: #f7ecea;
  --green: #1a6b3c;
  --green-light: #e6f4ec;
  --mono: 'Courier New', Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --nav-h: 52px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.5;
}

/* ── NAV ── */
nav.site-nav {
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: 2rem;
  white-space: nowrap;
}

.wordmark span { color: var(--red); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
}

.nav-links a {
  display: block;
  padding: 0 0.85rem;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.1s, border-color 0.1s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--red); font-weight: 500; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-contribute {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-contribute:hover { background: #162d4a; }

/* ── PAGE SHELL ── */
main { flex: 1; }

.page-header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--surface);
}

.page-header .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0.35rem;
  max-width: 520px;
}

.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── COMING SOON PLACEHOLDER ── */
.placeholder-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}

.placeholder-inner {
  max-width: 400px;
}

.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.placeholder-inner h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.placeholder-inner p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  gap: 1rem;
  flex-wrap: wrap;
}

footer.site-footer a { color: var(--muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--text); }

/* ── TABLE BASE ── */
.data-table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data-table th {
  text-align: left;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}

table.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.data-table tbody tr:hover { background: var(--surface-2); }

table.data-table td a { color: var(--accent-mid); text-decoration: none; font-weight: 500; }
table.data-table td a:hover { text-decoration: underline; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.tag.red { background: var(--red-light); color: var(--red); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.filter-bar select,
.filter-bar input {
  font-size: 13px;
  font-family: var(--sans);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--accent); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav.site-nav { padding: 0 1rem; overflow-x: auto; }
  .nav-links a { padding: 0 0.6rem; font-size: 12px; }
  .content-wrap { padding: 1.5rem 1rem; }
  .page-header { padding: 1.5rem 1rem 1rem; }
  footer.site-footer { flex-direction: column; align-items: flex-start; }
}
