/* Digital-catalog page-curl styling for StPageFlip. Loaded directly by the
   catalog page so it never depends on the Tailwind build. */

/* Reserve height before the library initializes, and hide the raw stacked
   pages so there's no flash of a tall vertical list. StPageFlip adds the
   .stf__parent class to #catalogbook once it has taken over. */
.cb-book:not(.stf__parent) {
  min-height: 460px;
}
.cb-book:not(.stf__parent) .page {
  display: none;
}

/* Each leaf. StPageFlip sizes the .page wrapper; content fills it. */
.cb-book .page {
  background: #ffffff;
  overflow: hidden;
}
.cb-book .page > div {
  height: 100%;
}

/* Hard covers get a subtle edge so they read as a bound catalog. */
.cb-book .page-cover {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

/* Fallback when the CDN library is unavailable: just show the pages stacked
   in a readable column instead of a broken empty book. */
.cb-book.cb-fallback {
  display: grid;
  gap: 1rem;
  min-height: 0;
}
.cb-book.cb-fallback .page {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  min-height: 420px;
}
