/* Book page (/book/<isbn>): the explore detail panel, shown as a card on the explore page.
   Colours, nav, panel, stat tiles and chart styles all come from explore.css. */
.book-page { max-width: 880px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 28px 0 16px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.book-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 32px 36px; display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px;
}
.book-panel h1.panel-title { margin: 0; }
.book-meta-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.book-meta-line a { color: var(--accent); text-decoration: none; }
.book-meta-line a:hover { text-decoration: underline; }
.book-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.book-details dt { color: var(--muted); }
.book-details dd { margin: 0; overflow-wrap: anywhere; }
.book-details a { color: var(--accent); text-decoration: none; }
.book-details a:hover { text-decoration: underline; }
.no-history { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 13px; }
.book-ssr h1 { font-family: var(--display); }
a.btn-ghost, a.btn-primary { text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
  .book-panel { padding: 20px 16px 28px; border-radius: 10px; }
}

.book-dates { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* A big cover on the full page (the Explore panel keeps its small one) */
.book-page .panel-book-header { gap: 28px; }
.book-page .panel-cover, .book-page .panel-cover-placeholder { width: 190px; border-radius: 9px; box-shadow: 0 8px 26px rgba(0,0,0,.2); }
@media (max-width: 640px) {
  .book-page .panel-book-header { gap: 16px; }
  .book-page .panel-cover, .book-page .panel-cover-placeholder { width: 120px; }
}
.book-ssr-cover { width: 190px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }

/* Always-visible text under the price chart: price history, where to buy it cheapest, short Q&A (also published as FAQ markup) */
.book-seo { max-width: 860px; margin: 40px auto 0; padding: 0 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.book-seo h2 { font-family: var(--display, Georgia, serif); font-size: 20px; color: var(--fg); margin-bottom: 10px; }
.book-seo h3 { font-size: 15px; font-weight: 600; color: var(--fg); margin: 18px 0 4px; }
.book-seo p { margin: 0 0 8px; }
.book-seo a { color: var(--accent); }
.book-seo-links { margin-top: 18px; }
