/*
 * Book detail page.
 * Kept separate from page-books.scss so compiling detail changes cannot
 * overwrite the catalogue page styles.
 */
body.book-detail-page > main {
  display: block;
}

body.book-detail-page .book-detail-page-content {
  box-sizing: border-box;
  width: 100%;
  padding: 20px var(--site-side-margin) 42px;
}

body.book-detail-page .book-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--dark-color-1);
  font-weight: 700;
  text-decoration: none;
}

body.book-detail-page .book-detail-back:hover, body.book-detail-page .book-detail-back:focus {
  text-decoration: underline;
}

body.book-detail-page .book-detail-page-content[dir=ltr] .book-detail-back > i {
  transform: scaleX(-1);
}

body.book-detail-page .book-version-notice {
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--color-green-light);
  border-radius: 6px;
  background: var(--header-background-color);
}

body.book-detail-page .book-version-notice a {
  margin-inline-start: 8px;
  font-weight: 700;
}

body.book-detail-page .book-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 285px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

body.book-detail-page .book-detail-cover-wrap {
  overflow: hidden;
  border-radius: 7px;
  background: var(--header-background-color);
  box-shadow: rgba(0, 0, 0, 0.18) -3px 4px 12px;
}

body.book-detail-page .book-detail-cover {
  display: block;
  width: 100%;
  height: auto;
}

body.book-detail-page .book-detail-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 0.7;
  color: var(--color-green-light);
  font-size: 520%;
  background: linear-gradient(145deg, var(--header-background-color), var(--color-even-lighter-gray));
}

body.book-detail-page .book-detail-summary {
  display: grid;
  grid-template-rows: auto auto minmax(20px, 1fr) auto;
  align-self: stretch;
}

body.book-detail-page .book-detail-header {
  grid-row: 1;
  text-align: start;
}

body.book-detail-page .book-detail-header h1 {
  margin: 0;
  color: var(--dark-color-1);
  font-size: 205%;
  font-weight: 800;
  line-height: 1.2;
  text-align: start;
}

body.book-detail-page .book-detail-subtitle {
  margin: 7px 0 0;
  color: var(--fore-color-2);
  font-size: 125%;
  font-weight: 700;
}

body.book-detail-page .book-detail-slogan {
  margin: 7px 0 0;
  font-size: 110%;
  font-weight: 600;
}

body.book-detail-page .book-detail-author {
  margin: 7px 0 0;
  font-size: 105%;
  font-weight: bold;
}

body.book-detail-page .book-detail-meta {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 22px;
  margin: 7px 0 0;
  padding: 7px 0 0;
  border-top: 1px solid var(--color-even-lighter-gray);
}

body.book-detail-page .book-detail-meta > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

body.book-detail-page .book-detail-meta dt {
  font-weight: bold;
}

body.book-detail-page .book-detail-meta dt::after {
  content: ":";
}

body.book-detail-page .book-detail-meta dd {
  min-width: 0;
  margin: 0;
  text-align: start;
}

body.book-detail-page .book-resource-quick-links {
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-self: end;
  gap: 0 6px;
  min-width: 0;
  margin: 16px 0 10px;
}

body.book-detail-page .book-resource-quick-heading {
  font-weight: 700;
}

body.book-detail-page .book-resource-quick-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.book-detail-page .book-resource-quick-links li {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

body.book-detail-page .book-resource-quick-links a {
  color: var(--link-blue-color);
  font-weight: 400;
  text-decoration: none;
}

body.book-detail-page .book-resource-quick-links a:hover,
body.book-detail-page .book-resource-quick-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.book-detail-page .book-resource-quick-separator {
  white-space: pre;
}

body.book-detail-page .book-purchase {
  grid-row: 4;
  margin-top: 0;
  padding: 15px;
  border: 1px solid var(--color-lighter-gray);
  border-radius: 7px;
  background: var(--header-background-color);
}

body.book-detail-page .book-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  border-top: 1px solid var(--color-lighter-gray);
  font-size: 100%;
}

body.book-detail-page .book-offer:first-of-type {
  border-top: 0;
}

body.book-detail-page .book-offer--available {
  justify-content: flex-end;
}

body.book-detail-page .book-offer--not-for-sale {
  justify-content: center;
  text-align: center;
}

body.book-detail-page .book-offer-price {
  color: var(--dark-color-1);
  font-size: inherit;
  font-weight: bold;
  white-space: nowrap;
}

body.book-detail-page .book-offer-status {
  color: var(--fore-color-2);
  font-size: inherit;
  font-weight: bold;
}

body.book-detail-page .book-offer-message {
  color: var(--fore-color-medium);
  font-size: inherit;
  font-weight: bold;
}

