.mcp-hero {
  padding: 2.5rem 0 2rem;
  color: #f8f9fa;
  background: linear-gradient(135deg, #343a40 0%, #2b3035 55%, #1f2d3d 100%);
}
.mcp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9ec5fe;
  background: rgba(0, 123, 255, 0.15);
  border: 1px solid rgba(0, 123, 255, 0.6);
  border-radius: 999px;
}
.mcp-hero-title {
  margin: 1rem 0 0.75rem;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.mcp-hero-lede {
  max-width: 46rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.mcp-url-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-width: 40rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}
.mcp-url-label {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.mcp-url-value {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  font-size: 1rem;
  color: #fff;
  background: none;
  word-break: break-all;
}
.mcp-copy-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: #495057;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}
.mcp-copy-btn:hover {
  background: #f1f3f5;
}
.mcp-url-card .mcp-copy-btn {
  color: #fff;
  background: #007bff;
  border-color: #007bff;
}
.mcp-url-card .mcp-copy-btn:hover {
  background: #0069d9;
  border-color: #0062cc;
}
.mcp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.mcp-hero-link {
  color: #9ec5fe;
}
.mcp-hero-link:hover,
.mcp-hero-link:focus {
  color: #fff;
}
.mcp-works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.mcp-works-with-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.mcp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}
.mcp-chip {
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.mcp-quickstart {
  padding-top: 2rem;
  padding-bottom: 1rem;
}
.mcp-section-title {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.mcp-steps {
  margin-bottom: 1rem;
}
.mcp-steps > li {
  margin-bottom: 1rem;
}
.mcp-step {
  position: relative;
  height: 100%;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}
.mcp-step-number {
  position: absolute;
  top: 1.2rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #007bff;
  border-radius: 50%;
}
.mcp-step-title {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.mcp-step-text {
  margin: 0;
  font-size: 0.92rem;
  color: #495057;
}
.mcp-step-text a {
  white-space: nowrap;
}
.mcp-client-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.mcp-client-tabs-label {
  margin-right: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
}
.mcp-client-tab {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #007bff;
  border: 1px solid #007bff;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.mcp-client-tab:hover,
.mcp-client-tab:focus {
  color: #0056b3;
  background: #e7f1ff;
  text-decoration: none;
}
.mcp-client-tab.mcp-client-tab-active {
  color: #fff;
  background: #007bff;
}

.mcp-docs-layout {
  max-width: 1440px;
  padding-top: 1rem;
  padding-bottom: 2rem;
}
.mcp-sidebar {
  margin-bottom: 1.5rem;
}
.mcp-sidebar-toc {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}
.mcp-sidebar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  font-weight: 600;
  list-style: none;
  background: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
.mcp-sidebar-summary::-webkit-details-marker {
  display: none;
}
.mcp-sidebar-summary::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.mcp-sidebar-toc[open] > .mcp-sidebar-summary {
  border-bottom: 1px solid #dee2e6;
  border-radius: 6px 6px 0 0;
}
.mcp-sidebar-toc[open] > .mcp-sidebar-summary::after {
  transform: rotate(-135deg);
}

#mcp-toc .toc {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
#mcp-toc .toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
#mcp-toc .toc ul ul {
  padding-left: 0.75rem;
}
#mcp-toc .toc li {
  margin: 0;
}
#mcp-toc .toc a {
  display: block;
  padding: 0.25rem 0.75rem;
  line-height: 1.4;
  color: #495057;
  border-left: 2px solid transparent;
  text-decoration: none;
}
#mcp-toc .toc > ul > li > a {
  font-weight: 600;
  color: #343a40;
}
#mcp-toc .toc a:hover,
#mcp-toc .toc a:focus {
  color: #007bff;
}
#mcp-toc .toc a.mcp-toc-active {
  font-weight: 700;
  color: #007bff;
  background: #f1f7ff;
  border-left-color: #007bff;
}

.mcp-search {
  position: relative;
  margin-bottom: 1rem;
}
.mcp-search-input {
  padding-right: 2.25rem;
}
.mcp-search-kbd {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.75rem;
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-shadow: none;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.15s;
}
.mcp-search-input:focus + .mcp-search-kbd {
  opacity: 0;
}
.mcp-search-results {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 1020;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}
.mcp-search-result {
  display: block;
  padding: 0.6rem 0.85rem;
  color: #212529;
  border-bottom: 1px solid #f1f3f5;
  text-decoration: none;
}
.mcp-search-result:last-child {
  border-bottom: 0;
}
.mcp-search-result:hover,
.mcp-search-result:focus {
  color: #212529;
  background: #f1f7ff;
  text-decoration: none;
}
.mcp-search-result-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #007bff;
}
.mcp-search-result-snippet {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6c757d;
}
.mcp-search-results mark,
mark.mcp-search-mark {
  padding: 0 0.1em;
  color: inherit;
  background: #fff3bf;
  border-radius: 2px;
}
.mcp-search-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.mcp-docs {
  max-width: 960px;
  line-height: 1.65;
}
.mcp-docs h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid #dee2e6;
}
.mcp-docs h2:first-child {
  margin-top: 0;
}
.mcp-docs h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.mcp-docs h2,
.mcp-docs h3 {
  scroll-margin-top: 80px;
}
.mcp-docs .headerlink {
  margin-left: 0.4rem;
  font-size: 0.8em;
  color: #adb5bd;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.mcp-docs h2:hover .headerlink,
.mcp-docs h3:hover .headerlink,
.mcp-docs .headerlink:focus {
  opacity: 1;
}

.mcp-docs table {
  display: block;
  width: 100%;
  margin: 1rem 0 1.75rem;
  overflow-x: auto;
  font-size: 0.92rem;
  border-collapse: collapse;
}
.mcp-docs th,
.mcp-docs td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dee2e6;
}
.mcp-docs th {
  font-weight: 700;
  white-space: nowrap;
  background: #f1f3f5;
}
.mcp-docs tbody tr:nth-child(even) {
  background: #fafbfc;
}
.mcp-docs td:first-child {
  min-width: 11rem;
}

