/*
 * Course View sections.
 *
 * The widget's HTML arrives 1-2 s after page load. Without this, the section
 * is 0px tall while loading, then jumps open and pushes the rest of the page
 * down. Hold the space with a light placeholder and fade the courses in.
 */
.cv-slot:empty {
  min-height: 480px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f6f9 25%, #e9eef3 50%, #f3f6f9 75%);
  background-size: 200% 100%;
  animation: cv-slot-loading 1.4s ease-in-out infinite;
}

.cv-slot > * {
  animation: cv-slot-in 0.3s ease-out;
}

@keyframes cv-slot-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes cv-slot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-slot:empty,
  .cv-slot > * {
    animation: none;
  }
}
