.api-spec {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.65;
}

.api-spec__meta {
  margin: 0 0 1.5rem;
  color: #64748b;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.api-spec section {
  margin: 0 0 1.75rem;
}

.api-spec section:last-child {
  margin-bottom: 0;
}

.api-spec h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a2540;
  letter-spacing: -0.01em;
}

.api-spec p,
.api-spec li {
  margin: 0 0 0.75rem;
}

.api-spec ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.api-spec__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 0;
}

.api-spec__steps > li {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
  margin: 0;
}

.api-spec__step-mark {
  font-weight: 700;
  color: #0a2540;
}

.api-spec__step-body {
  min-width: 0;
}

.api-spec a {
  color: #0b5cab;
}

.api-spec code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}

.api-spec p code,
.api-spec li code,
.api-spec td code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.api-spec pre {
  margin: 0 0 0.9rem;
  padding: 1rem 1.1rem;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.api-spec pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.api-spec__table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 0.9rem;
}

.api-spec table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.api-spec th,
.api-spec td {
  padding: 0.55rem 0.7rem;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.api-spec th {
  background: #f8fafc;
  color: #0a2540;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.api-spec td:first-child {
  white-space: nowrap;
}

.api-spec tr:hover td {
  background: transparent;
}

.ops-api-docs {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem 1.75rem 2.5rem;
}

.ops-api-docs__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e88e5;
}

.ops-api-docs h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a2540;
  line-height: 1.15;
}

.ops-api-docs__lead {
  margin: 0 0 1.25rem;
  color: #64748b;
  line-height: 1.6;
}

.ops-api-docs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .ops-api-docs {
    padding: 1.35rem 1rem 1.5rem;
    border-radius: 12px;
  }

  .ops-api-docs h2 {
    font-size: 1.45rem;
  }
}
