/* Unify all nav items: native spans are plain inline — force inline-flex so they
   match the Website button (which needs inline-flex for icon + text alignment). */
nav[data-testid="nav-links"] > a > span {
  display: inline-flex;
  align-items: center;
}

/* External-link arrow: subtle hover animation */
.wl-arrow {
  flex: 0 0 auto;
  opacity: 0.4;
  transition: opacity 150ms ease, transform 150ms ease;
}

a:hover .wl-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Globe icon sizing */
.wl-icon {
  flex: 0 0 auto;
}

/* Keyboard focus ring on the outer <a> */
#tp-atlas-website-link:focus-visible {
  outline: 2px solid hsl(var(--ring, 218 82% 54%) / 0.65);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* Floating fallback when header injection fails */
#tp-atlas-website-link[data-placement="floating"] {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1000;
  border: 1px solid hsl(var(--border, 220 13% 91%) / 0.75);
  background: hsl(var(--background, 0 0% 100%) / 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--muted-foreground, 220 10% 46%) / 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
