.investment-map {
    --map-neutral: #dedede;
    --map-neutral-hover: #c8c8c8;
    --map-current: #7194b8;
    --map-target: #abc7df;
    --map-active: #315f89;
    --map-ink: #171717;
    --map-muted: #66645f;
    --map-rule: #d6d2ca;
    --map-bg: #f4f1eb;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    grid-template-areas: "graphic panel" "legend panel";
    gap: 22px 30px;
    width: 100%;
    color: var(--map-ink);
    font-family: inherit;
  }

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

  .investment-map__graphic {
    grid-area: graphic;
    min-width: 0;
    align-self: center;
    position: relative;
  }

  .investment-map__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .investment-map__svg path {
    fill: var(--map-neutral);
    stroke: #9f9f9f;
    stroke-width: .55;
    vector-effect: non-scaling-stroke;
    transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
  }

  .investment-map__svg path:not([data-country]):hover {
    fill: var(--map-neutral-hover);
  }

  .investment-map__svg [data-country="US"],
  .investment-map__svg [data-country="MX"],
  .investment-map__svg [data-country="PT"] { fill: var(--map-current); }

  .investment-map__svg [data-country="BR"],
  .investment-map__svg [data-country="CO"] { fill: var(--map-target); }

  .investment-map__svg [data-country] { cursor: pointer; }

  .investment-map__svg [data-country]:hover,
  .investment-map__svg [data-country].is-hovered,
  .investment-map__svg [data-country].is-focused,
  .investment-map__svg [data-country].is-selected {
    fill: var(--map-active);
    stroke: #173d61;
    stroke-width: 1.35;
    filter: drop-shadow(0 2px 3px rgba(31, 66, 98, .2));
  }

  .investment-map__svg [data-country]:focus { outline: none; }

  .investment-map__svg [data-country]:focus-visible {
    outline: 3px solid #101010;
    outline-offset: 4px;
  }

  .investment-map__markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .investment-map__marker {
    position: absolute;
    left: var(--marker-x);
    top: var(--marker-y);
    min-height: 36px;
    padding: 6px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 241, 235, .9);
    color: var(--map-ink);
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-13px, -50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: 600 11px/1.1 inherit;
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .investment-map__marker-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border: 2px solid var(--map-bg);
    border-radius: 50%;
    background: var(--map-current);
    box-shadow: 0 0 0 1px rgba(23, 23, 23, .28);
    transition: background 180ms ease, transform 180ms ease;
  }

  .investment-map__marker--target .investment-map__marker-dot { background: var(--map-target); }

  .investment-map__marker-line {
    width: 10px;
    height: 1px;
    background: currentColor;
    opacity: .42;
  }

  .investment-map__marker:hover,
  .investment-map__marker.is-hovered,
  .investment-map__marker.is-selected {
    color: var(--map-active);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 12px rgba(31, 66, 98, .16);
  }

  .investment-map__marker:hover .investment-map__marker-dot,
  .investment-map__marker.is-hovered .investment-map__marker-dot,
  .investment-map__marker.is-selected .investment-map__marker-dot {
    background: var(--map-active);
    transform: scale(1.2);
  }

  .investment-map__panel {
    grid-area: panel;
    align-self: stretch;
    min-width: 0;
    padding: 22px 0 22px 28px;
    border-left: 1px solid var(--map-rule);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .investment-map__eyebrow {
    margin: 0 0 8px;
    color: var(--map-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .investment-map__country {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2.1vw, 38px);
    font-weight: 400;
    line-height: 1.08;
  }

  .investment-map__item + .investment-map__item {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--map-rule);
  }

  .investment-map__item-title {
    margin: 0 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 1.45vw, 24px);
    font-weight: 600;
    line-height: 1.22;
  }

  .investment-map__item-body {
    margin: 0;
    color: #31302d;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.48;
  }

  .investment-map__panel-content.is-changing {
    opacity: .25;
    transform: translateY(4px);
  }

  .investment-map__panel-content {
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .investment-map__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--map-rule);
  }

  .investment-map__nav-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--map-rule);
    border-radius: 50%;
    background: transparent;
    color: var(--map-ink);
    cursor: pointer;
    font: 400 24px/1 inherit;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .investment-map__nav-button:hover,
  .investment-map__nav-button:focus-visible {
    border-color: var(--map-active);
    background: var(--map-active);
    color: #fff;
    outline: none;
  }

  .investment-map__legend {
    grid-area: legend;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-left: 5%;
    color: var(--map-muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .investment-map__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .investment-map__legend-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 50%;
    background: var(--map-current);
  }

  .investment-map__legend-dot--target { background: var(--map-target); }

  @media (max-width: 767px) {
    .investment-map {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "graphic" "legend" "panel";
      gap: 18px;
    }

    .investment-map__graphic { overflow: hidden; }

    .investment-map__marker {
      min-width: 0;
      min-height: 28px;
      padding: 4px 6px;
      background: rgba(244, 241, 235, .94);
      font-size: 8px;
      gap: 3px;
      transform: translate(-12px, -50%);
    }

    .investment-map__marker::after {
      content: "";
      position: absolute;
      inset: -8px -5px;
    }

    .investment-map__marker-line { width: 6px; }

    .investment-map__marker[data-marker-country="US"] { --marker-y: 31% !important; }
    .investment-map__marker[data-marker-country="MX"] { --marker-y: 48% !important; }
    .investment-map__marker[data-marker-country="CO"] { --marker-y: 67% !important; }
    .investment-map__marker[data-marker-country="BR"] { --marker-y: 84% !important; }
    .investment-map__marker[data-marker-country="PT"] { --marker-x: 55% !important; --marker-y: 24% !important; }

    .investment-map__panel {
      min-height: 210px;
      padding: 24px 0 0;
      border-top: 1px solid var(--map-rule);
      border-left: 0;
      justify-content: flex-start;
    }

    .investment-map__legend {
      gap: 9px 18px;
      padding-left: 0;
      font-size: 12px;
    }

    .investment-map__country { margin-bottom: 18px; }

    .investment-map__nav {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-top: 26px;
      padding-top: 18px;
      border-top: 1px solid var(--map-rule);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .investment-map__svg path,
    .investment-map__panel-content,
    .investment-map__marker,
    .investment-map__marker-dot,
    .investment-map__nav-button { transition: none; }
  }
