/* Shared visual states for the homepage-style love-letters card stack. */
[data-swiper="lovelatters-new"] .swiper-slide .lovelatters__block {
  background: #747481;
  transition: background-color .8s;
}

[data-swiper="lovelatters-new"] .swiper-slide-prev .lovelatters__block,
[data-swiper="lovelatters-new"] .swiper-slide-next .lovelatters__block {
  background: #becde2;
}

[data-swiper="lovelatters-new"] .swiper-slide-active .lovelatters__block {
  background: var(--white);
}

[data-swiper="lovelatters-new"] .swiper-slide-prev-second .lovelatters__block,
[data-swiper="lovelatters-new"] .swiper-slide-next-second .lovelatters__block {
  background: #788faf;
}

[data-swiper="lovelatters-new"] .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next):not(.swiper-slide-prev-second):not(.swiper-slide-next-second) {
  visibility: hidden;
}

/* Mobile behavior is shared independently of the page's visual variant. */
@media screen and (max-width: 767px) {
  [data-swiper="lovelatters-new"][data-review-mode="slide"] {
    overflow: hidden;
    border-radius: .25rem;
  }

  [data-swiper="lovelatters-new"][data-review-mode="slide"] .swiper-wrapper {
    transition-timing-function: cubic-bezier(.76, 0, .24, 1);
  }

  [data-swiper="lovelatters-new"][data-review-mode="slide"] .swiper-slide {
    visibility: visible !important;
  }

  [data-swiper="lovelatters-new"][data-review-mode="slide"] .lovelatters__block {
    background: var(--white);
    transition: none;
  }

  .lovelatters-container + .slider-pagin-wrap {
    display: flex !important;
  }
}

@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
  [data-swiper="lovelatters-new"][data-review-mode="slide"] .swiper-wrapper {
    transition-duration: 0s !important;
  }
}

/* Approved reference variant: current component owns its styles.
   The existing page opt-in preserves all other consumers. */
.loveletters-awards.mod--mobile-2026 {
  display: none;
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters-container {
    margin-inline: -.75rem;
    border-radius: .25rem;
    background: var(--white);
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters-heading {
    top: 2rem;
    inset-inline: .75rem;
    letter-spacing: -.05rem;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .swiper.mod--lovelatters {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__block.mod--compact {
    min-height: 26.25rem;
    padding: 8.5rem .75rem 6.4375rem;
    justify-content: flex-start;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__text.mod--compact {
    margin-top: .75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -.01125rem;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__block .rating-wrap {
    gap: .25rem;
    align-items: center;
    height: .625rem;
    overflow: visible;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__block .rating-text {
    font-size: .875rem;
    line-height: 1.2;
    letter-spacing: -.0175rem;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__block .rating {
    gap: .09375rem;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__block .rating__star {
    width: .75rem;
    height: .625rem;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters__block .author__name {
    margin-bottom: 0;
    line-height: 1.6;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .loveletters-awards-wrap.mod--compact {
    inset-inline: .75rem;
    bottom: 1.5rem;
    padding-inline: 0;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .loveletters-awards.mod--mobile-2026 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    gap: .75rem;
    padding-top: 1.25rem;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .loveletters-awards__img.mod--compact {
    flex: 0 1 calc((100% - 1.5rem) / 3);
    width: calc((100% - 1.5rem) / 3);
    height: 1.6875rem;
    margin: 0;
    object-fit: contain;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .loveletters-awards:not(.mod--mobile-2026) {
    display: none;
  }
}

@media screen and (max-width: 767px) {
[data-mobile-layout="2026"] .lovelatters-container + .slider-pagin-wrap {
    display: flex !important;
    margin-top: 1.5rem;
  }
}

[data-mobile-layout="2026"] .lovelatters__text.mod--compact {
  font-weight: 400;
  line-height: var(--type-quote-leading);
}

[data-mobile-layout="2026"] .lovelatters__text.mod--compact {
  font-size: var(--type-quote-size);
}

[data-mobile-layout="2026"] .lovelatters__block,
[data-mobile-layout="2026"] .lovelatters-container {
  border-radius: var(--2);
}

@media screen and (max-width: 767px) {
  .lovelatters__block, .lovelatters-container,
  [data-mobile-layout="2026"] .lovelatters__block,
  [data-mobile-layout="2026"] .lovelatters-container,
  [data-mobile-layout="2026"] [data-swiper="lovelatters-new"][data-review-mode="slide"] {
    border-radius: var(--4);
  }
}

@media screen and (min-width: 768px) {
  [data-mobile-layout="2026"] [data-swiper="lovelatters-new"][data-review-mode="slide"] { border-radius: var(--radius-card); }
}

/* Center each mobile review group within the shared paper content area. */
@media screen and (max-width: 767px) {
  .lovelatters__block.mod--compact,
  [data-mobile-layout="2026"] .lovelatters__block.mod--compact { justify-content: center; }
}
