/* ── docs layout ─────────────────────────────────────────── */

.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}

@media (max-width: 680px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-nav-section { display: contents; }
  .docs-nav-label { display: none; }
}

/* ── sidebar nav ─────────────────────────────────────────── */

.docs-nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 8px 4px;
}

.docs-nav-label:first-child { padding-top: 0; }

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.docs-nav-link:hover { text-decoration: none; }

.docs-nav-link:hover,
.docs-nav-link--active {
  background: rgba(34,197,94,0.10);
  color: var(--text);
  text-decoration: none;
}

.docs-nav-link i { width: 14px; text-align: center; color: rgba(34,197,94,0.75); }

/* ── content ─────────────────────────────────────────────── */

.docs-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── section ─────────────────────────────────────────────── */

.docs-section {}

.docs-section-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.docs-section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(34,197,94,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 13px;
  flex-shrink: 0;
}

.docs-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.docs-section-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── endpoint card ───────────────────────────────────────── */

.docs-ep {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

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

.docs-ep-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}

.docs-ep-head:hover { background: rgba(255,255,255,0.03); }

.docs-method {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

.docs-method--get    { background: rgba(34,197,94,0.15);  color: #22c55e; }
.docs-method--post   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.docs-method--delete { background: rgba(239,68,68,0.15);  color: #f87171; }

.docs-ep-path {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-ep-summary {
  font-size: 11.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.docs-ep-chevron {
  color: var(--muted);
  font-size: 11px;
  transition: transform .2s;
  flex-shrink: 0;
}

.docs-ep--open .docs-ep-chevron { transform: rotate(180deg); }

.docs-ep-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid var(--border2);
}

.docs-ep--open .docs-ep-body { display: block; }

/* auth badge */
.docs-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.docs-auth-badge--session {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}

.docs-auth-badge--public {
  background: rgba(34,197,94,0.10);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.15);
}

/* params table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.docs-table th {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border2);
}

.docs-table td {
  font-size: 12px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

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

.docs-table td:first-child {
  font-family: 'Courier New', Courier, monospace;
  color: #93c5fd;
  white-space: nowrap;
}

.docs-req { font-size: 10px; color: #f87171; margin-left: 4px; }
.docs-opt { font-size: 10px; color: var(--muted); margin-left: 4px; }

/* code block */
.docs-code {
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 10px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11.5px;
  color: #a3e635;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 8px 0;
  user-select: text;
  -webkit-user-select: text;
}

.docs-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 12px 0 4px;
}

.docs-label:first-child { margin-top: 0; }

.docs-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

/* intro box */
.docs-intro {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.docs-intro strong { color: var(--text); }

.docs-base-url {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #a3e635;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-block;
  margin-top: 6px;
  user-select: text;
  -webkit-user-select: text;
}
