/* Custom styling for Stoplight Elements integration */

body {
  margin: 0;
}

/* Top nav bar */
.sgnl-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.sgnl-nav-logo {
  display: flex;
  align-items: center;
  margin-right: 24px;
  flex-shrink: 0;
}

.sgnl-nav-logo img {
  height: 48px;
  width: auto;
}

.sgnl-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sgnl-nav-link {
  color: #4b5563;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: sans-serif;
  transition: color 0.15s, background 0.15s;
}

.sgnl-nav-link:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}

.sgnl-nav-link.active {
  color: #111827;
  background: rgba(0, 0, 0, 0.08);
}

/* Stoplight container - 60px nav + 60px footer */
.stoplight-container {
  height: calc(100vh - 120px);
  margin-top: 60px;
}

.stoplight-container elements-api {
  height: 100%;
}

/* Hide the redundant API title in the sidebar (the main content already
   shows it as an h1); collapse its wrapper so it doesn't leave a gap. */
div:has(> h4:first-of-type) {
  display: none !important;
}

/* Sidebar reserves top padding for the title we just hid; tighten it up
   now that "Overview" is the first row. */
.sl-sticky.sl-border-r {
  padding-top: 12px !important;
}
