/* World maps (bcWorldMap(), scripts/bc-worldmap.js). Tokens from styles/modern.css. */
.bc-wmap { margin: 0; min-width: 0; }
.bc-wmap-seg { margin: 0 0 12px; }
.bc-wmap-stage {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f6fb, #eef1f7);
  overflow: hidden;
}
.bc-wmap-loading {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) -100% 0 / 60% 100% no-repeat;
  animation: bcWmapShimmer 1.4s infinite;
}
@keyframes bcWmapShimmer { to { background-position: 200% 0; } }
.bc-wmap-stage.is-sub { aspect-ratio: 5 / 3; }
.bc-wmap-svg { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.bc-wmap-land path {
  fill: #e6e8ee;
  stroke: #fff;
  stroke-width: 0.6px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  transition: fill .25s ease, opacity .15s ease;
}
.bc-wmap-land path.has { cursor: pointer; }
.bc-wmap-land path.is-hover { stroke: var(--bc-ink, #0b0b10); stroke-width: 1.4px; }
.bc-wmap-dots circle { stroke: #fff; stroke-width: 1px; vector-effect: non-scaling-stroke; cursor: pointer; }

/* Region zoom and the USA drill-down */
.bc-wmap-regions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.bc-wmap-regions[hidden] { display: none; }
.bc-wmap-rbtn {
  appearance: none;
  border: 1px solid var(--bc-line, #e4e4ea);
  background: var(--bc-surface, #fff);
  color: var(--bc-muted, #6b6b76);
  font: inherit; font-size: 12.5px; font-weight: 550;
  padding: 5px 11px;
  border-radius: 99px;
  cursor: pointer;
}
.bc-wmap-rbtn:hover { color: var(--bc-ink, #0b0b10); }
.bc-wmap-rbtn.is-active { background: var(--bc-ink, #0b0b10); border-color: var(--bc-ink, #0b0b10); color: var(--bc-on-ink); }
.bc-wmap-rbtn--drill { border-style: dashed; }
.bc-wmap-back {
  position: absolute; left: 10px; top: 10px;
  appearance: none; border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bc-ink, #0b0b10);
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer; z-index: 3;
}
.bc-wmap-tip .bc-wmap-tip-more { opacity: .9; color: #9fc2ff; }

.bc-wmap-tip {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; gap: 1px;
  min-width: 120px; max-width: 220px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(15, 15, 22, 0.92);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.bc-wmap-tip strong { font-weight: 650; font-size: 13px; }
.bc-wmap-tip span { font-variant-numeric: tabular-nums; }
.bc-wmap-tip small { opacity: .7; font-size: 11.5px; }

.bc-wmap-legend {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 2px 0;
  color: var(--bc-muted, #6b6b76);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bc-wmap-lg-bar { flex: 1 1 auto; height: 8px; border-radius: 99px; min-width: 60px; }
.bc-wmap-lg-end { white-space: nowrap; }
.bc-wmap-caption { margin: 8px 2px 0; color: var(--bc-muted, #6b6b76); font-size: 12.5px; line-height: 1.45; }

/* Ranked country lists next to a map */
.bc-cc-list { list-style: none; margin: 0; padding: 0; }
.bc-cc-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--bc-line); font-size: 13.5px; }
.bc-cc-list li:first-child { border-top: 0; }
.bc-cc-list .bc-cc-flag { font-size: 17px; line-height: 1; }
.bc-cc-list .bc-cc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bc-ink); }
.bc-cc-list .bc-cc-val { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--bc-ink); }
.bc-cc-list .bc-cc-val small { font-weight: 500; color: var(--bc-muted); margin-left: 6px; }
