/* ── AktivAsia Design System ───────────────────────────────────────────── */
:root {
  --brand:       #821545;
  --brand-dark:  #5e0f31;
  --grad-start:  #ff960b;
  --grad-end:    #f93a3a;
  --bg:          #ffffff;
  --bg-alt:      #f5f4ee;
  --text:        #131625;
  --text-meta:   #788099;
  --border:      #e8e6e0;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow:      0 4px 20px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.02);
  --shadow-hover:0 12px 32px rgba(130,21,69,.08), 0 4px 8px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p, li, td, th { line-height: 1.6; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--brand);
  padding: 16px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
}
.site-header .logo span {
  display: inline-block;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-meta { color: rgba(255,255,255,.65); font-size: .85rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--brand);
  padding: 48px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 48px;
  background: var(--bg-alt);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 480px; margin: 0 auto 28px; }

/* ── Pill button ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
  animation: fadeUp 0.6s ease-out both;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px) scale(1.01); }
.card-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-meta);
  margin-bottom: 6px;
}
.card-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}
.card-sub { font-size: .85rem; color: var(--text-meta); }

/* ── KPI grid ────────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* ── Country selector grid ───────────────────────────────────────────────── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.country-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .25s ease, transform .25s ease;
  display: block;
  animation: fadeUp 0.6s ease-out both;
}
.country-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px) scale(1.02); }
.country-card .flag { font-size: 3rem; margin-bottom: 12px; }
.country-card .country-name {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
  color: var(--brand);
}
.country-card .stats {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.country-card .stat-num { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.country-card .stat-lbl { font-size: .72rem; color: var(--text-meta); text-transform: uppercase; letter-spacing: .06em; }
.country-card.backbone { background: var(--brand); color: #fff; }
.country-card.backbone .country-name { color: #fff; }
.country-card.backbone .stat-lbl { color: rgba(255,255,255,.7); }

/* ── Section header ──────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 40px;
}
.section-header h2 { color: var(--brand); }
.section-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--text-meta);
  border: 1px solid var(--border);
}

/* ── Portal nav tabs ─────────────────────────────────────────────────────── */
.portal-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.portal-nav .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.nav-tab {
  padding: 16px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-meta);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  cursor: pointer;
}
.nav-tab:hover { color: var(--brand); }
.nav-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Portal subheader ────────────────────────────────────────────────────── */
.portal-header {
  background: var(--brand);
  padding: 28px 0 36px;
}
.portal-header .back-link {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.portal-header .back-link:hover { color: #fff; }
.portal-header h1 { color: #fff; margin-bottom: 4px; }
.portal-header .subtitle { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ── Report sections ─────────────────────────────────────────────────────── */
.report-section { padding: 32px 0 48px; display: none; }
.report-section.active { display: block; }

/* ── Chart containers ────────────────────────────────────────────────────── */
.chart-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow .25s ease, transform .25s ease;
  animation: fadeUp 0.6s ease-out both;
}
.chart-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.chart-card h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-meta);
  margin-bottom: 20px;
}
.chart-wrap { position: relative; height: 280px; }
.chart-wrap.tall { height: 380px; }
.chart-wrap.short { height: 180px; }

/* ── Two-column grid ─────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 768px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* ── Funnel bar ──────────────────────────────────────────────────────────── */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.funnel-label { width: 180px; flex-shrink: 0; font-size: .85rem; color: var(--text-meta); font-weight: 600; }
.funnel-bar-wrap { flex: 1; background: var(--bg-alt); border-radius: 8px; height: 28px; overflow: hidden; }
.funnel-bar {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand), #c03070);
  transition: width .6s ease;
  display: flex;
  align-items: center;
  padding-left: 10px;
  min-width: 40px;
}
.funnel-bar span { color: #fff; font-size: .8rem; font-weight: 700; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin-top: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
th {
  text-align: left;
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-meta);
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-alt); }

