/* Real covers and existing category filters; the book dialog is untouched. */
.bhm-featured-book-collections { margin: 0; padding: 32px 0 0; color: var(--bhm-ink, #222630); }
.bhm-featured-book-collections__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 28px; margin-bottom: 24px; }
.bhm-featured-book-collections__heading .bhm-eyebrow { margin: 0 0 9px; color: var(--bhm-dark-red, #951b24); font: 650 10px/1.5 var(--bhm-font, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.bhm-featured-book-collections__heading h2 { margin: 0; color: inherit; font: 400 clamp(30px, 3vw, 42px)/1.12 var(--bhm-display, Georgia, serif); letter-spacing: -.025em; }
.bhm-featured-book-collections__heading > a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; border-bottom: 1px solid var(--bhm-line, #d9d4ca); color: var(--bhm-ink, #222630); font: 600 13px/1.5 var(--bhm-font, sans-serif); text-decoration: none; white-space: nowrap; }
.bhm-featured-book-collections__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bhm-book-collection-feature { --collection-paper: #f1ede2; display: flex; flex-direction: column; min-width: 0; margin: 0; background: var(--collection-paper); border: 1px solid #ded8cc; border-top: 3px solid var(--bhm-dark-red, #951b24); }
.bhm-book-collection-feature--lives { --collection-paper: #f3e9e2; }
.bhm-book-collection-feature--children { --collection-paper: #ebeee3; }
.bhm-book-collection-feature__covers { display: flex; align-items: end; justify-content: center; gap: 12px; min-width: 0; height: 164px; padding: 20px 22px 18px; border-bottom: 1px solid #d9d2c5; box-sizing: border-box; }
.bhm-book-collection-feature__covers > a { display: flex; align-items: end; justify-content: center; flex: 1 1 0; min-width: 44px; max-width: 108px; height: 100%; }
.bhm-book-collection-feature__covers img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(3px 5px 3px #30291d26); }
.bhm-book-collection-feature__browse { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 12px; color: var(--bhm-ink, #222630); text-decoration: none; }
.bhm-book-collection-feature__count { margin: 0 0 9px; color: var(--bhm-dark-red, #951b24); font: 650 10px/1.5 var(--bhm-font, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.bhm-book-collection-feature h3 { margin: 0 0 10px; color: var(--bhm-ink, #222630); font: 400 clamp(25px, 2.3vw, 31px)/1.1 var(--bhm-display, Georgia, serif); letter-spacing: -.02em; overflow-wrap: break-word; }
.bhm-book-collection-feature__description { margin: 0 0 14px; color: #50554e; font: 400 14px/1.6 var(--bhm-font, sans-serif); }
.bhm-book-collection-feature__action { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: auto; border-top: 1px solid #d5cec1; color: var(--bhm-dark-red, #951b24); font: 650 13px/1.5 var(--bhm-font, sans-serif); }
.bhm-book-collection-feature__action > span { font-size: 22px; font-weight: 400; }
.bhm-book-collection-feature__browse:hover { color: var(--bhm-ink, #222630); text-decoration: none; }
.bhm-book-collection-feature__browse:hover h3 { color: var(--bhm-dark-red, #951b24); }
.bhm-book-collection-feature__browse:hover .bhm-book-collection-feature__action { text-decoration: underline; text-underline-offset: 4px; }
.bhm-book-collection-feature__covers > a:hover { background: #ffffff45; }
.bhm-book-topic-links { display: flex; align-items: baseline; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--bhm-line, #d9d4ca); }
.bhm-book-topic-links > p { flex-shrink: 0; margin: 0; color: #555b60; font: 500 12px/1.6 var(--bhm-font, sans-serif); }
.bhm-book-topic-links ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.bhm-book-topic-links li { margin: 0; padding: 0; }
.bhm-book-topic-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--bhm-dark-red, #951b24); font: 600 12px/1.5 var(--bhm-font, sans-serif); text-decoration: none; }
.bhm-book-topic-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bhm-featured-book-collections a:focus-visible { outline: 3px solid var(--bhm-dark-red, #951b24); outline-offset: 4px; }

/* The homepage owns its heading and supporting links; these cards stay concise. */
.bhm-featured-book-collections--compact { padding: 0; }
.bhm-featured-book-collections--compact .bhm-book-collection-feature__covers { height: 144px; padding-block: 16px; }
.bhm-featured-book-collections--compact .bhm-book-collection-feature__browse { padding: 14px 18px 8px; }
.bhm-featured-book-collections--compact .bhm-book-collection-feature__count { margin-bottom: 8px; }
.bhm-featured-book-collections--compact .bhm-book-collection-feature h3 { font-size: 28px; margin-bottom: 9px; }
.bhm-featured-book-collections--compact .bhm-book-collection-feature__description { font-size: 13px; line-height: 1.55; margin-bottom: 12px; }

@media (max-width: 959px) {
  .bhm-featured-book-collections__grid { gap: 16px; }
  .bhm-book-collection-feature__covers { height: 150px; padding: 18px 16px 16px; gap: 8px; }
  .bhm-book-collection-feature__browse { padding: 18px 18px 10px; }
  .bhm-book-collection-feature h3 { font-size: 27px; }
  .bhm-book-topic-links { flex-direction: column; }
}

@media (max-width: 699px) {
  .bhm-featured-book-collections { padding-top: 26px; }
  .bhm-featured-book-collections--compact { padding-top: 0; }
  .bhm-featured-book-collections__heading { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
  .bhm-featured-book-collections__grid { grid-template-columns: minmax(0, 1fr); }
  .bhm-book-collection-feature { flex-direction: row; }
  .bhm-book-collection-feature__covers,
  .bhm-featured-book-collections--compact .bhm-book-collection-feature__covers { align-self: stretch; flex: 0 0 36%; align-items: center; height: auto; min-height: 200px; padding: 18px 12px; border-bottom: 0; border-right: 1px solid #d9d2c5; }
  .bhm-book-collection-feature__covers > a { width: 100%; max-width: 98px; height: auto; flex: 0 1 auto; }
  .bhm-book-collection-feature__covers > a:not(:first-child) { display: none; }
  .bhm-book-collection-feature__covers img { max-height: 165px; }
  .bhm-book-collection-feature__browse,
  .bhm-featured-book-collections--compact .bhm-book-collection-feature__browse { min-width: 0; padding: 18px 18px 10px; }
  .bhm-book-collection-feature h3,
  .bhm-featured-book-collections--compact .bhm-book-collection-feature h3 { font-size: 27px; }
  .bhm-book-collection-feature__description { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
  .bhm-book-topic-links ul { gap: 0 20px; }
}

@media (max-width: 379px) {
  .bhm-book-collection-feature__covers,
  .bhm-featured-book-collections--compact .bhm-book-collection-feature__covers { flex-basis: 30%; padding-inline: 9px; }
  .bhm-book-collection-feature__browse,
  .bhm-featured-book-collections--compact .bhm-book-collection-feature__browse { padding-inline: 14px; }
  .bhm-book-collection-feature h3,
  .bhm-featured-book-collections--compact .bhm-book-collection-feature h3 { font-size: 24px; }
}
