/* Simple.css, modified
Copyright (c) 2020 Simple.css (Kev Quirk)
https://github.com/kevquirk/simple.css/blob/main/LICENSE
*/

@import url("UI/app.css"); /* for fonts, UI is a link */
@import url("colors.css");

/* Global variables. */
:root {
  color-scheme: light dark;

  /* Set sans-serif & mono fonts */
  --sans-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Avenir Next",
    Avenir, "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;

  --mono-font: "Calcish Mono", ui-monospace, Consolas, Menlo, Monaco,
    "Andale Mono", "Ubuntu Mono", monospace;

  /* Default (light) theme */
  --bg: var(--gray1);
  --accent-bg: var(--gray3);
  --text: var(--gray12);
  --text-light: var(--gray11);
  --text-muted: var(--gray10);
  --border: var(--gray8);
  --accent: var(--blue11);
  --code: #d81b60;
  --preformatted: #444;
  --marked: var(--yellow4);
  --disabled: var(--gray3);
  --link: var(--blue11);

  /* Code colors */
  --code-boolean: teal;
  --code-number: green;
  --code-string: red;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --text-muted: #aaa;
    --border: #666;
    --accent: #ffb300;
    --code: #f06292;
    --preformatted: #ccc;
    --marked: #ffdd3355;
    --disabled: #111;
  }
}

html {
  /* Set the font globally */
  font-family: var(--sans-font);
  font-variant-numeric: slashed-zero;
  font-feature-settings: "cv05";
  font-size: 14px;
  background: transparent;
}

@media screen and (max-width: 600px) {
  html {
    /* font-size: 12px; */
  }
}

/* Make the body a nice central block */
body {
  color: var(--text);
  background: transparent;
  /* background: var(--bg); */
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 1rem;
  margin: 0 1rem;
  max-width: 800px;
  padding-bottom: 20px;
}

pre {
  font-size: 13px;
}

code {
  font-family: var(--mono-font);
  white-space: pre-wrap;
  font-size: 13px;
}

pre > code {
  word-break: break-all;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* word-wrap: break-word; */
}

h1 > span {
  display: inline-block;
}

h1 {
  font-size: 2rem;
}

body.is-function h1::before,
body.is-property h1::before,
body.is-class h1::before,
body.is-module h1::before {
  display: inline-block;
  /* border: 1px solid blue; */
  border-radius: 2px;
  content: " ";
  padding: 0 0.5rem;
  height: 2rem;
  color: #fff;
  margin-right: 0.5rem;
  /* font-size: 1.5rem; */
  vertical-align: text-bottom;
}

body.is-function h1::before {
  background: var(--blue11);
}

body.is-property h1::before {
  background: var(--violet11);
}

body.is-module h1::before {
  background: var(--purple11);
}

body.is-class h1::before {
  background: var(--red11);
}

body.is-ecmascript h1::after,
body.is-calcish h1::after,
body.is-node h1::after,
body.is-web h1::after {
  display: "block";
  font-size: 0.8rem;
  font-weight: medium;
  position: absolute;
  top: 4px;
  right: 16px;
  padding: 8px;
}

body.is-ecmascript h1::after {
  content: "ECMAScript";
  color: var(--gray9);
}

body.is-calcish h1::after {
  content: "Calcish";
  color: var(--gray9);
}

body.is-node h1::after {
  content: "Node";
  color: var(--gray9);
}

body.is-web h1::after {
  content: "Web";
  color: var(--gray9);
}

body.is-function h1 .title-last {
  /* color: blue; */
  font-weight: bolder;
}

body.is-property h1 .title-last {
  /* color: orange; */
  font-weight: bolder;
}

.icon-function {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: var(--blue10) !important;
}

svg.icon-property {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: var(--violet10) !important;
}

svg.icon-class {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: var(--tomato10) !important;
}

svg.icon-equals {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: var(--amber10) !important;
}

a.title-part:link,
a.title-part:visited {
  color: var(--text);
  text-decoration: none;
}

a.title-part:hover {
  color: var(--link);
  text-decoration: underline;
}

a:link,
a:visited {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--blueA6);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  font-weight: 500;
}

.is-class ul,
.is-module ul {
  list-style: none;
  padding: 0;
}

li .icon {
  vertical-align: text-bottom;
  padding-right: 0.5em;
}

ul.parameters {
  list-style: none;
  padding: 0;
}

ul.parameters li > p,
ul.parameters li > pre {
  margin-top: 0.2rem;
  padding-left: 1rem;
}

ul.parameters li > ul {
  margin-top: 0.2rem;
  padding-left: 2rem;
}

ul.parameters li > p:first-child,
ul.parameters li ul li > p:first-child {
  color: var(--tok-variableName);
  font-weight: 500;
  padding-left: 0;
  margin-bottom: 0;
}

ul.parameters .signature {
  color: var(--text-light);
  font-weight: normal;
  font-style: italic;
  font-size: 80%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 6px;
  line-height: 1;
  vertical-align: baseline;
  display: inline-block;
}

ul.parameters .optional,
ul.parameters .variadic {
  display: inline-block;
  font-size: 70%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 3px 6px;
  line-height: 1;
  vertical-align: middle;
  background-color: var(--accent-bg);
  color: var(--text-light);
  font-weight: normal;
}

