#activity-map {
  height: clamp(320px, 55vh, 500px);
  width: 100%;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  z-index: 0;
}
.activity-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  list-style: none;
  padding: 0;
  margin: .8rem 0 .3rem;
  font-size: .9rem;
}
.map-key {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  display: inline-block;
}
.activity-map-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.map-key-upcoming, .map-key-upcoming-affiliation { background: #f1c40f; }
.map-key-past { background: #1f77b4; }
.map-key-current-affiliation { background: #2ca02c; }
.map-key-past-affiliation { background: #d62728; }
.activity-map-caption { font-size: .85rem; color: #59666d; }
.activity-map-pin {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid white;
  box-shadow: -1px 2px 4px #0005;
}
.activity-map-pin::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 6px;
  background: white;
  border-radius: 50%;
}
.map-pin-past { background: #1f77b4; }
.map-pin-upcoming, .map-pin-upcoming-affiliation { background: #f1c40f; }
.map-pin-current-affiliation { background: #2ca02c; }
.map-pin-past-affiliation { background: #d62728; }
.activity-map-popup { max-height: 260px; overflow-y: auto; }
.activity-map-popup ul { padding-left: 1.2rem; margin: .6rem 0 0; }
.activity-map-popup li { margin-bottom: .65rem; }
.activity-map-popup li span { color: #59666d; }
