/* IMPACT PAGE — public chronological ledger of paid sponsor commitments.
   Reuses .cat-hero / .cat-stats / .cat-empty / .hl-cta from catalog.css. */

.impact-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.filter-pill:hover {
  background: var(--bg);
  color: var(--fg);
}

.filter-pill--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* IMPACT LEDGER — chronological public table of paid sponsor commitments.
   Scoped to /impact only; does not perturb catalog.css. */

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.ledger-table thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ledger-table tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--fg);
  vertical-align: middle;
}

.ledger-table tbody tr:last-child td {
  border-bottom: none;
}

.ledger-date {
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.ledger-sponsor {
  font-weight: 600;
  color: var(--ink);
}

.ledger-project a {
  color: var(--accent);
  text-decoration: none;
}

.ledger-project a:hover {
  text-decoration: underline;
}

.ledger-tier {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(90, 138, 60, 0.1);
  color: #3d7a20;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.ledger-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .ledger-table thead { display: none; }
  .ledger-table,
  .ledger-table tbody,
  .ledger-table tr,
  .ledger-table td { display: block; width: 100%; }
  .ledger-table td { padding: 0.4rem 0; border-bottom: none; }
  .ledger-table tr { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .ledger-amount { text-align: left; }
}
