/* Basic Typo */

.md-typeset {
  line-height: 1.5em;
  font-size: 0.7rem;
}

/* iframes */

iframe {
  width: 100%;
  border: none;
}

/* Color Adjustments for dark mode */

/* Make Page darker and code background lighter */
[data-md-color-scheme="slate"] {
  --md-code-bg-color: hsl(var(--md-hue) 24% 21% / 100%);
  --md-default-bg-color: hsl(var(--md-hue) 15% 15% / 100%);
}

/* Lighter links */
[data-md-color-scheme="slate"][data-md-color-primary="black"] {
  --md-typeset-a-color: #69a8ee;
}

/* Numerations */

.md-typeset ol li,
.md-typeset ul li {
  margin-bottom: 0 !important;
}

/* Line in h2/h3 */

.md-typeset h2 {
  border-bottom: 1px solid var(--md-typeset-color);
}

.md-typeset h3 {
  border-bottom: 1px dotted var(--md-typeset-color);
}

/* Make font-size of code inside a simple ".highlighttable" same as it would be
inside of ".admonition .highlighttable" */

.md-typeset .highlighttable {
  font-size: 0.64rem;
}

/* Defintion Lists */

.md-typeset dd {
  margin-top: 0;
  padding: 0.5em 1em;
  border-left: 1px dotted var(--md-typeset-color);
  border-right: 1px dotted var(--md-typeset-color);
  border-bottom: 1px dotted var(--md-typeset-color);
}

.md-typeset dd dd {
  border: 0;
  padding: 0;
}

.md-typeset dt {
  border-bottom: 1px dotted var(--md-typeset-color);
  font-weight: bold;
}

/* Footnotes */

.md-typeset .footnote-ref {
  padding: 0 6px;
  background-color: #868bd7;
  border-radius: 7px;
  color: white;
}

.md-typeset .footnote-ref:hover {
  color: white;
}

/* Sections Color if using "navigation.sections" */

/* stylelint-disable-next-line selector-class-pattern */
.md-nav__item--section > .md-nav__link[for] {
  color: black;
}

/* Center Charts */

.mermaid {
  text-align: center;
}

/* Make Annotation more Visible */

/* stylelint-disable-next-line selector-class-pattern */
.md-annotation__index::after {
  background-color: #f55;
}
