.page-body {
  padding-top: 0;
}

.site-nav-bar:not(.snb-footer) {
  position: sticky !important;
}

.section-inner {
  width: 92%;
  max-width: 1200px;
  padding: clamp(28px, 5vw, 64px) 0;
}

.book-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  grid-template-areas: "cover panel" "preview .";
  gap: 12px clamp(12px, 2.5vw, 36px);
  align-items: start;
  width: 100%;
  container-type: inline-size;
}

.book-hero-grid > * {
  min-width: 0;
  min-height: 0;
}

.cover-preview-wrap,
.book-hero-grid > picture {
  grid-area: cover;
  width: 100%;
}

.book-hero-grid .book-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: contain;
}

.book-hero-grid .text-panel {
  grid-area: panel;
  display: block;
  width: 100%;
  height: auto;
  padding: clamp(16px, 2cqw, 24px);
}

.text-panel .eyebrow {
  font-size: clamp(9px, 1.05cqw, 12px);
  line-height: 1.5;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.text-panel .book-title {
  font-size: clamp(25px, 4.8cqw, 58px);
  margin-bottom: 8px;
}

.text-panel .book-subtitle {
  font-size: clamp(17px, 2.4cqw, 28px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.text-panel .price-inline {
  font-size: clamp(13px, 1.65cqw, 19px);
}

.text-panel .price-inline > div {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}

.text-panel .price-inline dd {
  color: var(--pink);
  font-weight: 700;
}

.text-panel .amazon-available-badge img {
  width: clamp(80px, 13cqw, 156px);
  max-width: 100%;
}

.text-panel .body-text p,
.text-panel .tagline,
.text-panel .logline {
  font-size: clamp(17px, 1.6cqw, 19px);
  line-height: 1.5;
  max-width: none;
  margin-bottom: 12px;
}

.cover-preview-cue {
  grid-area: preview;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  box-sizing: border-box;
  padding: 8px;
  white-space: normal;
  text-align: center;
}

.cta-block.cta-hero,
.book-hero-grid > .cta-wrap {
  grid-area: cta;
  width: 100%;
  margin-top: 0;
}

.book-hero-grid .cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.book-hero-grid .cta-wrap .cta-btn {
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 8px;
  font-size: clamp(10px, 1.15cqw, 14px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: normal;
  text-align: center;
}

.book-hero-grid .cta-note,
.book-hero-grid .hardback-note {
  flex-basis: 100%;
  text-align: center;
}

@media (max-width: 860px) {
  .book-hero-grid .cta-wrap .cta-btn {
    flex: 1 1 calc(50% - 8px);
    font-size: 11px;
  }

  .section-inner {
    width: 94%;
  }

  .text-panel .eyebrow {
    margin-bottom: 4px;
  }

  .text-panel .book-title,
  .text-panel .book-subtitle {
    margin-bottom: 6px;
  }

  .text-panel .price-inline {
    gap: 4px 8px;
    font-size: 12px;
  }

  .text-panel .amazon-available-badge img {
    width: 70px;
  }

  .reader-response,
  .bottom-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .book-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "cover" "preview" "panel";
  }

  .book-hero-grid > .cover-preview-wrap,
  .book-hero-grid > picture {
    max-width: 17rem;
    justify-self: center;
  }
}

/* Keep each book's purchase actions immediately below its description. */
.book-hero-grid .text-panel > .cta-block.cta-hero,
.book-hero-grid .text-panel > .cta-wrap {
  width: min(100%, 300px);
  max-width: 100%;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.book-hero-grid .text-panel > .cta-block.cta-hero .cta-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.book-hero-grid .text-panel > .cta-block.cta-hero .cta-btn,
.book-hero-grid .text-panel > .cta-block.cta-hero .order-signup-link,
.book-hero-grid .text-panel > .cta-wrap > .cta-btn,
.book-hero-grid .text-panel > .cta-wrap > .order-signup-link {
  --action-fill: #000;
  --action-accent: var(--page-teal, var(--page-pink, #d4789c));
  --action-ink: var(--action-accent);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto !important;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  min-height: 52px;
  height: auto !important;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.68rem, 1.2cqw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.book-hero-grid .text-panel > .cta-wrap > .cta-note {
  order: 3;
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-nav-bar:not(.snb-footer) {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    min-height: 52px !important;
    padding: 4px 3% !important;
  }

  .site-nav-bar:not(.snb-footer) .snb-links {
    display: none !important;
  }

  .site-nav-bar:not(.snb-footer) .snb-logo {
    display: block !important;
    font-size: 18px !important;
    color: #f5f2ee !important;
  }

  .site-nav-bar:not(.snb-footer) .nav-hamburger {
    display: inline-flex !important;
    position: static !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    gap: 6px;
    color: #f5f2ee !important;
    font:
      14px "DM Sans",
      sans-serif;
  }

  .nav-hamburger svg {
    width: 22px;
    height: 18px;
    stroke: currentColor;
  }

  .nav-mobile-menu.open {
    display: flex !important;
  }
}
