/* World map with routes (geo-map.js). Colours are custom properties on .mw-geo:
   the base map is context, routes, pins and labels carry the contrast. Strokes
   are in screen pixels because the map is re-projected at every size. The pin
   shadow (--mw-geo-shadow), the label drop shadow, radius and weights are
   properties too, so a design system reaches every literal. */

.mw-geo {
  --mw-geo-land: #22335f;
  --mw-geo-border: #0a1532;
  --mw-geo-grid: rgb(255 255 255 / .06);
  --mw-geo-accent: #2f5bff;
  --mw-geo-accent-line: #8fa8ff;
  --mw-geo-route: #ffd27a;
  --mw-geo-head: #fff;
  --mw-geo-pin: #ffd27a;
  --mw-geo-pin-ink: #0a1532;
  --mw-geo-hub: #fff;
  --mw-geo-label-bg: #0a1532;
  --mw-geo-label-fg: #fff;
  --mw-geo-label-note: #c9d3ee;
  --mw-geo-label-line: rgb(255 255 255 / .18);
  --mw-geo-hub-bg: var(--mw-geo-route);
  --mw-geo-hub-fg: #0a1532;
  --mw-geo-shadow: rgb(0 0 0 / .5);
  --mw-geo-label-shadow: 0 10px 24px -12px rgb(0 0 0 / .7);
  --mw-geo-label-radius: 999px;
  --mw-geo-label-weight: 600;
  --mw-geo-label-strong-weight: 700;
  position: relative;
}

.mw-geo__svg { display: block; width: 100%; height: auto; overflow: hidden; }
.mw-geo__graticule { fill: none; stroke: var(--mw-geo-grid); stroke-width: .6; }
.mw-geo__country { fill: var(--mw-geo-land); }
.mw-geo__borders { fill: none; stroke: var(--mw-geo-border); stroke-width: .6; stroke-linejoin: round; }
.mw-geo__country--hl { fill: var(--mw-geo-accent); stroke: var(--mw-geo-accent-line); stroke-width: .7; stroke-linejoin: round; }

.mw-geo__halo, .mw-geo__core { fill: none; stroke: var(--mw-geo-route); stroke-linecap: round; stroke-linejoin: round; }
.mw-geo__halo { stroke-width: 9; stroke-opacity: .2; }
.mw-geo__core { stroke-width: 2; }
.mw-geo__route--dashed .mw-geo__core { stroke-dasharray: 8 5; stroke-linecap: butt; }
.mw-geo__route--dotted .mw-geo__core { stroke-width: 2.6; stroke-dasharray: .1 6; }
.mw-geo__head-glow { fill: var(--mw-geo-route); opacity: .5; }
.mw-geo__head-dot { fill: var(--mw-geo-head); }

.mw-geo__shadow { fill: var(--mw-geo-shadow); }
.mw-geo__ripple { fill: none; stroke: var(--mw-geo-pin); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mw-geo__marker { fill: var(--mw-geo-pin); stroke: var(--mw-geo-pin-ink); stroke-width: 1.2; }
.mw-geo__marker-dot { fill: var(--mw-geo-pin-ink); }

.mw-geo__hub-halo { fill: var(--mw-geo-route); opacity: .18; }
.mw-geo__hub-ring { fill: none; stroke: var(--mw-geo-route); stroke-width: 2; }
.mw-geo__hub-dot { fill: var(--mw-geo-hub); }

/* Labels: HTML in screen space, always horizontal, on an opaque pill so the
   text keeps its contrast over any country, route or ocean. */
.mw-geo__labels { position: absolute; inset: 0; pointer-events: none; }
.mw-geo__label {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px 6px;
  border-radius: var(--mw-geo-label-radius);
  background: var(--mw-geo-label-bg);
  color: var(--mw-geo-label-fg);
  box-shadow: inset 0 0 0 1px var(--mw-geo-label-line), var(--mw-geo-label-shadow);
  font-size: .8rem;
  font-weight: var(--mw-geo-label-weight);
  line-height: 1.2;
  white-space: nowrap;
}
.mw-geo__label b { font-weight: var(--mw-geo-label-strong-weight); }
.mw-geo__label small { color: var(--mw-geo-label-note); font-size: .92em; font-weight: var(--mw-geo-label-weight); font-variant-numeric: tabular-nums; }
.mw-geo__label--hub { background: var(--mw-geo-hub-bg); color: var(--mw-geo-hub-fg); box-shadow: var(--mw-geo-label-shadow); }
.mw-geo__label--hub small { color: inherit; }

/* Armed (JavaScript on, motion allowed): a label shows when its pin lands,
   by class and a timed transition, never by an opacity that follows input. */
.mw-geo--armed .mw-geo__label {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s linear, transform .2s linear, visibility 0s .2s;
}
.mw-geo--armed .mw-geo__label--in {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--mw-ease, cubic-bezier(.16, 1, .3, 1)), transform .5s var(--mw-ease, cubic-bezier(.16, 1, .3, 1)), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .mw-geo__label { transition: none !important; }
}
