/* Book-specific artwork inside the unchanged Reclench PDP component system. */
.book-product {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 88px;
}

body.pdp-page .book-product > .gambit-product-top {
  padding-bottom: clamp(36px, 4vw, 56px);
}

.review-pagination { display: grid; justify-items: center; gap: 14px; padding: 28px 0 8px; }
.review-pagination__status { margin: 0; color: var(--rh-muted); font: 400 12px/1.4 var(--rh-sans); }
.review-pagination__more { min-height: 46px; padding: 0 28px; border: 1px solid var(--rh-line); border-radius: 999px; color: var(--rh-ink); background: #fff; font: 600 13px/1 var(--rh-sans); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.review-pagination__more:hover { border-color: #94a3b8; background: var(--rh-surface); }
.review-pagination__more:focus-visible { outline: 2px solid var(--rh-ink); outline-offset: 4px; }
.review-pagination__more[hidden] { display: none !important; }

.site-header--rh .gambit-wordmark {
  color: var(--rh-ink);
  font: 700 15px/1 var(--rh-mono);
  letter-spacing: .04em;
  white-space: nowrap;
}

.site-header--rh .gambit-wordmark span { color: var(--rh-muted); font-size: .68em; }
.site-header--rh .rh-nav { flex: 1; justify-content: center; }
.site-header--rh .rh-actions { flex: 0 0 auto; margin-left: auto; }

.gambit-book-main {
  display: grid !important;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  background: #f1f5f9;
}

.gambit-book-device {
  width: min(100%, 540px);
  padding: 12px;
  border: 1px solid #64748b;
  border-radius: 30px;
  background: #17191d;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
}

.gambit-book-device::before {
  display: block;
  width: 48px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #030405;
  content: "";
}

.gambit-book-device .book-cover {
  width: 100%;
  max-width: none;
  margin: 0;
  border-color: #30343b;
  border-radius: 17px;
  box-shadow: none;
}

.gambit-book-stack .rp-stack__item {
  background-color: #f1f5f9;
  background-position: center;
  background-size: cover;
}

.gambit-stack-cover { background-image: url('/assets/images/gambit-bust-portrait.webp'); }
.gambit-stack-bust { background-image: url('/assets/images/gambit-bust.webp'); }
.gambit-stack-chemistry { background-image: url('/assets/images/gambit-attraction-hero.png'); }
.gambit-stack-book { display: grid; place-items: center; padding: 20px; background: #e9edf2; }
.gambit-stack-book .book-cover { width: min(78%, 280px); margin: 0; border-radius: 4px; box-shadow: 0 12px 26px rgba(15, 23, 42, .2); }
.gambit-stack-book .cover-title { font-size: clamp(20px, 2.2vw, 32px); }
.gambit-stack-book .cover-kicker { font-size: 6px; }
.gambit-stack-book .cover-subtitle { font-size: 6px; }

.gambit-gallery-track { display: contents; }
body.pdp-page .gambit-gallery-extra,.gambit-gallery-controls { display: none; }
@media (max-width: 1024px) {
  .rp-gallery { min-width: 0; }
  .gambit-gallery-track { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gambit-gallery-track::-webkit-scrollbar { display: none; }
  body.pdp-page .rp-stage .gambit-gallery-slide { display: grid; flex: 0 0 100%; width: 100%; min-width: 0; align-self: stretch; margin: 0; border: 0; border-radius: 0; scroll-snap-align: start; scroll-snap-stop: always; touch-action: pan-x pan-y; background-position: center; background-size: cover; }
  body.pdp-page .rp-stage .gambit-gallery-extra { aspect-ratio: auto; place-items: center; }
  .gambit-gallery-track .gambit-book-device { max-width: 440px; }
  .gambit-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 2px; padding: 8px 16px; background: #f1f5f9; }
  .gambit-gallery-dot { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .gambit-gallery-dot::after { width: 6px; height: 6px; border-radius: 50%; background: #a8afb8; content: ''; }
  .gambit-gallery-dot[aria-current]::after { background: #0f172a; transform: scale(1.35); }
  .gambit-gallery-dot:focus-visible,.gambit-gallery-track:focus-visible { outline: 2px solid #0f172a; outline-offset: -3px; }
}

.gambit-offer-art--digital { background-image: url('/assets/images/gambit-bust-portrait.webp'); }
.gambit-offer-art--physical { background-image: url('/assets/images/gambit-bust.webp'); }

.gambit-split-art { background-image: url('/assets/images/gambit-attraction-hero.png'); }
.gambit-stats-art { background-image: url('/assets/images/gambit-bust.webp'); }
.gambit-stats-visual { min-width: 0; }
.gambit-stats-visual .review-press-placeholders { margin: 0 0 24px; padding: 0; justify-items: center; text-align: center; }
.gambit-stats-visual .review-press-head,.gambit-stats-visual .review-press-row,.gambit-stats-visual .review-publication-logos { justify-content: center; align-items: center; }
.book-reviews > .review-fiction-note { min-width: 0; margin: 0 0 24px; text-align: left; }

.rp-offers__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.rp-offers__title strong { font-weight: 700; }
.rp-offers__title .rp-textlink { margin: 0; font-size: 12px; }

.gambit-edition-details,
.gambit-audio-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--rh-line);
  border-radius: var(--rp-radius);
  background: var(--rh-surface);
}

.gambit-edition-details__heading { display: grid; justify-items: start; gap: 3px; }
.gambit-edition-details__heading .rp-kicker,
.gambit-audio-preview__heading .rp-kicker { margin: 0; color: var(--rh-muted); font: 600 10px/1.3 var(--rh-mono); letter-spacing: .08em; }
.gambit-edition-details__heading h2,
.gambit-audio-preview__heading h2 { margin: 0; color: var(--rh-ink); font: 600 15px/1.3 var(--rh-sans); }
.gambit-edition-details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gambit-edition-details__grid > div { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid var(--rh-line); border-radius: 12px; background: #fff; }
.gambit-edition-details__grid span { color: var(--rh-muted); font: 500 11px/1.3 var(--rh-sans); }
.gambit-edition-details__grid strong { color: var(--rh-ink); font: 600 13px/1.35 var(--rh-sans); }
.gambit-edition-details__grid small { color: var(--rh-body); font: 400 11px/1.4 var(--rh-sans); }
.gambit-edition-details > p { margin: 12px 0 0; color: var(--rh-body); font: 400 11px/1.5 var(--rh-sans); }

.gambit-audio-preview { padding: 14px 16px 16px; }
.gambit-audio-preview__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gambit-audio-preview__heading > div { display: grid; gap: 3px; }
.gambit-audio-preview__status { padding: 6px 9px; border-radius: 999px; color: var(--rh-body); background: #fff; font: 500 10px/1 var(--rh-sans); }
.gambit-audio-preview__notice { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 11px 12px; border: 1px solid var(--rh-line); border-radius: 12px; background: #fff; }
.gambit-audio-preview__play { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding-left: 2px; border-radius: 50%; color: #fff; background: var(--rh-cta); font-size: 11px; }
.gambit-audio-preview__notice > span:last-child { display: grid; gap: 3px; }
.gambit-audio-preview__notice strong { color: var(--rh-ink); font: 600 12px/1.35 var(--rh-sans); }
.gambit-audio-preview__notice small { color: var(--rh-body); font: 400 11px/1.4 var(--rh-sans); }

@media (max-width: 760px) {
  .site-header--rh .rh-nav { display: none; }
  .site-header--rh .gambit-wordmark { font-size: 12px; }
  .site-header--rh .rh-actions { margin-left: auto; }
  .gambit-book-main { padding: 24px 18px; }
  .gambit-book-device { padding: 8px; border-radius: 22px; }
  .gambit-book-device::before { width: 34px; height: 4px; margin-bottom: 7px; }
  .gambit-book-device .book-cover { border-radius: 13px; }
  .gambit-edition-details { padding: 13px; }
  .gambit-edition-details__grid { gap: 8px; }
  .gambit-edition-details__grid > div { padding: 10px; }
}

body.pdp-page .gambit-audio-preview { margin-top: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.gambit-audio-preview__heading { margin-bottom: 12px; gap: 12px; }
.gambit-audio-preview__heading h2 { font: 600 12px/1.4 var(--rh-sans); }
.gambit-read-along { padding: 0; border: 0; color: #222; background: transparent; font: 400 12px/1.4 var(--rh-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gambit-audio-player { display: flex; min-height: 56px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #d3d3d3; }
.gambit-audio-player audio { display: none; }
.gambit-audio-toggle { display: grid; width: 24px; height: 30px; flex: none; place-items: center; padding: 0; border: 0; color: #24282c; background: transparent; font: 400 21px/1 var(--rh-sans); cursor: pointer; }
.gambit-audio-toggle:disabled { opacity: 1; cursor: default; }
.gambit-audio-player input { width: 100%; min-width: 0; height: 8px; margin: 0; appearance: none; border: 0; border-radius: 0; background: #b2b2b2; accent-color: #333; }
.gambit-audio-player input::-webkit-slider-thumb { appearance: none; width: 9px; height: 14px; background: #333; }
.gambit-audio-player input:disabled::-webkit-slider-thumb { background: transparent; }
.gambit-audio-time { flex: none; margin-left: 6px; color: #111; font: 600 11px/1 var(--rh-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gambit-audio-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.gambit-official-badge { padding: 5px 7px; border-radius: 4px; color: #fff; background: #a90808; font: 600 10px/1.2 var(--rh-sans); }
.gambit-audio-links a { color: #222; font: 400 11px/1.4 var(--rh-sans); text-decoration: underline; text-underline-offset: 3px; }
.gambit-read-dialog { width: min(500px,calc(100vw - 32px)); padding: 28px; border: 1px solid #ddd; border-radius: 8px; color: #222; background: #fff; }
.gambit-read-dialog::backdrop { background: #0006; }
.gambit-read-dialog form { position: absolute; top: 10px; right: 10px; }
.gambit-read-dialog form button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f2f2; cursor: pointer; }
.gambit-read-dialog h2 { margin: 0 0 15px; font: 600 22px/1.3 var(--rh-sans); }
.gambit-read-dialog p { margin: 0; color: #555; font: 400 14px/1.6 var(--rh-sans); }

@media (max-width: 760px) {
  .book-reviews { width: calc(100% - 40px); }
  .book-reviews > * { min-width: 0; }
  .book-reviews-top { grid-template-columns: minmax(0, 1fr); }
  .book-reviews-bars > div { grid-template-columns: 26px minmax(0, 1fr) 32px; }
  .book-sticky-bar { display: grid; grid-template-columns: 48px minmax(0,1fr) 122px; column-gap: 10px; row-gap: 8px; min-height: 112px; padding: 12px; bottom: max(8px, env(safe-area-inset-bottom)); border: 1px solid var(--rh-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(15,23,42,.16); }
  .sticky-book-mark { grid-column: 1; grid-row: 1 / 3; width: 48px; height: 68px; align-self: center; border-radius: 4px; font-size: 13px; }
  .sticky-book-copy { display: contents; }
  .sticky-book-copy strong { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; color: var(--rh-ink); font: 700 13px/1.3 var(--rh-sans); }
  .sticky-book-copy small[data-sticky-price] { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; color: var(--rh-ink); font: 600 17px/1.2 var(--rh-mono); }
  .sticky-format-options { grid-column: 2; grid-row: 2; gap: 4px; align-self: center; }
  .sticky-format-options button { min-height: 40px; padding: 8px 9px; border-color: var(--rh-line); border-radius: 7px; color: var(--rh-body); font: 500 11px/1 var(--rh-sans); }
  .sticky-format-options button[aria-pressed="true"] { color: #fff; border-color: var(--rh-ink); background: var(--rh-ink); }
  .sticky-cart-button { grid-column: 3; grid-row: 2; width: 100%; min-height: 48px; padding: 0 10px; border-radius: 10px; font: 700 13px/1.2 var(--rh-sans); }
}
@media (max-width: 360px) {
  .book-sticky-bar { grid-template-columns: minmax(0,1fr) 116px; }
  .sticky-book-mark { display: none; }
  .sticky-book-copy strong,.sticky-format-options { grid-column: 1; }
  .sticky-book-copy small[data-sticky-price],.sticky-cart-button { grid-column: 2; }
}
