/* Tokyo Night Syntax Highlighting for Hugo/Chroma */
/* Based on tokyo-night color palette */

/* Background */
.highlight pre,
.highlight code {
  background-color: #16161e;
}

.highlight {
  background-color: #16161e;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid #29293d;
}

/* Line numbers */
.highlight .ln,
.highlight .lnt {
  color: #3b4261;
  margin-right: 0.75em;
  padding: 0 0.75em 0 0;
  user-select: none;
}

/* Line highlight */
.highlight .hl {
  background-color: #292e42;
  display: block;
}

/* Error */
.highlight .err {
  color: #f7768e;
}

/* Line table */
.highlight .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
}

.highlight .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
}

/* CodeLine */
.highlight .cl { }

/* Generic */
.highlight .g { color: #c0caf5; }

/* Generic.Deleted */
.highlight .gd { color: #f7768e; }

/* Generic.Emph */
.highlight .ge { font-style: italic; }

/* Generic.Error */
.highlight .gr { color: #f7768e; }

/* Generic.Heading */
.highlight .gh {
  color: #7aa2f7;
  font-weight: bold;
}

/* Generic.Inserted */
.highlight .gi { color: #9ece6a; }

/* Generic.Output */
.highlight .go { color: #a9b1d6; }

/* Generic.Prompt */
.highlight .gp {
  color: #bb9af7;
  font-weight: bold;
}

/* Generic.Strong */
.highlight .gs { font-weight: bold; }

/* Generic.Subheading */
.highlight .gu {
  color: #7dcfff;
  font-weight: bold;
}

/* Generic.Traceback */
.highlight .gt { color: #f7768e; }

/* Keyword */
.highlight .k { color: #bb9af7; }

/* Keyword.Constant */
.highlight .kc { color: #ff9e64; }

/* Keyword.Declaration */
.highlight .kd { color: #bb9af7; }

/* Keyword.Namespace */
.highlight .kn { color: #7dcfff; }

/* Keyword.Pseudo */
.highlight .kp { color: #bb9af7; }

/* Keyword.Reserved */
.highlight .kr { color: #bb9af7; }

/* Keyword.Type */
.highlight .kt { color: #7dcfff; }

/* Literal */
.highlight .l { color: #ff9e64; }

/* Literal.Date */
.highlight .ld { color: #9ece6a; }

/* Name */
.highlight .n { color: #c0caf5; }

/* Name.Attribute */
.highlight .na { color: #7aa2f7; }

/* Name.Builtin */
.highlight .nb { color: #7dcfff; }

/* Name.Builtin.Pseudo */
.highlight .bp { color: #7dcfff; }

/* Name.Class */
.highlight .nc { color: #7dcfff; }

/* Name.Constant */
.highlight .no { color: #ff9e64; }

/* Name.Decorator */
.highlight .nd { color: #e0af68; }

/* Name.Entity */
.highlight .ni { color: #c0caf5; }

/* Name.Exception */
.highlight .ne { color: #f7768e; }

/* Name.Function */
.highlight .nf { color: #7aa2f7; }

/* Name.Function.Magic */
.highlight .fm { color: #7aa2f7; }

/* Name.Label */
.highlight .nl { color: #7aa2f7; }

/* Name.Namespace */
.highlight .nn { color: #c0caf5; }

/* Name.Other */
.highlight .nx { color: #c0caf5; }

/* Name.Property */
.highlight .py { color: #7aa2f7; }

/* Name.Tag */
.highlight .nt { color: #f7768e; }

/* Name.Variable */
.highlight .nv { color: #c0caf5; }

/* Name.Variable.Class */
.highlight .vc { color: #c0caf5; }

/* Name.Variable.Global */
.highlight .vg { color: #c0caf5; }

/* Name.Variable.Instance */
.highlight .vi { color: #c0caf5; }

/* Name.Variable.Magic */
.highlight .vm { color: #c0caf5; }

/* Operator */
.highlight .o { color: #89ddff; }

/* Operator.Word */
.highlight .ow { color: #bb9af7; }

/* Punctuation */
.highlight .p { color: #c0caf5; }

/* Comment */
.highlight .c { color: #565f89; font-style: italic; }

/* Comment.Hashbang */
.highlight .ch { color: #565f89; font-style: italic; }

/* Comment.Multiline */
.highlight .cm { color: #565f89; font-style: italic; }

/* Comment.Preproc */
.highlight .cp { color: #bb9af7; }

/* Comment.PreprocFile */
.highlight .cpf { color: #9ece6a; }

/* Comment.Single */
.highlight .c1 { color: #565f89; font-style: italic; }

/* Comment.Special */
.highlight .cs { color: #565f89; font-style: italic; }

/* String */
.highlight .s { color: #9ece6a; }

/* String.Affix */
.highlight .sa { color: #9ece6a; }

/* String.Backtick */
.highlight .sb { color: #9ece6a; }

/* String.Char */
.highlight .sc { color: #9ece6a; }

/* String.Delimiter */
.highlight .dl { color: #9ece6a; }

/* String.Doc */
.highlight .sd { color: #565f89; }

/* String.Double */
.highlight .s2 { color: #9ece6a; }

/* String.Escape */
.highlight .se { color: #89ddff; }

/* String.Heredoc */
.highlight .sh { color: #9ece6a; }

/* String.Interpol */
.highlight .si { color: #7dcfff; }

/* String.Other */
.highlight .sx { color: #9ece6a; }

/* String.Regex */
.highlight .sr { color: #73daca; }

/* String.Single */
.highlight .s1 { color: #9ece6a; }

/* String.Symbol */
.highlight .ss { color: #73daca; }

/* Number */
.highlight .m { color: #ff9e64; }

/* Number.Bin */
.highlight .mb { color: #ff9e64; }

/* Number.Float */
.highlight .mf { color: #ff9e64; }

/* Number.Hex */
.highlight .mh { color: #ff9e64; }

/* Number.Integer */
.highlight .mi { color: #ff9e64; }

/* Number.Integer.Long */
.highlight .il { color: #ff9e64; }

/* Number.Oct */
.highlight .mo { color: #ff9e64; }

/* Text.Whitespace */
.highlight .w { color: #c0caf5; }

/* ============================================
   Tokyo Night Day (Light Mode) Syntax Theme
   ============================================ */

[data-theme="light"] .highlight pre,
[data-theme="light"] .highlight code {
  background-color: #e9e9ec;
}

[data-theme="light"] .highlight {
  background-color: #e9e9ec;
  border-color: #b4b5b9;
}

/* Line numbers */
[data-theme="light"] .highlight .ln,
[data-theme="light"] .highlight .lnt {
  color: #9699a3;
}

/* Line highlight */
[data-theme="light"] .highlight .hl {
  background-color: #c4c5ca;
}

/* Error */
[data-theme="light"] .highlight .err {
  color: #8c4351;
}

/* Generic */
[data-theme="light"] .highlight .g { color: #343b58; }

/* Generic.Deleted */
[data-theme="light"] .highlight .gd { color: #8c4351; }

/* Generic.Error */
[data-theme="light"] .highlight .gr { color: #8c4351; }

/* Generic.Heading */
[data-theme="light"] .highlight .gh {
  color: #34548a;
}

/* Generic.Inserted */
[data-theme="light"] .highlight .gi { color: #485e30; }

/* Generic.Output */
[data-theme="light"] .highlight .go { color: #565a6e; }

/* Generic.Prompt */
[data-theme="light"] .highlight .gp {
  color: #5a4a78;
}

/* Generic.Subheading */
[data-theme="light"] .highlight .gu {
  color: #0f4b6e;
}

/* Generic.Traceback */
[data-theme="light"] .highlight .gt { color: #8c4351; }

/* Keyword */
[data-theme="light"] .highlight .k { color: #5a4a78; }

/* Keyword.Constant */
[data-theme="light"] .highlight .kc { color: #965027; }

/* Keyword.Declaration */
[data-theme="light"] .highlight .kd { color: #5a4a78; }

/* Keyword.Namespace */
[data-theme="light"] .highlight .kn { color: #0f4b6e; }

/* Keyword.Pseudo */
[data-theme="light"] .highlight .kp { color: #5a4a78; }

/* Keyword.Reserved */
[data-theme="light"] .highlight .kr { color: #5a4a78; }

/* Keyword.Type */
[data-theme="light"] .highlight .kt { color: #0f4b6e; }

/* Literal */
[data-theme="light"] .highlight .l { color: #965027; }

/* Literal.Date */
[data-theme="light"] .highlight .ld { color: #485e30; }

/* Name */
[data-theme="light"] .highlight .n { color: #343b58; }

/* Name.Attribute */
[data-theme="light"] .highlight .na { color: #34548a; }

/* Name.Builtin */
[data-theme="light"] .highlight .nb { color: #0f4b6e; }

/* Name.Builtin.Pseudo */
[data-theme="light"] .highlight .bp { color: #0f4b6e; }

/* Name.Class */
[data-theme="light"] .highlight .nc { color: #0f4b6e; }

/* Name.Constant */
[data-theme="light"] .highlight .no { color: #965027; }

/* Name.Decorator */
[data-theme="light"] .highlight .nd { color: #8f5e15; }

/* Name.Entity */
[data-theme="light"] .highlight .ni { color: #343b58; }

/* Name.Exception */
[data-theme="light"] .highlight .ne { color: #8c4351; }

/* Name.Function */
[data-theme="light"] .highlight .nf { color: #34548a; }

/* Name.Function.Magic */
[data-theme="light"] .highlight .fm { color: #34548a; }

/* Name.Label */
[data-theme="light"] .highlight .nl { color: #34548a; }

/* Name.Namespace */
[data-theme="light"] .highlight .nn { color: #343b58; }

/* Name.Other */
[data-theme="light"] .highlight .nx { color: #343b58; }

/* Name.Property */
[data-theme="light"] .highlight .py { color: #34548a; }

/* Name.Tag */
[data-theme="light"] .highlight .nt { color: #8c4351; }

/* Name.Variable */
[data-theme="light"] .highlight .nv { color: #343b58; }

/* Name.Variable.Class */
[data-theme="light"] .highlight .vc { color: #343b58; }

/* Name.Variable.Global */
[data-theme="light"] .highlight .vg { color: #343b58; }

/* Name.Variable.Instance */
[data-theme="light"] .highlight .vi { color: #343b58; }

/* Name.Variable.Magic */
[data-theme="light"] .highlight .vm { color: #343b58; }

/* Operator */
[data-theme="light"] .highlight .o { color: #0f4b6e; }

/* Operator.Word */
[data-theme="light"] .highlight .ow { color: #5a4a78; }

/* Punctuation */
[data-theme="light"] .highlight .p { color: #343b58; }

/* Comment */
[data-theme="light"] .highlight .c { color: #848cb5; }

/* Comment.Hashbang */
[data-theme="light"] .highlight .ch { color: #848cb5; }

/* Comment.Multiline */
[data-theme="light"] .highlight .cm { color: #848cb5; }

/* Comment.Preproc */
[data-theme="light"] .highlight .cp { color: #5a4a78; }

/* Comment.PreprocFile */
[data-theme="light"] .highlight .cpf { color: #485e30; }

/* Comment.Single */
[data-theme="light"] .highlight .c1 { color: #848cb5; }

/* Comment.Special */
[data-theme="light"] .highlight .cs { color: #848cb5; }

/* String */
[data-theme="light"] .highlight .s { color: #485e30; }

/* String.Affix */
[data-theme="light"] .highlight .sa { color: #485e30; }

/* String.Backtick */
[data-theme="light"] .highlight .sb { color: #485e30; }

/* String.Char */
[data-theme="light"] .highlight .sc { color: #485e30; }

/* String.Delimiter */
[data-theme="light"] .highlight .dl { color: #485e30; }

/* String.Doc */
[data-theme="light"] .highlight .sd { color: #848cb5; }

/* String.Double */
[data-theme="light"] .highlight .s2 { color: #485e30; }

/* String.Escape */
[data-theme="light"] .highlight .se { color: #0f4b6e; }

/* String.Heredoc */
[data-theme="light"] .highlight .sh { color: #485e30; }

/* String.Interpol */
[data-theme="light"] .highlight .si { color: #0f4b6e; }

/* String.Other */
[data-theme="light"] .highlight .sx { color: #485e30; }

/* String.Regex */
[data-theme="light"] .highlight .sr { color: #166775; }

/* String.Single */
[data-theme="light"] .highlight .s1 { color: #485e30; }

/* String.Symbol */
[data-theme="light"] .highlight .ss { color: #166775; }

/* Number */
[data-theme="light"] .highlight .m { color: #965027; }

/* Number.Bin */
[data-theme="light"] .highlight .mb { color: #965027; }

/* Number.Float */
[data-theme="light"] .highlight .mf { color: #965027; }

/* Number.Hex */
[data-theme="light"] .highlight .mh { color: #965027; }

/* Number.Integer */
[data-theme="light"] .highlight .mi { color: #965027; }

/* Number.Integer.Long */
[data-theme="light"] .highlight .il { color: #965027; }

/* Number.Oct */
[data-theme="light"] .highlight .mo { color: #965027; }

/* Text.Whitespace */
[data-theme="light"] .highlight .w { color: #343b58; }
