/* APIs page, V2 editorial edition. Builds on team-pages.css: same rules,
 * panels, mono labels and violet accents; only the API-specific pieces live here. */

.team-page :is(#documentacao, #construir, #quem-usa-a-api) {
  scroll-margin-top: calc(var(--soceo-nav-height, 76px) + 56px);
}

.team-page .apis-hero__flow { margin-top: 4px; }

/* Section openings: label + title on the left, reading on the right. */
.team-page .apis-intro {
  display: grid;
  gap: 14px 48px;
  align-items: end;
}
.team-page .apis-intro--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.team-page .apis-intro h2 { margin-top: 12px; max-width: 22ch; }
.team-page .apis-intro > p,
.team-page .apis-intro__copy p {
  max-width: 34rem;
  color: var(--team-muted);
  font-size: 1rem;
  line-height: 1.62;
}
.team-page .apis-intro__copy { display: grid; gap: 10px; }

/* Shared bits */
.team-page .apis-code {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: clamp(18px, 2.4vw, 30px);
  color: #3f2a56;
  background: #fff;
  font: 400 clamp(.76rem, .95vw, .86rem)/1.75 var(--team-mono);
  white-space: pre;
  tab-size: 2;
}
.team-page .apis-code:focus-visible,
.team-page .apis-copy:focus-visible,
.team-page .apis-console__tabs button:focus-visible,
.team-page .apis-faq__item summary:focus-visible {
  outline: 2px solid var(--team-accent);
  outline-offset: 2px;
}
.team-page .apis-copy {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--team-rule);
  border-radius: 4px;
  background: #fff;
  color: var(--team-ink);
  font: 500 .8rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.team-page .apis-copy svg { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.team-page .apis-copy:hover { border-color: #a18ab4; background: #f6f1f9; }
.team-page .apis-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid #b9d3bf;
  border-radius: 999px;
  background: #eef6ef;
  color: #2d5a39;
  font: 400 .7rem/1.3 var(--team-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.team-page .apis-status i { width: 7px; height: 7px; border-radius: 50%; background: #3f8a55; }

/* Integration console */
.team-page .apis-console {
  margin-top: 30px;
  border: 1px solid #c7b8d1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--team-panel);
  box-shadow: 5px 5px 0 #e9e2ef;
}
.team-page .apis-console__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--team-rule);
  background: #f1ecf5;
}
.team-page .apis-console__tabs button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--team-muted);
  font: 500 .9rem/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
}
.team-page .apis-console__tabs button span { color: var(--team-accent); font: 400 .72rem/1 var(--team-mono); }
.team-page .apis-console__tabs button:hover { color: var(--team-ink); }
.team-page .apis-console__tabs button[aria-selected="true"] {
  border-color: #c3b1cd;
  background: #fff;
  color: var(--team-ink);
  font-weight: 600;
}
.team-page .apis-console__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
}
.team-page .apis-console__panel[hidden] { display: none; }
.team-page .apis-console:not([data-enhanced]) .apis-console__panel + .apis-console__panel { border-top: 1px solid var(--team-rule); }
.team-page .apis-console__panel-head,
.team-page .apis-console__panel-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 9px clamp(16px, 2vw, 24px);
  background: #f8f5f9;
}
.team-page .apis-console__panel-head { border-bottom: 1px solid var(--team-rule); }
.team-page .apis-console__panel-foot {
  border-top: 1px solid var(--team-rule);
  color: var(--team-muted);
  font-size: .82rem;
}
.team-page .apis-console__panel-foot span { display: inline-flex; align-items: center; gap: 8px; }
.team-page .apis-console__panel-foot i { width: 7px; height: 7px; border-radius: 50%; background: #d39b3a; }
.team-page .apis-console__panel-foot b {
  padding: 4px 10px;
  border: 1px solid #c9b6dd;
  border-radius: 999px;
  background: #efe6f7;
  color: var(--team-accent);
  font: 400 .68rem/1.3 var(--team-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.team-page .apis-console__reading {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 32px);
  border-left: 1px solid var(--team-rule);
  background: #f6f2f8;
}
.team-page .apis-console__reading h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.team-page .apis-console__reading dl { display: grid; gap: 12px; margin: 0; }
.team-page .apis-console__reading dt code { color: var(--team-accent); font: 400 .78rem/1.3 var(--team-mono); }
.team-page .apis-console__reading dd { margin: 2px 0 0; color: var(--team-ink); font-size: .92rem; }
.team-page .apis-console__status:empty { display: none; }
.team-page .apis-console__status {
  padding: 8px clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--team-rule);
  color: var(--team-accent);
  font-size: .82rem;
}

/* Flow map: sources -> operational layer -> API -> what you build */
.team-page .apis-flow { margin: 30px 0 0; }
.team-page .apis-flow__map {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}
.team-page .apis-flow__column { display: grid; gap: 10px; align-content: center; }
.team-page .apis-flow__column:first-child .team-page__label { padding-right: 18px; }
.team-page .apis-flow__column:last-child .team-page__label { padding-left: 18px; text-align: right; }
.team-page .apis-flow__center {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-inline: clamp(10px, 2vw, 28px);
}
.team-page .apis-flow__center .team-page__map-hub { width: clamp(118px, 11vw, 150px); }
.team-page .apis-flow__center .team-page__map-hub small {
  color: var(--team-muted);
  font: 400 .62rem/1.3 var(--team-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.team-page .apis-flow__layer {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #b49dc6;
  border-radius: 5px;
  background: rgb(255 255 255 / .7);
  text-align: center;
}
.team-page .apis-flow__layer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.team-page .apis-flow__layer li {
  padding: 3px 8px;
  border: 1px solid var(--team-rule);
  border-radius: 3px;
  background: #fff;
  color: var(--team-ink);
  font: 400 .72rem/1.3 var(--team-mono);
}
.team-page .apis-flow__gaps {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #8a5a12;
  font: 400 .68rem/1.3 var(--team-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.team-page .apis-flow__gaps i { width: 7px; height: 7px; border-radius: 50%; background: #d39b3a; }
.team-page .apis-flow__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 12px;
  color: var(--team-muted);
  font: 400 .74rem/1.4 var(--team-mono);
}
.team-page .apis-flow__caption li { display: inline-flex; align-items: center; gap: 8px; }
.team-page .apis-flow__caption li::before { content: ""; width: 12px; border-top: 1px solid var(--team-accent); }

/* Building blocks: three module cards */
.team-page .apis-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.team-page .apis-module {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--team-rule);
  border-radius: 5px;
  background: var(--team-panel);
  color: var(--team-muted);
  font-size: .93rem;
  line-height: 1.6;
}
.team-page .apis-module > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.team-page .apis-module > header span { color: var(--team-accent); font: 400 .75rem/1 var(--team-mono); }
.team-page .apis-module h3 { margin-top: 6px; font-size: clamp(1.28rem, 2.15vw, 1.66rem); letter-spacing: -.021em; line-height: 1.12; }
.team-page .apis-module__figure {
  display: grid;
  min-height: 176px;
  align-items: center;
  padding: 16px;
  border: 1px solid #ded4e5;
  border-radius: 4px;
  background: radial-gradient(#d9cddf .8px, transparent .9px) 0 0 / 9px 9px, #f6f2f8;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--team-ink);
}
.team-page .apis-module__figure small,
.team-page .apis-module__figure em {
  font: 400 .62rem/1.3 var(--team-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-style: normal;
}
.team-page .apis-module__figure--contexto { grid-template-columns: auto 22px minmax(0, 1fr); gap: 6px; }
.team-page .apis-fig-sources { display: grid; gap: 8px; }
.team-page .apis-fig-sources span,
.team-page .apis-fig-mission > span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--team-rule);
  border-radius: 3px;
  background: #fff;
}
.team-page .apis-fig-sources i,
.team-page .apis-fig-mission i { width: 8px; height: 8px; border: 1px solid var(--team-accent); border-radius: 2px; }
.team-page .apis-fig-path { display: grid; gap: 28px; }
.team-page .apis-fig-path b { display: block; border-top: 1px solid #af97c5; }
.team-page .apis-fig-answer {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #c7b8d1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 3px 3px 0 #e9e2ef;
}
.team-page .apis-fig-answer small { color: var(--team-accent); }
.team-page .apis-fig-answer strong { font: 600 .86rem/1.25 var(--team-display); }
.team-page .apis-fig-answer span { display: flex; flex-wrap: wrap; gap: 5px; }
.team-page .apis-fig-answer em {
  padding: 2px 6px;
  border: 1px solid var(--team-rule);
  border-radius: 999px;
  background: #f6f2f8;
  color: var(--team-muted);
}
.team-page .apis-module__figure em.is-gap,
.team-page .apis-fig-steps em.is-waiting { border-color: #e4c690; background: #fbf3e4; color: #7a4f10; }
.team-page .apis-module__figure--agentes { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.team-page .apis-fig-agent span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #ae98c1;
  border-radius: 50%;
  outline: 1px dashed #c9b6dd;
  outline-offset: 7px;
  background: #fcf9ff;
  color: var(--team-accent);
  font: 600 .9rem/1 var(--team-display);
}
.team-page .apis-fig-mission { display: grid; gap: 6px; }
.team-page .apis-fig-mission small { color: var(--team-accent); }
.team-page .apis-fig-mission em { margin-top: 2px; color: var(--team-muted); }
.team-page .apis-fig-steps { display: grid; gap: 7px; }
.team-page .apis-fig-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid var(--team-rule);
  border-radius: 3px;
  background: #fff;
}
.team-page .apis-fig-steps li > span { color: var(--team-accent); font: 400 .66rem/1 var(--team-mono); }
.team-page .apis-fig-steps div { display: grid; gap: 1px; min-width: 0; }
.team-page .apis-fig-steps small { color: var(--team-muted); }
.team-page .apis-fig-steps strong { font-weight: 600; }
.team-page .apis-fig-steps em {
  padding: 2px 6px;
  border: 1px solid #b9d3bf;
  border-radius: 999px;
  background: #eef6ef;
  color: #2d5a39;
}

/* API centre: endpoints, core and structured response */
.team-page .apis-center {
  margin-top: 30px;
  border: 1px solid #c7b8d1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--team-panel);
  box-shadow: 5px 5px 0 #e9e2ef;
}
.team-page .apis-center__bar {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 14px;
  padding: 5px clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--team-rule);
  background: #f1ecf5;
}
.team-page .apis-center__bar .team-page__label { color: var(--team-muted); font-size: .68rem; }
.team-page .apis-center__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.1fr);
}
.team-page .apis-center__body > section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px);
}
.team-page .apis-center__body > section + section { border-left: 1px solid var(--team-rule); }
.team-page .apis-center__body h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.12; }
.team-page .apis-center__endpoints ul { display: grid; gap: 8px; margin-top: 4px; }
.team-page .apis-endpoint {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--team-rule);
  border-radius: 4px;
  background: #fff;
  color: var(--team-muted);
  font-size: .83rem;
  line-height: 1.45;
}
.team-page .apis-endpoint h4 { margin: 2px 0 0; color: var(--team-ink); font: 600 .98rem/1.2 var(--team-display); }
.team-page .apis-endpoint__route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-page .apis-endpoint__route code { color: var(--team-ink); font: 400 .8rem/1.3 var(--team-mono); overflow-wrap: anywhere; }
.team-page .apis-method {
  padding: 2px 7px;
  border-radius: 3px;
  font: 400 .66rem/1.4 var(--team-mono);
  letter-spacing: .05em;
}
.team-page .apis-method[data-method="post"] { background: #efe6f7; color: #5d2fa8; border: 1px solid #d3c0e6; }
.team-page .apis-method[data-method="get"] { background: #eef6ef; color: #2d5a39; border: 1px solid #b9d3bf; }
.team-page .apis-center__core {
  justify-items: center;
  align-content: center !important;
  text-align: center;
  background: radial-gradient(#d9cddf .8px, transparent .9px) 0 0 / 9px 9px, #f6f2f8;
}
.team-page .apis-center__core h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.team-page .apis-center__core ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.team-page .apis-center__core li,
.team-page .apis-center__outputs li {
  padding: 3px 9px;
  border: 1px solid var(--team-rule);
  border-radius: 999px;
  background: #fff;
  color: var(--team-ink);
  font: 400 .72rem/1.3 var(--team-mono);
}
.team-page .apis-center__response > header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.team-page .apis-http {
  padding: 3px 8px;
  border: 1px solid #b9d3bf;
  border-radius: 3px;
  background: #eef6ef;
  color: #2d5a39;
  font: 400 .72rem/1.3 var(--team-mono);
}
.team-page .apis-center__code {
  position: relative;
  border: 1px solid var(--team-rule);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.team-page .apis-center__code .apis-copy { position: absolute; top: 8px; right: 8px; z-index: 1; }
.team-page .apis-center__code .apis-code { padding-top: 52px; }
.team-page .apis-center__outputs { display: flex; flex-wrap: wrap; gap: 6px; }
.team-page .apis-foundation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--team-rule);
  background: #f8f5f9;
}
.team-page .apis-foundation__item {
  padding: 16px clamp(18px, 2.2vw, 30px);
  color: var(--team-muted);
  font-size: .86rem;
  line-height: 1.5;
}
.team-page .apis-foundation__item + .apis-foundation__item { border-left: 1px solid var(--team-rule); }
.team-page .apis-foundation__item h3 { margin-bottom: 4px; font-size: 1.08rem; letter-spacing: -.015em; }

/* Authority relay */
.team-page .apis-relay {
  margin-top: 30px;
  border: 1px solid #c7b8d1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--team-panel);
}
.team-page .apis-relay__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 10px 20px;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 32px);
  border-bottom: 1px solid var(--team-rule);
  background: #f1ecf5;
}
.team-page .apis-relay__head h3 { margin-top: 6px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.05; }
.team-page .apis-relay__stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-page .apis-relay__stage {
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
}
.team-page .apis-relay__stage + .apis-relay__stage { border-left: 1px solid var(--team-rule); }
.team-page .apis-relay__stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(clamp(18px, 2.4vw, 32px) + 22px);
  left: calc(clamp(18px, 2.4vw, 32px) + 70px);
  right: 10px;
  border-top: 1px dashed #b49dc6;
}
.team-page .apis-relay__drawing {
  position: relative;
  z-index: 1;
  display: block;
  width: 58px;
  height: 46px;
  padding-right: 8px;
  background: var(--team-panel);
  fill: none;
  stroke: #62447f;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-page .apis-relay__drawing .relay-paper { fill: #fff; }
.team-page .apis-relay__drawing .relay-sheet { fill: #efe6f7; }
.team-page .apis-relay__drawing .relay-pin { fill: #d9ead9; stroke: #3f8a55; }
.team-page .apis-relay__stage h4 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--team-rule);
  color: var(--team-ink);
  font: 600 1.22rem/1.15 var(--team-display);
  letter-spacing: -.02em;
}
.team-page .apis-relay__stage h4 span { color: var(--team-accent); font: 400 .72rem/1 var(--team-mono); }
.team-page .apis-relay__stage ul { display: grid; gap: 14px; }
.team-page .apis-relay__stage li { color: var(--team-muted); font-size: .88rem; line-height: 1.5; }
.team-page .apis-relay__stage li + li { padding-top: 14px; border-top: 1px solid #e6dfea; }
.team-page .apis-relay__stage h5 { margin: 0 0 4px; color: var(--team-ink); font: 600 .95rem/1.3 Inter, Arial, sans-serif; }

/* FAQ */
.team-page .apis-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px clamp(32px, 6vw, 92px);
  align-items: start;
}
.team-page .apis-faq__intro { display: grid; justify-items: start; gap: 12px; }
.team-page .apis-faq__intro h2 { max-width: 14ch; }
.team-page .apis-faq__list { border-top: 1px solid #aa93ba; }
.team-page .apis-faq__item { border-bottom: 1px solid var(--team-rule); }
.team-page .apis-faq__item summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.team-page .apis-faq__item summary::-webkit-details-marker { display: none; }
.team-page .apis-faq__item summary span { color: var(--team-accent); font: 400 .72rem/1 var(--team-mono); }
.team-page .apis-faq__item summary strong { color: var(--team-ink); font: 600 1.12rem/1.3 var(--team-display); letter-spacing: -.012em; }
.team-page .apis-faq__item summary:hover strong { text-decoration: underline; text-decoration-color: #a497c8; text-underline-offset: 4px; }
.team-page .apis-faq__item summary i { position: relative; width: 14px; height: 14px; }
.team-page .apis-faq__item summary i::before,
.team-page .apis-faq__item summary i::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  border-top: 1.5px solid var(--team-ink);
}
.team-page .apis-faq__item summary i::after { transform: rotate(90deg); }
.team-page .apis-faq__item[open] summary i::after { transform: none; }
.team-page .apis-faq__item p { max-width: 58ch; padding: 0 30px 18px 44px; color: var(--team-muted); }

/* Closing call */
.team-page .apis-final__band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 6px;
  overflow: hidden;
  background: var(--brand-navy, #1a1933);
  color: #fff;
}
.team-page .apis-final__band .team-page__label { color: #c9b6ef; }
.team-page .apis-final__band h2 { margin-top: 12px; max-width: 18ch; color: #fff; }
.team-page .apis-final__copy > p:not(.team-page__label) { margin-top: 12px; max-width: 38rem; color: #d9d4ea; }
.team-page .apis-final__copy .team-page__actions { margin-top: 24px; }
.team-page .apis-final .apis-final__primary { background: #fff; color: var(--brand-navy, #1a1933); }
.team-page .apis-final .apis-final__primary:hover { background: #efe6f7; }
.team-page .apis-final .apis-final__secondary { background: #7839ee; color: #fff; }
.team-page .apis-final .apis-final__secondary:hover { background: #6728d4; }
.team-page .apis-final__band a:focus-visible { outline-color: #fff; }
.team-page .apis-final__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #d9d4ea;
  font: 400 .74rem/1.4 var(--team-mono);
}
.team-page .apis-final__note i { width: 7px; height: 7px; border-radius: 50%; background: #d39b3a; }
.team-page .apis-final__art { min-width: 0; }
.team-page .apis-final__engraving { display: block; width: 100%; height: auto; max-width: 360px; margin-left: auto; opacity: .92; }

/* Illustrated chapter keeps team-pages.css; only spacing near the relay. */
.team-page .apis-guide { border-top: 1px solid var(--team-rule); }

@media (max-width: 1000px) {
  .team-page .apis-center__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .team-page .apis-center__endpoints { grid-column: 1 / -1; }
  .team-page .apis-center__endpoints ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-page .apis-center__body > section + section { border-left: 0; border-top: 1px solid var(--team-rule); }
  .team-page .apis-center__body > .apis-center__response { border-left: 1px solid var(--team-rule); }
  .team-page .apis-modules { grid-template-columns: 1fr; }
  .team-page .apis-module { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 20px; }
  .team-page .apis-module > header { grid-column: 1 / -1; }
  .team-page .apis-module__figure { grid-row: 2 / 4; grid-column: 2; }
}

@media (max-width: 800px) {
  .team-page .apis-intro--split,
  .team-page .apis-faq,
  .team-page .apis-final__band { grid-template-columns: 1fr; }
  .team-page .apis-console__panel { grid-template-columns: minmax(0, 1fr); }
  .team-page .apis-console__reading { border-left: 0; border-top: 1px solid var(--team-rule); }
  .team-page .apis-relay__stages,
  .team-page .apis-foundation { grid-template-columns: 1fr; }
  .team-page .apis-relay__stage + .apis-relay__stage,
  .team-page .apis-foundation__item + .apis-foundation__item { border-left: 0; border-top: 1px solid var(--team-rule); }
  .team-page .apis-relay__stage::after { display: none; }
  .team-page .apis-final__art { display: none; }
  .team-page .apis-flow__map { grid-template-columns: 1fr; gap: 16px; }
  .team-page .apis-flow__column .team-page__label { padding: 0 !important; text-align: left !important; }
  .team-page .apis-flow__map .team-page__map-list { padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .team-page .apis-flow__map .team-page__map-list::before,
  .team-page .apis-flow__map .team-page__map-list li::after { display: none; }
}

@media (max-width: 640px) {
  .team-page .apis-console__tabs { grid-template-columns: 1fr; }
  .team-page .apis-console__tabs button { justify-content: flex-start; }
  .team-page .apis-center__body { grid-template-columns: 1fr; }
  .team-page .apis-center__endpoints ul { grid-template-columns: 1fr; }
  .team-page .apis-center__body > .apis-center__response { border-left: 0; }
  .team-page .apis-module { grid-template-columns: 1fr; grid-template-rows: none; }
  .team-page .apis-module__figure { grid-row: auto; grid-column: auto; }
  .team-page .apis-faq__item p { padding: 0 0 18px 44px; }
  .team-page .apis-final__copy .team-page__actions { flex-direction: column; align-items: stretch; }
  .team-page .apis-final__copy .team-page__action { width: 100%; }
}

@media (max-width: 420px) {
  .team-page .apis-module__figure--contexto { grid-template-columns: 1fr; }
  .team-page .apis-fig-path { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .team-page .apis-copy { transition: none; }
}

/* Tinted chapter bands give the long page the same rhythm as the team pages. */
.team-page .apis-capabilities,
.team-page .apis-docs {
  background: radial-gradient(#d9cddf .7px, transparent .8px) 0 0 / 10px 10px, #f1ebf5;
}
.team-page :is(.apis-capabilities, .apis-docs) .apis-center,
.team-page :is(.apis-capabilities, .apis-docs) .apis-console { box-shadow: 5px 5px 0 #e2d8ea; }
