/* A pair shares the cover column of the house's Complete Illustrated Book template. */
html[data-lift="book"] .bundle-detail .companion-hero > .bundle-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.55rem, 1.15vw, 1.2rem);
  margin: 0;
  width: 100%;
  max-width: none;
}
.bundle-covers a { display: block; min-width: 0; }
.bundle-covers img { display: block; width: 100%; height: auto; }
.bundle-detail .bundle-contents { padding-block: clamp(1.75rem, 5vw, 4rem); }
.bundle-contents ul { margin: 0; padding-inline-start: 1.15em; }
.bundle-contents li + li { margin-block-start: .55em; }
.bundle-sample-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.bundle-sample-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) {
  html[data-lift="book"] body.bundle-detail.complete-landing .companion-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: .55rem .85rem;
  }
  html[data-lift="book"] body.bundle-detail .companion-hero > .lift-back {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  html[data-lift="book"] body.bundle-detail .companion-hero > .companion-hero__cover.bundle-covers {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }
  html[data-lift="book"] body.bundle-detail .companion-hero .companion-hero__head {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }
  html[data-lift="book"] body.bundle-detail .companion-hero .companion-hero__hook {
    order: 0;
  }
}
.bundle-detail .bundle-covers img,
.catalogue-book .bundle-shelf-covers img {
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: none;
}
.bundle-detail .bundle-contents ul { margin-block-start: 1.3rem; }
html[data-lift] .catalogue-book a.catalogue-book__cover.bundle-shelf-covers {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 8px !important;
  background: none !important;
  box-shadow: none !important;
}
html[data-lift] .catalogue-book .bundle-shelf-covers img { width: 100% !important; height: auto !important; }
@media (min-width: 721px) {
  .bundle-detail .bundle-covers > a:nth-child(2) { margin-top: 1.5rem; }
}
@media (min-width: 64rem) {
  html[data-lift="book"] body.bundle-detail .companion-hero {
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr) !important;
  }
}

/* Dedicated Collector's Editions & Multi-Book Sets showcase on /books (#collections). */
html[data-lift="shop"] section#collections.bookshop-collections {
  padding-block: clamp(1.75rem, 3.2vw, 2.75rem);
  border-block-start: 1px solid var(--c1-rule);
}
.bookshop-collections__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  margin-block-end: clamp(1.25rem, 2.2vw, 1.75rem);
  max-width: none;
}
.bookshop-collections__head h2 {
  margin: 0 !important;
  font: 500 clamp(1.5rem, 2.3vw, 2rem)/1.18 var(--c1-serif) !important;
  letter-spacing: -0.015em;
  color: var(--c1-ink);
  text-wrap: balance;
}
.bookshop-collections__lead {
  margin: 0;
  max-width: 58ch;
  font: 400 0.9375rem/1.45 var(--c1-serif);
  color: var(--c1-muted);
  text-wrap: pretty;
}
.bookshop-collections__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  column-gap: 0 !important;
  row-gap: 16px !important;
  padding: clamp(20px, 2.4vw, 28px) !important;
  align-items: start !important;
  align-content: stretch !important;
  align-self: stretch !important;
  box-sizing: border-box;
}
.bookshop-combo__top {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card .bookshop-combo__covers {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 188px !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.bookshop-combo__story {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.bookshop-combo__wing {
  margin: 0;
  font: 500 0.875rem/1.35 var(--c1-serif);
  color: var(--c1-muted);
}
html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card .bookshop-combo__story h3 {
  margin: 0 !important;
  font: 600 clamp(1.22rem, 1.7vw, 1.45rem)/1.22 var(--c1-serif) !important;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.bookshop-combo__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 4px 0 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.bookshop-combo__price strong {
  font: 700 1.25rem/1.2 var(--c1-serif);
  color: var(--c1-ink);
}
.bookshop-combo__savings {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--c1-accent-tint);
  border: 1px solid var(--c1-rule);
  color: var(--c1-ink);
  font: 600 0.84375rem/1.35 var(--c1-serif);
}
.bookshop-combo__format {
  margin: 0;
  font: 400 0.90625rem/1.45 var(--c1-serif);
  color: var(--c1-muted);
}
.bookshop-combo__contents {
  grid-column: 1 !important;
  grid-row: 2 !important;
  margin: 0;
  padding: 14px 0 0 1.15em;
  border-block-start: 1px solid var(--c1-rule);
  display: grid;
  gap: 6px;
  font: 400 0.9375rem/1.5 var(--c1-serif);
  color: var(--c1-ink);
}
.bookshop-combo__desc {
  grid-column: 1 !important;
  grid-row: 2 !important;
  margin: 0;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--c1-rule);
  font: 400 0.9375rem/1.55 var(--c1-serif);
  color: var(--c1-ink);
}
.bookshop-combo__actions {
  grid-column: 1 !important;
  grid-row: 3 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: end;
  width: 100%;
  min-width: 0;
}
.bookshop-combo__actions form.c1-buy-form {
  width: 100%;
  margin: 0;
}
html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card .bookshop-combo__buy {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none !important;
}
.bookshop-combo__secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
}
.bookshop-combo__explore {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c1-accent) !important;
  font: 600 0.9375rem/1.3 var(--c1-serif);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}
.bookshop-combo__langs {
  margin: 2px 0 0;
  font: 400 0.875rem/1.45 var(--c1-serif);
  color: var(--c1-muted);
}
.bookshop-combo__langs a {
  color: var(--c1-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 920px) {
  .bookshop-collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 2.4vw, 28px);
    row-gap: 16px;
  }
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card:not(:last-child:nth-child(odd)) {
    grid-row: span 3 !important;
    grid-template-rows: subgrid !important;
    row-gap: 16px !important;
  }
  /* Future-proof odd 3rd combo (e.g. Ramana Collector's Edition): balanced 2-pane horizontal feature card, zero orphan! */
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: clamp(24px, 3vw, 40px) !important;
    row-gap: 16px !important;
  }
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card:last-child:nth-child(odd) .bookshop-combo__top {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card:last-child:nth-child(odd) .bookshop-combo__contents,
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card:last-child:nth-child(odd) .bookshop-combo__desc {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card:last-child:nth-child(odd) .bookshop-combo__actions {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    padding-inline-start: clamp(20px, 2.4vw, 32px);
    border-inline-start: 1px solid var(--c1-rule);
  }
}

@media (max-width: 560px) {
  .bookshop-combo__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  html[data-house-frame="shop"] body.skin main article.catalogue-book.bookshop-combo-card .bookshop-combo__covers {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(100%, 248px) !important;
  }
  .bookshop-combo__story {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .bookshop-combo__secondary {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .bookshop-combo__explore {
    justify-content: center;
  }
}
