/* ------------------------------------------------------------------ sections */
.article {
  padding-block: var(--section-space);
  padding-inline: var(--gutter);
}
/* Keep the star field continuous; dense content has its own panel background. */
.prose {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Shared spacing, with compositions suited to each section's content. */
.section-heading {
  margin-bottom: var(--heading-gap);
}
.supply-layout {
  display: grid;
  grid-template-columns: var(--columns);
  grid-template-areas: 'art heading' 'art providers';
  column-gap: var(--grid-gap);
  row-gap: var(--heading-gap);
  align-items: center;
}
.supply-layout > * {
  min-width: 0;
}
.supply-layout > .section-heading {
  grid-area: heading;
  margin: 0;
}
.supply-layout > .shape-cue {
  grid-area: art;
}
.supply-info {
  grid-area: providers;
}
.shape-cue--inline {
  width: 100%;
  max-width: 22rem;
  height: 300px;
}
@media (max-width: 900px) {
  .supply-layout {
    grid-template-columns: 1fr;
    grid-template-areas: 'heading' 'art' 'providers';
    gap: 1.5rem;
  }
  .shape-cue--inline {
    height: 200px;
    max-width: 18rem;
  }
}

/* Equal brand presence, with open cells and quiet shared dividers. */
.suppliers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
}
.supplier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  min-height: 146px;
  padding: 1.5rem 0.5rem;
}
.supplier:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}
.supplier:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}
.supplier__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.supplier__logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.supplier__logo--aws {
  width: 62px;
  height: 38px;
}
.supplier__logo--google {
  width: 44px;
  height: 44px;
}
.supplier__logo--microsoft {
  width: 34px;
  height: 34px;
}
.supplier__logo--tencent {
  width: 44px;
  height: 32px;
}
.supplier__logo--alibaba {
  width: 46px;
  height: 30px;
}
.supplier__name {
  color: rgba(250, 250, 250, 0.82);
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
}
@media (max-width: 600px) {
  .suppliers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .supplier {
    min-height: 124px;
    padding-block: 1.125rem;
    gap: 0.75rem;
  }
  .supplier:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .supplier::after {
    display: none;
  }
  .supplier:nth-child(odd)::after {
    display: block;
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: var(--line);
  }
  .supplier__name {
    font-size: 0.8125rem;
  }
}

/* code */
.code {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.code-tabs {
  display: flex;
  gap: 2px;
  padding: 0.4rem;
}
.copy-code {
  border: 0;
  background: none;
  padding: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.copy-code:hover {
  color: var(--fg);
}
.code-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.code-tab[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.code pre {
  height: 18rem;
  margin: 0;
  padding: 1.25rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3c45 transparent;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(250, 250, 250, 0.9);
}
.code .k {
  color: #7dd3fc;
}
.code .s {
  color: #5eead4;
}
.code .c {
  color: var(--faint);
}
.code .n {
  color: #c4b5fd;
}
.section-details {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.section-details summary {
  width: fit-content;
  cursor: pointer;
  font-size: 0.75rem;
  min-height: 28px;
}
.section-details p {
  margin: 0.75rem 0 0;
}
.section-details[open] {
  position: relative;
  isolation: isolate;
}
.code-note.section-details {
  margin: 0;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line);
}
.code-note code {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

/* feature grid */
.grid-section {
  padding-block: var(--section-space);
  padding-inline: var(--gutter);
}
.grid-section > .inner {
  max-width: var(--max);
  margin-inline: auto;
}
.grid-section > .api-layout {
  max-width: 56rem;
}
/* The final mark and action share a single, centered closing composition. */
.cta {
  scroll-margin-top: calc(var(--header-h) + 1rem);
  text-align: center;
  padding: 1rem 0 4rem;
}
.cta-copy {
  padding: 1.5rem var(--gutter) 0;
}
.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.intro-compact {
  padding-block: var(--section-space);
}
.intro-compact .prose {
  text-align: center;
  max-width: 43rem;
}
.intro-compact h2 {
  color: var(--muted);
}

.article,
.grid-section {
  scroll-margin-top: var(--header-h);
}
