/* Vector camera, screen-space overlays and the original map's motion language. */
.map-viewport {
  background: #dcecf0;
  background-image: none;
  isolation: isolate;
}

#worldImage,
#routeLayer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transform: none;
  will-change: auto;
}

#worldImage {
  z-index: 0;
}

#routeLayer {
  z-index: 1;
}

#markerLayer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: none;
  will-change: auto;
}

.route-line {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    stroke 0.22s,
    opacity 0.22s;
}

.route-line.network-route {
  stroke: #468c83;
  stroke-width: 0.8;
  stroke-dasharray: none;
  opacity: 0.15;
}

.route-line.highlighted {
  stroke: #08755f;
  stroke-width: 2;
  stroke-dasharray: 5 8;
  opacity: 0.82;
  animation: route-flow 20s linear infinite;
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -260;
  }
}

.marker {
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: auto;
  touch-action: manipulation;
  overflow: visible;
  outline-offset: 5px;
}

.marker.home {
  width: 40px;
  height: 40px;
}

.marker-core {
  position: relative;
  z-index: 2;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 2px solid #fff;
  background: #0c7864;
  box-shadow:
    0 2px 8px #104b3d30,
    0 0 0 1px #085e4e1c;
  font-size: 11px;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}

.marker-halo {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid #15997c;
  border-radius: 50%;
  background: #15997c26;
  opacity: 0;
  pointer-events: none;
  animation: marker-pulse 2.4s ease-out infinite;
  animation-delay: var(--phase, 0s);
}

@keyframes marker-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  75%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.marker-stem {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: var(--stem-length, 34px);
  height: 1px;
  transform: rotate(var(--stem-angle, -1.5708rad));
  transform-origin: 0 50%;
  background: #386c5f45;
  pointer-events: none;
  transition: opacity 0.18s;
}

.marker-label {
  z-index: 1;
  left: calc(50% + var(--label-x, 0px));
  top: calc(50% + var(--label-y, -34px));
  bottom: auto;
  padding: 4px 8px;
  border: 1px solid #8ab6a43b;
  border-radius: 7px;
  background: #fffffff2;
  color: #315747;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 3px 10px #164c3b16;
  opacity: 1;
  transform: translate(-50%, -50%);
  animation: label-breathe 2.8s ease-in-out infinite;
  animation-delay: var(--phase, 0s);
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}

@keyframes label-breathe {
  0%,
  100% {
    opacity: 0.86;
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-2px);
  }
}

.marker:hover,
.marker:focus-visible,
.marker.active,
.marker.previewed {
  z-index: 9;
}

.marker:hover .marker-core,
.marker:focus-visible .marker-core,
.marker.active .marker-core,
.marker.previewed .marker-core {
  background: #d5913d;
  border-color: #fff;
  box-shadow:
    0 0 0 5px #e3a55130,
    0 4px 13px #64451330;
}

.marker:hover .marker-label,
.marker:focus-visible .marker-label,
.marker.active .marker-label,
.marker.previewed .marker-label {
  opacity: 1;
  background: #fff;
  border-color: #cba16680;
  color: #66502c;
  box-shadow: 0 4px 14px #624b2428;
  animation-play-state: paused;
}

.marker.home .marker-core {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 4px;
  background: #fff;
  border: 2px solid #0b795f;
  box-shadow:
    0 0 0 4px #0d76621c,
    0 3px 13px #16503c25;
}

.marker.home .marker-core img {
  width: 28px;
  height: 28px;
}

.marker.home:hover .marker-core,
.marker.home:focus-visible .marker-core,
.marker.home.active .marker-core,
.marker.home.previewed .marker-core {
  border-color: #cb8c35;
  box-shadow:
    0 0 0 5px #d99a3e28,
    0 4px 15px #5d410d26;
}

.marker.offscreen {
  visibility: hidden;
  pointer-events: none;
}

.marker.offscreen *,
.marker.filtered * {
  animation-play-state: paused;
}

.marker.filtered .marker-label,
.marker.filtered .marker-stem {
  visibility: hidden;
}

.labels-hidden .marker:not(:hover):not(:focus-visible):not(.active):not(.previewed) .marker-label,
.labels-hidden .marker:not(:hover):not(:focus-visible):not(.active):not(.previewed) .marker-stem {
  visibility: hidden;
  animation-play-state: paused;
}

