/* Blog list intro — split heading + description (blog.php only) */

.blp-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

.blp-intro__title {
  margin: 0;
  flex: 0 1 1024px;
  max-width: 1024px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 52px);
  line-height: 1.1;
  color: var(--text-main);
  text-align: left;
}

.blp-intro__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
}

.blp-intro__title,
.blp-intro__text {
  min-width: 0;
}

.blp-intro__text {
  margin: 21px 0 0;
  flex: 0 0 401px;
  width: 401px;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text);
  opacity: 0.85;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 48px;
}

/* Match blog card excerpt — max 2 lines */
.blog-list-posts .blog-card h3 {
  min-height: 2em;
}

.blog-list-posts .blog-card p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 48px;
}

/* Clickable featured hero image (blog list) */
.blog-list-featured__hero-media--linked {
  pointer-events: auto;
}

.blog-list-featured__hero-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.blog-list-featured__hero-link img:not(.blog-list-hero__img) {
  position: absolute;
  left: 0;
  top: -13.88%;
  display: block;
  width: 100%;
  height: 137.78%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.blog-list-page .blog-list-featured__hero-link img.blog-list-hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  background-color: var(--forest);
}

@media (max-width: 1024px) {
  .blp-intro {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .blp-intro__title,
  .blp-intro__text {
    flex: none;
    max-width: 100%;
    text-align: center;
  }

  .blp-intro__title br {
    display: none;
  }

  .blp-intro__title br + em::before {
    content: ' ';
  }

  .blp-intro__text {
    margin-top: 0;
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}
