.contact-network {
  align-items: start;
  display: grid;
  gap: clamp(36px, 4.5vw, 68px);
  grid-template-columns: minmax(390px, 0.62fr) minmax(0, 1fr);
}

.contact-copy h1 {
  font-size: clamp(2.55rem, 3.2vw, 3.55rem);
  max-width: 620px;
}

.contact-copy .lead {
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  line-height: 1.72;
  margin-bottom: 28px;
  max-width: 520px;
}

.contact-info-list {
  display: grid;
  gap: 11px;
  max-width: 430px;
}

.contact-info-list a {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  display: grid;
  font-size: 1.02rem;
  font-weight: 800;
  gap: 4px;
  min-height: 68px;
  padding: 14px 15px;
  text-decoration: none;
  transition:
    background-color var(--motion-normal) var(--ease-refined),
    border-color var(--motion-normal) var(--ease-refined),
    box-shadow var(--motion-normal) var(--ease-refined),
    color var(--motion-normal) var(--ease-refined),
    transform var(--motion-normal) var(--ease-refined);
}

.contact-info-list a:hover,
.contact-info-list a:focus-visible {
  border-color: rgba(20, 93, 160, 0.45);
  box-shadow: var(--shadow-clickable);
  outline: none;
  transform: translateY(-3px);
}

.contact-info-list a:focus-visible {
  box-shadow: var(--shadow-clickable), var(--focus-ring);
}

.contact-info-list a:active {
  transform: translateY(0) scale(0.99);
  transition-duration: var(--motion-fast);
}

.contact-info-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.connections-panel {
  display: grid;
  gap: 15px;
  min-width: 0;
}

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

.connections-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.connections-header h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 6px;
  white-space: nowrap;
}

.connections-header p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

.map-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 10px;
  justify-content: flex-end;
  line-height: 1.2;
  text-transform: uppercase;
}

.map-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.map-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-origin,
.legend-node {
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.legend-origin {
  background: var(--blue-dark);
}

.legend-node {
  background: var(--sky);
}

.legend-line {
  background: var(--blue);
  height: 2px;
  width: 22px;
}

.research-connections-map {
  background:
    radial-gradient(circle at 22% 20%, rgba(98, 168, 229, 0.14), transparent 34%),
    radial-gradient(circle at 78% 42%, rgba(20, 93, 160, 0.08), transparent 36%),
    #f7fbff;
  border: 1px solid rgba(215, 229, 243, 0.86);
  box-shadow: 0 20px 52px rgba(16, 36, 63, 0.1);
  height: clamp(560px, 45vw, 650px);
  min-height: 560px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--motion-slow) var(--ease-refined),
    transform var(--motion-slow) var(--ease-refined);
  width: 100%;
}

.research-connections-map.map-ready {
  opacity: 1;
  transform: translateY(0);
}

.map-fallback {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  min-height: inherit;
  padding: 24px;
  text-align: center;
}

.connections-tooltip {
  box-shadow: 0 18px 44px rgba(16, 36, 63, 0.2) !important;
  box-sizing: border-box !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
  min-width: min(250px, calc(100vw - 32px)) !important;
  overflow: visible !important;
  white-space: normal !important;
  width: max-content !important;
}

.echarts-tooltip-card {
  box-sizing: border-box;
  color: var(--ink);
  height: auto;
  max-width: min(360px, calc(100vw - 32px));
  min-width: min(250px, calc(100vw - 32px));
  overflow-wrap: break-word;
  white-space: normal;
  width: max-content;
  word-break: normal;
}

.echarts-tooltip-card strong {
  color: var(--blue-dark);
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.echarts-tooltip-card span,
.echarts-tooltip-card em,
.echarts-tooltip-card p {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.46;
  margin: 0 0 5px;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: normal;
}

.echarts-tooltip-card em {
  color: var(--blue);
  font-weight: 800;
}

.map-detail-card {
  align-items: center;
  background: rgba(234, 244, 255, 0.76);
  border: 1px solid rgba(215, 229, 243, 0.9);
  box-sizing: border-box;
  color: var(--blue-dark);
  display: grid;
  gap: 4px;
  height: auto;
  justify-self: stretch;
  min-height: 82px;
  min-width: 0;
  overflow-wrap: break-word;
  padding: 13px 15px;
  transition:
    background-color var(--motion-normal) var(--ease-refined),
    border-color var(--motion-normal) var(--ease-refined);
  width: 100%;
  word-break: normal;
}

.map-detail-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.map-detail-card span {
  color: var(--blue);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.map-detail-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: normal;
}

.map-tooltip-description {
  line-height: 1.5;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: normal;
}

@media (max-width: 1180px) {
  .contact-network {
    grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1fr);
  }

  .research-connections-map {
    height: 540px;
    min-height: 540px;
  }
}

@media (max-width: 1000px) {
  .contact-network {
    grid-template-columns: 1fr;
  }

  .contact-copy h1,
  .contact-copy .lead,
  .contact-info-list {
    max-width: 720px;
  }

  .connections-header {
    align-items: start;
    flex-direction: column;
  }

  .map-legend {
    justify-content: flex-start;
  }

  .research-connections-map {
    height: 500px;
    min-height: 500px;
  }

}

@media (max-width: 640px) {
  .contact-copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }

  .research-connections-map {
    height: 420px;
    min-height: 420px;
  }

  .connections-header h2 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-info-list a {
    transition-duration: 1ms;
  }

  .contact-info-list a:hover,
  .contact-info-list a:focus-visible,
  .contact-info-list a:active {
    transform: none;
  }

  .research-connections-map {
    opacity: 1;
    transform: none;
    transition-duration: 1ms;
  }
}

