/* ==================================================================
    BASIC GRID FOR PROFILE PIC
================================================================== */

.main-content .row {
  display: block;
}

.main-content .left {
  float: left;
  margin-right: 15px;
}

.main-content .right {
  float: right;
}

.main-content .container img {
  width: auto;
  padding-left: 0;
  border-radius: 10px;
}

.main-content .footnote {
  position: relative;
  top: -0.5em;
  font-size: 70%;
}

/* ==================================================================
    FOOTER / COPYRIGHT
================================================================== */

.page-foot a {
  color: var(--c-text-gray);
  text-decoration: underline;
}

.page-foot {
  font-size: 8pt;
  font-family: "Share Tech Mono", monospace;
  line-height: 140%;
  color: var(--c-text-gray);
  text-align: center;
  padding-top: 2em;
  margin-bottom: 2.5em;
}

/* ==================================================================
    TEXT GEOMETRY
================================================================== */

.main-toc li {
  /* Avoid clickable elements being too close together. */
  margin: 0.6rem 0;
}

.main-content {
  position: relative;
  padding-left: 5%;
  padding-right: 5%;
  line-height: 145%;
  max-width: var(--max-width);
  margin: 0;
}

/* On narrow device, reduce margins. */
@media (max-width: 550px) {
  .main-content {
    padding-left: 4%;
    padding-right: 4%;
  }
}

/* ==================================================================
    TITLES
================================================================== */

.main-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--c-header);
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.main-content h1 {
  font-size: 28px;
}

.main-content h2 {
  font-size: 20px;
}

.main-content h3 {
  font-size: 18px;
}

.main-content h1 {
  margin-top: 1em;
  margin-bottom: 1em;
}

.main-content h2 {
  border-bottom: 1px solid var(--c-underline);
  padding-bottom: 7pt;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.main-content :is(h1, h2, h3, h4, h5, h6) a {
  color: inherit;
}

.main-content :is(h1, h2, h3, h4, h5, h6) a:hover {
  background: none;
  text-decoration: none;
}

.main-content table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  text-align: center;
}

.main-toc ol ol {
  list-style-type: lower-alpha;
}

.main-content th,
td {
  font-size: var(--small);
  padding: 10px;
}

.main-content blockquote {
  border: 1px solid var(--c-underline);
  background: var(--c-box-fill);
  border-radius: 5px;
  margin: 1.5em;
  padding: 0.5em 10px;
  font-style: italic;
}

.main-content blockquote p {
  display: inline;
}

/* ==================================================================
    GENERAL FORMATTING
================================================================== */

/* Spacing between bullet points. */
.main-content li p {
  margin: 10px 0;
}

.main-content a {
  color: var(--c-hyperlink);
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s linear;
  -webkit-transition: background 0.2s linear;
  -moz-transition: background 0.2s linear;
}

.main-content a:hover {
  background: var(--c-hyperlink-bg-hover);
}

/* ==================================================================
    HYPERREFS AND FOOTNOTES
================================================================== */

.main-content .eqref a {
  color: green;
}

.main-content .bibref a {
  color: green;
}

.main-content sup {
  font-size: 70%;
  vertical-align: super;
  line-height: 0;
}

.main-content table.fndef {
  margin: 0;
  margin-bottom: 10px;
}

.main-content .fndef tr,
.main-content .fndef td {
  padding: 0;
  border: 0;
  text-align: left;
}

.main-content .fndef tr {
  border-left: 2px solid var(--c-table-border);
}

.main-content .fndef td.fndef-backref {
  vertical-align: top;
  font-size: 70%;
  padding-left: 5px;
}

.main-content .fndef td.fndef-content {
  font-size: 80%;
  padding-left: 10px;
  width: 100%;
}

/* ==================================================================
    IMAGES in CONTENT
================================================================== */

.main-content img {
  display: block;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.main-content .img-small img {
  max-width: 50%;
}

/* ==================================================================
    CODE & HIGHLIGHT.JS
================================================================== */

code {
  background-color: var(--block-background);
  padding: 0.1em 0.2em;
  border-radius: 2px;
  font-size: var(--small);
}

.hljs {
  font-size: var(--small);
  border-radius: 10px;
}

.hljs-meta {
  font-weight: bold;
}

.hljs-meta.shell_ {
  color: crimson;
}

.hljs-meta.prompt_ {
  color: rgb(25, 179, 51);
}

.code-output {
  background: var(--output-background);
  border: 1px dashed var(--c-table-border);
}
