/* Showcase additions: the hover easing and the showcase popup. Everything else is the site's own generated CSS. */

/* Hover timing measured on the live site: about 0.38 s, ease in-out (reference/MOTION.md row 3). */
[data-highlight], [data-highlight] * {
  transition: background-color 0.4s cubic-bezier(0.44, 0, 0.56, 1), border-color 0.4s cubic-bezier(0.44, 0, 0.56, 1),
    transform 0.4s cubic-bezier(0.44, 0, 0.56, 1), opacity 0.4s cubic-bezier(0.44, 0, 0.56, 1);
}

/* The popup: the site's own type (Poppins), colours (#333 text, #fa4b00 accent), large radii, and the drawers'
   overlay and slide timing (0.3 s, cubic-bezier(0.25, 1, 0.5, 1)). */
.astrand-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.astrand-popup[hidden] { display: none; }
.astrand-popup.is-open { opacity: 1; }
.astrand-popup__box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  padding: 44px 36px 36px;
  border-radius: 30px;
  background: #fff;
  color: #333;
  font-family: "Poppins", "Poppins Placeholder", sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.astrand-popup.is-open .astrand-popup__box { transform: none; }
.astrand-popup__text {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
}
.astrand-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fa4b00;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.astrand-popup__close:hover { background: #fb814c; }
.astrand-popup__close:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
@media (max-width: 480px) {
  .astrand-popup__box { padding: 40px 24px 28px; border-radius: 24px; }
  .astrand-popup__text { font-size: 18px; }
}
