/* Mermaid Diagram Styling */
.mermaid {
  background: transparent !important;
  padding: 1em;
  margin: 1em 0;
}

/* Code Block Styling */
.highlight {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1em;
  border-radius: 4px;
  margin: 1em 0;
  overflow-x: auto;
}

.highlight pre {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* Rust-specific syntax highlighting */
.language-rust .kd { color: #569cd6; } /* keyword */
.language-rust .k { color: #569cd6; } /* keyword */
.language-rust .kc { color: #569cd6; } /* keyword constant */
.language-rust .na { color: #9cdcfe; } /* name attribute */
.language-rust .nb { color: #9cdcfe; } /* name builtin */
.language-rust .nc { color: #4ec9b0; } /* name class */
.language-rust .nf { color: #dcdcaa; } /* name function */
.language-rust .s { color: #ce9178; } /* string */
.language-rust .c1 { color: #6a9955; } /* comment */
.language-rust .o { color: #d4d4d4; } /* operator */
.language-rust .p { color: #d4d4d4; } /* punctuation */

/* Inline code */
code {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Make code blocks wider */
.md-content {
  max-width: 90%;
  margin: 0 auto;
}
