.ip-example .ip-address code {
  position: relative;
  isolation: isolate;
}

.ip-example .ip-address code::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--brand-signal) 36%, var(--surface-secondary));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-screenshot-link {
    --shot-offset: 8px;
    --shot-duration: 220ms;
  }

  .hero-screenshot-link[data-entrance="waiting"] {
    transform: translateY(var(--shot-offset));
  }

  .hero-screenshot-link[data-entrance="shown"] {
    transition: transform var(--shot-duration) var(--ease-ui), border-color var(--duration-fast) var(--ease-ui);
  }

  @media (max-width: 540px) {
    .hero-screenshot-link {
      --shot-offset: 4px;
      --shot-duration: var(--motion-ui);
    }
  }

  .ip-example[data-highlight="waiting"] .ip-address code::before {
    opacity: 0;
  }

  .ip-example[data-highlight="shown"] .ip-address code::before {
    transition: opacity var(--motion-ui) var(--ease-ui);
  }

  .ip-example[data-highlight="shown"] .ip-station-remote code::before {
    transition-delay: 120ms;
  }
}
