/* ============================================================================
   EDITORIAL PHOTOBOOK LIBRARY & 3D HARDCOVER FLIPBOOK SHELL
   Warm Cream Museum Gallery Frame harmonizing with #fcf8ef website palette
   ============================================================================ */

.desk-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 18px;
  border-radius: 24px;
  background: #fffdf8;
  border: 1.5px solid rgba(83, 93, 53, .14);
  box-shadow: 0 20px 52px rgba(68, 56, 34, .08);
}

.desk-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
}

.desk-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.desk-kicker {
  font: 600 10.5px/1.2 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .14em;
  color: #82865f;
}

.desk-meta strong {
  font-size: 13.5px;
  color: #3d4528;
}

.desk-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.exhibit .ab-pill,
.book-page-world .ab-pill,
.exhibit .ab-idx,
.book-page-world .ab-idx {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(83, 93, 53, .20);
  background: #f5efe0;
  color: #46502d;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}

.exhibit .ab-pill:hover,
.book-page-world .ab-pill:hover,
.exhibit .ab-idx:hover,
.book-page-world .ab-idx:hover {
  background: #535d35;
  color: #fffdf7;
  border-color: #535d35;
  transform: translateY(-1px);
}

.exhibit .ab-link-pill,
.book-page-world .ab-link-pill {
  background: #fffdf8;
  border-color: rgba(196, 91, 57, .48);
  color: #9e4528;
}

.exhibit .ab-link-pill:hover,
.book-page-world .ab-link-pill:hover {
  background: #c45b39;
  border-color: #c45b39;
  color: #fffdf8;
}

.exhibit .ab-idx,
.book-page-world .ab-idx {
  padding: 6px 12px;
  font-size: 11.5px;
}

/* === WARM GALLERY SHELF + 3D FLIPBOOK IFRAME === */
.flipbook-stage-frame {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f1e4;
  border: 1px solid rgba(83, 93, 53, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.flipbook-iframe {
  display: block;
  width: 100%;
  height: min(76svh, 690px);
  min-height: 540px;
  border: 0;
  background: #f6f1e4;
}

.desk-shell.is-fullscreen .flipbook-iframe {
  height: calc(100svh - 170px);
  min-height: 590px;
}

/* Bottom Quick-Jump Portal Strip */
.desk-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
}

.desk-portal-label {
  font: 600 11.5px/1.2 "PingFang SC", sans-serif;
  letter-spacing: .06em;
  color: #7c7e65;
}

.desk-chapter-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Standalone Full-Screen Route (#/book) */
.book-page-world {
  min-height: 100svh;
  background: radial-gradient(circle at 20% 0%, #fffdf8 0%, #f5eedc 100%);
  padding: clamp(16px, 2.5vw, 28px) clamp(14px, 3.5vw, 40px) 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ab-page-header {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 24px;
}

.ab-page-eyebrow {
  display: block;
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .16em;
  color: #82865f;
}

.ab-page-header h1 {
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  color: #3d4528;
}

.ab-page-header p {
  margin: 0;
  font-size: 13px;
  color: #6b6856;
}

.ab-page-main {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .desk-shell {
    padding: 12px 12px 14px;
    border-radius: 18px;
  }
  .flipbook-iframe,
  .desk-shell.is-fullscreen .flipbook-iframe {
    height: 576px;
    min-height: 540px;
  }
}
