/**
 * GBT Solutions — "Presença Global" interactive world map
 *
 * Every colour, size and duration is a custom property on `.gbt-map`, so
 * retheming is a variable swap rather than a code change. See README.md.
 *
 * Layers, back to front:
 *   .gbt-map__canvas       SVG  — atmosphere, countries, hub glow, arcs (geographic)
 *   .gbt-map__pins         HTML — pins and pulses (screen-space, constant size)
 *   .gbt-map__card         HTML — the hover/focus tooltip
 *   .gbt-map__legend       HTML — tier legend with counts
 */

.gbt-map {
  /* ---- palette ------------------------------------------------------ */
  --gbt-bg: #1b2837;

  /* Figma: land paths are #59758F at 45% over the atmosphere. The lighter
   * "borders" in the design are just adjacent 45% fills overlapping, so a
   * hairline stroke in the same colour reproduces them. */
  --gbt-land: rgba(89, 117, 143, 0.45);
  --gbt-land-border: rgba(89, 117, 143, 0.45);
  --gbt-land-on: rgba(89, 117, 143, 0.58);
  --gbt-land-active: rgba(33, 179, 239, 0.4);
  --gbt-land-active-border: rgba(33, 179, 239, 0.75);

  --gbt-blue: #21b3ef;
  --gbt-orange: #ffa91b;
  --gbt-grey: #9eafbe;
  --gbt-white: #f6f9fc;

  --gbt-text: #f6f9fc;
  --gbt-text-muted: rgba(246, 249, 252, 0.68);
  --gbt-text-faint: rgba(246, 249, 252, 0.42);

  --gbt-panel: rgba(30, 38, 49, 0.92);
  --gbt-panel-border: rgba(246, 249, 252, 0.1);
  --gbt-divider: rgba(246, 249, 252, 0.09);

  --gbt-arc: rgba(33, 179, 239, 0.55);
  --gbt-arc-rest: rgba(122, 160, 190, 0.16);

  /* ---- type --------------------------------------------------------- */
  --gbt-font-display: "Rajdhani", "Oswald", system-ui, sans-serif;
  --gbt-font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- geometry ----------------------------------------------------- */
  --gbt-pin-sede: 16px;
  --gbt-pin-escritorio: 14px;
  --gbt-pin-presenca: 9px;
  --gbt-hit: 44px; /* invisible touch/mouse target */
  --gbt-card-w: 252px;
  --gbt-leader: 30px;
  --gbt-radius: 12px;

  /* ---- motion -------------------------------------------------------- */
  --gbt-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gbt-fast: 160ms;
  --gbt-slow: 420ms;
  --gbt-pulse-duration: 3.2s;

  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--gbt-bg);
  color: var(--gbt-text);
  font-family: var(--gbt-font-body);
  -webkit-font-smoothing: antialiased;
}

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

/* ====================================================================== *
 * Header
 * ====================================================================== */

.gbt-map__header {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  padding: 76px 24px 0;
  text-align: center;
}

.gbt-map__eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.375;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* keeps the tracked-out text optically centred */
  text-transform: uppercase;
  color: var(--gbt-blue);
}

.gbt-map__title {
  margin: 20px 0 0;
  font-family: var(--gbt-font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gbt-text);
}

.gbt-map__lede {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gbt-text-muted);
}

/* ====================================================================== *
 * Stage
 * ====================================================================== */

.gbt-map__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1063;
}

/* At Figma's proportions the title sits over the map, so the section stacks
 * both in one grid cell. Below the breakpoint they go back to flowing. */
@media (min-width: 901px) {
  .gbt-map {
    display: grid;
  }

  .gbt-map__header,
  .gbt-map__stage {
    grid-area: 1 / 1;
  }

  .gbt-map__header {
    align-self: start;
  }
}

.gbt-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- countries ------------------------------------------------------ */

.gbt-map__countries path {
  fill: var(--gbt-land);
  stroke: var(--gbt-land-border);
  stroke-width: 0.5;
  stroke-linejoin: round;
  transition: fill var(--gbt-fast) var(--gbt-ease), stroke var(--gbt-fast) var(--gbt-ease);
}

/* Countries where GBT has consultants get a barely-there lift at rest, and
 * light up properly when their pin is hovered or focused. */
.gbt-map__countries path[data-gbt-active] {
  fill: var(--gbt-land-on);
}

.gbt-map__countries path[data-gbt-highlight] {
  fill: var(--gbt-land-active);
  stroke: var(--gbt-land-active-border);
}

/* ---- connection arcs ------------------------------------------------ */

.gbt-map__arcs path {
  fill: none;
  stroke: var(--gbt-arc);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity var(--gbt-slow) var(--gbt-ease);
}

/* arcs="all" — every arc visible at rest */
.gbt-map[data-arcs="all"] .gbt-map__arcs path {
  stroke: var(--gbt-arc-rest);
  opacity: 1;
}