.map-viewport.dragging .marker-label,
.map-viewport.dragging .marker-halo {
  animation-play-state: paused;
}

.map-popover {
  position: absolute;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 292px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 62px);
  overflow: hidden;
  padding: 0;
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 18px 50px #173f342b,
    0 2px 7px #173f3414;
  cursor: default;
  transform-origin: 20px 40px;
}

.map-popover.entering {
  animation: map-card-arrive 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.map-profile-card {
  z-index: 32;
  width: 358px;
}

@keyframes map-card-arrive {
  from {
    opacity: 0;
    transform: translate(12px, 8px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.popover-heading,
.popover-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popover-heading {
  align-items: flex-start;
  padding: 13px 13px 11px 15px;
  border-bottom: 1px solid #dbe8de8f;
}

.popover-heading > div {
  min-width: 0;
}

.popover-heading h2 {
  margin-top: 2px;
  color: #264e3b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.popover-kicker {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  font-weight: 500;
  color: #7c9484;
  letter-spacing: 0.035em;
}

.popover-heading > .popover-kicker {
  align-self: center;
}

.popover-heading .icon-btn {
  flex: 0 0 auto;
  color: #789080;
  background: #edf4ee8f;
}

.popover-footer {
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #dbe8de8f;
  background: #f8fbf7d9;
}

.popover-footer > span {
  min-width: 0;
  color: #7b9280;
  font-size: 9px;
  line-height: 1.5;
}

.popover-footer .btn {
  flex: 0 0 auto;
}

.country-popover-list,
#mapProfileContent {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.country-popover-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 11px 12px;
}

.scholar-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 9px;
  border: 1px solid #dce8df;
  border-radius: 11px;
  background: #ffffffb8;
  text-align: left;
  color: #315644;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}

.entering .scholar-chip {
  animation: scholar-arrive 0.42s cubic-bezier(0.18, 0.9, 0.24, 1.08) backwards;
  animation-delay: calc(var(--chip-delay, 0ms) + 70ms);
}

@keyframes scholar-arrive {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.scholar-chip > .avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
}

.scholar-chip > span:not(.avatar) {
  flex: 1 1 auto;
  min-width: 0;
}

.scholar-chip strong,
.scholar-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scholar-chip strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.scholar-chip small {
  margin-top: 2px;
  color: #91a195;
  font-size: 9px;
  line-height: 1.5;
}

.scholar-chip > svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: #91b09d;
}

.scholar-chip:hover,
.scholar-chip:focus-visible,
.scholar-chip.selected {
  background: #f1f8f2;
  border-color: #8bbfa1;
  box-shadow: 0 4px 13px #245d3e14;
  transform: translateY(-2px);
}

.map-profile-card .profile-hero {
  align-items: flex-start;
  gap: 13px;
  padding: 17px 16px 14px;
}

.map-profile-card .profile-hero > div {
  min-width: 0;
}

.map-profile-card .profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  font-size: 20px;
}

.map-profile-card .profile-hero h2 {
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}

.map-profile-card .profile-hero .tag {
  font-size: 9px;
  padding: 2px 6px;
}

.map-profile-card .profile-body {
  min-height: 0;
  max-height: none;
  padding: 0 16px 17px;
  overflow: visible;
}

.map-profile-card .profile-description {
  padding: 12px 13px;
  font-size: 11px;
  line-height: 1.85;
  background: #eff6efb3;
}

.map-profile-card .contact-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
}

.map-profile-card .contact-field {
  padding: 9px 0;
}

.map-profile-card .profile-notes {
  margin-top: 12px;
}

.map-toolbar {
  gap: 12px;
  flex: 0 0 auto;
}

.map-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.map-toolbar-actions .btn.small {
  padding: 5px 8px;
  font-size: 10px;
}

.map-toggle[aria-pressed='true'] {
  background: #eaf5ee;
  color: #1a7553;
  box-shadow: inset 0 0 0 1px #c8e2d0;
}

#mapFullscreenBtn[aria-pressed='true'] {
  background: #eaf5ee;
  color: #146644;
}

.zoom-controls {
  z-index: 35;
  border-color: #d6e4dcd4;
  background: #ffffffec;
  box-shadow: 0 4px 18px #173f341a;
}

.zoom-controls button {
  background: transparent;
}

.zoom-controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.map-hint {
  z-index: 4;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ffffffcc;
  color: #568273;
  pointer-events: none;
}

