/* Process icons: Lucide scan-search, git-compare-arrows and file-check.
 * https://lucide.dev - ISC License, Copyright (c) 2026 Lucide Icons and Contributors.
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

body[data-page="home"] #home-deliverables .process-flow {
  gap: 40px;
}

body[data-page="home"] #home-deliverables .process-flow article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  min-block-size: 0;
  min-inline-size: 0;
  overflow: visible;
  padding: 0;
  position: relative;
}

body[data-page="home"] #home-deliverables .process-flow article:hover {
  transform: none;
}

body[data-page="home"] #home-deliverables .process-flow article::before,
body[data-page="home"] #home-deliverables .process-flow article:last-child::after {
  content: none;
}

body[data-page="home"] #home-deliverables .process-visual {
  block-size: 56px;
  color: var(--leaf-2);
  display: block;
  inline-size: 56px;
  margin-block-end: 24px;
}

body[data-page="home"] #home-deliverables .process-flow article:nth-child(2) .process-visual {
  color: #8ed2cf;
}

body[data-page="home"] #home-deliverables .process-flow article:nth-child(3) .process-visual {
  color: #c4d8ec;
}

body[data-page="home"] #home-deliverables .process-flow article:not(:last-child)::after {
  background: none;
  border-block-start: 1px solid rgba(196, 216, 236, .35);
  content: "";
  inset-block-start: 28px;
  inset-inline-end: -16px;
  inset-inline-start: 80px;
  opacity: 1;
  position: absolute;
  transition: none;
}

body[data-page="systems"] .service-with-context {
  gap: 32px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(180px, .65fr);
}

body[data-page="systems"] .service-context-photo {
  inline-size: 100%;
  margin: 0;
  max-inline-size: 470px;
}

@media (min-width: 781px) and (max-width: 1100px) {
  body[data-page="systems"] .service-with-context {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  body[data-page="systems"] .service-with-context .service-context-photo {
    grid-column: 1 / -1;
  }
}

body[data-page="systems"] .service-context-photo--facility {
  max-inline-size: 300px;
}

body[data-page="systems"] .service-context-photo img {
  block-size: auto;
  border-radius: 4px;
  display: block;
  inline-size: 100%;
}

body[data-page="systems"] .service-context-photo figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  padding-block-start: 10px;
}

@media (max-width: 780px) {
  body[data-page="systems"] .service-with-context {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] #home-deliverables .process-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body[data-page="home"] #home-deliverables .process-flow article {
    column-gap: 20px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body[data-page="home"] #home-deliverables .process-visual {
    block-size: 48px;
    grid-column: 1;
    grid-row: 1 / span 2;
    inline-size: 48px;
    margin: 0;
  }

  body[data-page="home"] #home-deliverables .process-flow article > :is(h3, p) {
    grid-column: 2;
    margin-block-start: 0;
  }

  body[data-page="home"] #home-deliverables .process-flow article:not(:last-child)::after {
    border-block-start: 0;
    border-inline-start: 1px solid rgba(196, 216, 236, .35);
    inset-block-start: 64px;
    inset-block-end: -16px;
    inset-inline-start: 24px;
    inset-inline-end: auto;
  }
}
