.api-docs-content section + section {
  margin-top: 28px;
}

.api-docs-content p {
  color: var(--release-muted);
  line-height: 1.7;
}

.api-docs-title {
  color: var(--release-ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -.04em;
  line-height: 1.12;
  margin: 10px 0 24px;
}

.api-docs-card {
  background: var(--release-surface);
  border: 1px solid var(--release-border);
  border-radius: 16px;
  box-shadow: 0 14px 42px rgba(24, 32, 51, .055);
  padding: 24px;
}

.api-docs-card h2 {
  color: var(--release-ink);
  font-size: 1.35rem;
  margin: 0 0 14px;
}

.api-docs-card p:last-child {
  margin-bottom: 0;
}

.api-docs-card pre {
  background: var(--release-ink);
  border-radius: 10px;
  color: white;
  overflow-x: auto;
  padding: 16px;
}

.api-docs-endpoint-group {
  margin-top: 28px;
}

.api-docs-endpoint-group h3 {
  color: var(--release-ink);
  margin-bottom: 10px;
}

.api-docs-endpoint-list {
  background: var(--release-surface);
  border: 1px solid var(--release-border);
  border-radius: 14px;
  overflow: hidden;
}

.api-docs-endpoint {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 70px minmax(260px, 1.5fr) minmax(180px, 1fr);
  padding: 14px 16px;
}

.api-docs-endpoint + .api-docs-endpoint {
  border-top: 1px solid var(--release-border);
}

.api-docs-endpoint code {
  color: var(--release-ink);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.api-docs-endpoint > span:last-child {
  color: var(--release-muted);
  font-size: .88rem;
}

.api-docs-method {
  border-radius: 999px;
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 8px;
  text-align: center;
}

.api-docs-method-get {
  background: #2563eb;
}

.api-docs-method-post {
  background: #15803d;
}

.api-docs-method-patch,
.api-docs-method-put {
  background: #b45309;
}

.api-docs-method-delete {
  background: #b91c1c;
}

.api-docs-button {
  background: var(--release-accent);
  border-radius: 8px;
  color: white;
  display: inline-block;
  font-weight: 700;
  margin-top: 8px;
  padding: 12px 18px;
  text-decoration: none;
}

.api-docs-button:hover {
  background: var(--release-accent-soft);
}

.api-docs-steps {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.api-docs-steps > li + li {
  margin-top: 20px;
}

.api-docs-card h3 {
  color: var(--release-ink);
  margin: 0 0 14px;
}

.api-docs-note {
  background: var(--release-surface-subtle);
  border-left: 3px solid var(--release-accent);
  padding: 12px 14px;
}

.api-docs-responses {
  margin-top: 20px;
}

.api-docs-responses dl {
  display: grid;
  gap: 12px 18px;
  grid-template-columns: max-content minmax(0, 1fr);
}

.api-docs-responses dt {
  color: var(--release-ink);
  font-weight: 700;
}

.api-docs-responses dd {
  color: var(--release-muted);
  margin: 0;
}

@media screen and (max-width: 700px) {
  .api-docs-endpoint {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .api-docs-endpoint > span:last-child {
    grid-column: 1 / -1;
  }

  .api-docs-responses dl {
    display: block;
  }

  .api-docs-responses dd {
    margin: 4px 0 14px;
  }
}