pre.result::before,
div.result::before {
  /* content: '🟧'; */
  display: inline-block;
  /* background: var(--orange11);
  border: 1px solid var(--orange11);
  border-radius: 2px; */
  content: "=";
  padding: 0 0.1rem;
  color: var(--amber10);
  margin-right: 1rem;
}

pre.error {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: var(--red11);
}

pre.error::before {
  /* content: '🟧'; */
  display: inline-block;
  background: var(--red11);
  border: 1px solid var(--red11);
  border-radius: 2px;
  content: "!";
  padding: 0 0.4rem;
  color: #fff;
  margin-right: 1rem;
}

pre.result,
div.result {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.result-boolean {
  color: var(--code-boolean);
}
.result-string {
  color: var(--code-string);
}
.result-number {
  color: var(--code-number);
}

pre.prints::before {
  content: "💬";
  margin-left: -2.2rem;
  margin-right: 1rem;
}

pre.prints {
  padding-left: 2.2rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

pre {
  margin-bottom: 0.5rem;
}

/* Highlighter */

:root {
  --tok-link: var(--link);
  --tok-meta: var(--olive11);
  --tok-keyword: var(--plum11);
  --tok-atom: var(--sky11);
  --tok-bool: var(--tok-atom);
  --tok-url: var(--tok-link);
  --tok-labelName: var(--tok-atom);
  --tok-inserted: var(--green11);
  --tok-deleted: var(--crimson11);
  --tok-literal: var(--green11);
  --tok-string: var(--crimson11);
  --tok-number: var(--green11);
  --tok-variableName: var(--violet11);
  --tok-typeName: var(--cyan11);
  --tok-namespace: var(--cyan11);
  --tok-className: var(--cyan11);
  --tok-macroName: var(--cyan11);
  --tok-propertyName: var(--blue11);
  --tok-operator: var(--text);
  --tok-comment: var(--slate9);
  --tok-meta: var(--slate9);
  --tok-punctuation: var(--text);
  --tok-invalid: var(--text);
  --tok-invalid-underline: var(--red10);
  --tok-string2: var(--tok-string);
  --tok-variableName-local: var(--tok-variableName);
  --tok-variableName-definition: var(--tok-variableName);
  --tok-propertyName-definition: var(--tok-propertyName);
}

.tok-link {
  color: var(--tok-link);
}
.tok-heading {
  font-size: 110%;
}
.tok-emphasis {
  font-style: italic;
}
.tok-strong {
  font-weight: bold;
}
.tok-keyword {
  color: var(--tok-keyword);
}
.tok-atom {
  color: var(--tok-atom);
}
.tok-bool {
  color: var(--tok-bool);
}
.tok-url {
  color: var(--tok-url);
}
.tok-labelName {
  color: var(--tok-labelName);
}
.tok-inserted {
  color: var(--tok-inserted);
}
.tok-deleted {
  color: var(--tok-deleted);
}
.tok-literal {
  color: var(--tok-literal);
}
.tok-string {
  color: var(--tok-string);
}
.tok-number {
  color: var(--tok-number);
}
.tok-variableName {
  color: var(--tok-variableName);
}
.tok-typeName {
  color: var(--tok-typeName);
}
.tok-namespace {
  color: var(--tok-namespace);
}
.tok-className {
  color: var(--tok-className);
}
.tok-macroName {
  color: var(--tok-macroName);
}
.tok-propertyName {
  color: var(--tok-propertyName);
}
.tok-operator {
  color: var(--tok-operator);
}
.tok-comment {
  color: var(--tok-comment);
  font-style: italic;
}
.tok-meta {
  color: var(--tok-meta);
}
.tok-punctuation {
  color: var(--tok-punctuation);
}
.tok-invalid {
  color: var(--tok-invalid);
  border-bottom: 1px dotted var(--tok-invalid-underline);
}
.tok-string2 {
  color: var(--tok-string2);
}
.tok-variableName2 {
  color: var(--tok-variableName2);
}
.tok-variableName .tok-local {
  color: var(--tok-variableName-local);
}
.tok-variableName .tok-definition {
  color: var(--tok-variableName-definition);
}
.tok-propertyName .tok-definition {
  color: var(--tok-propertyName-definition);
}

/* Search */
mark.search {
  background-color: var(--marked);
  color: var(--text);
}

.menu {
  font-weight: bold;
}

.settings {
  font-weight: bold;
}

.keys {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

kbd {
  font-family: var(--sans-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  background-color: var(--gray4);
  color: var(--gray12);
  /* border: 1px solid var(--gray4); */
  padding: 0 0.3rem;
  border-radius: 0.2rem;
  min-width: 1rem;
  text-align: center;
  margin: 0 0.1rem;
}

kbd > .keyname {
  font-family: var(--sans-font);
  font-size: 0.8em;
  font-weight: normal;
  color: var(--gray12);
}

pre.qb {
  white-space: pre;
  border: 5px double #4ca7a9;
  color: #ccc;
  padding: 1rem;
  background-color: #0000a3;
  font-weight: bold;
}

.qbhi {
  color: #fff;
}

.epigraph {
  text-align: right;
  font-style: italic;
  max-width: 400px;
  margin-left: auto;
}

.epigraph cite {
  display: block;
  font-style: normal;
}

.epigraph cite:before {
  content: "—";
}
