/* PostZeno Developer API Reference — Graphite & Mint Design System */

.docs-page {
  background: var(--bg);
  color: var(--text);
}

.docs-main {
  padding: 124px 0 96px;
  min-height: 100vh;
}

.docs-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.docs-hero {
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.docs-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 16px 0 14px;
}

.docs-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 660px;
}

.docs-base-card {
  background: #141618;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 16px 18px;
  min-width: 340px;
}

.docs-base-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.docs-base-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-base-row code {
  font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--primary);
  word-break: break-all;
}

.docs-copy-btn {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
  flex-shrink: 0;
}

.docs-copy-btn:hover {
  color: var(--text);
  border-color: #ffffff40;
  background: #ffffff06;
}

.docs-copy-btn:active {
  transform: scale(0.97);
}

.docs-copy-btn.copied {
  color: var(--primary);
  border-color: #c6d9b755;
}

/* Two-column layout */
.docs-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-right: 12px;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-group:last-child {
  margin-bottom: 0;
}

.docs-nav-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.docs-nav-list {
  list-style: none;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.docs-nav-list a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  transition: color 160ms ease, border-color 160ms ease;
}

.docs-nav-list a:hover {
  color: var(--text);
}

.docs-nav-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 500;
}

/* Main article */
.docs-content {
  min-width: 0;
}

.docs-section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.docs-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.docs-section-eyebrow {
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.docs-section h2 {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.docs-section h3 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 36px 0 12px;
  scroll-margin-top: 96px;
}

.docs-section h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 24px 0 10px;
}

.docs-section p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 14px;
}

.docs-section ul,
.docs-section ol {
  margin: 12px 0 18px;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.docs-section li {
  margin-bottom: 6px;
}

.docs-section li strong {
  color: var(--text);
  font-weight: 550;
}

.docs-section :not(pre) > code {
  font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #dce6d5;
  padding: 2px 6px;
  border-radius: 5px;
}

/* Endpoint badge bar */
.endpoint-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 24px;
  margin: 28px 0;
  scroll-margin-top: 96px;
}

.endpoint-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.endpoint-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #121416;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  padding: 7px 12px;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-x: auto;
}

.method-badge {
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.method-post {
  color: var(--primary);
  background: #c6d9b717;
  border: 1px solid #c6d9b738;
}

.method-get {
  color: #a8c7e0;
  background: #a8c7e014;
  border: 1px solid #a8c7e036;
}

.method-put {
  color: #e2c590;
  background: #e2c59014;
  border: 1px solid #e2c59036;
}

.method-delete {
  color: #e09b9b;
  background: #e09b9b14;
  border: 1px solid #e09b9b36;
}

.endpoint-bar code {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  white-space: nowrap;
}

/* Code blocks */
.code-panel {
  background: #131517;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  overflow: hidden;
  margin: 14px 0 20px;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #171a1c;
}

.code-panel-label {
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.code-panel pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d6dfd1;
  tab-size: 2;
}

/* Language tabs */
.code-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.code-tab {
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 160ms ease, background 160ms ease;
}

.code-tab:hover {
  color: var(--text-2);
}

.code-tab.active {
  background: #2b3229;
  color: #e1eadb;
}

/* Tables */
.docs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  margin: 14px 0 20px;
  background: #141618;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.docs-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
  background: #181b1d;
  white-space: nowrap;
}

.docs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.65;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.req-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: #c6d9b717;
  border: 1px solid #c6d9b733;
}

.opt-pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text-3);
  background: #ffffff06;
  border: 1px solid var(--border);
}

/* Callouts */
.docs-callout {
  border: 1px solid #c6d9b736;
  background: #191f19;
  border-radius: 9px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.docs-callout strong {
  color: var(--primary);
  font-weight: 600;
}

.docs-callout-warn {
  border-color: #e2c59040;
  background: #201c15;
}

.docs-callout-warn strong {
  color: #e2c590;
}

/* Responsive */
@media (max-width: 980px) {
  .docs-shell {
    padding: 0 24px;
  }

  .docs-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-base-card {
    min-width: 0;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .docs-nav-group {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .docs-page .nav-actions .btn-glass {
    display: none;
  }

  .docs-main {
    padding: 104px 0 64px;
  }

  .docs-shell {
    padding: 0 18px;
  }

  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .endpoint-card {
    padding: 18px 16px;
  }

  .code-panel pre {
    padding: 14px 16px;
    font-size: 11.5px;
  }
}
