:root {
  --bg: #0f172a;
  --bg-elevated: #111827;
  --accent: #2e7d32;
  --accent-soft: #a5d6a7;
  --accent-strong: #1b5e20;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --chip-bg: #111827;
  --chip-border: #374151;
  --tab-active: #111827;
  --tab-hover: #1f2937;
  --danger: #f97373;
  --surface-radius: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* Top bar */

.top-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
  background-color: #020617;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar h1 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}



.illinois-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.illinois-logo img {
  height: 32px;
  width: 32px;
  display: block;
  object-fit: contain;
}

/* Layout */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header */

.page-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: 24px;
  margin: 0;
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
      justify-content: center;
  justify-content: center;
}




/* Filters and tabs */

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filters-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.filters-btn .badge {
  background-color: var(--accent-strong);
  color: #022c22;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background-color: var(--chip-bg);
  font-size: 12px;
  color: var(--muted);
}

.chip-remove {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);      /* Changed from text-secondary for better contrast */
    cursor: pointer;
    font-size: 15px;         /* Slightly increased size */
    font-weight: 400; /* Forces the text to be extra bold */
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: var(--accent-strong);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tab.active, .tab-btn.active {
    background-color: #334155; /* You can also use a specific blue/orange here */
    color: white;
    font-weight: 400;
}

.tab {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
    background-color: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 500; /* Makes these stand out too */
}

.tab:hover {
  background-color: var(--tab-hover);
}

.tab.active {
    background-color: var(--accent-strong); /* Uses your theme's main color */
    color: #ffffff;                         /* White text for contrast */
    font-weight: 800;                       /* Extra bold */
    border-color: var(--accent-strong);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);  /* Makes it look "pressed" or active */
}

/* Content */

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: flex;
}

