/* Rouge Syntax Highlighting — Catppuccin Mocha inspired
   Matches the dark code block aesthetic (--code-bg: #1e1e2e) */

/* Base token colors */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs { color: #6c7086; font-style: italic; }  /* Comments */
.highlight .cp  { color: #f38ba8; }                       /* Preprocessor (#include, #define) */
.highlight .cpf { color: #a6e3a1; }                       /* Preprocessor filename */

.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: #cba6f7; }                       /* Keywords (int, void, return, if) */
.highlight .kc { color: #fab387; }                        /* Constants (NULL, true, false) */

.highlight .n   { color: #cdd6f4; }                       /* Names (default text) */
.highlight .na  { color: #89dceb; }                       /* Attribute names */
.highlight .nb  { color: #89b4fa; }                       /* Builtin names (printf, malloc) */
.highlight .nc  { color: #f9e2af; }                       /* Class names */
.highlight .nf  { color: #89b4fa; }                       /* Function names */
.highlight .no  { color: #fab387; }                       /* Constants */
.highlight .ni  { color: #cdd6f4; }
.highlight .nn  { color: #f9e2af; }                       /* Namespace */
.highlight .nv  { color: #cdd6f4; }                       /* Variables */

.highlight .o,
.highlight .ow { color: #89dceb; }                        /* Operators (+, -, *, ->, &) */
.highlight .p  { color: #cdd6f4; }                        /* Punctuation */

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .sh { color: #a6e3a1; }                        /* Strings */
.highlight .se { color: #f2cdcd; }                        /* String escape (\n, \t) */
.highlight .si { color: #f2cdcd; }                        /* String interpolation */
.highlight .sr { color: #f5c2e7; }                        /* Regex */

.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo { color: #fab387; }                        /* Numbers */

.highlight .gd { color: #f38ba8; }                        /* Diff deleted */
.highlight .gi { color: #a6e3a1; }                        /* Diff inserted */
.highlight .ge { font-style: italic; }
.highlight .gs { font-weight: bold; }

.highlight .w  { color: #cdd6f4; }                        /* Whitespace */
.highlight .err { color: #f38ba8; }                       /* Errors */

/* Shell prompts */
.highlight .gp { color: #a6adc8; }                        /* Generic prompt ($ ) */
.highlight .go { color: #cdd6f4; }                        /* Generic output */

/* Ensure the highlight wrapper matches code blocks */
.highlight {
  background: #1e1e2e;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.highlight pre {
  margin: 0;
  border: none;
  background: transparent;
}
