body { 
    background: #f7f7fb;
}

.card-max {
    max-width: 720px;
}

.option {
    cursor: pointer;
}

.visually-hidden-important {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* New */

/* Cover: responsive square thumbnail */
#coverFigure { 
  display: flex; 
  justify-content: center; 
  margin-bottom: 1rem; 
}

/* Size the box responsively: small on phones, a bit larger on desktop */
.cover-box {
  position: relative;
  width: clamp(140px, 60vw, 240px); /* mobile: up to ~240px */
  aspect-ratio: 1 / 1;              /* perfect square for 512x512 sources */
}

@media (min-width: 768px) {
  .cover-box { 
    width: clamp(180px, 30vw, 280px); /* slightly larger on md+ screens */
  }
}

/* Image fills the square, fades in */
.cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: .75rem;
  box-shadow: 0 .2rem .6rem rgba(0,0,0,.08);
  opacity: 0;                       /* start hidden but still load */
  transition: opacity .2s ease;
}

/* Skeleton overlays the image until load */
.cover-skeleton {
  position: absolute; inset: 0;
  border-radius: .75rem;
  background: #e9ecef;
  overflow: hidden;
}
.cover-skeleton::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

