/* Editorial book card shared by desktop and mobile. */
.mobile-book-availability { display: none; }
.universe-home .hub-book .hub-card-kicker i {
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.universe-home .hub-book .hub-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 175px;
}

.universe-home .hub-book .hub-feature h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 12px 0;
}

.universe-home .hub-book .hub-art {
  flex: 0 0 150px;
  width: 150px;
  margin: 0;
}

.universe-home .hub-book .hub-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 10px #75434f30);
}

.universe-home .hub-book .hub-card-bottom {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.book-offer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.book-offer-label {
  color: #95596a;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .08em;
}

.book-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.book-price-row s {
  color: #806b66;
  font-size: 10px;
  text-decoration-thickness: 1px;
}

.book-price-row b {
  margin-left: 0;
  font-size: 17px;
}

.book-buy-cta {
  display: inline-flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  gap: 12px;
  padding: 20px 24px;
  border-radius: 4px;
  background: #75434f;
  color: #fcf6f2;
  font-size: 16px;
  font-weight: 600;
}

.book-buy-cta .ui-symbol {
  filter: brightness(0) invert(1);
}

.universe-home .hub-book .book-delivery {
  display: inline-block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: .015em;
}

@media (max-width: 540px) {
  .universe-home .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .universe-home .hub-card {
    min-width: 0;
    min-height: 205px;
    padding: 11px 8px 10px;
    overflow: hidden;
  }

  .universe-home .hub-book {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 17px 17px 15px;
  }

  .universe-home .hub-book .hub-feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 180px;
  }

  .universe-home .hub-book .hub-feature h2 {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 12px 0;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.02;
  }

  .universe-home .hub-book .hub-art {
    flex: 0 0 112px;
    align-self: center;
    width: 112px;
    margin: 0;
  }

  .universe-home .hub-book .hub-art figcaption {
    font-size: 5px;
  }

  .universe-home .hub-book .hub-card-bottom {
    gap: 7px;
  }

  .book-offer-label {
    font-size: 6px;
  }

  .book-price-row {
    gap: 5px;
  }

  .book-price-row s {
    font-size: 8px;
  }

  .book-price-row b {
    font-size: 13px;
  }

  .book-buy-cta {
    gap: 10px;
    padding: 20px 16px;
    font-size: 16px;
  }

  .universe-home .hub-book .book-delivery {
    font-size: 7px;
  }

  .universe-home .hub-kit,
  .universe-home .hub-merch,
  .universe-home .hub-verse {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 10px 7px 9px;
  }

  .universe-home .hub-card-kicker {
    min-height: 47px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    font-size: 5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .universe-home .hub-card-kicker i {
    max-width: 100%;
    padding: 2px 4px;
    font-size: 5px;
    line-height: 1.3;
    white-space: normal;
  }

  .universe-home .hub-kit .hub-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
  }

  .universe-home .hub-kit .hub-feature h2 {
    width: 100%;
    margin: 7px 0 5px;
    font-size: clamp(12px, 3.6vw, 15px);
    line-height: 1.05;
  }

  .universe-home .hub-kit .hub-art {
    flex: 0 0 48px;
    align-self: center;
    width: 48px;
    margin: 0 auto 5px;
  }

  .universe-home .hub-merch h2,
  .universe-home .hub-verse h2 {
    margin: 7px 0;
    font-size: clamp(11px, 3.5vw, 14px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .universe-home .hub-card p {
    min-height: 0;
    margin: 0 0 8px;
    font-size: 7px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .universe-home .hub-book p {
    margin-bottom: 12px;
    font-size: 8px;
  }

  .universe-home .hub-card-bottom {
    min-height: 18px;
    align-items: flex-end;
    gap: 3px;
    margin-top: auto;
    font-size: 6px;
    line-height: 1.3;
  }

  .universe-home .hub-card-bottom > span:first-child {
    max-width: calc(100% - 15px);
  }

  .universe-home .hub-card-bottom b {
    font-size: 9px;
  }

  .universe-home .hub-arrow {
    flex: 0 0 auto;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .universe-home .hub-book {
    padding-inline: 12px;
  }

  .universe-home .hub-book .hub-feature {
    gap: 7px;
  }

  .universe-home .hub-book .hub-feature h2 {
    font-size: 27px;
  }

  .universe-home .hub-book .hub-art {
    flex-basis: 100px;
    width: 100px;
  }

  .universe-home .hub-kit,
  .universe-home .hub-merch,
  .universe-home .hub-verse {
    padding-inline: 6px;
  }
}

/* Put the purchase first inside the book card on phones. */
@media (max-width: 760px) {
  .mobile-book-first .hub-book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "buy cover" "title cover" "price cover";
    gap: 12px;
    align-items: start;
    padding: 18px 14px;
    text-align: left;
  }
  .mobile-book-first .hub-book .hub-card-bottom { display: contents; }
  .mobile-book-first .hub-book .book-buy-cta {
    grid-area: buy;
    min-width: 0;
    min-height: 80px;
    margin: 0;
    padding: 15px 10px;
    gap: 5px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 5px 14px #75434f24;
  }
  .mobile-book-first .hub-book .hub-card-kicker {
    display: none;
  }
  .mobile-book-first .hub-book .hub-card-kicker i { display: none; }
  .mobile-book-first .hub-book .hub-feature {
    display: contents;
  }
  .mobile-book-first .hub-book .hub-feature h2 {
    grid-area: title;
    margin: 0;
    font-size: clamp(25px, 6.5vw, 38px);
    line-height: 1.05;
  }
  .mobile-book-first .hub-book .hub-art {
    grid-area: cover;
    align-self: center;
    width: 100%;
    margin: 0;
  }
  .mobile-book-first .hub-book .hub-art .mobile-book-availability {
    display: block;
    position: static;
    margin: 9px 0 0;
    padding: 0;
    font: 600 10px/1.5 var(--sans, sans-serif);
    color: #75434f;
    text-align: center;
  }
  .mobile-book-first .hub-book > p { display: none; }
  .mobile-book-first .hub-book .book-delivery { font-size: 9px; }
  .mobile-book-first .hub-book .book-offer { grid-area: price; max-width: none; gap: 5px; }
  .mobile-book-first .hub-book .book-offer-label { font-size: 8px; }
  .mobile-book-first .hub-book .book-price-row b { font-size: 23px; }
  .mobile-book-first .hub-book .book-price-row s { font-size: 12px; }
}
