.docs-page .hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.docs-page .section {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 248, 238, 0.9);
}

.docs-page .section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.docs-page .endpoint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.docs-page .endpoint:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.method {
  display: inline-block;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 8px;
}

.method.post {
  background: #dbeafe;
  color: #1e40af;
}

.docs-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-subtle);
}

.warn-box {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 600;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.9;
}

.docs-page h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.docs-page pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--code-bg);
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.docs-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.table-wrap {
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.docs-table th,
.docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.docs-table th {
  background: #fff3df;
}

.docs-table .num {
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.live {
  background: #d1fae5;
  color: #065f46;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 900px) {
  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-sidebar {
    position: static;
    height: auto;
  }
}
