/* Sustainability — workflows (icon boxes grid). */

#sec-sustainable-workflows.opx-sustainable-workflows {
  box-sizing: border-box;
  margin: 0;
  padding: var(--wp--preset--spacing--section-y, 5%) 0;
}

#sec-sustainable-workflows .opx-sustainable-workflows__inner.kit-boxed {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: var(--wp--style--root--padding-left, 72px);
  padding-right: var(--wp--style--root--padding-right, 72px);
}

@media (min-width: 1025px) {
  #sec-sustainable-workflows.opx-sustainable-workflows {
    padding-top: 51px;
    padding-bottom: 58px;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__inner.kit-boxed {
    /* Wide screens: content capped at 1400px (production boxed width). */
    padding-left: max(164px, calc((100% - 1400px) / 2));
    padding-right: max(164px, calc((100% - 1400px) / 2));
  }
}

#sec-sustainable-workflows .opx-sustainable-workflows__heading {
  margin: 8px 0 16px;
  text-align: center;
  color: var(--wp--preset--color--ink);
}

#sec-sustainable-workflows .opx-sustainable-workflows__intro {
  margin: 0 auto 14.4px;
  max-width: 70%;
  text-align: center;
  color: var(--wp--preset--color--ink);
}

#sec-sustainable-workflows .opx-sustainable-workflows__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 35px;
  row-gap: 60px;
  align-items: start;
  width: 100%;
  margin: 30px 0 0;
  padding: 0;
  --wp--style--block-gap: 0;
}

#sec-sustainable-workflows .opx-sustainable-workflows__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#sec-sustainable-workflows .opx-sustainable-workflows__card .wp-block-html {
  min-height: 48px;
  margin: 0 0 20px;
  line-height: 0;
}

#sec-sustainable-workflows .opx-sustainable-workflows__icon {
  display: block;
  font-size: 40px;
  line-height: 1;
  color: var(--wp--preset--color--accent);
  flex-shrink: 0;
  margin: 0 0 20px;
}

#sec-sustainable-workflows .opx-sustainable-workflows__card-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

#sec-sustainable-workflows .opx-sustainable-workflows__title {
  margin: 0 0 8px;
  color: var(--wp--preset--color--ink);
  text-align: left;
}

#sec-sustainable-workflows .opx-sustainable-workflows__desc {
  margin: 0;
  color: var(--wp--preset--color--ink);
  text-align: left;
}

@media (max-width: 1024px) and (min-width: 769px) {
  #sec-sustainable-workflows.opx-sustainable-workflows {
    padding-top: 56px;
    padding-bottom: 46px;
  }
}

@media (max-width: 1024px) {
  #sec-sustainable-workflows .opx-sustainable-workflows__intro {
    max-width: 100%;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 55px;
    row-gap: 30px;
    margin-top: 24px;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__card {
    max-width: none;
  }
}

@media (max-width: 768px) and (min-width: 768px) {
  #sec-sustainable-workflows.opx-sustainable-workflows {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 55px;
    row-gap: 30px;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__card {
    max-width: none;
  }
}

@media (max-width: 767px) {
  #sec-sustainable-workflows.opx-sustainable-workflows {
    padding-top: 45px;
    padding-bottom: var(--wp--preset--spacing--section-y-4-5pct-m9pct, 10%);
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__intro {
    max-width: 331px;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__inner.kit-boxed {
    padding-left: var(--wp--style--root--padding-left, 20px);
    padding-right: var(--wp--style--root--padding-right, 20px);
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    column-gap: 0;
    justify-items: center;
    margin-top: 20px;
    padding: 0;
    box-sizing: border-box;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__card {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 311px;
    text-align: center;
  }

  #sec-sustainable-workflows .opx-sustainable-workflows__title,
  #sec-sustainable-workflows .opx-sustainable-workflows__desc {
    text-align: center;
  }
}

/* Production tablet layout; desktop and phone retain their existing variants. */
@media (min-width: 768px) and (max-width: 1024px) {

 #sec-sustainable-workflows.opx-sustainable-workflows { padding: 4.5% 5%; }
 #sec-sustainable-workflows .opx-sustainable-workflows__inner.kit-boxed { padding: 0; }
 #sec-sustainable-workflows .opx-sustainable-workflows__heading { margin: 18px 10px 36px; }
 #sec-sustainable-workflows .opx-sustainable-workflows__intro { margin: 0 10px 38.4px; }
 #sec-sustainable-workflows .opx-sustainable-workflows__grid { grid-template-columns: 45% 45%; margin-top: 0; }
 #sec-sustainable-workflows .opx-sustainable-workflows__icon { font-size: 50px; margin: 10px 0 20px; }
 #sec-sustainable-workflows .opx-sustainable-workflows__title { margin: 8px 0 5px; }

}
