/* Premium Blue | API documentation adapter (member page and public page) | loaded after the theme sheet.
 *
 * Sits ON TOP of the theme sheet (premium-blue.css) and only adds what is specific to SCRIOT on this page; the theme modules are not
 * edited. Colours are the page's own --ap-* tokens (defined by the sheet on `.page-api-v2 .apx`, with dark values), no new constants.
 *   - .apx-text / .apx-sub / .apx-dl--plain: the lead paragraphs, notes and small lists of a method (the theme's template had none:
 *     SCRIOT's API text is richer)
 *   - .apx-side: the column of sample requests and responses (a method may have several)
 *   - .apx-lead: the two or three sentences under the request bar
 *   - .apx-row--note, .apx-errors: rows without a value cell / error lists
 */

.page-api-v2 .apx-lead {
  margin: 0;
  padding: 18px 24px 4px;
  color: var(--ap-body);
  font-size: var(--fs-14);
  line-height: 1.65;
}

.page-api-v2 .apx-lead p {
  margin: 0 0 8px;
}

.page-api-v2 .apx-lead code,
.page-api-v2 .apx-text code,
.page-api-v2 .apx-desc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ap-chip);
  color: var(--ap-chip-ink);
  font-family: var(--ap-mono);
  font-size: .92em;
}

.page-api-v2 .apx-text {
  margin: 8px 0 0;
  color: var(--ap-body);
  font-size: var(--fs-14);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.page-api-v2 .apx-text + .apx-list,
.page-api-v2 .apx-main > .apx-text:last-of-type {
  margin-bottom: 4px;
}

.page-api-v2 .apx-list {
  margin-top: 14px;
}

.page-api-v2 .apx-text--note {
  margin-top: 14px;
  color: var(--ap-muted);
}

.page-api-v2 .apx-sub {
  margin: 22px 0 6px;
  color: var(--ap-title);
  font-size: var(--fs-14);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.page-api-v2 .apx-dl--plain {
  border-top: 1px solid var(--ap-line-2);
}

.page-api-v2 .apx-dl--plain .apx-row:first-child {
  border-top: 0;
}

.page-api-v2 .apx-dl--plain .apx-name code {
  margin-inline-end: 6px;
}

/* the column of examples: one block per sample */
.page-api-v2 .apx-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* the type chooser sits in the list: lists of types that are not chosen stay out of the way */
.page-api-v2 .apx-dl[hidden] {
  display: none;
}

/* ---- the key box of the member page */
.page-api-v2 .pb-keybox {
  margin: 0;
  padding: 18px 24px 0;
}
