.highlight *{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: .85rem;
}

.highlight {
  border-radius:var(--radius-inner);
  color: var(--color-foreground);
  background: rgb(245 245 245);
  border: 1px solid rgb(229, 229, 229);
  margin-bottom: 2rem;
  white-space: pre;
  white-space: pre-wrap;
  word-break: normal;
  letter-spacing: -.01em;
  word-wrap: normal;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

.chroma{
  line-height: 1.5;
  position: relative;
  padding: 0.5rem 0;
  white-space: pre-wrap;
  word-break: normal;
  letter-spacing: -.01em;
  word-wrap: normal;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

.chroma .line{
  display: flex;
}

.chroma .ln {
  margin-right: .5rem;
  text-align: center;
  color: rgb(107, 114, 128,.35);
  flex: 1;
  font-variant-numeric: tabular-nums;
}

.chroma .hl{
  width: 100%;
  background-color: #e8e8e8;
  box-shadow: 3px 0px 0px 0px #ccc inset;
  display: flex;
}

.chroma .c { /* Comment */
  color: #a3a3a3;
}

.chroma .s2{
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: inline-block;
}

.chroma .cl {
  display: inline-block;
  padding-right: 0.5rem;
  width: fit-content;
  word-break: break-all;
  overflow-wrap: break-word;
  flex: 12;
}

@media (prefers-color-scheme: dark) {
    .highlight {
      font-kerning: normal;
      border-radius:var(--radius-inner);
      background:#18181b;
      box-shadow: 0.1rem 0.1rem 0.2rem #00000030;
      border: 1.5px solid var(--color-border);
      white-space: pre;
      white-space: pre-wrap;
      word-break: normal;
      letter-spacing: -.01em;
      word-wrap: normal;
      text-size-adjust: none;
      -webkit-text-size-adjust: none;
    }

    .chroma{
      position: relative;
      padding: 0.5rem 0;
      white-space: pre-wrap;
      word-break: normal;
      letter-spacing: -.01em;
      word-wrap: normal;
      text-size-adjust: none;
      -webkit-text-size-adjust: none;
    }

    .chroma .line{
      display: flex;
    }

    .chroma .nb{
      color: #95aec7;
    }

    .chroma .ln {
      margin-right: .5rem;
      text-align: center;
      color: rgb(107, 114, 128,.5);
      flex: 1;
      font-variant-numeric: tabular-nums;
    }

    .chroma .hl{
      width: 100%;
      background-color: rgb(116, 207, 136, 0.1);
      box-shadow: 3px 0px 0px 0px #4DD268 inset;
    }

    .chroma .lntd{
      color:var(--color-grey);
    }

    /* Styling for individual tokens */
    .chroma .nx,
    .chroma .k { /* Keyword */
      color: #c4b5fd;
    }

    .chroma .cl {
      display: inline-block;
      padding-right: 0.5rem;
      width: fit-content;
      word-break: break-all;
      overflow-wrap: break-word;
      flex: 12;
    }

    .chroma .kd { /* Keyword Declaration */
      color: #f9a8d4;
    }

    .chroma .nf { /* Function name */
      color: #DCDCAA;
    }

    .chroma .m, /* Number */
    .chroma .mf { /* Floating-point number */
      color: #B5CEA8;
    }

    .chroma .na {
      color: #ADD7FF;
    }

    .chroma .s,
    .chroma .nc,
    .chroma .nt,
    .chroma .err,
    .chroma .s2,
    .chroma .sb { /* Single-quoted string */
      color: #6ee7b7;
    }

    .chroma .c { /* Comment */
      color: #6b7280;
    }

    .chroma .cp { /* Preprocessor */
      color: #9B9B9B;
    }

    .chroma .gd { /* Generic Deleted */
      color: #000000;
      background-color: #ffdddd;
    }

    .chroma .gi { /* Generic Inserted */
      color: #000000;
      background-color: #ddffdd;
    }

    .chroma .go { /* Generic Output */
      color: #888888;
    }

    .chroma .gp { /* Generic Prompt */
      color: #555555;
    }

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

    .chroma .gu { /* Generic Subheading */
      color: #800080;
      font-weight: bold;
    }

    .chroma .gt { /* Generic Traceback */
      color: #aa0000;
    }

    .chroma .n { /* Name */
      color: #c4b5fd;
    }

    .chroma .o { /* Operator */
      color: #d4d4d4;
    }

    .chroma .x { /* Other */
      color: #d4d4d4;
    }
}
