/* ─── Fade-in on load ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Attached dot pulse ─────────────────────────────────── */
@keyframes dot-pulse {
  0%, 100% { opacity: 1.0; }
  50%       { opacity: 0.6; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.problem-attached {
  animation: dot-pulse 2s ease-in-out infinite;
}

.problem-searching {
  animation: dot-pulse 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .problem-attached,
  .problem-searching {
    animation: none !important;
  }

  .module-entry,
  .module-card,
  .submit-btn,
  .nav-link,
  .footer-link {
    transition: none !important;
  }
}
