/* ── Research partners map ── */
.pm-map {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pm-svg { display: block; width: 100%; height: auto; }
.pm-sea { fill: #eef3fb; }
.pm-grat { fill: none; stroke: rgba(79,70,229,0.07); stroke-width: 1; }
.pm-country { fill: #ffffff; stroke: #cbd5e1; stroke-width: 0.8; stroke-linejoin: round; }
.pm-country.pm-focus { fill: #e0e7ff; stroke: #a5b4fc; }

.pm-arc { fill: none; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.45; transition: opacity var(--transition), stroke-width var(--transition); }
.pm-arc-stay { stroke: #0891b2; }
.pm-arc-project { stroke: #4f46e5; }
.pm-arc.is-hover, .pm-arc.is-active { opacity: 1; stroke-width: 2.6; stroke-dasharray: none; }

.pm-mark { cursor: pointer; outline: none; }
.pm-halo { fill: currentColor; opacity: 0; transition: opacity var(--transition); }
.pm-dot { fill: currentColor; stroke: #fff; stroke-width: 2.5; transition: r var(--transition); }
.pm-home { color: #D3208B; }
.pm-project { color: #4f46e5; }
.pm-stay { color: #0891b2; }
.pm-consortium { color: #e08e00; }
.pm-consortium .pm-dot { fill: #fff7e6; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 3 2.5; }
.pm-count { fill: #fff; font: 700 12px 'Inter', sans-serif; pointer-events: none; }
.pm-label {
  fill: var(--text-primary); font: 600 18px 'Inter', sans-serif;
  paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none;
}
.pm-sublabel {
  fill: var(--text-secondary); font: 500 13px 'Inter', sans-serif;
  paint-order: stroke; stroke: rgba(255,255,255,0.92); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none;
}
.pm-zoom { fill: rgba(211,32,139,0.06); stroke: #D3208B; stroke-width: 1.5; stroke-dasharray: 4 3; }
.pm-zoom-link { fill: none; stroke: #D3208B; stroke-width: 1.2; stroke-dasharray: 4 3; opacity: 0.6; }
.pm-inset-frame { fill: none; stroke: #D3208B; stroke-width: 1.5; opacity: 0.7; }
.pm-inset-title { fill: #D3208B; font: 700 14px 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.pm-mark:hover .pm-halo, .pm-mark:focus-visible .pm-halo, .pm-mark.is-hover .pm-halo { opacity: 0.18; }
.pm-mark.is-active .pm-halo { opacity: 0.3; }
.pm-mark:focus-visible .pm-dot { stroke: var(--text-primary); }

.pm-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 12px 18px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-secondary);
}
.pm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pm-legend li { display: flex; align-items: center; gap: 7px; }
.pm-sw { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.pm-sw-home { background: #D3208B; }
.pm-sw-project { background: #4f46e5; }
.pm-sw-stay { background: #0891b2; }
.pm-sw-consortium { background: #fff7e6; border: 2px dashed #e08e00; }
.pm-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.pm-stats b { color: var(--accent-1); font-size: 0.95rem; }
.pm-hint { color: var(--text-muted); font-style: italic; }

.pm-stage { position: relative; }
.pm-pop {
  position: absolute; z-index: 5; width: 360px; max-height: min(78%, 560px);
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.06);
  font-size: 0.88rem;
  animation: pm-pop-in 0.18s ease-out;
}
.pm-pop[hidden] { display: none; }
@keyframes pm-pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.pm-close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--bg-secondary); color: var(--text-secondary);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.pm-close:hover { background: rgba(79,70,229,0.1); color: var(--accent-1); }
.pm-body { overflow-y: auto; padding: 0 18px 18px; }
.pm-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 50px 10px 18px; border-top: 4px solid; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pm-head-home { border-top-color: #D3208B; }
.pm-head-project { border-top-color: #4f46e5; }
.pm-head-stay { border-top-color: #0891b2; }
.pm-head-consortium { border-top-color: #e08e00; }
.pm-flag { font-size: 1.6rem; line-height: 1; }
.pm-head h3 { font-size: 1.05rem; margin-bottom: 3px; }
.pm-place { color: var(--text-muted); font-size: 0.8rem; }
.pm-h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  margin: 8px 0 8px;
}
.pm-h4-project { color: #4f46e5; }
.pm-h4-stay { color: #0891b2; }
.pm-items { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pm-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.pm-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pm-period { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.pm-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.pm-item p { color: var(--text-secondary); font-size: 0.82rem; margin-top: 6px; line-height: 1.55; }

@media (max-width: 640px) {
  .pm-pop.is-sheet { position: static; width: auto; max-height: none; margin: 0 10px 12px; animation: none; }
  .pm-hint { display: none; }
}
@media (max-width: 560px) {
  .pm-label { font-size: 26px; stroke-width: 5px; }
  .pm-sublabel { display: none; }
  .pm-inset-title { font-size: 20px; }
}
