/* Sidebar
   ======= */

div#quarto-margin-sidebar {
  height: fit-content;
}


/* Title block
   =========== */

#title-block-header.quarto-title-block.default .quarto-title-meta-contents a {
  color: $link-color;
}


/* Headers
   ======= */

h1 {
  .katex {
    font-size: 2rem !important;
  }
}

.header-section-number {
  color: #9a9a9a;
}


/* Abstracts
   ========= */

#title-block-header {
  .abstract {
    font-style: italic;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.25);
  }

  .block-title {
    font-style: normal;
  }

  .katex {
    font-size: 1rem !important;
  }
}


/* Table of contents
   ================= */

nav#TOC {
  ul {
    list-style-type: none;
  }

  .katex {
    font-size: 0.9rem !important;
  }
}


/* Footnotes
   ========= */

a.footnote-ref {
  padding-left: 2px;
}
a.footnote-ref > sup {
  border: 1px solid $link-color;
  padding: 0 4px;
}
a.footnote-ref > sup:hover {
  background-color: $popover-bg;
  color: #2c605e;
  border-color: #2c605e;
}


/* Proof environments
   ================== */

.proof > *:last-child:after {
  content: "\25a2";
  float: right;
}


/* Appendix
   ======== */

#quarto-appendix.default {
  background-color: $main-bg;
}
