/* Compact, horizontally scrolling book cards; long copy lives on its own page. */
.book-card{text-align:left;align-items:flex-start;padding:24px;background:transparent;border-radius:0;justify-content:flex-start}.book-card .book-topic{font-size:11px;letter-spacing:1.3px;margin:0 0 18px;min-height:0}.book-card .cover-link{align-self:stretch;display:block;background:#f3f2ed;border-radius:18px;padding:28px 16px;margin-bottom:25px}.book-card .book-cover{margin:0 auto}.book-card h3{text-align:left;font-size:27px;line-height:1.18;min-height:64px;margin:0 0 15px}.book-card .book-description{text-align:left;font-size:15px;line-height:1.7;min-height:0;margin:0 0 22px;max-width:none;overflow-wrap:anywhere}.book-detail-link{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;color:#171717;padding:8px 0 5px;border-bottom:1px solid #a88c20;font-size:14px;font-weight:600;margin-top:auto;min-height:44px}.book-detail-link .icon{width:18px;height:18px;transition:transform .2s}.book-detail-link:hover .icon{transform:translateX(4px)}.book-detail-link:focus-visible,.book-back:focus-visible{outline:3px solid #dbb800;outline-offset:5px}.book-detail-page{padding:46px 0 100px;background:#fff}.book-back{display:inline-block;padding:12px 0;font-size:14px;color:#555}.book-detail-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:start;margin-top:25px}.detail-cover{position:sticky;top:125px;background:#f4f3ee;border-radius:22px;padding:clamp(25px,5vw,70px);display:grid;place-items:center;min-height:480px}.detail-cover img{display:block;width:100%;max-width:360px;height:auto;max-height:650px;object-fit:contain;filter:drop-shadow(9px 18px 13px #0002)}.detail-copy .eyebrow{margin:10px 0 24px}.detail-copy h1{font-size:clamp(36px,4.4vw,64px);line-height:1.08;margin:0 0 24px;overflow-wrap:anywhere}.detail-author{font-size:16px;color:#777;margin:0 0 28px}.detail-summary{font-size:19px;line-height:1.7;color:#494949;margin:0 0 28px;overflow-wrap:anywhere}.detail-buy{margin-bottom:36px;max-width:100%;white-space:normal;text-align:center}.detail-body{border-top:1px solid #e5e3dc;padding-top:30px;overflow-wrap:anywhere}.detail-body h2{font-size:30px;margin:0 0 24px}.detail-body p{font-size:17px;line-height:1.9;margin:0 0 24px;color:#484848}.detail-bottom-back{margin-top:16px}.detail-draft{background:#fff7cd;padding:12px;border-radius:8px;font-size:13px}.detail-coming{color:#766b45;margin-bottom:30px}@media(max-width:760px){.book-card{padding:12px}.book-card .cover-link{padding:22px 12px}.book-card h3{font-size:26px;min-height:0}.book-card .book-description{font-size:15px}.book-detail-page{padding-top:24px;padding-bottom:55px}.book-detail-layout{grid-template-columns:1fr;gap:32px;margin-top:14px}.detail-cover{position:static;min-height:0;padding:30px}.detail-cover img{max-height:410px;max-width:270px}.detail-copy h1{font-size:38px}.detail-copy .eyebrow{margin-top:0}.detail-summary{font-size:17px}.detail-body p{font-size:16px}.detail-buy{min-height:48px}.detail-body h2{font-size:27px}}@media(prefers-reduced-motion:reduce){.book-detail-link .icon{transition:none}}

.book-card .cover-link{width:100%}

.book-card .book-topic{min-height:16px;margin:0 0 12px}.detail-copy h1{font-weight:400}

/* Revision: distinct cards, quieter links, multiline titles and edition label. */
.book-card{border:1px solid #e3e1da;border-radius:20px;background:#fafaf8;padding:22px}.book-card .cover-link{background:#f1f0eb;border-radius:12px}.book-detail-link{font-weight:400;color:#6d6d68;border-bottom-color:#bcbcb5}.book-detail-link .icon{color:inherit;stroke:currentColor;fill:none}.book-detail-link:hover{color:#33332f;border-bottom-color:#777771}.book-card h3,.detail-copy h1{white-space:pre-line}.detail-edition{display:inline-block;border:1px solid #dcd8c6;border-radius:30px;background:#f6f3e7;color:#6b6245;font-size:11px;line-height:1.5;letter-spacing:.6px;padding:8px 13px;margin:0 0 22px;max-width:100%;overflow-wrap:anywhere}.book-detail-layout{margin-top:8px}@media(max-width:760px){.book-card{padding:18px;border-radius:16px}.detail-edition{font-size:10px}}

/* One outer card frame; keep scrolling available without a visible scrollbar. */
.book-card .cover-link{background:transparent;border:0;border-radius:0;box-shadow:none}
.book-card .book-cover::after{border:0}
.book-shelf{scrollbar-width:none;-ms-overflow-style:none}
.book-shelf::-webkit-scrollbar{display:none;width:0;height:0}

/* Quiet button treatment makes the book link recognizable without an underline. */
.book-detail-link{border:0;border-radius:999px;background:#eeede8;color:#575750;padding:10px 18px;min-height:44px;font-weight:400;text-decoration:none;transition:background-color .18s,color .18s}
.book-detail-link:hover{border:0;background:#deddd5;color:#292923;text-decoration:none}
.book-detail-link:active{background:#d5d3c9}

/* Bold text link, without a button surface or underline. */
.book-detail-link{background:transparent;border:0;border-radius:0;padding:10px 0;font-weight:700;color:#575750;text-decoration:none}
.book-detail-link:hover,.book-detail-link:active{background:transparent;border:0;color:#292923;text-decoration:none}
.book-detail-link,.book-detail-link:hover,.book-detail-link:active{color:#000}
.book-detail-link,.book-detail-link:hover,.book-detail-link:active{border:0;text-decoration-line:underline;text-decoration-color:#c8c8c2;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-skip-ink:auto}
.book-detail-link,.book-detail-link:hover,.book-detail-link:active{position:relative;text-decoration:none}
.book-detail-link::after{content:"";position:absolute;left:0;right:0;bottom:10px;height:1px;background:var(--book-underline,#c8c8c2);pointer-events:none}

/* Edition labels use the same plain editorial treatment as the About eyebrow. */
.detail-copy .detail-edition{display:block;border:0;border-radius:0;background:transparent;padding:0;margin:0 0 22px;color:var(--section-label-red);font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:600;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;max-width:100%;overflow-wrap:anywhere}

/* CMS text preserves single newlines and empty lines across all public content. */
main :is(h1,h2,h3,p,blockquote,cite,li),.site-footer :is(h2,p),.site-header a,.button,.bundle-sticker,.small-label,.swipe-hint{white-space:pre-wrap;overflow-wrap:anywhere}
.header-inner{height:auto;min-height:83px;padding-block:10px}.brand{flex-shrink:0}.desktop-nav{flex:1;flex-wrap:wrap;justify-content:center;gap:4px 24px;margin-left:0}.desktop-nav a{text-align:center;max-width:170px;padding-block:8px}
@media(max-width:760px){.header-inner{min-height:72px;padding-block:10px}}

/* Share cover, label and title rows across the horizontal bookshelf.
   An absent label stays absent, while its row aligns with labeled neighbours. */
.book-shelf{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px)/3);grid-template-rows:repeat(5,auto);column-gap:18px;row-gap:0;align-items:stretch}
.book-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;align-items:start;max-width:none}
.book-card>.cover-link{grid-row:1}
.book-card>.book-topic{grid-row:2}
.book-card>h3{grid-row:3;display:block;align-self:start;min-height:0}
.book-card>.book-description{grid-row:4}
:is(.book-description, .book-detail-page) .bill-shankly-name { color: inherit; }
.book-card>.book-detail-link{grid-row:5;justify-self:start}
@media(max-width:900px){.book-shelf{grid-auto-columns:calc((100% - 16px)/2);column-gap:16px}}
@media(max-width:560px){.book-shelf{grid-auto-columns:100%}}

.book-card>.cover-link{width:68%;max-width:210px;justify-self:center;padding:14px 0;margin-bottom:20px}
@media(max-width:760px){.book-card>.cover-link{width:70%;max-width:180px;padding:10px 0}}

.brand-red{color:#bf1622;font-weight:700}.brand-gold{color:#896600}.book-video{margin:28px 0}.book-video :is(iframe,video){width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#f0efeb;display:block}.book-video>a{display:inline-block;margin-top:12px;font-size:13px;text-decoration:underline}.instagram-link[aria-disabled=true]{cursor:default}.social-links{flex-wrap:wrap}

.social-links .footer-social-icon{width:16px;height:16px;flex:0 0 16px;fill:currentColor;stroke:none}

.book-card > h3 { font-size: clamp(19px, 2.1vw, 24px); }
.book-card:has(> .cover-link:is([href="/books/imagine"], [href="/admin/preview?book=imagine"])) > h3 {
  font-size: clamp(18px, 2vw, 23px);
  max-inline-size: 8.5em;
  text-wrap: balance;
}

.reader-carousel { display: block; }
#testimonials {
  gap: 16px;
  border-radius: 0;
}
#testimonials.is-ticker {
  scroll-behavior: auto;
  scroll-snap-type: none;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
#testimonials > .testimonial-card {
  flex-basis: min(85%, clamp(260px, 32vw, 352px));
  justify-content: flex-start;
  min-height: 210px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  text-align: start;
}
#testimonials > .testimonial-card:only-child { flex-basis: 100%; }
.testimonial-card blockquote {
  flex: 1;
  font-size: clamp(1.08rem, 1.75vw, 1.35rem);
}
.testimonial-card .testimonial-book { margin-bottom: 14px; }
.testimonial-card .testimonial-reader { font-size: .875rem; }

.reader-signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
  margin-bottom: 30px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 18px;
  background: #fff;
}
.reader-signup h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 34px); }
.reader-signup-form > label:first-child { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.reader-signup-input { display: flex; flex-wrap: wrap; gap: 10px; }
.reader-signup-input input {
  min-width: 0;
  flex: 1 1 165px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.reader-signup-status:not(:empty) { margin-top: 10px; font-size: .9rem; }
@media (max-width: 760px) {
  .reader-signup { grid-template-columns: 1fr; }
}
