.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav-group .filter-label {
  margin-bottom: 6px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-nav-link:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.docs-nav-method {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
}

.docs-content {
  max-width: 860px;
}

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

.docs-title {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 700;
}

.docs-heading {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.docs-endpoints-heading {
  margin-bottom: 24px;
}

.docs-text {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.docs-label {
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-block {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.method {
  padding: 3px 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.endpoint-path {
  font-size: 1.05rem;
  font-weight: 600;
}

.docs-table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.docs-table th {
  padding: 8px 12px;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line-strong);
}

.docs-table td {
  padding: 10px 12px;
  color: var(--text-muted);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.docs-table td code {
  color: var(--text);
  white-space: nowrap;
}

.docs-type {
  color: var(--text-faint);
  white-space: nowrap;
}

.try-it {
  border: 1px solid var(--line);
}

.try-it-bar {
  display: flex;
  align-items: stretch;
  background: var(--bg);
}

.try-it-url {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
}

.try-it-button {
  padding: 0 20px;
  background: var(--accent);
  border: none;
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.try-it-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.try-it-output {
  max-height: 420px;
  margin: 0;
  border: none;
  border-top: 1px solid var(--line);
  overflow: auto;
}

@media (max-width: 900px) {
  #docs-view .sidebar {
    display: none;
  }
}
