:root {
  color-scheme: light;
  --bg: #f3efe6;
  --panel: rgba(255, 252, 245, 0.92);
  --text: #222018;
  --muted: #726b5c;
  --accent: #006b5f;
  --accent-strong: #004f46;
  --danger: #8d2f1e;
  --border: rgba(34, 32, 24, 0.12);
  --shadow: 0 16px 40px rgba(34, 32, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(circle at top left, rgba(0, 107, 95, 0.16), transparent 34%),
    linear-gradient(180deg, #f7f3ea 0%, #ede7db 100%);
  color: var(--text);
}

a {
  color: var(--accent-strong);
}

th a.table-sort-link {
  color: inherit;
  text-decoration: none;
}

th a.table-sort-link:hover {
  text-decoration: underline;
}

button,
.button-link {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.2rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.danger {
  background: var(--danger);
}

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  overflow: auto;
}

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

th,
td {
  padding: 0.7rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-list div {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(0, 107, 95, 0.07);
}

.metric-list dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.metric-list dd {
  margin: 0.35rem 0 0;
  font-size: 1.3rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .page {
    padding: 1rem;
  }

  .hero {
    flex-direction: column;
    align-items: start;
  }
}
