/*
  Code block tweaks for posts that opt in by adding "compact-code" to their
  front matter classes, e.g.

    classes: [wide, compact-code]

  Posts without that class keep the theme's default styling.
*/

.compact-code {
  /* Theme default is 0.75em of the body text, which grows to ~16.5px on wide
     screens. Keep that on small screens but cap it at 13px. */
  --code-font-size: min(0.75em, 13px);
}

.compact-code div.highlighter-rouge,
.compact-code figure.highlight {
  font-size: var(--code-font-size);
}

/* The theme has no colour for binary numbers (.mb); match the other numbers.
   Scoped to the assembly/BASIC blocks so existing posts are untouched. */
.language-z80 .mb,
.language-zxbasic .mb {
  color: #f78c6c;
}

/* In BASIC listings the theme leaves line numbers (.nl) and the built-in
   functions (.nb) the same colour as plain text. Dim the line numbers and
   give the functions the theme's function colour. */
.language-zxbasic .nl {
  color: #b2ccd6;
}

.language-zxbasic .nb {
  color: #82aaff;
}
