/*
 * Syntax palette adapted from Neovim for highlighting markdown codeblocks.
 * For use with Hugo.
 * See also: static/highlight/styles/rustvim.min.css
 * License: Apache-2.0
 */

:root {
  /* Neovim light-dark palette - regular/non-bright */
  --hi-black: light-dark(#2c2e33, #9b9ea4);
  --hi-red: light-dark(#5e0009, #ffbcb5);
  --hi-green: light-dark(#015825, #aaedb7);
  --hi-yellow: light-dark(#6e5600, #f4d88c);
  --hi-blue: light-dark(#005078, #9fd8ff);
  --hi-cyan: light-dark(#007676, #83efef);
  --hi-white: light-dark(#4f5258, #d7dae1);

  /* Neovim light-dark palette - bright */
  --hi-b-black: light-dark(#4f5258, #c4c6cd);
  --hi-b-red: var(--hi-red);
  --hi-b-green: var(--hi-green);
  --hi-b-yellow: var(--hi-yellow);
  --hi-b-blue: var(--hi-blue);
  --hi-b-cyan: var(--hi-cyan);
  --hi-b-white: light-dark(#9b9ea4, #ebeef5);
}

/*! Syntax highlighting adapted from Neovim */
.highlight,.highlight pre,.highlight table { color: var(--hi-b-white) !important; }
.highlight .err { color: var(--hi-b-red) !important; }
.highlight .cs { color: var(--hi-cyan) !important; }
.highlight .nf { color: var(--hi-b-blue) !important; }
.highlight .c,.highlight .cm,.highlight .c1 { color: #9b9ea4 !important; }
.highlight .g,.highlight .l,.highlight .x,.highlight .ge,.highlight .gs,.highlight .ld,.highlight .ni,
.highlight .nl,.highlight .nx,.highlight .py,.highlight .n,.highlight .go,
.highlight .h { color: var(--hi-b-cyan) !important; }
.highlight .k { color: var(--hi-b-blue) !important; }
.highlight .s1 { color: var(--hi-b-green) !important; }
.highlight .nb,.highlight .bp { color: var(--hi-b-yellow) !important; }
.highlight .nc,.highlight .nn { color: var(--hi-b-cyan) !important; }
.highlight .o,.highlight .p,.highlight .na,.highlight .ne { color: var(--hi-b-blue) !important; }
.highlight .gp,.highlight .w,.highlight .gh,.highlight .gu { color: var(--hi-white) !important; }
.highlight .cp,.highlight .s,.highlight .sb,.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,
.highlight .sh,.highlight .si,.highlight .ss,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,
.highlight .kr,.highlight .kt,.highlight .nt,.highlight .ow { color: var(--hi-b-green) !important; }
.highlight .gr,.highlight .gt,.highlight .m,.highlight .mf,.highlight .mh,.highlight .mi,
.highlight .mo,.highlight .sr,.highlight .il { color: var(--hi-b-cyan) !important; }
.highlight .no,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi,.highlight .nd,
.highlight .sx { color: var(--hi-b-yellow) !important; }
