* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f4;
  color: #1f2937;
  line-height: 1.5;
}

a { color: #0f766e; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dbe4db;
  position: sticky;
  top: 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #14532d;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-content { padding: 2rem 0 4rem; }
.site-footer {
  border-top: 1px solid #dbe4db;
  padding: 1.5rem 0 3rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.hero, .panel, .country-card, .result-card, .calculator-result {
  background: white;
  border: 1px solid #dbe4db;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20, 83, 45, 0.05);
}

.hero {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.hero p { margin: 0; font-size: 1.1rem; color: #374151; }

.button, button {
  display: inline-block;
  background: #166534;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #e6f4ea;
  color: #14532d;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.country-card, .panel, .result-card, .calculator-result {
  padding: 1.25rem;
}

.country-card h3, .panel h2, .result-card h3 { margin-top: 0; }

.muted { color: #6b7280; }
.small { font-size: 0.95rem; }

.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid #dbe4db;
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

th { background: #f8faf8; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input, select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: white;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 700;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat {
  background: #f8faf8;
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
}

.warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.compare-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.compare-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.compare-option {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid #dbe4db;
  border-radius: 16px;
  padding: 1rem;
  background: #f8faf8;
  cursor: pointer;
}

.compare-option.selected {
  border-color: #166534;
  background: #ecfdf5;
}

.compare-option input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
}