.gbt-map__arcs path[data-gbt-arc-on] {
  stroke: var(--gbt-arc);
  opacity: 1;
  animation: gbt-arc-draw var(--gbt-slow) var(--gbt-ease) both;
}

@keyframes gbt-arc-draw {
  from {
    stroke-dashoffset: var(--gbt-arc-len);
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ====================================================================== *
 * Pins — HTML, so they stay a constant size however the map is scaled
 * ====================================================================== */

.gbt-map__pins {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

body .gbt-map button.gbt-map__pin {
  position: absolute !important;
  width: var(--gbt-hit) !important;
  height: var(--gbt-hit) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-radius: 50% !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  color: transparent !important;
  font: inherit !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: auto;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  --gbt-pin-color: var(--gbt-grey);
  --gbt-pin-size: var(--gbt-pin-presenca);
}

body .gbt-map button.gbt-map__pin[data-tier="sede"] {
  --gbt-pin-color: var(--gbt-blue);
  --gbt-pin-size: var(--gbt-pin-sede);
  z-index: 3;
}

body .gbt-map button.gbt-map__pin[data-tier="escritorio"] {
  --gbt-pin-color: var(--gbt-orange);
  --gbt-pin-size: var(--gbt-pin-escritorio);
  z-index: 2;
}

/* the visible dot */
body .gbt-map button.gbt-map__pin::after {
  content: "" !important;
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: var(--gbt-pin-size) !important;
  height: var(--gbt-pin-size) !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%);
  background: var(--gbt-pin-color) !important;
  box-shadow: 0 0 0 1px rgba(27, 40, 55, 0.55), 0 0 12px 2px var(--gbt-pin-color) !important;
  transition: transform var(--gbt-fast) var(--gbt-ease), box-shadow var(--gbt-fast) var(--gbt-ease);
}

/* Escritório keeps a ring. Lisboa (sede) stays a solid blue dot. */
body .gbt-map button.gbt-map__pin[data-tier="escritorio"]::after {
  border: 3px solid var(--gbt-pin-color) !important;
  background: var(--gbt-white) !important;
}

/* the pulse ring */
body .gbt-map button.gbt-map__pin::before {
  content: "" !important;
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: var(--gbt-pin-size) !important;
  height: var(--gbt-pin-size) !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--gbt-pin-color) !important;
  background: none !important;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.gbt-map.is-visible .gbt-map__pin[data-pulse]::before {
  animation: gbt-pulse var(--gbt-pulse-duration) var(--gbt-ease) infinite;
  animation-delay: var(--gbt-pulse-delay, 0s);
}

@keyframes gbt-pulse {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
  }
}

body .gbt-map button.gbt-map__pin:hover,
body .gbt-map button.gbt-map__pin:focus,
body .gbt-map button.gbt-map__pin:focus-visible,
body .gbt-map button.gbt-map__pin:active {
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
}

body .gbt-map button.gbt-map__pin:hover::after,
body .gbt-map button.gbt-map__pin:focus-visible::after,
body .gbt-map button.gbt-map__pin[data-open]::after {
  transform: translate(-50%, -50%) scale(1.45);
  box-shadow: 0 0 0 1px rgba(27, 40, 55, 0.55), 0 0 20px 5px var(--gbt-pin-color) !important;
}

body .gbt-map button.gbt-map__pin:focus-visible {
  outline: 2px solid var(--gbt-white) !important;
  outline-offset: -12px !important;
}

/* other pins recede while one is active */
.gbt-map[data-active-pin] .gbt-map__pin:not([data-open])::after {
  opacity: 0.45;
}

/* legend row hover dims the other tiers */
.gbt-map[data-dim-tier] .gbt-map__pin::after {
  opacity: 0.2;
}

.gbt-map[data-dim-tier="sede"] .gbt-map__pin[data-tier="sede"]::after,
.gbt-map[data-dim-tier="escritorio"] .gbt-map__pin[data-tier="escritorio"]::after,
.gbt-map[data-dim-tier="presenca"] .gbt-map__pin[data-tier="presenca"]::after {
  opacity: 1;
}

/* ====================================================================== *
 * Tooltip card
 * ====================================================================== */

.gbt-map__card {
  position: absolute;
  z-index: 6;
  width: var(--gbt-card-w);
  padding: 18px 20px 20px;
  border-radius: var(--gbt-radius);
  border: 1px solid var(--gbt-panel-border);
  background: var(--gbt-panel);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--gbt-fast) var(--gbt-ease), transform var(--gbt-fast) var(--gbt-ease);
}

.gbt-map__card[data-open] {
  opacity: 1;
  transform: translateY(0);
}

