/* API section reformatted from the supplied split-panel reference. */
body.terminal-product-page .api-section {
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.terminal-product-page .api-layout {
  width: 100% !important;
  max-width: none !important;
  min-height: 740px;
  margin-inline: auto !important;
  padding: clamp(24px, 2vw, 34px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, .96fr) minmax(620px, 1.04fr) !important;
  gap: clamp(18px, 2vw, 32px) !important;
  align-items: stretch !important;
  border-radius: 20px;
  background: #eaeae7;
}

html body.terminal-product-page main section.api-section > .api-layout {
  width: calc(100vw - 64px) !important;
  max-width: calc(100vw - 64px) !important;
  margin: 0 32px !important;
}

body.terminal-product-page .api-left-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.terminal-product-page .api-copy {
  width: 100% !important;
  max-width: 620px !important;
}

body.terminal-product-page .api-copy .kicker {
  margin: 0 0 18px !important;
  color: #64717a !important;
}

body.terminal-product-page .api-copy .section-title,
body.terminal-product-page .api-copy .section-title span {
  max-width: 13ch !important;
  color: #101112 !important;
  font-size: clamp(46px, 3.4vw, 58px) !important;
  font-weight: 450 !important;
  line-height: 1.01 !important;
  letter-spacing: -.055em !important;
}

body.terminal-product-page .api-copy .body-lg {
  max-width: 520px !important;
  margin-top: 22px !important;
  color: #596168 !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
}

body.terminal-product-page .api-actions {
  gap: 10px !important;
  margin-top: 28px !important;
}

body.terminal-product-page .api-action {
  position: relative;
  gap: 13px;
  min-height: 46px !important;
  padding: 4px 6px 4px 20px !important;
  border-radius: 10px !important;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .32s ease !important;
}

body.terminal-product-page .api-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(16, 17, 18, .12);
}

body.terminal-product-page .api-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #101112;
  color: #fff !important;
  line-height: 1 !important;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .22s ease !important;
}

body.terminal-product-page .api-action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.terminal-product-page .api-action-primary .api-action-icon {
  background: #fff;
  color: #101112 !important;
}

body.terminal-product-page .api-action:hover .api-action-icon {
  transform: translate(2px, -2px) rotate(5deg);
}

/* The live API console occupies the reference's illustration position. */
body.terminal-product-page .api-console-frame {
  width: 100% !important;
  margin: 54px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.terminal-product-page .api-console-frame .api-console {
  width: 100% !important;
  height: 438px !important;
  min-height: 438px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, .28) !important;
  border-radius: 16px !important;
  background: #151718 !important;
  box-shadow: 0 26px 62px rgba(22, 24, 25, .16) !important;
}

body.terminal-product-page .api-console-frame .api-code {
  height: 330px !important;
  min-height: 330px !important;
  max-height: 330px !important;
  overflow: auto;
  background: #17191a !important;
}

body.terminal-product-page .api-console-bar,
body.terminal-product-page .api-status {
  background: #111314 !important;
}

body.terminal-product-page .api-console-tabs {
  gap: 6px !important;
  margin-top: 14px !important;
}

body.terminal-product-page .api-console-tabs button {
  width: 96px;
  min-height: 36px;
  justify-content: center;
  padding-inline: 16px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 550;
}

body.terminal-product-page .api-console-tabs .active {
  transform: none !important;
}

/* Four capabilities become the 2x2 card matrix from the reference. */
body.terminal-product-page .api-features {
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.terminal-product-page .api-feature {
  position: relative;
  min-height: 330px !important;
  padding: 30px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 18, .04) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: transform .28s ease, box-shadow .28s ease !important;
}

body.terminal-product-page .api-feature::before {
  content: none !important;
}

body.terminal-product-page .api-feature::after {
  content: none !important;
}

body.terminal-product-page .api-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(16, 17, 18, .08) !important;
}

body.terminal-product-page .api-feature-icon {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 0 22px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #173550 !important;
}

body.terminal-product-page .api-feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.terminal-product-page .api-feature strong {
  margin: 0 0 auto !important;
  color: #101112 !important;
  font-size: clamp(23px, 1.6vw, 28px) !important;
  font-weight: 550 !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
}

body.terminal-product-page .api-feature span {
  max-width: 34ch;
  color: #4f575b !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
}

/* Keep every API format in the same shell: content changes, layout does not. */
body.terminal-product-page .api-console-frame:is(.is-format-json, .is-format-rest, .is-format-webhooks) .api-console {
  width: 100% !important;
  height: 438px !important;
  min-height: 438px !important;
  border-radius: 16px !important;
}

body.terminal-product-page .api-console-frame:is(.is-format-json, .is-format-rest, .is-format-webhooks) .api-code {
  height: 330px !important;
  min-height: 330px !important;
  max-height: 330px !important;
}

body.terminal-product-page .api-console-frame.is-switching .api-console {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body.terminal-product-page .api-console-frame.is-switching .api-code {
  opacity: .2;
  transform: translateX(10px);
}

body.terminal-product-page .api-code {
  transition: opacity .18s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

/* Integration matrix: remove counters and use a quiet connection marker. */
body.terminal-product-page .stack-top {
  align-items: center !important;
}

body.terminal-product-page .stack-top .section-title {
  max-width: 13ch !important;
}

body.terminal-product-page .logo-cell::before {
  content: none !important;
}

body.terminal-product-page .logo-cell-label {
  font-size: 21px !important;
  font-weight: 550 !important;
}

/* Restore a visible FAQ introduction beside the accordion. */
body.terminal-product-page #faq .faq-sticky {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip-path: none !important;
}

body.terminal-product-page #faq .faq-sticky .kicker {
  margin-bottom: 22px;
  color: #64717a;
  text-transform: none;
  letter-spacing: 0;
}

body.terminal-product-page #faq .faq-sticky .body-lg {
  max-width: 430px;
  margin-top: 28px;
  color: #596168;
  font-size: 19px;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  body.terminal-product-page .api-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.terminal-product-page .api-console-frame {
    margin-bottom: 52px !important;
  }
}

@media (max-width: 700px) {
  body.terminal-product-page .api-section {
    padding: 0 !important;
  }

  body.terminal-product-page .api-layout {
    min-height: 0;
    padding: 28px 20px !important;
    border-radius: 16px;
  }

  html body.terminal-product-page main section.api-section > .api-layout {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 0 14px !important;
  }

  body.terminal-product-page .api-copy .section-title,
  body.terminal-product-page .api-copy .section-title span {
    font-size: 44px !important;
  }

  body.terminal-product-page .api-console-frame .api-console {
    height: 390px !important;
    min-height: 390px !important;
    border-radius: 12px !important;
  }

  body.terminal-product-page .api-console-frame .api-code {
    height: 282px !important;
    min-height: 282px !important;
    max-height: 282px !important;
  }

  body.terminal-product-page .api-features {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.terminal-product-page .api-feature {
    min-height: 250px !important;
  }
}