/* KPI grid */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.impact-kpi-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.kpi-card {
  background-color: var(--bg-elevated);
  border-radius: var(--surface-radius);
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.kpi-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.kpi-value {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.kpi-subtext {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Panels */

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.panel {
  background-color: var(--bg-elevated);
  border-radius: var(--surface-radius);
  border: 1px solid var(--border);
  padding: 14px 16px 18px;
}

.panel-header h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.panel-header {
    margin-bottom: 12px;
  }

.panel-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot.non-sustainable {
  background-color: #4b5563;
}

.legend-dot.sustainable {
  background-color: var(--accent);
}

.legend-dot.engaging {
  background-color: var(--accent);
}

.legend-dot.non-engaging {
  background-color: #4b5563;
}

/* Simple horizontal bar chart */

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.bar {
  position: relative;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  color: #020617;
  font-weight: 500;
}

.bar.non-sustainable {
  background: linear-gradient(90deg, #4b5563, #6b7280);
  color: #e5e7eb;
}

.bar.sustainable {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.bar.engaging {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.bar.non-engaging {
  background: linear-gradient(90deg, #4b5563, #6b7280);
  color: #e5e7eb;
}

/* Funding chart and FAQ */

.funding-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.funding-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}

.campus-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.funding-track {
  background-color: #0b1220;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  height: 24px;
}

.funding-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #022c22;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.faq-panel details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: #0b1220;
  padding: 10px 12px;
}

.faq-panel details + details {
  margin-top: 8px;
}

.faq-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.faq-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Footer */

.page-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 26px;
  border-top: 1px solid var(--border);
  background-color: #020617;
  position: sticky;
  bottom: 0;
}

.scroll-top {
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-elevated);
  color: var(--text);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .page {
    padding-inline: 12px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  .impact-kpi-grid {
    grid-template-columns: 1fr;
  }

  .funding-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ── Ranking Methodology Tab ── */
.sdg-methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.sdg-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sdg-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sdg-card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.sdg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  flex-shrink: 0;
}

/* One color per SDG — use official UN SDG colors */
.sdg-1  { background-color: #e5243b; }
.sdg-2  { background-color: #dda63a; }
.sdg-3  { background-color: #4c9f38; }
.sdg-4  { background-color: #c5192d; }
.sdg-5  { background-color: #ff3a21; }
.sdg-6  { background-color: #26bde2; }
.sdg-7  { background-color: #fcc30b; color: #333; }
.sdg-8  { background-color: #a21942; }
.sdg-9  { background-color: #fd6925; }
.sdg-10 { background-color: #dd1367; }
.sdg-11 { background-color: #fd9d24; color: #333; }
.sdg-12 { background-color: #bf8b2e; }
.sdg-13 { background-color: #3f7e44; }
.sdg-14 { background-color: #0a97d9; }
.sdg-15 { background-color: #56c02b; }
.sdg-16 { background-color: #00689d; }
.sdg-17 { background-color: #19486a; }

.sdg-metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sdg-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sdg-metric-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.sdg-metric-bar-wrap {
  width: 100%;
  height: 6px;
  background-color: #1f2937;
  border-radius: 999px;
  overflow: hidden;
}

.sdg-metric-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: 999px;
}

.sdg-metric-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-soft);
  align-self: flex-end;
}

/* ── SDG Radar Modal ── */
.sdg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sdg-modal {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.sdg-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 1px solid #374151;
  border-radius: 999px;
  color: #9ca3af;
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.sdg-modal-close:hover {
  background: #1f2937;
  color: #e5e7eb;
}

.sdg-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 4px;
  padding-right: 40px;
}

.sdg-modal-subtitle {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 20px;
}

.sdg-modal-chart-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Hide green bars — weights shown as text only */
.sdg-metric-bar-wrap,
.sdg-metric-bar {
  display: none;
}

/* Reflow metric items without the bar */
.sdg-metric-item {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 6px;
}

.sdg-metric-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sdg-metric-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Methodology note banner */
.sdg-methodology-note {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 12px;

  .sdg-methodology-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 0 0 12px;
        white-space: nowrap;
}
  color: #9ca3af;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ── Comparative Analysis Styles ── */

.comparative-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comparative-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.comparative-controls label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.compare-select {
  flex: 1;
  padding: 8px 12px;
  background-color: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-select:hover,
.compare-select:focus {
  border-color: var(--accent);
  background-color: #1f2937;
  outline: none;
}

/* ── Chart and Legend Layout ── */

.chart-and-legend-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background-color: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(31, 41, 55, 0.5);
  border-radius: 8px;
}

.comparative-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(31, 41, 55, 0.4);
  border-radius: 8px;
  flex: 1;
  min-width: 400px;
  min-height: 500px;
  position: relative;
}

.comparative-chart-container canvas {
  max-width: 100%;
  height: auto;
}

.hover-tooltip {
  position: fixed;
  background-color: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  padding: 10px;
  pointer-events: none;
  z-index: 1000;
  display: none;
  max-width: 240px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hover-tooltip::-webkit-scrollbar {
  width: 6px;
}

.hover-tooltip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.hover-tooltip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.hover-tooltip::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

#dynamic-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(31, 41, 55, 0.5);
  border-radius: 8px;
  min-width: 240px;
  max-width: 280px;
  flex-shrink: 0;
}

#dynamic-legend .legend-item {
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e5e7eb;
  font-weight: 500;
  transition: all 0.2s ease;
}

#dynamic-legend .legend-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.comparative-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 16px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 60px;
  align-items: flex-start;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .chart-and-legend-wrapper {
    flex-direction: column;
  }

  .comparative-chart-container {
    min-width: 100%;
    min-height: 400px;
  }

  #dynamic-legend {
    width: 100%;
    max-height: 300px;
    min-width: unset;
  }
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Insights List */
.insights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr));
  gap: 16px;
}

.insight-item {
  padding: 16px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.insight-item h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-soft);
}

.insight-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.insight-item strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Enhanced Comparative Controls ── */

.comparative-controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.comparative-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparative-controls label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.compare-select {
  flex: 1;
  padding: 8px 12px;
  background-color: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-select:hover,
.compare-select:focus {
  border-color: var(--accent);
  background-color: #1f2937;
  outline: none;
}

/* University Multi-Select */
.university-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.university-selector label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  opacity: 0.8;
}

.university-checkbox {
  display: none;
}

.checkbox-custom {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background-color: transparent;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
}

.checkbox-custom::after {
  content: '✓';
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.university-checkbox:checked + .checkbox-custom {
  background-color: var(--accent);
}

.university-checkbox:checked + .checkbox-custom::after {
  opacity: 1;
  color: var(--bg);
}

.checkbox-label span:last-child {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* ── Impact & Funding Tab: SDG Section ── */
.sdg-section {
  margin-top: 8px;
  background-color: rgba(34, 197, 94, 0.05);
  border-radius: var(--surface-radius);
  padding: 20px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.sdg-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sdg-section .sdg-badge {
  background-color: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sdg-section .sdg-badge:hover {
  background-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ── Impact & Funding Tab: Chart Container ── */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 16px;
}

/* ── Funding Split Layout ── */
.funding-split-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.funding-half {
  flex: 1 1 260px;
  min-width: 240px;
}

.funding-half-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
}

#fundingBarChart2024,
#fundingSourcesChart {
  width: 100% !important;
  height: 100% !important;
}

/* ── Impact & Funding Tab: Insights Panel ── */
.insights-panel .insights-list details {
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  background-color: var(--bg-elevated);
  padding: 16px 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.insights-panel .insights-list details:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.insights-panel .insights-list details[open] {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.insights-panel .insights-list details + details {
  margin-top: 12px;
}

.insights-panel .insights-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.insights-panel .insights-list summary::marker {
  display: none;
}

.insights-panel .insights-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.insights-panel .insights-list details[open] summary::after {
  content: "−";
}

.insights-panel .insights-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .sdg-section {
    padding: 16px;
  }
  .sdg-badges {
    flex-direction: column;
    align-items: center;
  }
  .chart-container {
    height: 220px;
  }
  .insights-panel .insights-list details {
    padding: 12px 14px;
  }
  .insights-panel .insights-list summary {
    font-size: 14px;
  }
}
