:root {
  --ink: #1c2b39;
  --muted: #5b6b7a;
  --accent: #2f6f4f;
  --accent-2: #1f4d38;
  --accent-light: #e7f2ec;
  --gold: #d8a53d;
  --border: #dfe6ea;
  --bg: #f4f7f6;
  --card-shadow: 0 4px 14px rgba(22, 46, 38, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2 {
  font-family: "Poppins", "Inter", sans-serif;
}

header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  padding: 2.25rem 1.5rem 2.5rem;
  box-shadow: 0 6px 20px rgba(31, 77, 56, 0.25);
}

.brand {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo { flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

.brand-text h1 {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text .subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

main {
  max-width: 960px;
  margin: -1.5rem auto 2rem;
  padding: 0 1.25rem;
}

/* Summary cards */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 3px solid var(--gold);
}

.card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
  font-family: "Poppins", sans-serif;
}

/* Charts */
.charts {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.chart-card, .table-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.35rem 1.5rem;
}

.chart-card h2, .table-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--accent-2);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  background: var(--accent-light);
  color: var(--accent-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

thead th:first-child { border-top-left-radius: 8px; }
thead th:last-child { border-top-right-radius: 8px; }

tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcfb; }

th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

footer {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 720px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
}
