/* Rouge Syntax Highlighting - Light Mode (GitHub Theme) */
.highlight { background-color: #f6f8fa; color: #24292e; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #6a737d; font-style: italic } /* Comment */
.highlight .err { color: #cb2431; background-color: #ffeef0 } /* Error */
.highlight .k { color: #d73a49; font-weight: bold } /* Keyword */
.highlight .o { color: #24292e; font-weight: bold } /* Operator */
.highlight .cm { color: #6a737d; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #6a737d; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #6a737d; font-style: italic } /* Comment.Single */
.highlight .cs { color: #6a737d; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #cb2431; background-color: #ffeef0 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #cb2431 } /* Generic.Error */
.highlight .gh { color: #005cc5; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #22863a; background-color: #f0fff4 } /* Generic.Inserted */
.highlight .go { color: #586069 } /* Generic.Output */
.highlight .gp { color: #6a737d } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #005cc5; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #cb2431 } /* Generic.Traceback */
.highlight .kc { color: #d73a49; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #d73a49; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #d73a49; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #d73a49; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #d73a49; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #d73a49; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #005cc5 } /* Literal.Number */
.highlight .s { color: #032f62 } /* Literal.String */
.highlight .na { color: #22863a } /* Name.Attribute */
.highlight .nb { color: #005cc5 } /* Name.Builtin */
.highlight .nc { color: #6f42c1; font-weight: bold } /* Name.Class */
.highlight .no { color: #005cc5 } /* Name.Constant */
.highlight .nd { color: #6f42c1; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #24292e } /* Name.Entity */
.highlight .ne { color: #cb2431; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #6f42c1; font-weight: bold } /* Name.Function */
.highlight .nl { color: #24292e } /* Name.Label */
.highlight .nn { color: #24292e } /* Name.Namespace */
.highlight .nt { color: #22863a } /* Name.Tag */
.highlight .nv { color: #e36209 } /* Name.Variable */
.highlight .ow { color: #d73a49; font-weight: bold } /* Operator.Word */
.highlight .w { color: #24292e } /* Text.Whitespace */
.highlight .mf { color: #005cc5 } /* Literal.Number.Float */
.highlight .mh { color: #005cc5 } /* Literal.Number.Hex */
.highlight .mi { color: #005cc5 } /* Literal.Number.Integer */
.highlight .mo { color: #005cc5 } /* Literal.Number.Oct */
.highlight .sb { color: #032f62 } /* Literal.String.Backtick */
.highlight .sc { color: #032f62 } /* Literal.String.Char */
.highlight .sd { color: #032f62 } /* Literal.String.Doc */
.highlight .s2 { color: #032f62 } /* Literal.String.Double */
.highlight .se { color: #032f62 } /* Literal.String.Escape */
.highlight .sh { color: #032f62 } /* Literal.String.Heredoc */
.highlight .si { color: #032f62 } /* Literal.String.Interpol */
.highlight .sx { color: #032f62 } /* Literal.String.Other */
.highlight .sr { color: #032f62 } /* Literal.String.Regex */
.highlight .s1 { color: #032f62 } /* Literal.String.Single */
.highlight .ss { color: #005cc5 } /* Literal.String.Symbol */
.highlight .bp { color: #005cc5 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #e36209 } /* Name.Variable.Class */
.highlight .vg { color: #e36209 } /* Name.Variable.Global */
.highlight .vi { color: #e36209 } /* Name.Variable.Instance */
.highlight .il { color: #005cc5 } /* Literal.Number.Integer.Long */

/* Dark Mode Syntax Highlighting (Dracula-inspired) */
@media (prefers-color-scheme: dark) {
  .highlight { 
    background-color: #282a36 !important; 
    color: #f8f8f2 !important;
  }
  
  .highlight pre {
    background-color: #282a36 !important;
    color: #f8f8f2 !important;
  }
  
  .highlight code {
    background-color: #282a36 !important;
    color: #f8f8f2 !important;
  }
  
  /* Make sure text is visible */
  .highlight span {
    color: #f8f8f2 !important;
  }
  
  .highlight .hll { background-color: #44475a !important }
  .highlight .c { color: #6272a4 !important } /* Comment */
  .highlight .err { color: #ff5555 !important } /* Error */
  .highlight .g { color: #f8f8f2 !important } /* Generic */
  .highlight .k { color: #ff79c6 !important } /* Keyword */
  .highlight .l { color: #f8f8f2 !important } /* Literal */
  .highlight .n { color: #f8f8f2 !important } /* Name */
  .highlight .o { color: #ff79c6 !important } /* Operator */
  .highlight .x { color: #f8f8f2 !important } /* Other */
  .highlight .p { color: #f8f8f2 !important } /* Punctuation */
  .highlight .cm { color: #6272a4 !important } /* Comment.Multiline */
  .highlight .cp { color: #ff79c6 !important } /* Comment.Preproc */
  .highlight .c1 { color: #6272a4 !important } /* Comment.Single */
  .highlight .cs { color: #6272a4 !important } /* Comment.Special */
  .highlight .gd { color: #ff5555 !important } /* Generic.Deleted */
  .highlight .ge { color: #f8f8f2 !important; font-style: italic } /* Generic.Emph */
  .highlight .gr { color: #ff5555 !important } /* Generic.Error */
  .highlight .gh { color: #50fa7b !important; font-weight: bold } /* Generic.Heading */
  .highlight .gi { color: #50fa7b !important } /* Generic.Inserted */
  .highlight .go { color: #6272a4 !important } /* Generic.Output */
  .highlight .gp { color: #f8f8f2 !important; font-weight: bold } /* Generic.Prompt */
  .highlight .gs { color: #f8f8f2 !important; font-weight: bold } /* Generic.Strong */
  .highlight .gu { color: #8be9fd !important; font-weight: bold } /* Generic.Subheading */
  .highlight .gt { color: #ff5555 !important } /* Generic.Traceback */
  .highlight .kc { color: #ff79c6 !important } /* Keyword.Constant */
  .highlight .kd { color: #8be9fd !important } /* Keyword.Declaration */
  .highlight .kn { color: #ff79c6 !important } /* Keyword.Namespace */
  .highlight .kp { color: #ff79c6 !important } /* Keyword.Pseudo */
  .highlight .kr { color: #ff79c6 !important } /* Keyword.Reserved */
  .highlight .kt { color: #8be9fd !important } /* Keyword.Type */
  .highlight .ld { color: #f8f8f2 !important } /* Literal.Date */
  .highlight .m { color: #bd93f9 !important } /* Literal.Number */
  .highlight .s { color: #f1fa8c !important } /* Literal.String */
  .highlight .na { color: #50fa7b !important } /* Name.Attribute */
  .highlight .nb { color: #8be9fd !important } /* Name.Builtin */
  .highlight .nc { color: #50fa7b !important } /* Name.Class */
  .highlight .no { color: #f8f8f2 !important } /* Name.Constant */
  .highlight .nd { color: #50fa7b !important } /* Name.Decorator */
  .highlight .ni { color: #f8f8f2 !important } /* Name.Entity */
  .highlight .ne { color: #ff5555 !important } /* Name.Exception */
  .highlight .nf { color: #50fa7b !important } /* Name.Function */
  .highlight .nl { color: #f8f8f2 !important } /* Name.Label */
  .highlight .nn { color: #f8f8f2 !important } /* Name.Namespace */
  .highlight .nx { color: #f8f8f2 !important } /* Name.Other */
  .highlight .py { color: #f8f8f2 !important } /* Name.Property */
  .highlight .nt { color: #ff79c6 !important } /* Name.Tag */
  .highlight .nv { color: #8be9fd !important } /* Name.Variable */
  .highlight .ow { color: #ff79c6 !important } /* Operator.Word */
  .highlight .w { color: #f8f8f2 !important } /* Text.Whitespace */
  .highlight .mf { color: #bd93f9 !important } /* Literal.Number.Float */
  .highlight .mh { color: #bd93f9 !important } /* Literal.Number.Hex */
  .highlight .mi { color: #bd93f9 !important } /* Literal.Number.Integer */
  .highlight .mo { color: #bd93f9 !important } /* Literal.Number.Oct */
  .highlight .sb { color: #f1fa8c !important } /* Literal.String.Backtick */
  .highlight .sc { color: #f1fa8c !important } /* Literal.String.Char */
  .highlight .sd { color: #f1fa8c !important } /* Literal.String.Doc */
  .highlight .s2 { color: #f1fa8c !important } /* Literal.String.Double */
  .highlight .se { color: #ffb86c !important } /* Literal.String.Escape */
  .highlight .sh { color: #f1fa8c !important } /* Literal.String.Heredoc */
  .highlight .si { color: #ffb86c !important } /* Literal.String.Interpol */
  .highlight .sx { color: #f1fa8c !important } /* Literal.String.Other */
  .highlight .sr { color: #ff5555 !important } /* Literal.String.Regex */
  .highlight .s1 { color: #f1fa8c !important } /* Literal.String.Single */
  .highlight .ss { color: #8be9fd !important } /* Literal.String.Symbol */
  .highlight .bp { color: #f8f8f2 !important } /* Name.Builtin.Pseudo */
  .highlight .vc { color: #8be9fd !important } /* Name.Variable.Class */
  .highlight .vg { color: #8be9fd !important } /* Name.Variable.Global */
  .highlight .vi { color: #8be9fd !important } /* Name.Variable.Instance */
  .highlight .il { color: #bd93f9 !important } /* Literal.Number.Integer.Long */
}