/* A direct workspace and a possible AI-platform integration. */
.delivery-spread {
  --delivery-divider: #ccd3c8;
  --delivery-secondary: #536258;
  --delivery-gutter: clamp(2rem, 5vw, 4.5rem);
  background: #f5f6ef;
  border-block: 1px solid var(--delivery-divider);
}

.delivery-spread > .wrap {
  max-width: 1168px;
}

.delivery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 0.77fr);
  gap: var(--delivery-gutter);
  align-items: end;
  padding-bottom: clamp(1.75rem, 3vw, 2.65rem);
  border-bottom: 1px solid var(--delivery-divider);
}

.delivery-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.15vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.delivery-heading > p {
  max-width: 43ch;
  color: var(--delivery-secondary);
  font-size: clamp(0.96rem, 1.12vw, 1.05rem);
  line-height: 1.65;
}

.delivery-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--delivery-gutter);
  margin-top: clamp(1.65rem, 2.5vw, 2.5rem);
}

.delivery-page {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  position: relative;
  min-width: 0;
  align-content: start;
}

.delivery-page + .delivery-page::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--delivery-gutter) / -2);
  width: 1px;
  background: var(--delivery-divider);
}

.delivery-page > h3 {
  font-size: clamp(1.58rem, 2.05vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.delivery-page > p {
  max-width: 55ch;
  margin-top: 0.7rem;
  color: var(--delivery-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

.delivery-figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 1.45rem 0 1.05rem;
}

.delivery-window {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
  border: 1px solid #cdd4ca;
  border-radius: 0.45rem;
  background: #fff;
}

.delivery-window-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 0.75rem;
  min-height: 3.1rem;
  padding: 0.7rem clamp(0.85rem, 1.6vw, 1.35rem);
  border-bottom: 1px solid #dfe3da;
  color: #526057;
  font-size: 0.8rem;
  line-height: 1.45;
}

.delivery-window-head > img {
  width: 83px;
  height: auto;
}

.delivery-workflow,
.delivery-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 1.7vw, 1.45rem);
}

.delivery-workflow {
  justify-content: space-between;
  gap: 1.05rem;
}

.delivery-file,
.delivery-report {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: #344b3c;
}

.delivery-file > svg,
.delivery-report > svg,
.delivery-science-step > img,
.delivery-background-step > img {
  flex: none;
}

.delivery-file > span,
.delivery-report > span {
  min-width: 0;
}

.delivery-file strong,
.delivery-report strong {
  display: block;
  color: #273b2e;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.delivery-file span span,
.delivery-report span span {
  display: block;
  margin-top: 0.12rem;
  color: var(--delivery-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.delivery-goal {
  margin-top: 0.9rem;
}

.delivery-label {
  display: block;
  color: #59685e;
  font-size: 0.78rem;
  line-height: 1.45;
}

.delivery-goal p {
  margin-top: 0.2rem;
  color: #2f4235;
  font-size: 0.95rem;
  line-height: 1.45;
}

.delivery-science-step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-block: 0.9rem;
  border-block: 1px solid #dce2d8;
}

.delivery-science-step > img {
  margin-top: 0.1rem;
}

.delivery-science-step strong,
.delivery-background-step strong {
  display: block;
  color: #304735;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.45;
}

.delivery-science-step p {
  margin-top: 0.25rem;
  color: var(--delivery-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.delivery-outcome > strong {
  display: block;
  color: #22392c;
  font-size: 1.13rem;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.delivery-outcome > p {
  max-width: 42ch;
  margin-top: 0.35rem;
  color: var(--delivery-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.delivery-report {
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d7ded3;
  border-inline-start: 3px solid #c9a343;
  border-radius: 0.2rem;
  background: #f8f9f4;
}

.delivery-window--platform {
  border-color: #cbd4d0;
  background: #f0f3ef;
}

.delivery-window--platform .delivery-window-head {
  border-color: #d1dad4;
  background: #e7ece6;
}

.delivery-host-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #30463b;
  font-size: 0.87rem;
  font-weight: 600;
}

.delivery-host-name > svg {
  flex: none;
}

.delivery-chat {
  justify-content: space-between;
  gap: 1rem;
}

.delivery-message {
  min-width: 0;
}

.delivery-speaker {
  display: block;
  margin-bottom: 0.4rem;
  color: #344a3b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.delivery-message p {
  color: #344339;
  font-size: 0.9rem;
  line-height: 1.55;
}

.delivery-message--user {
  align-self: flex-end;
  max-width: 91%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem 0.65rem 0.15rem 0.65rem;
  background: #e0e7dd;
}

.delivery-chat-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: #40553f;
  font-size: 0.82rem;
  line-height: 1.4;
}

.delivery-chat-file > svg {
  flex: none;
}

.delivery-background-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.1rem 0 0.1rem 0.7rem;
  border-inline-start: 2px solid #c6a64b;
}

.delivery-background-step .delivery-label {
  font-size: 0.76rem;
}

.delivery-background-step strong {
  margin-top: 0.12rem;
  font-size: 0.84rem;
}

.delivery-message--assistant {
  padding: 0.85rem 0.9rem;
  border: 1px solid #d9dfd4;
  border-radius: 0.15rem 0.65rem 0.65rem 0.65rem;
  background: #fff;
}

.delivery-message--assistant .delivery-report {
  padding: 0.65rem;
}

.delivery-message--assistant .delivery-report strong {
  font-size: 0.86rem;
}

.delivery-figure figcaption {
  margin-top: 0.7rem;
  color: var(--delivery-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.delivery-page .delivery-link {
  align-self: end;
  justify-self: start;
  gap: 0.6rem;
  min-height: 40px;
  font-size: 0.86rem;
}

@media (max-width: 800px) {
  .delivery-heading {
    display: block;
  }

  .delivery-heading > p {
    max-width: 60ch;
    margin-top: 1rem;
  }

  .delivery-pages {
    display: block;
    margin-top: 1.65rem;
  }

  .delivery-page {
    display: block;
  }

  .delivery-page + .delivery-page {
    margin-top: 2rem;
    padding-top: 1.7rem;
    border-top: 1px solid var(--delivery-divider);
  }

  .delivery-page + .delivery-page::before {
    content: none;
  }

  .delivery-figure {
    margin-top: 1rem;
  }

  .delivery-workflow,
  .delivery-chat {
    gap: 1.15rem;
  }

  .delivery-message--user {
    max-width: 88%;
  }
}

@media (max-width: 380px) {
  .delivery-heading h2 {
    font-size: 2.1rem;
  }

  .delivery-window-head {
    padding-inline: 0.75rem;
  }

  .delivery-workflow,
  .delivery-chat {
    padding: 0.85rem;
  }

  .delivery-message--user {
    max-width: 95%;
  }

  .delivery-message--user,
  .delivery-message--assistant {
    padding: 0.75rem;
  }

  .delivery-message--assistant .delivery-report {
    padding: 0.55rem;
    gap: 0.5rem;
  }
}
