/* Layout for the new content only. Typography, widths, cards, navigation and
   controls continue to use the original site.css and mobile.css styles. */
#banner {
  background-image:
    linear-gradient(to right, var(--bg-primary), transparent 20%),
    linear-gradient(to bottom, var(--bg-primary), transparent 14%, transparent 86%, var(--bg-primary)),
    url("/w/i/ecosystem-foundation.webp");
  /* Give the fades the same bounds as the image, including its aspect ratio. */
  background-size: 60% calc(60vw * 941 / 1672);
}

#banner .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1vh;
}

#services {
  scroll-margin-top: 12vh;
}

.mobile #services {
  scroll-margin-top: 40vw;
}

/* Leave space for the updated illustration below the longer mobile copy. */
.mobile #banner {
  padding-bottom: 55vw;
  background-size: 90% calc(90vw * 941 / 1672);
}

.eco-capability img {
  display: block;
  width: 100%;
  height: 20vh;
  object-fit: contain;
}

.eco-capability {
  margin-bottom: 2vh;
}

.eco-section-link {
  margin-top: 2vh;
}

.eco-preparation,
.eco-confidence,
.eco-agent-steps,
.eco-example-blocks,
.eco-learning-steps,
.eco-xishing-channels {
  margin: 3vh 0;
  padding: 0;
  list-style: none;
}

.eco-preparation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2vw;
}

.eco-step-number,
.eco-agent-steps li > span {
  color: var(--blue-primary);
}

.eco-confidence,
.eco-split,
.eco-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3vw;
}

.eco-agent-steps {
  display: grid;
  gap: 1vh;
}

.eco-agent-steps li {
  display: flex;
  gap: 1vw;
}

.eco-agent-steps h3 {
  margin-top: 0;
}

.eco-api-visual {
  min-width: 0;
  margin: 0;
}

.eco-api-visual img,
.eco-supplier-visual,
.eco-xishing-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.eco-api-visual img {
  width: 100%;
}

.eco-supplier-visual {
  width: 100%;
  max-height: 55vh;
}

.eco-example-blocks dd {
  margin-left: 0;
  color: var(--text-muted);
}

.eco-example-blocks > div {
  margin-bottom: 2vh;
}

.eco-learning-steps,
.eco-xishing-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2vw;
}

.eco-learning-steps img {
  display: block;
  width: 100%;
  height: 22vh;
  object-fit: contain;
}

.eco-xishing-image {
  width: 70%;
  margin: 2vh auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 900px) {
  .eco-preparation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .eco-confidence,
  .eco-split,
  .eco-example-grid,
  .eco-learning-steps,
  .eco-xishing-channels {
    grid-template-columns: minmax(0, 1fr);
  }

  .eco-xishing-image {
    width: 100%;
  }
}
