/* Shared detail-page styling for autobiography.php and the Inside theâ€¦ titles. Requires the site's existing assets/css/style.css. */
 .book-detail {
     padding-top: 1.4rem;
}
 .book-back {
     margin-bottom: 1.6rem;
}
 .book-back a {
     color: var(--muted);
     font-weight: 650;
     text-decoration: none;
}
 .book-back a:hover {
     color: var(--text);
}
 .book-hero {
     display: grid;
     grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
     align-items: start;
     gap: clamp(2rem, 5vw, 5rem);
     padding-bottom: clamp(3rem, 6vw, 5rem);
}
 .book-art {
     background: var(--surface-alt);
     border: 1px solid var(--line);
     border-radius: 12px;
     padding: clamp(.6rem, 2vw, 1.3rem);
}
 .book-art img {
     display: block;
     width: 100%;
     height: auto;
     object-fit: contain;
     box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
 .book-intro h1 {
     font-size: clamp(2rem, 3.8vw, 3.5rem);
     line-height: 1.14;
     margin: .6rem 0 1rem;
     overflow-wrap: break-word;
}
 .book-intro > p {
     line-height: 1.8;
}
 .book-deck {
     color: var(--muted);
     font-size: clamp(1.15rem, 2vw, 1.4rem);
}
 .book-facts {
     display: grid;
     gap: .7rem;
     padding: 1.3rem 0;
     margin: 1.5rem 0;
     border-top: 1px solid var(--line);
     border-bottom: 1px solid var(--line);
}
 .book-facts > div {
     display: grid;
     grid-template-columns: 100px 1fr;
     gap: 1rem;
}
 .book-facts dt {
     color: var(--muted);
     font-size: .88rem;
}
 .book-facts dd {
     margin: 0;
     font-weight: 600;
}
 .book-actions {
     display: flex;
     flex-wrap: wrap;
     gap: .7rem;
     margin-top: 1.4rem;
}
 .book-small {
     font-size: .88rem;
     color: var(--muted);
}
 .book-prose {
     max-width: 830px;
}
 .book-prose h2, .book-section-heading h2 {
     margin-top: .5rem;
}
 .book-prose p {
     font-size: 1.08rem;
     line-height: 1.85;
}
 .book-section-heading {
     margin-bottom: 1.5rem;
}
 .book-reviews {
     display: grid;
     grid-template-columns: repeat(3, minmax(0,1fr));
     gap: 1.1rem;
}
 .book-review {
     margin: 0;
     padding: 1.5rem;
     border: 1px solid var(--line);
     border-radius: 12px;
     background: var(--surface);
}
 .book-review p {
     margin: 0 0 1.3rem;
     line-height: 1.7;
}
 .book-review footer {
     color: var(--muted);
     font-size: .87rem;
}
 .book-final {
     text-align: center;
}
 .book-final .book-actions {
     justify-content: center;
}
 @media (max-width: 780px) {
     .book-hero {
         grid-template-columns: 1fr;
    }
     .book-art {
         max-width: 340px;
         margin: 0 auto;
    }
     .book-reviews {
         grid-template-columns: 1fr;
    }
}
 @media print {
     .book-actions, .book-back {
         display: none;
    }
     .book-art img {
         box-shadow: none;
    }
     .book-review {
         break-inside: avoid;
    }
}
/* Stripe Buy Buttons â€” scoped to individual book detail pages. */
 .book-purchase .book-section-heading {
     max-width: 760px;
}
 .book-shipping {
     font-weight: 750;
     font-size: 1.1rem;
     margin-top: .75rem;
}
 .book-purchase-options {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: clamp(1rem, 3vw, 2rem);
     align-items: start;
     margin: 1.75rem 0 1rem;
}
 .book-purchase-option {
     min-width: 0;
     display: flex;
     justify-content: center;
     align-items: flex-start;
     padding: clamp(.8rem, 2vw, 1.4rem);
     background: var(--surface);
     border: 1px solid var(--line);
     border-radius: 12px;
}
 .book-purchase-option stripe-buy-button {
     display: block;
     max-width: 100%;
}
 @media (max-width: 780px) {
     .book-purchase-options {
         grid-template-columns: 1fr;
    }
}
 @media print {
     .book-purchase {
         display: none;
    }
}
/* Original back-cover copy and reader testimonials. */
 .book-backcover .book-prose {
     max-width: 850px;
}
 .book-backcover .book-prose p {
     margin-bottom: 1.25rem;
}
 .book-backcover .book-prose p:nth-last-child(1) {
     font-weight: 650;
}
 .book-testimonials .book-reviews {
     grid-template-columns: repeat(2, minmax(0, 1fr));
}
 .book-testimonials .book-review {
     display: flex;
     flex-direction: column;
}
 .book-testimonials .book-review footer {
     margin-top: auto;
}
 .book-stars {
     color: #c58a2b;
     letter-spacing: .1em;
     margin-bottom: .8rem;
     font-size: 1.1rem;
}
 @media (max-width: 780px) {
     .book-testimonials .book-reviews {
         grid-template-columns: 1fr;
    }
}
