/* The Book Club's blocks (modules/bookclub), filled in by bookclub.js. Loaded
   after assets/site.css on pages and in the page editor. */

/* the headings font (Settings > Fonts) */
.kk-current-book-title, .kk-lbc .book-title, .kk-lbc .host-name, .kk-lbc .year-line {
  font-family: var(--font-heading);
}
/* rich text parts are wrapped in paragraphs; keep them tight */
.kk-lbc .host-name p, .kk-lbc .disclaimer p { margin: 0; }

/* ---------- Current book card (filled in by bookclub.js) ---------- */
.kk-current-book {
  display: flex;
  gap: 28px;
  align-items: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.kk-current-book-cover { flex: 0 0 160px; }
.kk-current-book-cover img { width: 160px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
.kk-current-book-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 18px;
  border-radius: 20px;
}
.kk-current-book-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 10px 0 4px;
}
.kk-current-book-meta { font-size: 15px; margin: 0 0 14px; }
.kk-current-book-empty { color: var(--fg-muted); font-weight: 700; }

/* ---------- Book club timeline (filled in by bookclub.js) ----------
   Same layout as the original lbc/index.html: covers down a dashed spine,
   details alternating left and right, "hosted by" blob beside the first. */
.kk-lbc { position: relative; z-index: 1; }
.kk-lbc .year-line {
  font-size: 32px;
  font-weight: 900;
  margin-top: -4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
/* straight under a page title, the year sits close like on the old page */
.kk-title + .kk-lbc .year-line { margin-top: -16px; }
.kk-lbc .year-arrow { display: inline-flex; width: 28px; height: 28px; color: var(--red); cursor: pointer; }
.kk-lbc .year-arrow:hover { color: var(--fg); }
.kk-lbc .year-arrow.is-empty { visibility: hidden; }
.kk-lbc .empty-note { text-align: center; font-size: 18px; font-weight: 700; padding: 40px 0; }
.kk-lbc .timeline { position: relative; padding: 20px 0 60px; }
.kk-lbc .spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 3px dashed #999;
  transform: translateX(-50%);
  z-index: 0;
}
.kk-lbc .cover-slot { width: 160px; margin: 0 auto 40px; text-align: center; position: relative; z-index: 2; }
.kk-lbc .cover-slot a { display: block; position: relative; }
.kk-lbc .cover-slot img {
  width: 160px;
  max-width: 100%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto;
}
.kk-lbc .entry { position: absolute; width: calc(50% - 110px); text-align: left; }
.kk-lbc .entry.side-left { left: 0; }
.kk-lbc .entry.side-right { right: 0; }
.kk-lbc .hosted-slot { text-align: center; }
.kk-lbc .hosted-block {
  position: relative;
  text-align: center;
  max-width: 95%;
  margin: 0 auto;
  padding: 40px 10px;
  color: var(--black);
  isolation: isolate;
}
/* the blob is a mask, so it takes the accent colour from Settings */
.kk-lbc .hosted-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--red);
  -webkit-mask: url("blob.svg") center / cover no-repeat;
  mask: url("blob.svg") center / cover no-repeat;
}
.kk-lbc .host-name { font-size: clamp(2.2em, 3.2vw, 2.5em); font-weight: 900; line-height: 1.25; }
.kk-lbc .disclaimer { font-size: 1em; margin-top: 10px; line-height: 1.4; padding: 0 40px; }
.kk-lbc .disclaimer u { text-decoration: underline; }
.kk-lbc .date-row { margin-bottom: 8px; }
.kk-lbc .date-pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 18px;
  border-radius: 20px;
  position: relative;
}
.kk-lbc .connector { position: absolute; top: 15px; height: 0; border-top: 3px dashed #999; z-index: 0; }
.kk-lbc .entry.side-right .connector { right: 100%; width: 30px; }
.kk-lbc .book-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 4px 0 8px;
}
.kk-lbc .meta-line { font-size: 15px; margin: 2px 0; }
.kk-lbc .label { font-weight: 700; }
.kk-page .kk-lbc .meta-line a { color: var(--red); }
.kk-lbc .guest { white-space: nowrap; }
.kk-lbc .guest-links { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; vertical-align: -3px; }
.kk-page .kk-lbc .guest-link { display: inline-flex; color: var(--red); text-decoration: none; }
.kk-lbc .guest-link svg { flex-shrink: 0; }
.kk-page .kk-lbc .guest-link:hover, .kk-page .kk-lbc .aff-link:hover { color: var(--fg); }
.kk-lbc .mobile-cover { position: relative; display: none; }
/* a little tag stuck on the cover's corner, like on the Canva poster */
.kk-lbc .guest-sticker {
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 3px;
  transform: rotate(8deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  pointer-events: none;
}
.kk-page .kk-lbc .aff-link { display: inline-flex; vertical-align: middle; color: var(--red); }
.kk-lbc .tw-label { font-weight: 700; font-size: 15px; margin-top: 4px; display: block; }
.kk-lbc .tw-list { margin: 2px 0 8px; padding-left: 20px; font-size: 15px; line-height: 1.35; }
.kk-lbc .synopsis { font-size: 15px; line-height: 1.4; margin-top: 4px; }

@media (max-width: 800px) {
  .kk-current-book { flex-direction: column; text-align: center; }
  .kk-current-book-cover { flex-basis: auto; }
  .kk-current-book .kk-buttons { justify-content: center; }
  .kk-lbc .entry, .kk-lbc .cover-slot, .kk-lbc .hosted-slot {
    position: static !important;
    width: 100% !important;
    margin-bottom: 24px;
  }
  .kk-lbc .connector, .kk-lbc .spine, .kk-lbc .cover-slot { display: none; }
  .kk-lbc .mobile-info-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 4px; }
  .kk-lbc .mobile-cover-col { flex: 0 0 auto; }
  .kk-lbc .mobile-info-col { flex: 1 1 auto; min-width: 0; }
  .kk-lbc .mobile-cover { display: block; width: 100px; }
  .kk-lbc .mobile-cover img { width: 100%; display: block; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
}
