:root {
  --ink: #15241f;
  --muted: #68766f;
  --paper: #f3f5ef;
  --panel: #fff;
  --lime: #d8ff65;
  --green: #174f3b;
  --line: #d7ddd6;
  --risk: #c25445;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
header {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: #f3f5eff2;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--lime);
}
nav {
  display: flex;
  gap: 28px;
  margin-left: 6vw;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
nav a.active {
  color: var(--ink);
}
.period {
  margin-left: auto;
  color: var(--muted);
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 44px 4vw 70px;
}
.hidden {
  display: none;
}
.hero {
  background: var(--green);
  color: white;
  border-radius: 26px;
  padding: 54px;
  min-height: 330px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 70px solid var(--lime);
  border-radius: 50%;
  right: -120px;
  top: -100px;
  opacity: 0.8;
}
.population-clock {
  position: absolute;
  right: 42px;
  top: 36px;
  z-index: 2;
  width: 330px;
  padding: 18px 20px;
  border: 1px solid #789185;
  border-radius: 14px;
  background: #103d2fdd;
  backdrop-filter: blur(8px);
}
.population-clock span,
.population-clock small {
  display: block;
  color: #b9cabf;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.population-clock strong {
  display: block;
  color: var(--lime);
  font-size: 28px;
  margin: 7px 0 5px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.population-clock small { letter-spacing: 0; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #7d9187;
}
.hero .eyebrow {
  color: var(--lime);
}
h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 8px 0 18px;
  max-width: 840px;
}
.hero > p:not(.eyebrow) {
  font-size: 19px;
  max-width: 670px;
  color: #d8e5df;
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 28px;
}
select,
button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  background: white;
  color: var(--ink);
}
button {
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 800;
  cursor: pointer;
}
.secondary {
  background: transparent;
  color: white;
  border-color: #789185;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.stat,
.panel,
.table-wrap,
#worldMap,
.country-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat {
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 7px;
}
.panel {
  padding: 30px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
.panel h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.product {
  padding: 14px;
  border-top: 3px solid var(--green);
  background: var(--paper);
}
.product small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}
.page-title h1 {
  font-size: 48px;
}
.filters {
  display: flex;
  gap: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 980px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bar {
  width: 90px;
  height: 7px;
  background: #e6ebe5;
  border-radius: 10px;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: var(--green);
}
.bar.risk i {
  background: var(--risk);
}
#worldMap {
  height: 620px;
  padding: 8px;
}
.country-detail {
  margin-top: 14px;
  padding: 18px;
}
.country-detail strong {
  font-size: 20px;
}
footer {
  padding: 25px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.ledger-intro{max-width:820px;color:var(--muted);font-size:17px;margin:-8px 0 24px}.ledger-stats .stat strong{font-size:25px}.ledger-stats small{display:block;color:var(--muted);margin-top:4px}.ledger-table{min-width:1500px}.ledger-table td:not(:first-child){font-variant-numeric:tabular-nums;text-align:right}.ledger-table th:not(:first-child){text-align:right}
.not-applicable{display:inline-block;max-width:110px;color:var(--muted);font-size:12px;line-height:1.2}
@media (max-width: 800px) {
  .population-clock {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-bottom: 25px;
  }
  header {
    height: auto;
    padding: 16px 5%;
    flex-wrap: wrap;
    gap: 12px;
  }
  nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 16px;
    overflow: auto;
  }
  .hero {
    padding: 32px 24px;
  }
  .hero:after {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-title {
    align-items: start;
    flex-direction: column;
  }
  .filters {
    width: 100%;
    flex-wrap: wrap;
  }
  #worldMap {
    height: 470px;
  }
}