/* ── Status badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-completed    { background: #dcfce7; color: #166534; }
.badge-upcoming     { background: #fef3c7; color: #92400e; }
.badge-ongoing,
.badge-in-progress  { background: #dbeafe; color: #1e40af; }
.badge-postponed    { background: #fce7f3; color: #9d174d; }
.badge-cancelled    { background: #fee2e2; color: #991b1b; }
.badge-on-hold      { background: #f3f4f6; color: #374151; }
.badge-not-attended { background: #fff7ed; color: #c2410c; }
.badge-selected     { background: #ede9fe; color: #5b21b6; }

/* ── Progress bars (training types) ─────────────────────────────────────── */
.type-grid { display: flex; flex-direction: column; gap: 16px; }
.type-row { display: flex; flex-direction: column; gap: 6px; }
.type-header { display: flex; justify-content: space-between; align-items: baseline; }
.type-name { font-weight: 700; font-size: .95rem; }
.type-count { font-size: .85rem; color: var(--text-meta); }
.type-bar-wrap { background: var(--bg-alt); border-radius: 8px; height: 8px; }
.type-bar {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transition: width .6s ease;
}

/* ── Likert competency rows ──────────────────────────────────────────────── */
.likert-table { width: 100%; }
.likert-table th { background: var(--bg-alt); }
.likert-val {
  font-weight: 700;
  font-size: 1.05rem;
}
.likert-delta {
  font-size: .8rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.delta-pos { background: #dcfce7; color: #166534; }
.delta-neg { background: #fee2e2; color: #991b1b; }

/* ── Select dropdown ─────────────────────────────────────────────────────── */
select.filter {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 36px 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23821545' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
select.filter:hover  { border-color: #c4b8c0; }
select.filter:focus  { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(130,21,69,.12); }

/* ── Feedback accordion ──────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 12px; }
.accordion-header {
  padding: 14px 20px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: .95rem;
}
.accordion-header:hover { background: var(--bg-alt); }
.accordion-chevron { transition: transform .2s; color: var(--text-meta); }
.accordion.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 20px 20px; background: var(--bg); }
.accordion.open .accordion-body { display: block; }
.response-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.response-item:last-child { border-bottom: none; }
.response-q { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-meta); margin-bottom: 4px; }
.response-a { font-size: .9rem; }

/* ── Backbone map grid ───────────────────────────────────────────────────── */
.country-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.country-summary-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.country-summary-card .cs-flag { font-size: 2rem; margin-bottom: 8px; }
.country-summary-card .cs-name { font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-meta); margin-bottom: 12px; }
.country-summary-card .cs-num { font-size: 1.8rem; font-weight: 900; color: var(--brand); }
.country-summary-card .cs-lbl { font-size: .75rem; color: var(--text-meta); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 40px; color: var(--text-meta); font-size: .95rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,.6);
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
  margin-top: 60px;
}
.site-footer strong { color: #fff; }

/* ── Loading spinner ─────────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 12px;
  color: var(--text-meta);
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Pagination Controls ─────────────────────────────────────────────────── */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-meta);
}
.pagination-controls .pg-total { font-weight: 600; }
.pagination-controls .pg-btns {
  display: flex;
  gap: 8px;
}
.pg-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pg-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: #d0cec5;
}
.pg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .funnel-label { width: 120px; font-size: .78rem; }
  .country-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Circle flags ─────────────────────────────────────────────────────────── */
.country-flag {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(130,21,69,.18), 0 2px 6px rgba(130,21,69,.10);
}
.flag-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(130,21,69,.18), 0 2px 6px rgba(130,21,69,.10);
}

/* ── Funnel with percentages ──────────────────────────────────────────────── */
.funnel-pct {
  font-size: 1rem;
  color: var(--grad-start);
  font-weight: 700;
  width: 70px;
  flex-shrink: 0;
  text-align: right;
}

/* ── Speedometer chart ────────────────────────────────────────────────────── */
.speedometer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.speedometer-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.speedometer-card .sp-label { font-size: .8rem; font-weight: 700; color: var(--text-meta); margin-bottom: 8px; }
.speedometer-card .sp-pct { font-size: 1.8rem; font-weight: 900; color: var(--brand); }
.speedometer-card .sp-sub { font-size: .75rem; color: var(--text-meta); }

