/* squashbooks.css
   Book pages under /squashbooks/. Load after bettersquash1.css, article-page1.css, gallery.css.
   Version 0.5 (stage 1 sample) */

/* Hero: three-line H1 (title, author, year); default size is the site H1, smaller for longer lines */
.bk .hero h1.bk-h1--m { font-size: clamp(2.6rem, 12vw, 5rem); }
.bk .hero h1.bk-h1--l { font-size: clamp(2.2rem, 9vw, 3.6rem); }

/* Meta box: no caption or rule (article-page1.css prints "Article Details"), stacked on mobile */
.bk .art-meta::before { display: none; }
@media (max-width: 599px) {
    .bk .art-meta { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
    .bk .art-meta-sep { display: none; }
}

/* Facts block: cover beside the key facts */
.bk-facts {
    display: grid;
    grid-template-columns: minmax(120px, 200px) 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    padding: 1.5rem 0;
}
.bk-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    background: #eee;
    border: 1px solid #e5e7eb;
    padding: 6px;
}
.bk-facts dl { margin: 0; }
.bk-facts dt { font-size: 0.8rem; font-weight: 700; color: #8a8a8a; }
.bk-facts dd { margin: 0 0 0.8rem; line-height: 1.5; }
@media (max-width: 599px) {
    .bk-facts { grid-template-columns: 1fr; }
    .bk-cover { max-width: 180px; }
}

/* Quotes */
.bk blockquote {
    margin: 0 0 1.5rem;
    padding: 0.2rem 0 0.2rem 1.25rem;
    border-left: 3px solid var(--signature);
}
.bk blockquote p { margin: 0 0 0.4rem; font-style: italic; }
.bk blockquote cite { font-size: 0.85rem; font-style: normal; color: #666; }

/* Curiosities label (Page 23, Plate 20, Various pages) */
.bk-label { font-weight: 700; }

/* Short: vertical lite-youtube, capped width, centred */
.bk-short lite-youtube {
    max-width: 360px;
    aspect-ratio: 9 / 16;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery: one square set for mobile and desktop (gallery.css hides --h on small
   screens and --v on large ones, so --sq is a separate class it never touches) */
.gallery-panel--sq { display: block; }
.gallery-panel--sq .gallery-item { width: min(70vw, 320px); aspect-ratio: 1 / 1; }
@media (min-width: 900px) {
    .gallery-panel--sq .gallery-item { width: min(26vw, 340px); }
}

/* Visible placeholder for any field still blank (sample and manager preview only) */
.bk-ph {
    background: #fff7d6;
    border: 1px dashed #c9a400;
    padding: 0.1em 0.4em;
    font-size: 0.9em;
}

/* Glossary links: dotted, plus a one-line note under Page Details */
.bk a.bk-gl { text-decoration: underline dotted; text-underline-offset: 3px; }
.bk-gl-note { font-size: 0.85rem; color: #666; margin: -1.5rem 0 1.5rem; }

/* Gallery: keep the first square off the screen edge when scroll snapping */
.gallery-panel--sq .gallery-track { scroll-padding-left: 20px; }


/* First Published and My Copy: two half-width columns on one line */
.bk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.bk-pair > div { min-width: 0; }

/* Lead-in line above a quote */
.bk-qlead { margin: 0 0 0.4rem; font-size: 0.95rem; color: #444; }

/* Cool feature image */
.bk-cool-img { display: block; width: 100%; max-width: 560px; height: auto; margin: 1.25rem 0 0; border: 1px solid #e5e7eb; padding: 6px; background: #fff; }

/* Back to Book Index: single button, centred in the Previous/Next row */
.art__prevnext.bk-back { justify-content: center; }