/* The supplied latest-articles reference, using the existing 1240px content frame. */
.home-page #latest.latest-reference {
  --latest-ink: #310818;
  --latest-muted: #675766;
  --latest-accent: #a70244;
  --latest-badge: #f9e1f0;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* The fade overlaps the hero, so there is no horizontal colour seam. */
.home-page #latest.latest-reference::before {
  content: "";
  position: absolute;
  inset: -150px 0 -90px;
  z-index: -1;
  pointer-events: none;
  background: url("../img/latest-reference-scene.svg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 150px, #000 calc(100% - 110px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 150px, #000 calc(100% - 110px), transparent);
}

.home-page #latest .latest-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--home-section-space) 28px;
}

.home-page #latest .section-heading {
  align-items: center;
  margin-bottom: 44px;
}

.home-page #latest .section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0;
  padding: 5px 17px;
  border-radius: 10px;
  background: #f6ddf0;
  color: #842578;
  font-size: 15px;
  line-height: 1.5;
}
.home-page #latest .section-kicker .section-icon { display: block; width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

.home-page #latest .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 5px 15px;
  border: 1.5px solid var(--latest-accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  color: var(--latest-accent);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}

.home-page #latest .carousel-track {
  padding-bottom: 34px;
}

.home-page #latest .content-card {
  display: flex;
  flex-direction: column;
  border: 3px solid #fff;
  border-radius: 10px;
  background: rgba(255, 252, 254, .96);
  box-shadow: 0 18px 29px -15px rgba(167, 2, 68, .25);
  color: var(--latest-ink);
}

.home-page #latest .card-media {
  flex-shrink: 0;
  height: 240px;
  background: var(--latest-badge);
}

.home-page #latest .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 20px 21px;
}

.home-page #latest .content-meta {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.home-page #latest .content-meta > a {
  max-width: 65%;
  padding: 3px 12px;
  border-radius: 10px;
  background: var(--latest-badge);
  color: var(--latest-accent);
  font-weight: 700;
}

.home-page #latest .content-meta time {
  color: #827182;
  white-space: nowrap;
}

.home-page #latest .content-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 13px 0 12px;
  color: var(--latest-ink);
  font-size: 22px;
  line-height: 1.55;
}

.home-page #latest .content-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0 0 16px;
  color: var(--latest-muted);
  font-size: 14px;
  line-height: 1.85;
}

.home-page #latest .read-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--latest-accent);
  font-size: 15px;
  line-height: 1.7;
}

.home-page #latest .carousel-stage > .carousel-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #f3d5e9;
  box-shadow: 0 9px 18px -8px rgba(167, 2, 68, .24);
}

.home-page #latest .outline-button:focus-visible,
.home-page #latest .card-media:focus-visible,
.home-page #latest .card-body a:focus-visible {
  outline: 3px solid var(--latest-accent);
  outline-offset: 4px;
}

/* The reference replaces the former cream decoration at the article/video join. */
.home-page #latest.latest-reference + .article-video-bridge::before { content: none; }

@media (hover: hover) {
  .home-page #latest .content-card:hover {
    box-shadow: 0 23px 34px -16px rgba(167, 2, 68, .32);
  }
  .home-page #latest .outline-button:hover {
    background: var(--latest-accent);
    color: #fff;
  }
}

@media (max-width: 720px) {
  .home-page #latest.latest-reference::before {
    inset-block: -100px -60px;
    background-size: auto 100%;
    background-position: 65% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 110px, #000 calc(100% - 75px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 110px, #000 calc(100% - 75px), transparent);
  }
  .home-page #latest .latest-inner { padding-inline: 18px; }
  .home-page #latest .section-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 28px;
  }
  .home-page #latest .section-kicker { font-size: 14px; padding: 5px 14px; }
  .home-page #latest .carousel-heading-actions { width: auto; flex: 0 0 auto; justify-content: flex-end; }
  .home-page #latest .outline-button { white-space: nowrap; }
  .home-page #latest .carousel-stage { --carousel-control-top: 12px; --carousel-control-bottom: 25px; }
  .home-page #latest .carousel-track { padding-bottom: 25px; }
  .home-page #latest .content-card { border-radius: 10px; }
  .home-page #latest .card-media { height: 210px; }
  .home-page #latest .card-body { padding: 17px 28px 20px; }
  .home-page #latest .content-card h3 { font-size: 21px; }
  .home-page #latest .content-card p { font-size: 14px; }
  .home-page #latest .content-meta { font-size: 11px; }
  .home-page #latest .carousel-stage > .carousel-controls button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page #latest .content-card,
  .home-page #latest .card-media img { transition: none; }
}
