/* ── Compass needle ─────────────────────────────────────────── */
.compass-needle {
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, theme('colors.indigo.500') 50%, theme('colors.slate.400') 50%);
  border-radius: 2px;
  transform-origin: 50% 100%;
  position: absolute;
  bottom: 50%;
  left: 50%;
  margin-left: -2px;
  transition: transform 1s cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-btn { transition: color .15s, border-color .15s; }

/* ── Skeleton loaders ───────────────────────────────────────── */
.skeleton {
  display: block;
  height: 0.875rem;
  border-radius: 0.25rem;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.06) 25%,
    rgba(0,0,0,0.12) 37%,
    rgba(0,0,0,0.06) 63%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.4s ease infinite;
}
.dark .skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 37%,
    rgba(255,255,255,0.06) 63%);
  background-size: 400% 100%;
}
@keyframes skeleton-pulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.skeleton + .skeleton { margin-top: 0.5rem; }
.skeleton.tall { height: 1.25rem; }
.skeleton.short { width: 40%; }
.skeleton.medium { width: 70%; }

/* ── Tooltip ────────────────────────────────────────────────── */
.tip {
  position: relative;
  cursor: help;
}
.tip:hover .tip-body,
.tip:focus-within .tip-body {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.tip-body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 16rem;
  padding: .5rem .75rem;
  background: theme('colors.slate.900');
  color: white;
  font-size: 0.75rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}

/* ── Mobile tab labels ─────────────────────────────────────── */
@media (max-width: 480px) {
  .tab-label { display: none; }
}
