/* Documentation page */
.main.main-wide { max-width: 960px; }

.docs {
  line-height: 1.65;
  font-size: 0.92rem;
}

.docs h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.docs h2:first-child { margin-top: 0; }

.docs h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--accent);
}

.docs p { margin: 0.5rem 0; color: var(--muted); }
.docs p.lead { color: var(--text); font-size: 1rem; }

.docs ul, .docs ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  color: var(--muted);
}
.docs li { margin: 0.25rem 0; }
.docs li strong { color: var(--text); }

.docs a { color: var(--accent); text-decoration: none; }
.docs a:hover { text-decoration: underline; }

.docs code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: #c9d1ff;
}

.docs pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.docs pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d4d8e8;
}

.docs table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
}

.docs th, .docs td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.docs th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 500;
}

.docs td { color: var(--text); }

.docs .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.docs .tag-get { background: rgba(61,214,140,0.15); color: var(--success); }
.docs .tag-post { background: rgba(108,140,255,0.15); color: var(--accent); }
.docs .tag-put { background: rgba(251,191,36,0.15); color: var(--warning); }
.docs .tag-del { background: rgba(248,113,113,0.15); color: var(--danger); }

.docs .endpoint {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

.docs .endpoint-title {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.docs .toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.docs .toc a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.88rem;
}

.docs .warn {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  color: var(--warning);
  font-size: 0.88rem;
}
