/* This button displays two cropped parts of the same transparent mascot artwork.
   The hand sits behind the body, and rotates around its wrist. */
#contact button.sp-contact-mascot {
  --mascot-width: clamp(72px, 9vw, 104px);
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: var(--mascot-width);
  height: auto;
  aspect-ratio: 320 / 266;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  vertical-align: middle;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  margin: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}
#contact .sp-contact-mascot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.sp-contact-mascot .sp-mascot-body,
.sp-contact-mascot .sp-mascot-hand {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("contact.webp");
  background-repeat: no-repeat;
  /* The artwork is 400 x 266; the joined pose fits in a 320 x 266 frame. */
  background-size: 125% 100%;
}
.sp-contact-mascot .sp-mascot-hand {
  background-position: right top;
  clip-path: inset(0 0 0 62%);
  transform-origin: 67% 55%;
}
.sp-contact-mascot .sp-mascot-body {
  background-position: left top;
  clip-path: inset(0 25% 0 0);
}
.sp-contact-mascot.is-waving .sp-mascot-hand {
  animation: sp-hand-wave 900ms ease-in-out 1;
}
@keyframes sp-hand-wave {
  0%, 100% { transform: rotate(0); }
  22% { transform: rotate(-21deg); }
  42% { transform: rotate(4deg); }
  63% { transform: rotate(-16deg); }
  82% { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-contact-mascot.is-waving .sp-mascot-hand { animation: none; }
}

#contact .sp-contact-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
#contact .sp-contact-heading > h2 { margin: 0; }
#contact .contact-item.sp-mascot-email { gap: 12px; }
#contact .sp-mascot-email button.sp-contact-mascot { --mascot-width: clamp(58px, 6.3vw, 84px); }
#contact .sp-mascot-email > div { min-width: 0; }
#contact .sp-mascot-email a { overflow-wrap: anywhere; }
.sp-catalogue-links { display: flex; gap: 12px 22px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.sp-catalogue-links a { color: #07583d; font-weight: 650; text-underline-offset: 4px; }
.sp-catalogue-links a:first-child { background: #07583d; color: white; padding: 12px 18px; text-decoration: none; }
@media (max-width: 620px) {
  #contact .sp-contact-heading { gap: 8px 12px; }
  #contact .sp-contact-heading button.sp-contact-mascot { --mascot-width: 72px; }
}
