/**
 * cpp-highlight.css - Custom C++ syntax highlighting styles
 * This replaces highlight.js's C++ highlighting for consistent styling
 */

/* C++ Keywords - blue */
code.cpp-highlight .cpp-keyword,
.doc pre.highlight code.cpp-highlight .cpp-keyword {
  color: #00f;
}

/* C++ Strings - dark red */
code.cpp-highlight .cpp-string,
.doc pre.highlight code.cpp-highlight .cpp-string {
  color: #a31515;
}

/* C++ Preprocessor directives - purple */
code.cpp-highlight .cpp-preprocessor,
.doc pre.highlight code.cpp-highlight .cpp-preprocessor {
  color: #6f008a;
}

/* C++ Comments - green, italic */
code.cpp-highlight .cpp-comment,
.doc pre.highlight code.cpp-highlight .cpp-comment {
  color: #008000;
  font-style: italic;
}

/* C++ Attributes - gray */
code.cpp-highlight .cpp-attribute,
.doc pre.highlight code.cpp-highlight .cpp-attribute {
  color: #9e9e9e;
}

/* Base text in C++ blocks - plain black (identifiers, function names, etc.) */
code.cpp-highlight,
.doc pre.highlight code.cpp-highlight {
  color: inherit;
}

/* === Dark mode overrides === */

/* C++ Keywords - purple */
html.dark code.cpp-highlight .cpp-keyword,
html.dark .doc pre.highlight code.cpp-highlight .cpp-keyword {
  color: var(--atom-one-dark-keyword, #c678dd);
}

/* C++ Strings - green */
html.dark code.cpp-highlight .cpp-string,
html.dark .doc pre.highlight code.cpp-highlight .cpp-string {
  color: var(--atom-one-dark-string, #98c379);
}

/* C++ Preprocessor directives - coral/red */
html.dark code.cpp-highlight .cpp-preprocessor,
html.dark .doc pre.highlight code.cpp-highlight .cpp-preprocessor {
  color: var(--atom-one-dark-operator, #e06c75);
}

/* C++ Comments - muted gray, italic */
html.dark code.cpp-highlight .cpp-comment,
html.dark .doc pre.highlight code.cpp-highlight .cpp-comment {
  color: var(--atom-one-dark-comment, #5c6370);
  font-style: italic;
}

/* C++ Attributes - orange */
html.dark code.cpp-highlight .cpp-attribute,
html.dark .doc pre.highlight code.cpp-highlight .cpp-attribute {
  color: var(--atom-one-dark-variable, #d19a66);
}

/* Base text in C++ blocks - light gray */
html.dark code.cpp-highlight,
html.dark .doc pre.highlight code.cpp-highlight {
  color: var(--atom-one-dark-text, #abb2bf);
}
