/* Custom MCP Sub-Agents Documentation Styles */

:root {
  --md-primary-fg-color: #4F46E5;
  --md-primary-fg-color--light: #6366F1;
  --md-primary-fg-color--dark: #4338CA;
  --md-accent-fg-color: #3B82F6;
}

/* Professional typography */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Code blocks with better contrast */
.md-typeset code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.85em;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Improved admonitions */
.md-typeset .admonition {
  border-left: 0.2rem solid;
  border-radius: 0.3rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05);
}

/* Better spacing for lists */
.md-typeset ul, .md-typeset ol {
  margin: 1em 0;
}

.md-typeset li {
  margin: 0.5em 0;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 2rem 0;
}

/* Table improvements */
.md-typeset table:not([class]) {
  font-size: 0.9em;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-default-fg-color--lightest);
  font-weight: 600;
}

/* Command examples styling */
.md-typeset pre > code {
  border-radius: 0.5rem;
}

/* Navigation improvements */
.md-nav__link--active {
  font-weight: 600;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom badge styling */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  margin: 0 0.2em;
}

.badge-savant {
  background-color: #4338CA;
  color: white;
}

.badge-specialist {
  background-color: #0891B2;
  color: white;
}

.badge-command {
  background-color: #059669;
  color: white;
}

/* Three-column layout for table of contents */
.md-sidebar--secondary {
  width: 14rem;
}

/* Responsive improvements */
@media screen and (max-width: 76.1875em) {
  .md-sidebar--secondary {
    display: none;
  }
}

/* Print styles */
@media print {
  .md-header,
  .md-sidebar,
  .md-footer {
    display: none;
  }

  .md-content {
    max-width: 100%;
  }
}
