/* LesCodex2.css */

/* Global text/code adjustments */
code {
  white-space: pre-wrap;
}

span.smallcaps {
  font-variant: small-caps;
}

/* Column layout */
div.columns {
  display: flex;
  gap: min(4vw, 1.5em);
}
div.column {
  flex: auto;
  overflow-x: auto;
}

/* Hanging indent paragraphs */
div.hanging-indent {
  margin-left: 1.5em;
  text-indent: -1.5em;
}

/* Task-list styling */
ul.task-list {
  list-style: none;
}
ul.task-list li input[type="checkbox"] {
  width: 0.8em;
  margin: 0 0.8em 0.2em -1em;
  vertical-align: middle;
}

/* Prevent font scaling on mobile */
html {
  -webkit-text-size-adjust: 100%;
}

/* Source-code blocks */
pre > code.sourceCode {
  white-space: pre;
  position: relative;
}
pre > code.sourceCode > span {
  display: inline-block;
  line-height: 1.25;
}
pre > code.sourceCode > span:empty {
  height: 1.2em;
}
.sourceCode {
  overflow: visible;
}
code.sourceCode > span {
  color: inherit;
  text-decoration: inherit;
}
div.sourceCode {
  margin: 1em 0;
}
pre.sourceCode {
  margin: 0;
}

/* Scrollable code blocks on screen */
@media screen {
  div.sourceCode {
    overflow: auto;
  }
}

/* Print-friendly code */
@media print {
  pre > code.sourceCode {
    white-space: pre-wrap;
  }
  pre > code.sourceCode > span {
    text-indent: -5em;
    padding-left: 5em;
  }
}

/* Line-numbered source */
pre.numberSource code {
  counter-reset: source-line 0;
}
pre.numberSource code > span {
  position: relative;
  left: -4em;
  counter-increment: source-line;
}
pre.numberSource code > span > a:first-child::before {
  content: counter(source-line);
  position: relative;
  left: -1em;
  text-align: right;
  vertical-align: baseline;
  border: none;
  display: inline-block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0 4px;
  width: 4em;
}
pre.numberSource {
  margin-left: 3em;
  padding-left: 4px;
}

/* No extra rules in div.sourceCode */
div.sourceCode {}

/* Underline line numbers on screen */
@media screen {
  pre > code.sourceCode > span > a:first-child::before {
    text-decoration: underline;
  }
}