body.map-expanded {
  overflow: hidden;
}

body.map-expanded::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 79;
  background: #193d3252;
  backdrop-filter: blur(3px);
}

.map-card.expanded {
  position: fixed;
  inset: 16px;
  z-index: 80;
  width: auto;
  height: calc(100dvh - 32px);
  min-height: 0;
  max-height: none;
  border-color: #ffffffd9;
  box-shadow: 0 24px 80px #14352b40;
}

.person-card,
.person-row,
.country-row {
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}

.person-card:hover,
.person-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 9px 26px #1d4d3514;
}

.person-row:hover,
.country-row:hover {
  transform: translateX(3px);
}

dialog[open] {
  animation: dialog-arrive 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

dialog[open]::backdrop {
  animation: backdrop-arrive 0.2s ease-out backwards;
}

@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes backdrop-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .map-toolbar {
    gap: 8px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .map-toolbar > .section-label .pill {
    display: none;
  }
}

@media (max-width: 740px) {
  .map-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 11px;
  }
  .map-toolbar > .section-label {
    font-size: 11px;
  }
  .map-toolbar-actions {
    margin-left: auto;
    gap: 2px;
  }
  .map-toolbar-actions .btn.small {
    padding: 5px 6px;
    font-size: 9px;
  }
  .map-card.expanded {
    inset: 8px;
    height: calc(100dvh - 16px);
    border-radius: 14px;
  }
  .map-popover {
    border-radius: 15px;
  }
  .popover-heading {
    padding-top: 10px;
    padding-bottom: 9px;
  }
  .popover-footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .marker-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marker-halo,
  .marker-label,
  .route-line,
  .map-popover.entering,
  .entering .scholar-chip,
  dialog[open],
  dialog[open]::backdrop {
    animation: none !important;
  }
  .marker-halo {
    opacity: 0.14;
    transform: none;
  }
  .marker-label {
    opacity: 1;
  }
  .scholar-chip,
  .person-card,
  .person-row,
  .country-row {
    transition: none !important;
  }
}

/* Original webpage layout and campus treatment, adapted to the local vector camera. */
.atlas-page {
  height: 100vh;
  max-height: 100vh;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.atlas-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0;
  max-width: none;
  padding: 10px 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 14px 45px rgba(21,52,73,.10);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 40;
}

.atlas-heading .eyebrow {
  margin: 0 0 4px;
  color: #0284c7;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
}

.atlas-heading h1 {
  margin: 0;
  font-size: clamp(22px,2.35vw,34px);
  line-height: 1.02;
  letter-spacing: -.05em;
  color: #0f2940;
}

.subtitle {
  margin: 5px 0 0;
  max-width: 980px;
  line-height: 1.35;
  color: #5a6e82;
  font-size: 12px;
}

.stats {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 265px;
}

.stat {
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(14,165,233,.16);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 25px rgba(21,52,73,.08);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: 19px;
  color: #075985;
  line-height: 1;
}

.stat span {
  font-size: 11px;
  color: var(--muted);
}

.atlas-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  display: block;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.map-card,
.side-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.map-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  height: 100%;
  min-height: 0;
  background: rgba(255,255,255,.62);
  display: flex;
  align-items: center;
  justify-content: center;
}

.atlas-search {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 25;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  width: min(560px,calc(100% - 36px));
}

.search {
  position: relative;
  flex: 1;
}

.search input {
  width: 100%;
  border: 1px solid rgba(14,165,233,.20);
  background: rgba(255,255,255,.82);
  border-radius: 16px;
  padding: 12px 14px 12px 38px;
  outline: none;
  color: #153047;
  box-shadow: 0 12px 32px rgba(21,52,73,.12),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}

.search:before {
  content: "🔎";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: .66;
  z-index: 1;
}

.clear-btn {
  border: 0;
  background: #0ea5e9;
  color: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14,165,233,.24);
  white-space: nowrap;
}

.clear-btn:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 30px;
  overflow: hidden;
  background: #d9edf4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
  touch-action: none;
  cursor: grab;
  flex: 0 0 auto;
}

.map-stage.dragging {
  cursor: grabbing;
}

.side-card {
  position: absolute;
  right: clamp(18px,2.2vw,38px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 22;
  width: min(370px,calc(100vw - 64px));
  max-height: calc(100% - 52px);
  overflow: auto;
  padding: 16px;
  background: rgba(255,255,255,.80);
}

.panel-empty {
  min-height: 245px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg,rgba(240,249,255,.9),rgba(255,255,255,.55));
  border: 1px dashed rgba(14,165,233,.25);
  padding: 24px;
}

