/* ── GDP per Capita map ──────────────────────────────────────────────────────── */

/* Left panel head */
.gd-panel-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.gd-panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 4px;
}
.gd-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gd-panel-sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.gd-panel-source {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 6px;
}
.gd-panel-source-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.gd-panel-source-link:hover { color: var(--ink-soft); }

/* Tier list */
.gd-tier-list {
  padding: 6px 8px 12px;
}

/* Country search results (shown when search is active) */
.gd-search-results {
  padding: 6px 8px 12px;
}
.gd-search-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}
.gd-search-country {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  color: var(--ink);
  font-family: inherit;
}
.gd-search-country:hover { background: var(--bg-warm); }
.gd-search-country-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-search-country-gdp {
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.gd-tier-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  color: var(--ink);
  font-family: inherit;
}
.gd-tier-item:hover { background: var(--bg-warm); }
.gd-tier-item--active { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.gd-tier-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gd-tier-label {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}
.gd-tier-count {
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* Map overlays */
.gd-map-title {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
}
.gd-map-title-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 3px;
}
.gd-map-title-text {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}
.gd-reset-btn {
  position: absolute;
  bottom: 40px;
  right: 14px;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.gd-reset-btn.visible { opacity: 1; pointer-events: auto; }
.gd-reset-btn:hover { background: var(--bg-warm); }

.gd-tooltip {
  position: absolute;
  bottom: 40px;
  left: 20px;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(26,58,92,0.10);
}
.gd-tooltip.visible { opacity: 1; }
.gd-tooltip-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.gd-tooltip-gdp { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.gd-tooltip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.gd-fade-top {
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none; z-index: 3;
}
.gd-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none; z-index: 3;
}

/* Right panel */
.gd-info-chevron { transition: transform 0.3s ease; }
[data-panel="right"][data-panel-open="false"] .gd-info-chevron { transform: rotate(180deg); }

.gd-info-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}
.gd-info-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gd-info-head {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  flex-shrink: 0;
}
.gd-info-tier-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 6px;
}
.gd-info-tier-range {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.gd-info-tier-desc { font-size: 13px; color: var(--ink-faint); }
.gd-info-stats { display: flex; border-bottom: 1px solid var(--rule); flex-shrink: 0; }
.gd-info-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
}
.gd-info-stat + .gd-info-stat { border-left: 1px solid var(--rule); }
.gd-info-stat-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.gd-info-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 3px;
}
.gd-info-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 16px 6px;
}
.gd-info-country-list { overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 20px; }
.gd-info-country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  transition: background 0.1s;
}
.gd-info-country:hover { background: var(--bg-warm); }
.gd-info-flag { flex-shrink: 0; }
.gd-info-country-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-info-country-gdp {
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
