


.stat-year {
  display: inline-block;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral);
  background: var(--coral-soft);
  padding: 3px 9px;
  border-radius: 999px;
}


.stat-card.accent-strip { position: relative; overflow: hidden; }
.stat-card.accent-strip::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--violet));
}


.country-hero .ch-time { margin-top: 16px; }
.ch-ring-wrap { display: flex; align-items: center; justify-content: center; position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.ch-ring-bg { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--coral-soft), var(--violet-soft) 55%, transparent 75%); }
.ch-ring-ring { position: absolute; border: 1px solid rgba(114,88,184,0.28); border-radius: 50%; }
.ch-ring-ring.r1 { width: 108px; height: 108px; }
.ch-ring-ring.r2 { width: 138px; height: 138px; border-color: rgba(225,91,69,0.2); }
.ch-ring-core {
  position: relative; z-index: 2;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(64,42,85,0.14);
}
.ch-ring-core strong { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.ch-ring-core span { margin-top: 3px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--coral); font-weight: 600; }


.population-chart-card {
  margin:0 0 20px;
  max-width: 900px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 16px;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 4px; }
.chart-legend span.item { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.actual { background: var(--coral); }
.legend-dot.projected { background: var(--violet); }
.population-line-chart { width: 100%; height: auto; margin-top: 6px; display: block; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-y-labels text, .chart-x-labels text { fill: var(--ink-soft); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.projection-label { fill: var(--violet); font-weight: 700; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.actual-line { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.projected-line { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 6; }
.actual-points circle { fill: #fff; stroke: var(--coral); stroke-width: 3; }
.projected-points circle { fill: #fff; stroke: var(--violet); stroke-width: 3; }
.projection-divider { stroke: var(--violet); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: 0.6; }
.population-chart-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.population-chart-values span { font-size: 11px; color: var(--ink-soft); background: #FAF6EE; border-radius: 999px; padding: 5px 10px; font-family: 'JetBrains Mono', monospace; }
.population-chart-values b { color: var(--ink); }


.demographic-visual-grid {
  margin:0 0 20px;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.age-structure-card, .sex-balance-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.age-structure-card h3, .sex-balance-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 18px;
}
.age-bar-row + .age-bar-row { margin-top: 16px; }
.age-bar-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.age-bar-copy strong { color: var(--ink); }
.age-bar-copy span { color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.age-track { height: 13px; background: #F3EEE8; border-radius: 999px; overflow: hidden; }
.age-fill { height: 100%; display: block; border-radius: 999px; }
.age-fill.age-young { width: 11.2%; background: var(--gold); }
.age-fill.age-working { width: 59.6%; background: var(--teal); }
.age-fill.age-older { width: 29.3%; background: var(--navy); }
.visual-note { margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.method-note { margin:12px 0 0; max-width: 900px; font-size: 12.5px; color: var(--ink-soft); }

.sex-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sex-stat { border-radius: 14px; padding: 16px; min-width: 0; }
.sex-stat.female-stat { background: var(--coral-soft); }
.sex-stat.male-stat { background: var(--navy-soft); }
.sex-icon-badge { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.sex-icon-badge.female { background: var(--coral); }
.sex-icon-badge.male { background: var(--navy); }
.sex-icon-badge svg { width: 14px; height: 14px; }
.sex-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.sex-stat strong { display: block; margin: 5px 0 2px; font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; color: var(--ink); }
.sex-stat small { color: var(--ink-soft); font-size: 12px; }
.sex-share-track { display: flex; height: 11px; overflow: hidden; border-radius: 999px; margin-top: 16px; background: #eee; }
.sex-share-track .female-share { background: var(--coral); }
.sex-share-track .male-share { background: var(--navy); }


.two-col-grid { margin:0 0 20px; max-width: 900px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.prose-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.prose-panel p { font-size: 14.5px; color: var(--ink-soft); }
.prose-panel p + p { margin-top: 12px; }
.fertility-card {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--violet-soft), #fff);
  border: 1px solid var(--line);
}
.fertility-label { display: block; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--violet); }
.fertility-card strong { display: block; font-family: 'Fraunces', serif; font-size: 42px; font-weight: 700; line-height: 1; margin: 10px 0; color: var(--ink); }
.fertility-card p { color: var(--ink-soft); font-size: 13px; }


.takeaway-grid { margin:0 0 20px; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.takeaway-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--coral);
  border-radius: 14px;
  padding: 18px 20px;
}
.takeaway-card:nth-child(2) { border-top-color: var(--violet); }
.takeaway-card:nth-child(3) { border-top-color: var(--navy); }
.takeaway-card:nth-child(4) { border-top-color: var(--teal); }
.takeaway-card strong { display: block; margin-bottom: 6px; font-size: 14.5px; }
.takeaway-card p { color: var(--ink-soft); font-size: 13px; }

.method-callout {
  margin:0 0 20px;
  max-width: 900px;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.method-callout strong { color: var(--ink); }

@media (max-width: 640px) {
  .demographic-visual-grid, .two-col-grid, .takeaway-grid { grid-template-columns: 1fr; margin-left:0; margin-right:0; }
  .population-chart-card, .method-callout { margin-left:0; margin-right:0; }
  .ch-ring-wrap { width: 96px; height: 96px; }
  .ch-ring-core { width: 64px; height: 64px; }
  .ch-ring-core strong { font-size: 15px; }
  .ch-ring-ring.r1 { width: 76px; height: 76px; }
  .ch-ring-ring.r2 { width: 96px; height: 96px; }
}


@media (max-width:720px){
  .data-table-wrap{width:auto!important;max-width:90vw!important;margin-left:0!important;margin-right:0!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
}
