/* Responsive adjustments for the static export */
img,
svg {
  max-width: 100%;
}

@media (max-width: 767px) {
  /* Show the main navigation on small screens as a wrapped row */
  header nav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem !important;
    width: 100%;
    order: 3;
    font-size: 0.95rem;
    padding-bottom: 0.5rem;
  }

  header > div > div {
    height: auto !important;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-top: 0.75rem;
  }

  /* Give content room below the taller mobile header */
  header + section,
  header + div {
    padding-top: 8rem !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
}

/* Static export: entrance animations must not leave content invisible */
.animate-fade-in,
.animate-scale-in,
.animate-enter {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 767px) {
  /* Floating stat badges overlap the portrait on small screens */
  .absolute.-top-6.-right-6,
  .absolute.-bottom-6.-left-6 {
    position: static !important;
    margin-top: 1rem;
  }
}
