.list-heading {
  display: block;
  margin-bottom: 8px;
}

.list-heading + .check-list {
  margin-top: 0;
}

/* Keep listing-card titles distinct from global section and page headings. */
.blog-card h2 {
  font-size: clamp(2rem, 2.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.tool-card h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Equal-height CTA cards share one vertical stack without fixed text heights. */
.card-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-stack .card-cta {
  margin-top: auto;
  padding-top: 20px;
}

.project-card > .ordered-card-content,
.project-card .ordered-card-support {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Explicit heading, primary visual, and supporting-content components. */
@media (max-width: 900px) {
  .ordered-media-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ordered-media-content {
    display: contents;
  }

  .ordered-media-heading {
    order: 1;
    margin-bottom: 24px;
  }

  .ordered-media-section > .ordered-media-visual,
  .split.ordered-media-section > .ordered-media-visual {
    order: 2;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }

  .ordered-media-support {
    order: 3;
  }

  .ordered-media-support > :first-child {
    margin-top: 0;
  }

  .ordered-media-visual.media-card > img {
    height: auto;
  }
}

@media (max-width: 620px) {
  .card-stack {
    height: auto;
  }

  .ordered-media-card {
    display: flex;
    flex-direction: column;
  }

  .ordered-card-content {
    display: contents;
  }

  .ordered-card-heading {
    order: 1;
  }

  .ordered-card-visual {
    order: 2;
  }

  .ordered-card-support {
    order: 3;
  }

  .project-card h3 {
    padding: 26px 26px 0;
    margin-bottom: 20px;
  }

  .project-card > img,
  .blog-card > img {
    margin-bottom: 24px;
  }

  .project-card > div > :not(h3) {
    margin-right: 26px;
    margin-left: 26px;
  }

  .project-card .text-link {
    margin-bottom: 26px;
  }

  .blog-card h2 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.08;
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .article-header > img {
    margin: 0 0 24px;
  }
}
