:root {
  --green-900: #1d3a2a;
  --green-700: #2f6b4f;
  --green-500: #3f9d6f;
  --green-100: #e3f1ea;
  --earth: #b4682c;
  --ink: #1f2430;
  --muted: #5c6370;
  --line: #e5e8ee;
  --bg: #f7f8fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

a { color: var(--green-700); }

/* header */
.site-header {
  background: var(--green-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--earth);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--earth);
  border-radius: 10px;
  padding: 6px 12px;
  line-height: 1;
}
.brand h1 { margin: 0; font-size: 1.3rem; letter-spacing: .3px; }
.tagline { margin: 2px 0 0; font-size: .85rem; opacity: .85; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #dcefe6;
  text-decoration: none;
  font-size: .88rem;
  padding: 7px 10px;
  border-radius: 8px;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* hero */
.hero { background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #fff; }
.hero .wrap { padding-top: 28px; padding-bottom: 24px; }
.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}
.stat-num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .88rem; opacity: .85; margin-top: 6px; }
.hero-note { font-size: .92rem; opacity: .95; margin: 18px 0 0; }
.hero-note a { color: #ffe3c4; }

main.wrap { padding-top: 8px; padding-bottom: 40px; }

/* panels */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 24px;
  scroll-margin-top: 90px;
}
.panel h2 { margin: 0 0 6px; font-size: 1.35rem; color: var(--green-900); }
.muted { color: var(--muted); font-size: .92rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

.chart-box h3 { font-size: .95rem; color: #3a4250; margin: 0 0 10px; font-weight: 600; }
.chart-box.full { margin-top: 20px; }
.chart-wrap { position: relative; height: 300px; }
.chart-wrap.tall { height: 420px; }
@media (max-width: 820px) { .chart-wrap.tall { height: 360px; } }

/* table */
.table-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 12px; }
.table-tools input[type=search] {
  flex: 1 1 260px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
}
.table-tools select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  background: #fff;
}
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 900px; }
thead th {
  position: sticky; top: 0;
  background: var(--green-100);
  color: var(--green-900);
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:hover { background: #f0f6f3; }
.tag {
  display: inline-block; background: var(--green-100); color: var(--green-900);
  border-radius: 999px; padding: 1px 9px; font-size: .78rem; margin: 1px 2px 1px 0;
}
.pager { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pager button, .btn {
  background: var(--green-700); color: #fff; border: 0;
  padding: 9px 14px; border-radius: 9px; cursor: pointer; font-size: .9rem;
  text-decoration: none; display: inline-block;
}
.pager button:disabled { opacity: .45; cursor: default; }
.downloads { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* prose */
.prose { font-size: .95rem; }
.prose h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--green-900); }
.prose ul { margin: 6px 0; padding-left: 22px; }
.prose code { background: var(--green-100); padding: 1px 6px; border-radius: 6px; font-size: .86em; }

.site-footer {
  background: var(--green-900); color: #cfe3d9;
  padding: 20px 0; font-size: .88rem; margin-top: 10px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: #ffe3c4; }
