/* Code block colors (Hugo/Chroma, markup.highlight.noClasses = false).
   Built to be readable with color blindness: Okabe-Ito hues (blue, teal, orange, reddish purple),
   darkened to 4.5:1+ contrast on a near-white background, with bold/italic carrying meaning too so
   nothing depends on telling two colors apart. Red/green and pink/cyan/lime pairs are avoided. */

.chroma,
.post pre {
  background-color: #f6f8fa;
  color: #1f2328;
}
.chroma .line { display: flex; }
.chroma .hl { background-color: #e6e9ed; }
.chroma .ln,
.chroma .lnt {
  color: #6e7781;
  margin-right: 0.4em;
  padding: 0 0.4em;
  user-select: none;
  -webkit-user-select: none;
  white-space: pre;
}
.chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
.chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
.chroma .err { color: #1f2328; text-decoration: underline wavy #6e7781; }

/* Keywords: bold blue. */
.chroma .k, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr {
  color: #0550ae;
  font-weight: bold;
}
/* Types, builtins, tags, attributes, constants: teal. */
.chroma .kt, .chroma .nb, .chroma .bp, .chroma .nt, .chroma .na, .chroma .no, .chroma .nd {
  color: #00707a;
}

/* Strings: orange. Escapes and interpolation also bold. */
.chroma .s, .chroma .sa, .chroma .sb, .chroma .sc, .chroma .dl, .chroma .sd, .chroma .s2,
.chroma .sh, .chroma .sx, .chroma .sr, .chroma .s1, .chroma .ss {
  color: #a34700;
}
.chroma .se, .chroma .si {
  color: #a34700;
  font-weight: bold;
}

/* Numbers and true/false/nil: reddish purple. */
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo,
.chroma .kc {
  color: #a0287f;
}

/* Function and class names being defined: bold, default text color. */
.chroma .nf, .chroma .fm, .chroma .nc, .chroma .nl {
  color: #1f2328;
  font-weight: bold;
}

/* Everything else in the name family, operators and punctuation: plain text. */
.chroma .n, .chroma .nx, .chroma .nn, .chroma .nv, .chroma .vc, .chroma .vg, .chroma .vi,
.chroma .vm, .chroma .ni, .chroma .o, .chroma .ow, .chroma .p {
  color: #1f2328;
}

/* Comments: gray italic. Preprocessor and shell prompts: gray. */
.chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs {
  color: #57606a;
  font-style: italic;
}
.chroma .cp, .chroma .cpf, .chroma .gp {
  color: #57606a;
}

/* Diffs: the +/- prefix already marks the line; keep tints faint and text dark. */
.chroma .gd { background-color: #f3e3d6; color: #1f2328; }
.chroma .gi { background-color: #dde8f5; color: #1f2328; }
.chroma .gh, .chroma .gu { color: #57606a; font-weight: bold; }
.chroma .ge { font-style: italic; }
.chroma .gs { font-weight: bold; }
.chroma .gl { text-decoration: underline; }
.chroma .go { color: #1f2328; }
.chroma .w { color: inherit; }
