/* ==========================================================================
   Syntax highlighting
   based on prism.js default theme for JavaScript, CSS and HTML
   @author Lea Verou
   ========================================================================== */

code[class*='language-'],
pre[class*='language-'] {
  color: black;
  background: none;
  text-shadow: 0 1px white;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 1em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.5;

  tab-size: 4;

  hyphens: none;
}

pre[class*='language-']::selection,
pre[class*='language-'] ::selection,
code[class*='language-']::selection,
code[class*='language-'] ::selection {
  text-shadow: none;
  background: #b3d4fc;
}

@media print {
  code[class*='language-'],
  pre[class*='language-'] {
    text-shadow: none;
  }
}

/* Code blocks */
pre[class*='language-'] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
}

:not(pre) > code[class*='language-'],
pre[class*='language-'] {
  background: #f5f2f0;
}

/* Inline code */
:not(pre) > code[class*='language-'] {
  padding: 0.1em;
  border-radius: 0.3em;
  white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: slategray;
}

.token.punctuation {
  color: #999;
}

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #905;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #690;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #9a6e3a;

  /* This background color was intended by the author of this theme. */
  background: hsl(0deg, 0%, 100%, 50%);
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #07a;
}

.token.function,
.token.class-name {
  color: #dd4a68;
}

.token.regex,
.token.important,
.token.variable {
  color: #e90;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

/* Prism syntax based on Hyde: https://github.com/poole/hyde/tree/master/public */

.highlight .hll {
  background-color: #ffc;
}

/* Comment */
.highlight .c {
  color: #999;
}

/* Error */
.highlight .err {
  color: #a10000;
  background-color: #faa;
}

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

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

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

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

/* Comment.Single */
.highlight .c1 {
  color: #999;
}

/* Comment.Special */
.highlight .cs {
  color: #999;
}

/* Generic.Deleted */
.highlight .gd {
  background-color: #fcc;
  border: 1px solid #c00;
}

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

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

/* Generic.Heading */
.highlight .gh {
  color: #030;
}

/* Generic.Inserted */
.highlight .gi {
  background-color: #cfc;
  border: 1px solid #0c0;
}

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

/* Generic.Prompt */
.highlight .gp {
  color: #009;
}

/* Generic.Strong */
// .highlight .gs { }

/* Generic.Subheading */
.highlight .gu {
  color: #030;
}

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

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

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

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

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

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

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

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

/* Literal.String */
.highlight .s {
  color: #d44950;
}

/* Name.Attribute */
.highlight .na {
  color: #4f9fcf;
}

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

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

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

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

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

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

/* Name.Function */
.highlight .nf {
  color: #8f00b3;
}

/* Name.Label */
.highlight .nl {
  color: #6a6ab0;
}

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

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

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

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

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

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

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

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

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

/* Literal.String.Backtick */
.highlight .sb {
  color: #a12800;
}

/* Literal.String.Char */
.highlight .sc {
  color: #a12800;
}

/* Literal.String.Doc */
.highlight .sd {
  color: #a12800;
  font-style: italic;
}

/* Literal.String.Double */
.highlight .s2 {
  color: #a12800;
}

/* Literal.String.Escape */
.highlight .se {
  color: #a12800;
}

/* Literal.String.Heredoc */
.highlight .sh {
  color: #a12800;
}

/* Literal.String.Interpol */
.highlight .si {
  color: #a00;
}

/* Literal.String.Other */
.highlight .sx {
  color: #a12800;
}

/* Literal.String.Regex */
.highlight .sr {
  color: #257d7d;
}

/* Literal.String.Single */
.highlight .s1 {
  color: #a12800;
}

/* Literal.String.Symbol */
.highlight .ss {
  color: #fc3;
}

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

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

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

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

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

.css .o,
.css .o + .nt,
.css .nt + .nt {
  color: #999;
}

/* Custom Syntax styles */
code,
pre {
  font-family: 'Input Mono', Consolas, Monaco, 'Courier New', monospace;
}

code {
  padding: 0.25em 0.5em;
  font-size: 85%;
  border-radius: 3px;
}

.source-code {
  overflow: scroll;
}

.source-code pre {
  background: none;
  clear: both;
  margin: 0;
  padding: 40px;
}

pre {
  display: table;
  table-layout: fixed;
  width: 100%;
  padding: 1em;
  font-size: 0.8em;
  line-height: 1.4;
  white-space: pre;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
  background-color: #f7f8f9;

  code {
    padding: 0;
    font-size: 100%;
    color: inherit;
    background-color: transparent;
  }
}

.a-live__code {
  margin: 2rem 0 1rem;
}

/* Pygments via Jekyll */
.highlight {
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* Make certain code highlighting darker to improve text contrast. */
/* stylelint-disable no-duplicate-selectors */
.highlight .c {
  color: #5a5d61;
}

.highlight .c1 {
  color: #5a5d61;
}

.highlight .cp {
  color: #257675;
}

.highlight .cs {
  color: #5a5d61;
}

.highlight .na {
  color: #0072ce;
}

.highlight .s {
  color: #b63014;
}
/* stylelint-enable */

.highlight pre {
  margin-bottom: 0;
}
