/* ============================================================
   COMPONENT: Featured Authors — Swiper carousel
   Matches original DOM:
     a.swiper-slide.swiper-featured-authors__item  (vertical stack)
       img.swiper-featured-authors__item-cover
       div.item
         h3.item-name
         p.item-desc
   ============================================================ */

@layer components {

/* ── Section wrapper ── */
.featured-authors {
  background: var(--color-cream);
  width: 100%;
  padding: 64px 0 64px;
  margin-bottom: 32px;
}
.featured-authors__inner {
  width: 100%;
  max-width: 1242px;
  padding: 0 36px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.featured-authors__heading {
  font-family: var(--font-serif);
  font-size: 35.2px;
  font-weight: 400;
  color: var(--color-body);
  margin-bottom: 1.2em;
  text-align: center;
}

/* ── Swiper outer container — explicit width needed because parent is flex-column with align-items:center ── */
.swiper-featured-authors-container {
  position: relative;
  width: calc(100% - 120px);
  margin: 0 60px;
  overflow: visible;
}

/* ── Each slide is an <a> — vertical flex stack ── */
.swiper-featured-authors__item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* ── Author photo: portrait crop — original is 9:10 ── */
.swiper-featured-authors__item-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
}
/* No photo yet: the author's initials on a plain tile of the same shape. */
.swiper-featured-authors__item-cover--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(226, 224, 220);
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--color-body);
  letter-spacing: 2px;
}

/* ── Text area below photo ── */
.swiper-featured-authors .item {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.swiper-featured-authors .item-name {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-body);
  line-height: 18px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}
.swiper-featured-authors .item-desc {
  font-size: var(--font-size-base);
  color: var(--color-body);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ── Prev/next arrows: Swiper default top:50% centers on slide — keep default ── */

/* ── Show All, in the book rows' style (owner, 21 Nov 2026: "change all"; "no view more button on the local author
   carousel": the carousel already holds every featured author) ── */
.featured-authors .show-after { margin-top: 32px; }
.featured-authors .show-after .show-more-prods { margin: 0; }

}
