* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#search {
  border: 1px solid lightgrey;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  height: 40px;
}

#navbar {
  padding: 0 24px;
  border-bottom: 1px solid lightgrey;
  position: relative;
  height: 56px;
}

#navbar img {
  max-height: 28px;
  margin-top: 3px;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.1em !important;
}

article {
  max-width: 900px; /* Wider than 680px to reduce cramped feel on code-heavy pages */
  margin: 0 auto; /* Centers the article horizontally in its div */
}

/* Override Redocly's hardcoded content wrapper width */
section[class*="ContentWrapper"] {
  max-width: 900px !important;
}

/* Allow OpenAPI schema pages to use their native two-column layout */
article:has(.schema-definition) {
  max-width: none;
  margin: 0;
}

article img {
  margin: 16px 0;
}

code,
kbd,
pre {
  font-family: 'IBM Plex Mono', 'SF Mono', Menlo, monospace !important;
}

code {
  background-color: rgba(0,0,0,0.06) !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  border: unset !important;
  font-weight: 500 !important;
}

pre {
  border-radius: 8px;
  padding: 12px 16px !important;
}

td:first-child {
  white-space: nowrap;
}

ul, ol {
  padding-left: 18px;
}

/* Tables with wide content need to expand beyond the narrow content
   width, better experience than scrolling. Must be overflow and not
   overflow-x to override parent rule */
.wide-table-container > table {
  overflow: visible !important;
}

/* MCP tool tables: keep tool names and scopes intact, stack multiple scopes cleanly,
   and align column edges across every category table */
.mcp-tools-table table {
  width: 100% !important;
  table-layout: fixed !important;
}

.mcp-tools-table th:nth-child(1) {
  width: 35%;
}

.mcp-tools-table th:nth-child(2) {
  width: 26%;
}

.mcp-tools-table th:nth-child(3) {
  width: 39%;
}

.mcp-tools-table code {
  font-size: 12px !important;
}

.mcp-tools-table th:nth-child(1),
.mcp-tools-table th:nth-child(2),
.mcp-tools-table td:nth-child(1) code,
.mcp-tools-table td:nth-child(2) code {
  white-space: nowrap;
}

.mcp-tools-table td:nth-child(1) code,
.mcp-tools-table td:nth-child(2) code {
  display: block;
  width: max-content;
}

.mcp-tools-table td:nth-child(2) code {
  margin-bottom: 4px;
}

.mcp-tools-table td:nth-child(2) code:last-child {
  margin-bottom: 0;
}

.mcp-tools-table .mcp-write-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #b45309;
  background-color: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (prefers-color-scheme: dark) {
  .mcp-tools-table .mcp-write-badge {
    color: #fbbf24;
  }
}

[data-theme="dark"] .mcp-tools-table .mcp-write-badge,
.dark .mcp-tools-table .mcp-write-badge {
  color: #fbbf24;
}

@media (max-width: 899px) {
  .mcp-tools-table table {
    table-layout: auto !important;
  }

  .mcp-tools-table th:nth-child(1),
  .mcp-tools-table th:nth-child(2),
  .mcp-tools-table th:nth-child(3) {
    width: auto;
  }
}

/* mailchimp newsletter signup form CSS overrides */

#mc_embed_signup form {
  padding: 0 !important;
}

#mce-EMAIL {
  margin-bottom: 10px !important;
}

/* End mailchimp newsletter overrides */
