/* Reusable Featured Book component.
 * HomeBox currently provides its data on the home page; the visual component
 * is intentionally independent so the books page can reuse it later. */
.featured-book-item {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.featured-book-item .featured-book-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 0;
  background-color: var(--featured-book-title-background-color, var(--dark-color-1));
  color: var(--featured-book-title-color, var(--background-color));
  font-size: 125%;
  font-weight: bold;
}
.featured-book-item .featured-book-title h2 {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 125%;
  font-weight: normal;
  text-align: center;
}
.featured-book-item .featured-book-title h2:first-line {
  font-size: 125%;
  line-height: 150%;
  font-weight: bold;
}
.featured-book-item .featured-book-title h2 > a {
  color: inherit;
  text-decoration: none;
}
.featured-book-item .featured-book-promo-line {
  width: 100%;
  margin: 5px 0;
  padding: 0;
  text-align: center;
  color: var(--dark-color-1);
  font-size: 125%;
  font-weight: bold;
  line-height: 150%;
}
.featured-book-item .featured-book-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
.featured-book-item .featured-book-media {
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--background-color);
}
.featured-book-item .featured-book-media > img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-book-item .featured-book-media--fallback {
  padding: 18px;
  text-align: center;
}
.featured-book-item .featured-book-media--fallback > img {
  width: auto;
  max-width: 100%;
  max-height: 360px;
  margin: 0 auto;
}
.featured-book-item .featured-book-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  box-sizing: border-box;
}
.featured-book-item .featured-book-description {
  width: 94%;
  margin: 5px auto;
  line-height: 1.5em;
  text-align: justify;
}
.featured-book-item .featured-book-actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  box-sizing: border-box;
  padding: 10px;
}
.featured-book-item .featured-book-details {
  margin-inline-end: auto;
  color: var(--dark-color-2);
  font-weight: bold;
}
.featured-book-item .featured-book-purchase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  box-sizing: border-box;
  margin-inline-start: auto;
  padding: 6px 14px;
  border: 1px solid var(--dark-color-2);
  border-radius: 0;
  color: var(--background-color);
  background: var(--dark-color-2);
  font-weight: bold;
  text-decoration: none;
}
.featured-book-item .featured-book-purchase-status {
  margin-inline-start: auto;
  font-weight: bold;
}
.featured-book-item--landscape .featured-book-layout {
  flex-direction: column;
}
.featured-book-item--landscape .featured-book-media {
  width: 100%;
}
.featured-book-item--portrait .featured-book-layout {
  flex-direction: row;
  align-items: stretch;
}
.featured-book-item--portrait .featured-book-media {
  flex: 0 0 38%;
  align-self: flex-start;
}

@media only screen and (max-width: 928px) {
  .featured-book-item--portrait .featured-book-media {
    flex-basis: min(42%, 220px);
  }
}
@media only screen and (max-width: 620px) {
  .featured-book-item--portrait .featured-book-layout {
    flex-direction: column;
  }
  .featured-book-item--portrait .featured-book-media {
    width: 100%;
  }
  .featured-book-item--portrait .featured-book-media--fallback > img {
    max-height: 420px;
  }
}
/* Home-page flow. A single item is centered; multiple items wrap naturally. */
body.index > main {
  justify-content: center;
  column-gap: 4%;
}

body.index > main > section.home-item--book > .featured-book-item {
  width: 100%;
}

@media only screen and (max-width: 928px) {
  body.index > main {
    column-gap: 0;
  }
}

/*# sourceMappingURL=page-home.css.ffc1fcdad60a.map */
