/* Normalize.css */
html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
dl dl,
dl ol,
dl ul,
ol dl,
ul dl {
  margin: 0;
}
ol ol,
ol ul,
ul ol,
ul ul {
  margin: 0;
}
hr {
  box-sizing: content-box;
  color: inherit;
  height: 0;
  overflow: visible;
}
main {
  display: block;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  text-decoration: underline;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
audio,
video {
  display: inline-block;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
img {
  border-style: none;
}
svg:not(:root) {
  overflow: hidden;
}
table {
  border-color: inherit;
  text-indent: 0;
}
button,
input,
select {
  margin: 0;
}
button {
  overflow: visible;
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
input {
  overflow: visible;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  white-space: normal;
}
progress {
  display: inline-block;
  vertical-align: baseline;
}
select {
  text-transform: none;
}
textarea {
  margin: 0;
  overflow: auto;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
:-moz-focusring {
  outline: 1px dotted ButtonText;
}
:-moz-ui-invalid {
  box-shadow: none;
}
details {
  display: block;
}
dialog {
  background-color: #fff;
  border: solid;
  color: #000;
  display: block;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content;
  left: 0;
  margin: auto;
  padding: 1em;
  position: absolute;
  right: 0;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
}
dialog:not([open]) {
  display: none;
}
summary {
  display: list-item;
}
canvas {
  display: inline-block;
}
template {
  display: none;
}
[hidden] {
  display: none;
}

/* Pygments */

pre {
  line-height: 125%;
}
td.linenos .normal {
  color: inherit;
  background-color: transparent;
  padding-left: 5px;
  padding-right: 5px;
}
span.linenos {
  color: inherit;
  background-color: transparent;
  padding-left: 5px;
  padding-right: 5px;
}
td.linenos .special {
  color: #000;
  background-color: #ffffc0;
  padding-left: 5px;
  padding-right: 5px;
}
span.linenos.special {
  color: #000;
  background-color: #ffffc0;
  padding-left: 5px;
  padding-right: 5px;
}
.highlight .hll {
  background-color: #ffc;
}
.highlight {
  background: #f8f8f8;
}
.highlight .c {
  color: #8f5902;
  font-style: italic;
}
.highlight .err {
  color: #a40000;
  border: 1px solid #ef2929;
}
.highlight .g {
  color: #000;
}
.highlight .k {
  color: #204a87;
  font-weight: 700;
}
.highlight .l {
  color: #000;
}
.highlight .n {
  color: #000;
}
.highlight .o {
  color: #ce5c00;
  font-weight: 700;
}
.highlight .x {
  color: #000;
}
.highlight .p {
  color: #000;
  font-weight: 700;
}
.highlight .ch {
  color: #8f5902;
  font-style: italic;
}
.highlight .cm {
  color: #8f5902;
  font-style: italic;
}
.highlight .cp {
  color: #8f5902;
  font-style: italic;
}
.highlight .cpf {
  color: #8f5902;
  font-style: italic;
}
.highlight .c1 {
  color: #8f5902;
  font-style: italic;
}
.highlight .cs {
  color: #8f5902;
  font-style: italic;
}
.highlight .gd {
  color: #a40000;
}
.highlight .ge {
  color: #000;
  font-style: italic;
}
.highlight .gr {
  color: #ef2929;
}
.highlight .gh {
  color: navy;
  font-weight: 700;
}
.highlight .gi {
  color: #00a000;
}
.highlight .go {
  color: #000;
  font-style: italic;
}
.highlight .gp {
  color: #8f5902;
}
.highlight .gs {
  color: #000;
  font-weight: 700;
}
.highlight .gu {
  color: purple;
  font-weight: 700;
}
.highlight .gt {
  color: #a40000;
  font-weight: 700;
}
.highlight .kc {
  color: #204a87;
  font-weight: 700;
}
.highlight .kd {
  color: #204a87;
  font-weight: 700;
}
.highlight .kn {
  color: #204a87;
  font-weight: 700;
}
.highlight .kp {
  color: #204a87;
  font-weight: 700;
}
.highlight .kr {
  color: #204a87;
  font-weight: 700;
}
.highlight .kt {
  color: #204a87;
  font-weight: 700;
}
.highlight .ld {
  color: #000;
}
.highlight .m {
  color: #0000cf;
  font-weight: 700;
}
.highlight .s {
  color: #4e9a06;
}
.highlight .na {
  color: #c4a000;
}
.highlight .nb {
  color: #204a87;
}
.highlight .nc {
  color: #000;
}
.highlight .no {
  color: #000;
}
.highlight .nd {
  color: #5c35cc;
  font-weight: 700;
}
.highlight .ni {
  color: #ce5c00;
}
.highlight .ne {
  color: #c00;
  font-weight: 700;
}
.highlight .nf {
  color: #000;
}
.highlight .nl {
  color: #f57900;
}
.highlight .nn {
  color: #000;
}
.highlight .nx {
  color: #000;
}
.highlight .py {
  color: #000;
}
.highlight .nt {
  color: #204a87;
  font-weight: 700;
}
.highlight .nv {
  color: #000;
}
.highlight .ow {
  color: #204a87;
  font-weight: 700;
}
.highlight .w {
  color: #f8f8f8;
}
.highlight .mb {
  color: #0000cf;
  font-weight: 700;
}
.highlight .mf {
  color: #0000cf;
  font-weight: 700;
}
.highlight .mh {
  color: #0000cf;
  font-weight: 700;
}
.highlight .mi {
  color: #0000cf;
  font-weight: 700;
}
.highlight .mo {
  color: #0000cf;
  font-weight: 700;
}
.highlight .sa {
  color: #4e9a06;
}
.highlight .sb {
  color: #4e9a06;
}
.highlight .sc {
  color: #4e9a06;
}
.highlight .dl {
  color: #4e9a06;
}
.highlight .sd {
  color: #8f5902;
  font-style: italic;
}
.highlight .s2 {
  color: #4e9a06;
}
.highlight .se {
  color: #4e9a06;
}
.highlight .sh {
  color: #4e9a06;
}
.highlight .si {
  color: #4e9a06;
}
.highlight .sx {
  color: #4e9a06;
}
.highlight .sr {
  color: #4e9a06;
}
.highlight .s1 {
  color: #4e9a06;
}
.highlight .ss {
  color: #4e9a06;
}
.highlight .bp {
  color: #3465a4;
}
.highlight .fm {
  color: #000;
}
.highlight .vc {
  color: #000;
}
.highlight .vg {
  color: #000;
}
.highlight .vi {
  color: #000;
}
.highlight .vm {
  color: #000;
}
.highlight .il {
  color: #0000cf;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  pre {
    line-height: 125%;
  }
  td.linenos .normal {
    color: inherit;
    background-color: transparent;
    padding-left: 5px;
    padding-right: 5px;
  }
  span.linenos {
    color: inherit;
    background-color: transparent;
    padding-left: 5px;
    padding-right: 5px;
  }
  td.linenos .special {
    color: #000;
    background-color: #ffffc0;
    padding-left: 5px;
    padding-right: 5px;
  }
  span.linenos.special {
    color: #000;
    background-color: #ffffc0;
    padding-left: 5px;
    padding-right: 5px;
  }
  .highlight .hll {
    background-color: #49483e;
  }
  .highlight {
    background: #232629;
    color: #ccc;
  }
  .highlight .c {
    color: #777;
    font-style: italic;
  }
  .highlight .err {
    color: #a61717;
    background-color: #e3d2d2;
  }
  .highlight .esc {
    color: #ccc;
  }
  .highlight .g {
    color: #ccc;
  }
  .highlight .k {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .l {
    color: #ccc;
  }
  .highlight .n {
    color: #ccc;
  }
  .highlight .o {
    color: #ccc;
  }
  .highlight .x {
    color: #ccc;
  }
  .highlight .p {
    color: #ccc;
  }
  .highlight .ch {
    color: #777;
    font-style: italic;
  }
  .highlight .cm {
    color: #777;
    font-style: italic;
  }
  .highlight .cp {
    color: #777;
    font-style: italic;
  }
  .highlight .cpf {
    color: #777;
    font-style: italic;
  }
  .highlight .c1 {
    color: #777;
    font-style: italic;
  }
  .highlight .cs {
    color: #777;
    font-style: italic;
  }
  .highlight .gd {
    color: #ccc;
  }
  .highlight .ge {
    color: #ccc;
  }
  .highlight .gr {
    color: #ccc;
  }
  .highlight .gh {
    color: #ccc;
  }
  .highlight .gi {
    color: #ccc;
  }
  .highlight .go {
    color: #ccc;
  }
  .highlight .gp {
    color: #fff;
  }
  .highlight .gs {
    color: #ccc;
  }
  .highlight .gu {
    color: #ccc;
  }
  .highlight .gt {
    color: #ccc;
  }
  .highlight .kc {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .kd {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .kn {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .kp {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .kr {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .kt {
    color: #7686bb;
    font-weight: 700;
  }
  .highlight .ld {
    color: #ccc;
  }
  .highlight .m {
    color: #4fb8cc;
  }
  .highlight .s {
    color: #51cc99;
  }
  .highlight .na {
    color: #ccc;
  }
  .highlight .nb {
    color: #ccc;
  }
  .highlight .nc {
    color: #ccc;
  }
  .highlight .no {
    color: #ccc;
  }
  .highlight .nd {
    color: #ccc;
  }
  .highlight .ni {
    color: #ccc;
  }
  .highlight .ne {
    color: #ccc;
  }
  .highlight .nf {
    color: #6a6aff;
  }
  .highlight .nl {
    color: #ccc;
  }
  .highlight .nn {
    color: #ccc;
  }
  .highlight .nx {
    color: #e2828e;
  }
  .highlight .py {
    color: #ccc;
  }
  .highlight .nt {
    color: #ccc;
  }
  .highlight .nv {
    color: #7ab4db;
    font-weight: 700;
  }
  .highlight .ow {
    color: #ccc;
  }
  .highlight .w {
    color: #bbb;
  }
  .highlight .mb {
    color: #4fb8cc;
  }
  .highlight .mf {
    color: #4fb8cc;
  }
  .highlight .mh {
    color: #4fb8cc;
  }
  .highlight .mi {
    color: #4fb8cc;
  }
  .highlight .mo {
    color: #4fb8cc;
  }
  .highlight .sa {
    color: #51cc99;
  }
  .highlight .sb {
    color: #51cc99;
  }
  .highlight .sc {
    color: #51cc99;
  }
  .highlight .dl {
    color: #51cc99;
  }
  .highlight .sd {
    color: #51cc99;
  }
  .highlight .s2 {
    color: #51cc99;
  }
  .highlight .se {
    color: #51cc99;
  }
  .highlight .sh {
    color: #51cc99;
  }
  .highlight .si {
    color: #51cc99;
  }
  .highlight .sx {
    color: #51cc99;
  }
  .highlight .sr {
    color: #51cc99;
  }
  .highlight .s1 {
    color: #51cc99;
  }
  .highlight .ss {
    color: #51cc99;
  }
  .highlight .bp {
    color: #ccc;
  }
  .highlight .fm {
    color: #6a6aff;
  }
  .highlight .vc {
    color: #7ab4db;
    font-weight: 700;
  }
  .highlight .vg {
    color: #be646c;
    font-weight: 700;
  }
  .highlight .vi {
    color: #7ab4db;
    font-weight: 700;
  }
  .highlight .vm {
    color: #7ab4db;
    font-weight: 700;
  }
  .highlight .il {
    color: #4fb8cc;
  }
}

/* Three Colour CSS */

:root {
  --c01: #1d1f21; /* fg */
  --c02: #f8f9fa; /* bg */
  --c03: #476981; /* highlight */
}

html {
  color: var(--c01);
  background-color: var(--c02);
}

a,
a:visited {
  color: var(--c03);
}

/* Custom Styles */

main,
article,
header,
section,
footer {
  max-width: 94%;
  margin: 2em auto;
  width: 44em;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
    helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
}

section > article {
  max-width: 100%;
}

section.toc {
  margin: 1em 0;
  width: 100%;
}

img {
  max-width: 100%;
}

article p,
article blockquote,
article li,
section p {
  line-height: 158%;
}

pre {
  padding: 0.2em 0.4em;
}

code {
  background-color: #ebebeb;
  padding: 0.1em 0.4em;
  font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,
    monospace;
  border: 1px solid #adb5bd;
}

.highlight {
  overflow: auto;
  background-color: #ebebeb;
  border: 2px solid var(--c01);
}

blockquote {
  border-left: 4px solid #353535;
  margin-left: 0;
  padding: 0.2em 1em;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c01: #1d1f21; /* fg */
    --c02: #ced4da; /* bg */
    --c03: #74c0fc; /* highlight */
  }

  html {
    background-color: var(--c01);
    color: var(--c02);
  }

  .highlight {
    border: 2px solid var(--c02);
  }

  code {
    border: 1px solid var(--c02);
  }

  code,
  .highlight {
    background-color: #232629;
  }

  img[src$="#darkmode-bg-light"] {
    background-color: #ebebeb;
  }
}

.align-right {
  text-align: right;
}
.hidden {
  display: none;
}

/* status.lol */
.statuslol_wrapper {
  min-height: 106px;
  background: #e7ebf3;
  border-radius: 0.5em;
}

.statuslol {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  background: #e7ebf3;
  color: #111;
  border-radius: 0.5em;
  padding: 1em;
}

.statuslol_emoji_container {
  min-width: 94px;
  flex: 0 0 1em;
  font-size: 3em;
  padding-right: 0;
}

.statuslol_content {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  margin: -0.5em 0 0 0;
  text-align: left;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}

.hide {
  display: none;
}

/* indent levels */
.indent-1 {
  margin-left: 2em;
}

.indent-2 {
  margin-left: 2em;
}

.indent-3 {
  margin-left: 4em;
}

.indent-4, .indent-5, .indent-6 {
  margin-left: 6em;
}


/* Memo */
.memo-form textarea {
  width: 100%;
  height: 230px;
  box-sizing: border-box;
}

.memos article {
  background-color: white;
  padding: 0.3em 1em;
  border-radius: 12px;
  box-sizing: border-box;
}

.memos article .details {
  /* color: var(--c01); */
  border-top: 1px solid var(--c01);
  font-size: 0.9em;
  padding-top: 1em;
}

@media (prefers-color-scheme: dark) {
  .memos article {
    background-color: #343a40;
  }
}


/*
Django Messages formatting
*/
.messages {
    list-style: none;
    margin: 1em 0 2em;
    padding: 0;
}

.messages li {
    background-color: #ffec99;
    padding: 12px;
    width: 100%;
    line-height: 2.0em;
    margin-bottom: 12px;
}

.messages li.info {
    background-color: #d0ebff;
}

.messages li.error {
    background-color: #ffe3e3;
}


/*
Forms:
  - fixes from normalize (marked with #n)
  - fieldset padding consistent across browsers, from normalize.css
  - simple select styling
*/

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* #n */
    font-size: inherit;
    margin: 0;
    /* #n */
    line-height: 1.2;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
    border-color: #e9ecef;
}

label {
    display: block;
}

input[type=button],
input[type=submit],
input[type=reset],
button {
    color: #e9ecef;
    padding: 0.6em 0.8em;
    background-color: #1c7ed6;
    border: 0.0725em solid #1c7ed6;
    -webkit-appearance: none;
    border-radius: 2px;
}

input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
button:hover {
    background-color: #339af0;
    border-color: #339af0;
    cursor: pointer;
}

input[type=submit]:disabled,
button:disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    cursor: auto;
}

input[type=text],
input[type=date],
input[type=number],
input[type=month],
input[type=week],
input[type=datetime],
input[type=datetime-local],
input[type=url],
input[type=tel],
input[type=email],
input[type=search],
input[type=password],
textarea {
    -webkit-appearance: none;
    border-radius: 2px;
    padding: 0.6em 0.8em;
    border: 1px solid #adb5bd;
}

input[type=text]:focus,
input[type=date]:focus,
input[type=number]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=url]:focus,
input[type=tel]:focus,
input[type=email]:focus,
input[type=search]:focus,
input[type=password]:focus,
textarea:focus {
    border: 1px solid #495057;
}

select {
  background-color: white;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiMyMTI1MjkiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLWNoZXZyb24tZG93biI+PHBvbHlsaW5lIHBvaW50cz0iNiA5IDEyIDE1IDE4IDkiPjwvcG9seWxpbmU+PC9zdmc+");
  background-position: 96%;
  background-repeat: no-repeat;
  border: 1px solid #adb5bd;
  padding: 11px 40px 11px 0.6em;
  border-radius: 2px;
  -webkit-appearance: none;
  display: block;
}
