body.api-docs-page .container {
  gap: 20px;
}

.docs-hero {
  align-items: stretch;
}

.docs-hero-copy {
  padding-bottom: 32px;
}

.docs-hero-copy .subtitle {
  max-width: 58ch;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.docs-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.docs-hero-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.docs-hero-link-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #f1cf91);
  color: #16110a;
  box-shadow: 0 14px 28px rgba(215, 174, 103, 0.18);
}

.docs-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.docs-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(215, 174, 103, 0.22);
  border-radius: 999px;
  background: rgba(215, 174, 103, 0.1);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-note {
  min-height: 100%;
}

.docs-note-code {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.1;
  word-break: break-all;
}

.docs-steps,
.docs-endpoints,
.docs-notes {
  display: grid;
  gap: 14px;
}

.docs-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-endpoints {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-step-card,
.docs-endpoint-card,
.docs-note-card,
.docs-example-card,
.docs-response-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.docs-step-card,
.docs-endpoint-card,
.docs-note-card {
  padding: 18px;
}

.docs-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(215, 174, 103, 0.12);
  color: var(--accent-hover);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.docs-step-card h3,
.docs-example-head h3,
.docs-response-head h3,
.docs-note-card strong {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
}

.docs-step-card p,
.docs-endpoint-card p,
.docs-note-card p,
.docs-callout span {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

.docs-endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.docs-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-method-get {
  background: rgba(86, 173, 112, 0.16);
  color: #8ee09b;
}

.docs-method-post {
  background: rgba(87, 126, 214, 0.18);
  color: #adc5ff;
}

.docs-endpoint-head code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  word-break: break-all;
}

.docs-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 174, 103, 0.22);
  border-radius: 20px;
  background: rgba(215, 174, 103, 0.08);
}

.docs-callout strong {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: nowrap;
}

.docs-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docs-example-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.docs-example-card,
.docs-response-card {
  overflow: hidden;
}

.docs-example-head,
.docs-response-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}

.docs-example-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.docs-copy-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.docs-code {
  margin: 16px 0 0;
  padding: 18px;
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 17, 0.72);
  color: #f7f2e8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.docs-code-muted {
  color: rgba(247, 242, 232, 0.84);
}

[data-theme="light"] .docs-code {
  background: rgba(255, 250, 243, 0.92);
  color: #2b2119;
}

[data-theme="light"] .docs-hero-link,
[data-theme="light"] .docs-step-card,
[data-theme="light"] .docs-endpoint-card,
[data-theme="light"] .docs-note-card,
[data-theme="light"] .docs-example-card,
[data-theme="light"] .docs-response-card,
[data-theme="light"] .docs-copy-btn {
  background: rgba(255, 255, 255, 0.56);
}

[data-theme="light"] .docs-tag {
  background: rgba(183, 123, 31, 0.14);
  color: var(--accent-strong);
}

[data-theme="light"] .docs-method-get {
  background: rgba(76, 175, 80, 0.14);
  color: #2d7c35;
}

[data-theme="light"] .docs-method-post {
  background: rgba(87, 126, 214, 0.12);
  color: #3352a5;
}

.docs-note-card strong {
  display: block;
  margin-top: 0;
}

@media (max-width: 1120px) {
  .docs-steps,
  .docs-endpoints {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .docs-example-grid,
  .docs-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-callout {
    flex-direction: column;
  }

  .docs-callout strong {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .docs-hero-actions {
    flex-direction: column;
  }

  .docs-hero-link,
  .docs-copy-btn {
    width: 100%;
  }

  .docs-example-head,
  .docs-response-head {
    flex-direction: column;
  }

  .docs-step-card,
  .docs-endpoint-card,
  .docs-note-card,
  .docs-code {
    padding-left: 16px;
    padding-right: 16px;
  }
}
