body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  /* The size that .fontsize sizes are relative to, and goes back to. */
  --font-size-default: 16px;
  font-size: var(--font-size-default);
}
pre,
code {
  font-family: Menlo, monospace;
  font-size: 14px;
}
pre {
  line-height: 18px;
  margin: 0;
  padding: 0;
}
a {
  color: #375eab;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
p,
ul,
ol {
  margin: 20px;
}
/* The elements after a .fontsize command, in the font-size it sets, with
   code sized as it is relative to the default text. */
.fontsize pre,
.fontsize code {
  font-size: 0.875em; /* 14px at the default 16px */
}
.fontsize pre {
  line-height: 1.286; /* 18px */
}
.fontsize pre code {
  font-size: 1em;
}
kbd {
  display: inline-block;
  padding: 0 0.35em;
  font-family: inherit;
  font-size: 90%;
  line-height: 1.4;
  white-space: nowrap;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  border-radius: 4px;
}

table {
  margin: 20px;
  border-collapse: collapse;
}
th,
td {
  padding: 4px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
th {
  border-bottom: 2px solid #ccc;
}

h1,
h2,
h3,
h4 {
  margin: 20px 0;
  padding: 0;
  color: #375eab;
  font-weight: bold;
}
h1 {
  font-size: 18px;
  padding: 2px 5px;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 16px;
}
h3,
h4 {
  margin: 20px 5px;
}
h4 {
  font-size: 16px;
}

div#heading {
  margin: 0 0 10px 0;
  padding: 21px 0;
  font-size: 20px;
  font-weight: bold;
}

div#heading .author {
  padding-top: 10px;
  font-size: 14px;
  font-weight: normal;
}

div#topbar {
}

body {
  text-align: center;
}
div#page {
  width: 100%;
}
div#page > .container,
div#topbar > .container {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  width: 900px;
}
div#page.wide > .container,
div#topbar.wide > .container {
  width: auto;
}

div#footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 40px 0;
}

.author p {
  margin: 0;
  padding: 0 20px;
}

/* Code boxes go on the div.code around .code and .play blocks and on the
   div.output holding program output, not on the pre inside them. Markdown
   code blocks are a bare pre and get the box themselves. */
div.code,
div.output,
pre:not(div.code pre, div.output pre) {
  margin: 20px 20px 20px 40px;
  border-radius: 5px;
}

div.code,
pre:not(div.code pre, div.output pre) {
  background: white;
}
div.output {
  padding: 10px;
  background: black;
}
div.output .stdout {
  color: #e6e6e6;
}
div.output .stderr {
  color: rgb(244, 74, 63);
}
div.output .system {
  color: rgb(255, 209, 77);
}

.buttons {
  margin-left: 20px;
}
div.output .buttons {
  margin-left: 0;
  margin-bottom: 10px;
}

#toc {
  float: right;
  margin: 0px 10px;
  padding: 10px;
  border: 1px solid #e5ecf9;
  background-color: #eee;
  box-shadow: 3px 3px 2px #888888;

  max-width: 33%;

  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

#tochead {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 100%;
  text-align: center;
  padding-bottom: 5px;
}

#toc ul,
#toc a {
  list-style-type: none;
  padding-left: 0px;
  color: black;
  margin: 0px;
}

ul.toc-inner a {
  padding-left: 10px !important;
}

/* The error that hot.js shows, with -hot, when the page no longer
   renders or a diagram could not be rendered. */
#hot-error {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 12px 20px;
  max-height: 40vh;
  overflow: auto;

  font: 14px/1.4 'JetBrains Mono', monospace;
  white-space: pre-wrap;

  color: #fff;
  background: #b00020;
}

@media print {
  .no-print,
  .no-print *,
  .buttons {
    display: none !important;
  }
}