body.book-detail-page .book-detail-section {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

body.book-detail-page .book-detail-section h2 {
  margin: 0 0 10px;
  color: var(--dark-color-1);
  font-size: 145%;
}

body.book-detail-page .book-detail-section p {
  margin-top: 0.65em;
  line-height: 1.55;
}

body.book-detail-page .book-prose > p:first-child, body.book-detail-page .book-prose > blockquote:first-child {
  margin-top: 0;
}

body.book-detail-page .book-prose blockquote {
  margin: 0.65em 1.25em 0;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--color-lighter-gray);
  color: var(--fore-color-2);
}

body.book-detail-page .book-prose blockquote p {
  margin: 0;
}

body.book-detail-page .book-resources {
  padding: 14px 16px 16px;
  border: 1px solid var(--color-lighter-gray);
  border-radius: 7px;
  background: var(--header-background-color);
}

body.book-detail-page .book-resources > h2 {
  margin-bottom: 12px;
}

body.book-detail-page .book-resource-list {
  display: grid;
  gap: 0;
}

body.book-detail-page .book-resource {
  padding: 12px 0;
  border-top: 1px solid var(--color-even-lighter-gray);
}

body.book-detail-page .book-resource:first-child {
  padding-top: 0;
  border-top: 0;
}

body.book-detail-page .book-resource:last-child {
  padding-bottom: 0;
}

body.book-detail-page .book-resource h3 {
  margin: 0;
  font-size: 112%;
}

body.book-detail-page .book-resource-open-wrap {
  font-size: 90%;
  font-weight: 400;
}

body.book-detail-page .book-resource-open {
  color: var(--link-blue-color);
  font-weight: 400;
  text-decoration: none;
}

body.book-detail-page .book-resource-open:hover,
body.book-detail-page .book-resource-open:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.book-detail-page .book-resource-description {
  margin-top: 8px;
}

body.book-detail-page .book-resource-description > :first-child {
  margin-top: 0;
}

body.book-detail-page .book-resource-description > :last-child {
  margin-bottom: 0;
}

body.book-detail-page .book-alternatives > p {
  margin-top: 0;
}

body.book-detail-page .book-alternative-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.book-detail-page .book-alternative {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 145px;
  padding: 9px 12px;
  border: 1px solid var(--dark-color-1);
  border-radius: 6px;
  color: var(--dark-color-1);
  background: var(--background-color);
  text-decoration: none;
}

body.book-detail-page .book-alternative:hover, body.book-detail-page .book-alternative:focus {
  color: var(--background-color);
  background: var(--dark-color-1);
  text-decoration: none;
}

body.book-detail-page .book-alternative span:last-child {
  font-size: 90%;
}

@media only screen and (max-width: 928px) {
  body.book-detail-page .book-detail-page-content {
    width: 94%;
    margin: 0 auto;
    padding: 16px 0 30px;
  }
  body.book-detail-page .book-detail-hero {
    grid-template-columns: minmax(155px, 32vw) minmax(0, 1fr);
    gap: 20px;
  }
  body.book-detail-page .book-detail-header h1 {
    font-size: 175%;
  }
}
@media only screen and (max-width: 620px) {
  body.book-detail-page .book-detail-hero {
    grid-template-columns: 1fr;
  }
  body.book-detail-page .book-detail-cover-wrap {
    width: min(58vw, 230px);
    margin: 0 auto;
  }
  body.book-detail-page .book-detail-summary {
    display: block;
  }
  body.book-detail-page .book-detail-header {
    text-align: center;
  }
  body.book-detail-page .book-detail-header h1 {
    text-align: center;
  }
  body.book-detail-page .book-detail-meta {
    grid-template-columns: 1fr;
  }
  body.book-detail-page .book-resource-quick-links {
    margin-top: 16px;
  }
  body.book-detail-page .book-purchase {
    margin-top: 20px;
  }
  body.book-detail-page .book-offer {
    gap: 10px;
  }
}
/* Mobile purchase CTA: attach an actionable offer to the physical viewport.
 * The JS service measures the real panel height and reserves the same space
 * after the footer, so footer content can still be scrolled fully into view. */
html.wp-ui-sticky-cta-active {
  scroll-padding-bottom: calc(var(--wp-ui-sticky-cta-height, 0px) + 12px);
}

@media only screen and (max-width: 620px) {
  body.book-detail-page.wp-ui-sticky-cta-active {
    padding-bottom: calc(var(--wp-ui-sticky-cta-height, 0px) + 12px);
  }
  body.book-detail-page .book-purchase[data-wp-ui-sticky-cta-active=true] {
    position: fixed;
    z-index: 50;
    inset-inline: 3%;
    bottom: 0;
    box-sizing: border-box;
    margin-top: 0;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    box-shadow: rgba(0, 0, 0, 0.22) 0 -4px 14px;
  }
}

/*# sourceMappingURL=page-book-detail.css.d1893694e288.map */