/* ── Year tab pills ───────────────────────────────────────────────────────── */
.year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.year-tab {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--text-meta);
  border: 1.5px solid var(--border);
  cursor: pointer;
}
.year-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Table note ──────────────────────────────────────────────────────────── */
.table-note {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--text-meta);
  font-style: italic;
}

/* ── Filter row ───────────────────────────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.filter-row select, .filter-row input[type="checkbox"] { cursor: pointer; }

/* ── Training category badges ─────────────────────────────────────────────── */
.training-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.tc-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow);
}
.tc-card .tc-header {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}
.tc-card.completed .tc-header { color: #166534; }
.tc-card.ongoing .tc-header   { color: #1e40af; }
.tc-card.upcoming .tc-header  { color: #92400e; }
.tc-item { font-size: .85rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.tc-item:last-child { border-bottom: none; }
.tc-item .tc-name { font-weight: 600; }
.tc-item .tc-date { font-size: .75rem; color: var(--text-meta); }

/* ── Community impact row ─────────────────────────────────────────────────── */
.impact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px; left: 14px;
  font-size: 2rem;
  color: var(--brand);
  font-weight: 900;
  line-height: 1;
}
.testimonial-card .tc-training {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-meta);
  margin-bottom: 6px;
}
.testimonial-card .tc-text { font-size: .95rem; line-height: 1.6; }

/* ── Feedback table (Qualitative) ────────────────────────────────────────── */
.feedback-table-wrap { overflow-x: auto; max-height: none; }

/* ── Total impact landing page ────────────────────────────────────────────── */
.impact-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.impact-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 48px;
  background: var(--bg-alt);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.impact-hero h1 { color: #fff; margin-bottom: 8px; }
.impact-hero .subtitle { color: rgba(255,255,255,.75); font-size: 1.05rem; }

@media (max-width: 600px) {
  .training-categories { grid-template-columns: 1fr; }
  .impact-row { grid-template-columns: 1fr 1fr; }
}

/* ── At A Glance / index KPI center ──────────────────────────────────────── */
#grand-kpi { justify-content: center; }
#grand-kpi .card { text-align: center; }

/* At A Glance KPI icon circles */
.kpi-glance .card { display: flex; flex-direction: column; align-items: center; }
.kpi-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(130,21,69,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  line-height: 1;
  margin: 0 auto 14px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(130,21,69,.18), 0 2px 6px rgba(130,21,69,.10);
  transition: box-shadow .25s ease, transform .25s ease;
}
.kpi-glance .card:hover .kpi-icon {
  box-shadow: 0 12px 32px rgba(130,21,69,.28), 0 4px 10px rgba(130,21,69,.15);
  transform: scale(1.06);
}
.kpi-glance .card-value { font-size: 2rem; font-weight: 900; color: var(--brand); margin-bottom: 4px; }
.kpi-glance .card-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-meta); margin-bottom: 2px; }
.kpi-glance .card-sub { font-size: .75rem; color: var(--text-meta); }

/* ── Country grid: backbone full width ───────────────────────────────────── */
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.country-grid .country-card:first-child { grid-column: 1 / -1; }

/* ── See Reports button ──────────────────────────────────────────────────── */
.btn-see-reports {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: linear-gradient(90deg, #ff960b, #f93a3a);
  color: #fff;
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-see-reports:hover { opacity: .85; }

/* ── Qualitative — remove gap between filter and chart ───────────────────── */
#section-r3 .chart-card .filter-row { margin-bottom: 0; }
#section-r3 .chart-card .chart-wrap { margin-top: 8px; }

/* ── Inline delta badges ─────────────────────────────────────────────────── */
.delta.pos { color: #16a34a; font-size: .82em; margin-left: 4px; }
.delta.neg { color: #dc2626; font-size: .82em; margin-left: 4px; }

/* ── Completed/Planned grid ──────────────────────────────────────────────── */
.cpby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 8px; }
.cpby-card { background: #f5f4ee; border-radius: 12px; padding: 16px; text-align: center; }
.cpby-card .cpby-num { font-size: 1.6rem; font-weight: 800; color: #821545; }
.cpby-card .cpby-label { font-size: .8rem; color: #788099; margin-top: 4px; }
