.project-node-button {
  min-width: 64px;
  min-height: 64px;
  z-index: 4;
  touch-action: manipulation;
}

.project-node-button:hover,
.project-node-button:focus-visible {
  z-index: 25;
}

.project-node-halo,
.project-node-dot,
.project-node-label {
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.project-node-button:hover .project-node-halo,
.project-node-button:focus-visible .project-node-halo {
  opacity: 0.44 !important;
  transform: scale(1.9);
  box-shadow: 0 0 0 8px var(--globe-marker-halo), 0 8px 22px var(--globe-marker-halo);
}

.project-node-button:hover .project-node-dot,
.project-node-button:focus-visible .project-node-dot {
  opacity: 1 !important;
  transform: translateY(-3px) scale(1.65);
  box-shadow: 0 0 0 2px var(--color-bg), 0 7px 20px var(--globe-marker-halo) !important;
}

.project-node-button:hover .project-node-label,
.project-node-button:focus-visible .project-node-label {
  opacity: 1 !important;
  transform: translateY(-1px);
}

.project-node-label {
  pointer-events: none;
}

.human-earth-globe .project-node-button {
  min-width: 96px;
  min-height: 96px;
}

.human-earth-globe .project-node-label {
  left: 50%;
  margin-left: 18px;
}

.human-earth-globe .project-node-halo,
.human-earth-globe .project-node-dot,
.human-earth-globe .project-node-pulse,
.human-earth-globe .project-node-button:hover .project-node-halo,
.human-earth-globe .project-node-button:focus-visible .project-node-halo,
.human-earth-globe .project-node-button:hover .project-node-dot,
.human-earth-globe .project-node-button:focus-visible .project-node-dot,
.human-earth-globe .project-node-button:hover .project-node-pulse,
.human-earth-globe .project-node-button:focus-visible .project-node-pulse {
  opacity: 0 !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.project-node-button:active .project-node-dot {
  transform: translateY(-1px) scale(1.35);
}

@media (pointer: coarse) {
  .project-node-button {
    min-width: 72px;
    min-height: 72px;
  }

  .project-node-halo {
    opacity: 0.36 !important;
    transform: scale(1.35);
  }
}

@media (max-width: 639px) {
  header > div {
    justify-content: space-between;
    gap: 12px !important;
    padding: 16px !important;
  }

  header > div > a {
    font-size: 1.0625rem !important;
    white-space: nowrap;
  }

  [role="tablist"][aria-label="View mode"] {
    flex-shrink: 0;
    gap: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 3px !important;
  }

  [role="tablist"][aria-label="View mode"] [role="tab"] {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 359px) {
  header > div {
    flex-wrap: wrap;
    justify-content: center;
  }

  header > div > a {
    width: 100%;
    text-align: center;
  }

  [role="tablist"][aria-label="View mode"] {
    margin-inline: auto !important;
  }
}