.mcp-docs code {
  padding: 0.1rem 0.35rem;
  font-size: 0.875em;
  color: #24292e;
  background: #f1f3f5;
  border-radius: 4px;
  word-break: break-word;
}
.mcp-docs pre {
  margin: 0.75rem 0 1.25rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: #f6f8fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}
.mcp-docs pre code {
  padding: 0;
  font-size: 0.875rem;
  white-space: pre;
  word-break: normal;
  background: none;
}
.mcp-code-block {
  position: relative;
  margin: 0.75rem 0 1.25rem;
}
.mcp-code-block pre {
  margin: 0;
  padding-right: 4.5rem;
}
.mcp-code-block .mcp-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: 0;
}
.mcp-code-block:hover .mcp-copy-btn,
.mcp-code-block:focus-within .mcp-copy-btn {
  opacity: 1;
}

.mcp-docs blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  background: #f1f7ff;
  border-left: 4px solid #007bff;
  border-radius: 0 6px 6px 0;
}
.mcp-docs blockquote p:last-child {
  margin-bottom: 0;
}
.mcp-docs ul,
.mcp-docs ol {
  padding-left: 1.5rem;
}
.mcp-docs li {
  margin-bottom: 0.35rem;
}

@keyframes mcp-flash {
  from {
    background-color: rgba(0, 123, 255, 0.15);
  }
}
.mcp-flash {
  animation: mcp-flash 2s ease-out;
}

.mcp-rail {
  position: sticky;
  top: 80px;
  padding-left: 1rem;
  font-size: 0.9rem;
  border-left: 1px solid #dee2e6;
}
.mcp-rail-title {
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
}
.mcp-rail-links li {
  margin-bottom: 0.4rem;
}
.mcp-rail-links a {
  color: #495057;
}
.mcp-rail-links a:hover,
.mcp-rail-links a:focus {
  color: #007bff;
}

.mcp-feedback {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dee2e6;
}
.mcp-feedback-question {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.mcp-feedback-btn {
  min-width: 3.5rem;
}
.mcp-feedback-thanks {
  color: #28a745;
}
.mcp-feedback-help {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.mcp-last-updated {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: #6c757d;
}

@media (hover: none) {
  .mcp-code-block .mcp-copy-btn {
    opacity: 1;
  }
  .mcp-search-kbd {
    display: none;
  }
}

@media (min-width: 992px) {
  .mcp-hero {
    padding: 3.5rem 0 3rem;
  }
  .mcp-hero-title {
    font-size: 2.5rem;
  }
  .mcp-url-label {
    flex-basis: auto;
  }
  .mcp-sidebar {
    margin-bottom: 0;
  }
  /* Overflow lives on the TOC, not this sticky container, so the search dropdown isn't clipped. */
  .mcp-sidebar-inner {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
  }
  .mcp-sidebar-toc {
    min-height: 0;
    overflow-y: auto;
    background: none;
    border: 0;
  }
  .mcp-sidebar-summary {
    display: none;
  }
  #mcp-toc .toc {
    padding: 0;
  }
  .mcp-search-results {
    right: auto;
    width: 28rem;
    max-width: calc(100vw - 2rem);
  }
}

@media (min-width: 1200px) {
  .mcp-hero-title {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcp-flash {
    animation: none;
    background-color: rgba(0, 123, 255, 0.08);
  }
  .mcp-copy-btn,
  .mcp-client-tab,
  .mcp-search-kbd,
  .mcp-sidebar-summary::after,
  .mcp-docs .headerlink {
    transition: none;
  }
}

@media print {
  .mcp-docs-layout aside,
  .mcp-search,
  .mcp-copy-btn,
  .mcp-feedback,
  .mcp-client-tabs,
  .mcp-hero-actions,
  .mcp-docs .headerlink {
    display: none !important;
  }
  .mcp-docs-layout main {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .mcp-hero {
    padding: 0 0 1rem;
    color: #000;
    background: none;
  }
  .mcp-hero-title,
  .mcp-hero-lede,
  .mcp-url-label,
  .mcp-url-value,
  .mcp-works-with-label,
  .mcp-chip,
  .mcp-hero-badge {
    color: #000;
  }
  .mcp-hero-badge,
  .mcp-url-card,
  .mcp-chip {
    background: none;
    border-color: #000;
  }
  .mcp-docs table {
    display: table;
    overflow: visible;
  }
  .mcp-docs pre,
  .mcp-docs pre code {
    white-space: pre-wrap;
    word-break: break-word;
  }
  .mcp-docs pre,
  .mcp-docs blockquote,
  .mcp-docs tr,
  .mcp-step {
    break-inside: avoid;
  }
  .mcp-docs h2,
  .mcp-docs h3 {
    break-after: avoid;
  }
  .mcp-flash {
    animation: none;
    background: none;
  }
}