/* the 1px leader line back to the pin */
.gbt-map__card::after {
  content: "";
  position: absolute;
  left: var(--gbt-leader-x, 50%);
  width: 1px;
  height: var(--gbt-leader);
  background: linear-gradient(var(--gbt-panel-border), rgba(246, 249, 252, 0.35));
}

.gbt-map__card[data-side="top"]::after {
  top: 100%;
}

.gbt-map__card[data-side="bottom"]::after {
  bottom: 100%;
  background: linear-gradient(rgba(246, 249, 252, 0.35), var(--gbt-panel-border));
}

.gbt-map__card-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gbt-text-faint);
}

.gbt-map__card-tier::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gbt-card-color, var(--gbt-grey));
  flex: none;
}

.gbt-map__card-name {
  margin: 8px 0 0;
  font-family: var(--gbt-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--gbt-text);
}

/* ====================================================================== *
 * Legend
 * ====================================================================== */

.gbt-map__legend {
  position: absolute;
  left: clamp(16px, 4.4vw, 64px);
  bottom: clamp(16px, 10vh, 113px);
  z-index: 4;
  width: 248px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--gbt-panel-border);
  background: var(--gbt-panel);
  backdrop-filter: blur(8px);
}

.gbt-map__legend-label {
  margin: 0 0 14px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gbt-text-faint);
}

.gbt-map__legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gbt-map__legend-item + .gbt-map__legend-item {
  border-top: 1px solid var(--gbt-divider);
}

.gbt-map__legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.gbt-map__legend-row::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  background: var(--gbt-legend-color, var(--gbt-grey));
  box-shadow: 0 0 10px 0 var(--gbt-legend-color, var(--gbt-grey));
}

.gbt-map__legend-item[data-tier="sede"] {
  --gbt-legend-color: var(--gbt-blue);
}

.gbt-map__legend-item[data-tier="escritorio"] {
  --gbt-legend-color: var(--gbt-orange);
}

.gbt-map__legend-name {
  flex: 1;
  font-family: var(--gbt-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
}

.gbt-map__legend-count {
  font-size: 0.875rem;
  color: var(--gbt-text-faint);
  font-variant-numeric: tabular-nums;
}

/* ====================================================================== *
 * Country index — screen-reader content on desktop, the real interaction
 * on small screens where a 9px pin is not a sane touch target.
 * ====================================================================== */

.gbt-map__index {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.gbt-map__index-title {
  margin: 0 0 14px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gbt-text-faint);
}

.gbt-map__index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .gbt-map button.gbt-map__chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  border: 1px solid var(--gbt-panel-border) !important;
  border-width: 1px !important;
  background: rgba(246, 249, 252, 0.04) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--gbt-text-muted) !important;
  font: inherit !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  transition: background var(--gbt-fast) var(--gbt-ease), color var(--gbt-fast) var(--gbt-ease);
}

body .gbt-map button.gbt-map__chip::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--gbt-chip-color, var(--gbt-grey)) !important;
}

.gbt-map__chip[data-tier="sede"] {
  --gbt-chip-color: var(--gbt-blue);
}

.gbt-map__chip[data-tier="escritorio"] {
  --gbt-chip-color: var(--gbt-orange);
}

body .gbt-map button.gbt-map__chip:hover,
body .gbt-map button.gbt-map__chip:focus,
body .gbt-map button.gbt-map__chip:focus-visible,
body .gbt-map button.gbt-map__chip:active,
body .gbt-map button.gbt-map__chip[aria-pressed="true"] {
  background: rgba(33, 179, 239, 0.14) !important;
  background-image: none !important;
  border: 1px solid var(--gbt-panel-border) !important;
  box-shadow: none !important;
  color: var(--gbt-text) !important;
}

/* ====================================================================== *
 * Responsive
 * ====================================================================== */

