/* Copyright (C) Rein Ytterberg */

/* API page - shared design patterns remain in style.css. */

.api-opening {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}

.api-opening h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.5rem);
}

.api-opening p {
  font-size: 1.05rem;
}

.api-opening p + p {
  margin-top: 16px;
}

.pilot-showcase {
  background: #eaf0ff;
  padding: 35px 0;
}

.api-page h2 {
  font-size: clamp(2.3rem, 3.7vw, 3.6rem);
}

.pilot-heading {
  margin-bottom: 27px;
}

.api-page p {
  font-size: 1rem;
}

.pilot-screens {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 30px;
  align-items: start;
}

.pilot-screens figure {
  min-width: 0;
}

.screen-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  box-shadow: 0 8px 25px #13284d20;
}

.screen-button img {
  width: 100%;
  height: auto;
}

.pilot-screens figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-top: 12px;
  font-size: 0.875rem;
}

.text-button {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  padding: 3px 0;
  font-size: 0.875rem;
}

.request-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid #b7c6e5;
  margin-top: 28px;
  padding-top: 24px;
}

.request-strip strong {
  display: block;
  color: var(--blue);
  font:
    700 1.15rem ui-monospace,
    monospace;
  margin-bottom: 8px;
}

.request-strip span,
.request-strip small {
  display: block;
  font-size: 0.875rem;
}

.request-strip pre {
  margin: 0;
  font:
    0.875rem/1.6 ui-monospace,
    monospace;
  overflow-x: auto;
}

.request-strip b {
  display: block;
  color: #206641;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.request-strip small {
  margin-top: 10px;
}

.workbench-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 65px;
  margin-top: 35px;
  align-items: start;
}

.integration-methods article + article {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 22px;
}

.integration-methods h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.repeatable-tests {
  border-left: 3px solid var(--blue);
  padding-left: 27px;
}

.repeatable-tests h3 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 17px;
}

.repeatable-tests ol {
  margin: 23px 0 0;
  padding-left: 22px;
}

.repeatable-tests li {
  padding-left: 7px;
  margin-top: 18px;
}

.repeatable-tests li::marker {
  color: var(--blue);
  font-weight: bold;
}

.repeatable-tests b,
.repeatable-tests span {
  display: block;
}

.repeatable-tests span {
  font-size: 1rem;
  margin-top: 5px;
}

.api-agreements {
  padding: 45px 0;
  background: var(--orange);
  color: white;
}

.api-agreements em {
  color: #281a15;
}

.api-agreements h3 {
  font-size: 1.8rem;
}

.api-agreements p {
  margin-top: 20px;
}

.api-agreements a {
  display: inline-block;
  margin-top: 20px;
}

.api-contact p {
  margin-top: 20px;
}

.api-contact .cta {
  margin-top: 25px;
  font-size: 1rem;
}

.api-email {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
}

.api-contact p.api-closing {
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1.35;
  max-width: 330px;
  align-self: center;
}

.api-image-scroll {
  overflow: auto;
  max-height: 78vh;
}

#api-full-screen {
  max-width: none;
  width: auto;
  height: auto;
}

@media (max-width: 950px) {
  .api-opening,
  .workbench-layout,
  .request-strip {
    gap: 30px;
  }

  .pilot-screens {
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .api-opening,
  .pilot-screens,
  .workbench-layout,
  .request-strip {
    grid-template-columns: 1fr;
  }

  .api-opening h1 {
    font-size: 2.7rem;
  }

  .api-page h2 {
    font-size: 2.3rem;
  }

  .pilot-showcase {
    padding: 28px 0;
  }

  .pilot-screens {
    gap: 25px;
  }

  .pilot-screens figure:last-child {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .request-strip {
    gap: 20px;
  }

  .workbench-layout {
    margin-top: 25px;
  }

  .api-agreements {
    padding: 35px 0;
  }

  .api-contact p.api-closing {
    font-size: 1.3rem;
    max-width: none;
  }
}