.panel-empty .icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.panel-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.country-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(14,165,233,.12);
}

.country-list h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #18425c;
}

.country-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-height: 180px;
  overflow: auto;
}

.country-btn {
  border: 1px solid rgba(14,165,233,.16);
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 7px 10px;
  color: #16445f;
  font-size: 12px;
  cursor: pointer;
}

.country-btn:hover,
.country-btn.active {
  background: #075985;
  color: white;
}

.legend {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 25;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  color: #647589;
  font-size: 12px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(14,165,233,.14);
  border-radius: 999px;
  padding: 9px 12px;
  box-shadow: 0 12px 32px rgba(21,52,73,.12);
  backdrop-filter: blur(12px);
}

.legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg,#0284c7,#22c55e);
  vertical-align: middle;
  margin-right: 5px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  min-width: 265px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(14,165,233,.16);
  box-shadow: 0 10px 26px rgba(21,52,73,.08);
  backdrop-filter: blur(12px);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #647589;
  font-weight: 900;
  font-size: 12px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.lang-btn.active {
  background: #075985;
  color: #fff;
  box-shadow: 0 8px 18px rgba(7,89,133,.20);
}

.side-card {
  transition: width .38s cubic-bezier(.2,.8,.2,1),max-height .38s cubic-bezier(.2,.8,.2,1),padding .38s cubic-bezier(.2,.8,.2,1),border-radius .38s cubic-bezier(.2,.8,.2,1),transform .38s cubic-bezier(.2,.8,.2,1),box-shadow .38s cubic-bezier(.2,.8,.2,1),opacity .28s ease;
}

.side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.zoom-controls {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(14,165,233,.16);
  box-shadow: 0 14px 38px rgba(21,52,73,.16);
  backdrop-filter: blur(14px);
}

.zoom-controls button {
  border: 0;
  background: #075985;
  color: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7,89,133,.18);
  transition: transform .18s ease,filter .18s ease;
}

.zoom-controls button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.zoom-controls input {
  width: 32px;
  height: 126px;
  accent-color: #0ea5e9;
  writing-mode: vertical-lr;
  direction: rtl;
}

.zoom-value {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #075985;
}

.side-card-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.side-card-title strong {
  font-size: 14px;
  color: #18425c;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-card-title span {
  font-size: 11px;
  color: #647589;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-toggle {
  border: 0;
  border-radius: 999px;
  background: #075985;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7,89,133,.22);
  white-space: nowrap;
  transition: transform .22s ease,filter .22s ease;
}

.side-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.side-card-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 820px;
  overflow: hidden;
  transition: opacity .28s ease,transform .38s cubic-bezier(.2,.8,.2,1),max-height .38s cubic-bezier(.2,.8,.2,1);
}

.map-card {
  background: radial-gradient(circle at 18% 12%, rgba(14,165,233,.10), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(240,249,255,.46));
  border: 1px solid rgba(255,255,255,.82);
}

.map-stage {
  border: 1px solid rgba(14,165,233,.24);
  box-shadow: 0 0 0 10px rgba(255,255,255,.58),
    0 18px 48px rgba(21,52,73,.16),
    inset 0 0 0 1px rgba(255,255,255,.78);
}

.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 21;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.68),
    inset 0 18px 42px rgba(255,255,255,.16),
    inset 0 -18px 42px rgba(14,165,233,.08);
}

.atlas-page {
  position: relative;
  z-index: 1;
}

.atlas-page {
  position: relative;
  z-index: 1;
}

.atlas-hero {
  background: rgba(255,255,255,.70) !important;
}

.map-card {
  background: radial-gradient(circle at 18% 12%, rgba(14,165,233,.08), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.50), rgba(240,249,255,.34)) !important;
}

.side-card {
  background: rgba(255,255,255,.72) !important;
}

.atlas-hero {
  background: rgba(255,255,255,.56) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
  border-color: rgba(255,255,255,.58) !important;
  box-shadow: 0 10px 34px rgba(21,52,73,.08) !important;
}

.map-card {
  background: radial-gradient(circle at 18% 12%, rgba(14,165,233,.045), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.34), rgba(240,249,255,.22)) !important;
  backdrop-filter: blur(7px) saturate(1.03) !important;
  border-color: rgba(255,255,255,.52) !important;
  box-shadow: 0 18px 54px rgba(21,52,73,.12) !important;
}

