@font-face { font-family: "Open Sauce One"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/open-sauce-one/OpenSauceOne-Regular.ttf") format("truetype"); }
@font-face { font-family: "Open Sauce One"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/open-sauce-one/OpenSauceOne-Medium.ttf") format("truetype"); }
@font-face { font-family: "Open Sauce One"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/open-sauce-one/OpenSauceOne-SemiBold.ttf") format("truetype"); }

/* scoped to the banner so the bootstrap page styles stay untouched */
.ecosystem-banner {
  --royal-blue-300: #2b7efb;
  --royal-blue-400: #0566f7;
  --royal-blue-500: #0052cc;
  --midnight-navy-50: #e9ebed;
  --midnight-navy-300: #6e7786;
  --midnight-navy-900: #10161f;
  --neutral-50: #fdfdfe;
  --neutral-200: #f9fafb;
  --neutral-300: #edeff2;
  --main-background: #f5f6fb;

  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  margin-bottom: 32px;
  padding: 48px 64px;
  background: var(--main-background);
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  font-family: "Open Sauce One", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--midnight-navy-900);
}
.ecosystem-banner::before, .ecosystem-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--royal-blue-300);
  pointer-events: none;
}
.ecosystem-banner::before { width: 520px; height: 520px; right: -170px; bottom: -330px; opacity: .10; }
.ecosystem-banner::after  { width: 300px; height: 300px; right: 40px;  bottom: -200px; opacity: .08; }

.ecosystem-banner .eb-content { position: relative; z-index: 1; max-width: 660px; }
.ecosystem-banner .eb-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--midnight-navy-50);
  border-radius: 999px;
  background: var(--neutral-50);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.ecosystem-banner .eb-title {
  margin: 20px 0 16px;
  font-family: inherit;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.17;
  font-weight: 600;
  color: var(--midnight-navy-900);
}
.ecosystem-banner p { margin: 0 0 12px; font-size: 16px; line-height: 23px; font-weight: 400; }
.ecosystem-banner p strong { font-weight: 600; }
.ecosystem-banner p.eb-detail { font-size: 14px; line-height: 20px; max-width: 600px; }

.ecosystem-banner .eb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 24px;
  border: 1px solid var(--royal-blue-300);
  border-radius: 8px;
  background: var(--royal-blue-500);
  color: var(--neutral-50);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  transition: background-color .12s ease;
}
.ecosystem-banner .eb-btn:hover { background: var(--royal-blue-400); color: var(--neutral-50); text-decoration: none; }
.ecosystem-banner .eb-btn:focus-visible { outline: 2px solid var(--midnight-navy-900); outline-offset: 2px; box-shadow: 0 0 0 2px var(--neutral-50); }
.ecosystem-banner .eb-btn svg { width: 18px; height: 18px; flex: none; }

.ecosystem-banner .eb-visual { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.ecosystem-banner .eb-tile {
  width: 140px;
  height: 156px;
  padding: 16px;
  border: 1px solid;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}
.ecosystem-banner .eb-tile-old { background: var(--neutral-300); border-color: var(--neutral-200); font-weight: 400; }
.ecosystem-banner .eb-tile-new { background: var(--neutral-50); border-color: var(--neutral-300); font-weight: 600; font-size: 16px; }
.ecosystem-banner .eb-tile img { width: 48px; height: 48px; display: block; object-fit: contain; }
.ecosystem-banner .eb-arrow { width: 28px; height: 28px; flex: none; color: var(--midnight-navy-300); }

/* bootstrap lg: below it the page container is too narrow for two columns */
@media (max-width: 991px) {
  .ecosystem-banner { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; gap: 32px; }
}
/* the documentation tab column is narrower than the api info tab, so it stacks up to the lg breakpoint (AP-6454) */
@media (max-width: 1199px) {
  .api-documentation .ecosystem-banner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .ecosystem-banner { padding: 28px 20px; }
  .ecosystem-banner .eb-tag { letter-spacing: 3px; }
  /* tiles shrink on the narrowest phones instead of being clipped */
  .ecosystem-banner .eb-tile { width: 112px; min-width: 0; height: 136px; padding: 16px 8px; font-size: 13px; overflow-wrap: anywhere; }
  .ecosystem-banner .eb-tile-new { font-size: 14px; }
  .ecosystem-banner .eb-tile img { width: 36px; height: 36px; }
  .ecosystem-banner .eb-visual { gap: 10px; }
  .ecosystem-banner .eb-btn { letter-spacing: 1px; font-size: 15px; }
}
@media (max-width: 360px) {
  .ecosystem-banner .eb-tile, .ecosystem-banner .eb-tile-new { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ecosystem-banner .eb-btn { transition: none; } }
