/*
 * Hide the non-description chrome of Swagger UI so it renders as a clean
 * markdown doc page. Swagger UI is used purely as a markdown renderer here,
 * so the topbar, version/OAS pills, servers/auth, and the operations/models
 * sections are all noise.
 */

/* Top navigation bar */
.swagger-ui .topbar { display: none !important; }

/* Title-line decorations: gray version pill + green OAS version-stamp + base URL */
.swagger-ui .info .title small,
.swagger-ui .info hgroup.main pre.base-url,
.swagger-ui .info hgroup.main .base-url,
.swagger-ui .info hgroup.main .url {
  display: none !important;
}

/* Servers / auth / schemes / filter */
.swagger-ui .scheme-container,
.swagger-ui .servers,
.swagger-ui .auth-wrapper,
.swagger-ui .filter-container {
  display: none !important;
}

/*
 * Operations section (including the "No operations defined in spec!" placeholder).
 * The info container is styled `.information-container`, so targeting the
 * operations-specific `block-desktop` classes avoids hiding the info too.
 */
.swagger-ui section.block-desktop,
.swagger-ui section.col-12-desktop,
.swagger-ui section.models,
.swagger-ui .errors-wrapper {
  display: none !important;
}

/* Breathing room since the endpoint list is gone */
.swagger-ui .information-container {
  padding: 30px 0;
}

/* Top navigation injected by doc.js */
.doc-nav {
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 30px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

.doc-nav a {
  color: #3b4151;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
}

.doc-nav a:hover {
  background: #e5e7eb;
}

.doc-nav a.current {
  background: #3b4151;
  color: #fff;
}

.doc-nav a.doc-nav-api {
  margin-left: auto;
  color: #4990e2;
}

/* Auto-generated table of contents, injected by doc.js on pages with more than 2 h2 */
.swagger-ui .doc-toc {
  margin: 0 0 24px 0;
  font-size: 14px;
}

.swagger-ui .doc-toc-title {
  font-weight: 600;
  color: #3b4151;
}

.swagger-ui .doc-toc ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
  list-style: disc;
}

.swagger-ui .doc-toc li {
  margin: 4px 0;
}

.swagger-ui .doc-toc a {
  color: #4990e2;
  text-decoration: none;
}

.swagger-ui .doc-toc a:hover {
  text-decoration: underline;
}
