/* Static EPHR sample flipbook (image pages) */
.recoup-ephr-flip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.recoup-ephr-flip__stage {
  flex: 1;
  min-width: 0;
}

.recoup-ephr-flip__book {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(56, 18, 109, 0.18),
    0 2px 8px rgba(33, 20, 53, 0.08);
  aspect-ratio: 210 / 297;
  max-height: min(72vh, 560px);
}

.recoup-ephr-flip__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  transform-origin: left center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.recoup-ephr-flip__img.is-flip {
  transform: perspective(1200px) rotateY(-12deg);
  opacity: 0.88;
}

.recoup-ephr-flip__nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 8px 20px rgba(33, 20, 53, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

.recoup-ephr-flip__nav:hover:not(:disabled) {
  color: #862cd6;
}

.recoup-ephr-flip__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.recoup-ephr-flip__meta {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.sample-ephr-flip.recoup-ephr-flip-ready {
  width: 100%;
}
