:root {
  --bg: #08180d;
  --panel: rgba(255,255,255,0.86);
  --panel-strong: rgba(255,255,255,0.96);
  --text: #16321e;
  --muted: #587060;
  --green: #2d8a42;
  --green-dark: #0f5f2c;
  --line: rgba(18, 69, 38, 0.12);
  --shadow: 0 20px 60px rgba(5, 40, 20, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 220, 126, 0.28), transparent 30%),
    linear-gradient(180deg, #0e2f18 0%, #175825 28%, #e4efbe 68%, #f7f8ee 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page-shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; }
.topbar, .panel-head, .results-head, .search-grid, .hero-actions, .brand { display: flex; align-items: center; }
.topbar, .panel-head, .results-head { justify-content: space-between; gap: 16px; }
.hero { padding: 18px 0 22px; }
.brand { gap: 14px; }
.brand-logo { width: 52px; height: 52px; border-radius: 16px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 700; }
.topbar h1, .panel h3, .hero-card h3 { margin: 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 24px; margin-top: 28px; align-items: start; }
.hero h2 { color: white; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.04; margin: 0 0 16px; max-width: 10ch; }
.hero-copy { color: rgba(255,255,255,0.9); font-size: 1.03rem; max-width: 62ch; line-height: 1.7; }
.hero-actions { gap: 12px; margin: 24px 0 28px; flex-wrap: wrap; }
.primary-btn, .secondary-btn, .ghost-btn, .chip, .category-btn {
  border: 1px solid transparent; border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: 160ms ease;
}
.primary-btn { background: white; color: var(--green-dark); font-weight: 700; }
.secondary-btn, .ghost-btn { background: rgba(255,255,255,0.14); color: white; border-color: rgba(255,255,255,0.16); }
.ghost-btn { color: var(--text); background: rgba(255,255,255,0.74); border-color: var(--line); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .chip:hover, .category-btn:hover { transform: translateY(-1px); }
.hero-card, .panel, .detail-shell {
  background: var(--panel); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.36); border-radius: 28px; box-shadow: var(--shadow);
}
.hero-card { overflow: hidden; }
.hero-card img { aspect-ratio: 16/12; object-fit: cover; }
.hero-card-body { padding: 18px 20px 22px; }
.hero-card-body ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 700px; }
.stat-card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: 16px; color: white; }
.stat-card strong { display: block; font-size: 1.65rem; margin-bottom: 4px; }
main { display: grid; gap: 22px; }
.panel { padding: 22px; }
.select-wrap { display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
select, input {
  width: 100%; border: 1px solid var(--line); background: var(--panel-strong); color: var(--text);
  border-radius: 18px; padding: 14px 16px; outline: none;
}
input:focus, select:focus { border-color: rgba(45,138,66,0.55); box-shadow: 0 0 0 4px rgba(45,138,66,0.12); }
.search-grid { gap: 12px; margin-top: 18px; }
.search-grid input { flex: 1; }
.chip-row, .category-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip, .category-btn { background: #f4f8ef; color: var(--text); border-color: var(--line); }
.chip.active, .category-btn.active { background: var(--green); color: white; border-color: var(--green); }
.content-grid { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.filter-panel { position: sticky; top: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.data-card {
  border: 1px solid var(--line); border-radius: 24px; padding: 18px; background: var(--panel-strong);
  display: grid; gap: 12px;
}
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; background: #eef7e9; color: var(--green-dark); font-size: 0.84rem; font-weight: 700; }
.data-card h4 { margin: 0; font-size: 1.15rem; }
.data-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.link-btn {
  border: 0; background: transparent; color: var(--green-dark); font-weight: 700; cursor: pointer; padding: 0;
}
.results-head p, .meta-text { color: var(--muted); margin: 4px 0 0; }
.detail-modal { width: min(860px, calc(100% - 24px)); border: 0; padding: 0; background: transparent; }
.detail-modal::backdrop { background: rgba(5,22,12,0.6); backdrop-filter: blur(4px); }
.detail-shell { width: 100%; padding: 28px; position: relative; }
.close-btn { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: #eef7e9; font-size: 1.5rem; cursor: pointer; }
.detail-columns { display: grid; gap: 16px; }
.detail-columns h2 { margin: 0; font-size: 2rem; }
.detail-columns section { border-top: 1px solid var(--line); padding-top: 14px; }
.detail-columns ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
@media (max-width: 960px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
@media (max-width: 720px) {
  .page-shell { width: min(100% - 20px, 1200px); }
  .stat-grid, .card-grid { grid-template-columns: 1fr; }
  .topbar, .panel-head, .results-head, .search-grid { flex-direction: column; align-items: stretch; }
  .hero h2 { max-width: none; }
}