@media (max-width: 900px) {
  .gbt-map__header {
    padding: 28px 20px 16px;
  }

  .gbt-map__title {
    margin: 0;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .gbt-map__stage {
    aspect-ratio: 990 / 570;
    margin-top: 0;
  }

  /* the legend moves out of the map and under it */
  .gbt-map__legend {
    position: static;
    width: auto;
    margin: 20px auto 0;
    max-width: 420px;
  }

  /* the index becomes the primary interaction */
  .gbt-map__index {
    position: static;
    width: auto;
    height: auto;
    margin: 24px auto 0;
    padding: 0 20px 48px;
    max-width: 640px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .gbt-map__card {
    --gbt-card-w: 220px;
  }
}

@media (max-width: 560px) {
  .gbt-map__header {
    padding: 20px 16px 12px;
  }

  .gbt-map__title {
    font-size: 1.75rem;
  }

  .gbt-map__stage {
    aspect-ratio: 990 / 743;
  }

  .gbt-map__legend {
    display: flex;
    gap: 18px;
    padding: 14px 18px;
  }

  .gbt-map__legend-label {
    display: none;
  }

  .gbt-map__legend-list {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: clamp(20px, 7vw, 44px);
  }

  .gbt-map__legend-item + .gbt-map__legend-item {
    border-top: 0;
  }

  .gbt-map__legend-row {
    flex-direction: column;
    gap: 6px;
    padding: 0;
    text-align: center;
  }

  .gbt-map__legend-name {
    font-size: 0.9375rem;
  }
}

/* Layout follows the map's own width, not the browser window. A narrow
 * Elementor column on a desktop screen would otherwise keep the desktop
 * crop. JS sets data-gbt-bp from the container width. */
.gbt-map[data-gbt-bp="mid"],
.gbt-map[data-gbt-bp="compact"] {
  display: block;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__header,
.gbt-map[data-gbt-bp="compact"] .gbt-map__header,
.gbt-map[data-gbt-bp="mid"] .gbt-map__stage,
.gbt-map[data-gbt-bp="compact"] .gbt-map__stage {
  grid-area: auto;
  width: 100%;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__header,
.gbt-map[data-gbt-bp="compact"] .gbt-map__header {
  padding: 28px 20px 16px;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__title,
.gbt-map[data-gbt-bp="compact"] .gbt-map__title {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__header {
  padding: 20px 16px 12px;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__title {
  font-size: 1.75rem;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__stage {
  aspect-ratio: 990 / 570;
  margin-top: 0;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__stage {
  aspect-ratio: 990 / 743;
  margin-top: 0;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__legend,
.gbt-map[data-gbt-bp="compact"] .gbt-map__legend {
  position: static;
  width: auto;
  margin: 20px auto 0;
  max-width: 420px;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__index,
.gbt-map[data-gbt-bp="compact"] .gbt-map__index {
  position: static;
  width: auto;
  height: auto;
  margin: 24px auto 0;
  padding: 0 20px 48px;
  max-width: 640px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.gbt-map[data-gbt-bp="mid"] .gbt-map__card,
.gbt-map[data-gbt-bp="compact"] .gbt-map__card {
  --gbt-card-w: 220px;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__legend {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__legend-label {
  display: none;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__legend-list {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(20px, 7vw, 44px);
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__legend-item + .gbt-map__legend-item {
  border-top: 0;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__legend-row {
  flex-direction: column;
  gap: 6px;
  padding: 0;
  text-align: center;
}

.gbt-map[data-gbt-bp="compact"] .gbt-map__legend-name {
  font-size: 0.9375rem;
}

/* Wide container wins over a narrow browser window, and the other way around. */
.gbt-map[data-gbt-bp="wide"] {
  display: grid;
}

.gbt-map[data-gbt-bp="wide"] .gbt-map__header,
.gbt-map[data-gbt-bp="wide"] .gbt-map__stage {
  grid-area: 1 / 1;
}

.gbt-map[data-gbt-bp="wide"] .gbt-map__header {
  align-self: start;
}

.gbt-map[data-gbt-bp="wide"] .gbt-map__stage {
  aspect-ratio: 1440 / 1063;
  margin-top: 0;
}

/* A narrow window must not keep the desktop overlay, even if the map
 * element was measured wide. The heading sits above the map. */
@media (max-width: 900px) {
  .gbt-map[data-gbt-bp="wide"] {
    display: block;
  }

  .gbt-map[data-gbt-bp="wide"] .gbt-map__header,
  .gbt-map[data-gbt-bp="wide"] .gbt-map__stage {
    grid-area: auto;
    width: 100%;
  }

  .gbt-map[data-gbt-bp="wide"] .gbt-map__header {
    padding: 28px 20px 16px;
  }

  .gbt-map[data-gbt-bp="wide"] .gbt-map__title {
    margin: 0;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

@media (max-width: 560px) {
  .gbt-map[data-gbt-bp="wide"] .gbt-map__header {
    padding: 20px 16px 12px;
  }

  .gbt-map[data-gbt-bp="wide"] .gbt-map__title {
    font-size: 1.75rem;
  }
}

/* ====================================================================== *
 * Motion preferences
 * ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gbt-map *,
  .gbt-map *::before,
  .gbt-map *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .gbt-map__arcs path[data-gbt-arc-on] {
    stroke-dashoffset: 0 !important;
  }
}

/* ====================================================================== *
 * No-JS fallback — the map is decorative, the country list is the content
 * ====================================================================== */

/* The country list now takes up space, so the legend can no longer be pinned
 * to the bottom of the section — it would land on top of the list. */
.gbt-map:not(.is-ready) .gbt-map__legend {
  position: static;
  width: auto;
  max-width: 420px;
  margin: 20px auto 0;
}

.gbt-map:not(.is-ready) .gbt-map__index {
  position: static;
  width: auto;
  height: auto;
  margin: 24px auto 0;
  padding: 0 20px 48px;
  max-width: 640px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}