.side-card {
  background: rgba(255,255,255,.56) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
  border-color: rgba(255,255,255,.56) !important;
  box-shadow: 0 18px 54px rgba(21,52,73,.12) !important;
}

.map-stage {
  box-shadow: 0 0 0 8px rgba(255,255,255,.34),
    0 14px 38px rgba(21,52,73,.12),
    inset 0 0 0 1px rgba(255,255,255,.58) !important;
}

.atlas-search .search input,
.clear-btn,
.legend,
.panel-empty,
.country-btn,
.lang-switch,
.stat {
  backdrop-filter: blur(7px) saturate(1.03) !important;
}

.side-card-header {
  cursor: grab;
  user-select: none;
}

.side-card-header button,
.side-card-header a {
  cursor: pointer;
}

.legend {
  z-index: 9999 !important;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.legend:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(21,52,73,.16);
}

.legend::after {
  content: " ×";
  font-weight: 900;
  color: #075985;
  margin-left: 8px;
  opacity: .72;
}

:root {
  --ink: #193044;
  --muted: #647589;
  --green: #075985;
  --green-dark: #06456a;
  --line: rgba(14, 165, 233, .18);
}

body {
  background: linear-gradient(#f6fbff2e, #f6fbff2e), url("assets/campus.jpg") center / 100% 100% no-repeat fixed;
  color: var(--ink);
}
.atlas-page {
  font: 16px/normal Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
.atlas-hero { flex: none; }
.atlas-heading { min-width: 0; }
.header-tools {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.atlas-menu { position: relative; }
.atlas-menu summary, .local-nav button, .map-options button {
  border: 1px solid #0ea5e933;
  border-radius: 999px;
  padding: 7px 11px;
  color: #075985;
  font-size: 12px;
  font-weight: 700;
  background: #ffffffd9;
  cursor: pointer;
}
.atlas-menu summary:hover, .local-nav button:hover, .map-options button:hover {
  background: #e0f2fe;
}
.menu-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffffff5;
  box-shadow: 0 16px 40px #1534492e;
}
.menu-sheet nav { border-bottom: 1px solid var(--line); }
.menu-sheet button {
  display: block;
  width: 100%;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  font-size: 13px;
}
.menu-sheet button:hover, .menu-sheet button.active { background: #e0f2fe; }
.menu-sheet .save-status { padding: 8px 12px; }
.local-workspace {
  min-height: 0;
  overflow: auto;
  border-radius: 24px;
  background: #f8fbfdf5;
  padding: 16px 24px;
  font: 14px/1.55 "Segoe UI", "Microsoft YaHei", sans-serif;
}
[data-view-mode="map"] .local-workspace { display: none; }
.local-nav { display: flex; gap: 6px; margin-bottom: 15px; flex-wrap: wrap; }
.map-card { container-type: size; }
.map-stage {
  flex: none;
  border: 0;
  width: min(100cqw, 177.77778cqh);
  height: auto;
  aspect-ratio: 16 / 9;
}
.map-options {
  display: flex;
  gap: 4px;
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 24;
}
.map-options button { display: grid; place-items: center; }
.map-options [aria-pressed="false"].map-toggle { color: #647589; opacity: .8; }
.zoom-controls { right: auto; }
.zoom-controls button { padding: 0; font-size: 15px; }
.zoom-controls .zoom-value { color: #075985; font-size: 12px; }
.side-card { right: clamp(28px, 3vw, 58px); }
.side-card-header { touch-action: none; }
.side-card.collapsed { width: 190px; border-radius: 20px; padding: 10px 12px; }
.side-card.collapsed .side-card-header { margin-bottom: 0; }
.side-card.collapsed .side-card-title span { display: none; }
.side-card.placed {
  transform: none;
  right: auto;
  bottom: auto;
  transition: none;
}
.explorer-caption { display: flex; align-items: center; justify-content: space-between; }
.explorer-caption button { padding: 4px 8px; }
.explorer-summary { margin: 0 0 7px; font-size: 12px; }
.country-grid { align-content: flex-start; }
.country-grid .person-row { width: 100%; border-radius: 14px; }
.marker-stem { display: none; }
.marker-core {
  width: 27px;
  min-width: 27px;
  height: 27px;
  border: 3px solid #ffffffe6;
  background: linear-gradient(135deg, #0284c7, #22c55e);
  box-shadow: 0 0 0 8px #0ea5e921, 0 10px 28px #0ea5e957;
  font-weight: 900;
}
.marker-halo { border-color: #0ea5e933; background: #0ea5e915; }
.marker.home, .marker.home .marker-core { width: 52px; min-width: 52px; height: 52px; }
.marker.home .marker-core {
  border: 3.5px solid #ffffffe6;
  padding: 6px;
  box-shadow: 0 0 0 10px #7c3aed29, 0 14px 34px #3b82f65c;
}
.marker.home .marker-core img { width: 100%; height: 100%; }
.marker:is(:hover, :focus-visible, .active, .previewed) .marker-core {
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 0 0 10px #ef444424, 0 12px 30px #ef444457;
}
.marker-label {
  color: #16445f;
  background: #ffffffd6;
  border: 1px solid #0ea5e938;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 8px 22px #15344929;
}
.marker.home .marker-label { color: #7c2d12; border-color: #ea580c42; }
.overview .marker-label { left: 50%; top: calc(50% - 34px); }
.overview .marker.home .marker-label { top: calc(50% - 46px); }
.route-line.network-route { stroke: #0369a1; opacity: 0; }
.route-line.highlighted { stroke: #0369a1; }
.map-popover { color: #193044; box-shadow: 0 20px 60px #1434493d; }
.map-profile-card { border-radius: 24px; }
.popover-heading h2 { color: #18425c; }
.popover-footer { background: #f0f9ffd9; }
.country-popover-list { flex-flow: row wrap; gap: 8px; }
.scholar-chip {
  border: 1px solid #0ea5e92e;
  background: #f0f9ffe6;
  border-radius: 999px;
  color: #075985;
  min-height: 0;
  max-width: 100%;
  padding: 8px 10px;
}
.scholar-chip:hover, .scholar-chip.selected { background: #0ea5e9; color: white; }
.scholar-chip strong { font-size: 12px; font-weight: 800; }
.scholar-chip > .avatar, .scholar-chip small, .scholar-chip > svg { display: none; }
.map-profile-card .profile-avatar { width: 82px; height: 82px; border-radius: 25px; }
.map-profile-card .profile-hero h2 { color: #193044; font-size: 23px; }
.map-profile-card .profile-description { background: #f0f9ffb3; font-size: 13px; }
.contact-field span { user-select: text; }
.map-card.expanded { max-height: none; }

@media (max-width: 900px) {
  .atlas-page { padding: 6px; gap: 6px; }
  .atlas-hero { padding: 9px 12px; border-radius: 18px; gap: 8px; }
  .atlas-heading h1 { font-size: clamp(17px, 4vw, 24px); }
  .atlas-hero .eyebrow, .atlas-hero .subtitle, .atlas-hero .stats { display: none; }
  .hero-right { min-width: 0; }
  .lang-btn, .atlas-menu summary { padding: 5px 7px; font-size: 11px; }
  .header-tools { gap: 3px; }
  .atlas-search { top: 10px; left: 10px; width: min(520px, calc(100% - 20px)); gap: 6px; }
  .atlas-search .search { min-width: 0; }
  .atlas-search .search input, .clear-btn { font-size: 12px; }
  .map-stage { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 18px; }
  .map-card { padding: 3px; border-radius: 20px; }
  .side-card {
    width: min(370px, calc(100% - 28px));
    right: 14px;
    top: auto;
    bottom: 52px;
    transform: none;
    padding: 10px;
    border-radius: 20px;
    max-height: 32%;
  }
  .side-card .panel-empty, .side-card .side-card-title span { display: none; }
  .side-card-header { margin: 0; }
  .side-card .country-list { margin-top: 8px; padding-top: 6px; }
  .side-card .country-grid { max-height: 90px; }
  .zoom-controls { left: 10px; bottom: 44px; padding: 6px; gap: 4px; }
  .zoom-controls input { height: 70px; }
  .legend { left: 9px; bottom: 9px; font-size: 10px; padding: 5px 7px; }
  .legend span + span { display: none; }
  .map-options { right: 9px; bottom: 9px; }
  .map-options button { padding: 5px 7px; font-size: 10px; }
  .marker-label { font-size: 10px; padding: 3px 6px; }
  .local-workspace { padding: 12px; }
}
