/* Header image */
.md-header__button.md-logo img {
  height: 2rem;
}

/* Header search box */
.md-search__input:not(.focus-visible) {
  background: #831313;
  border-radius: 4px;
}

/* Footer Next/Previous */
.md-footer__link {
  margin-bottom: .0rem;
  margin-top: .35rem;
}

/* Bullet list in info box */
.md-typeset .admonition {
  font-size: 0.8rem
}

@media screen and (min-width: 76.234375em) {
/* Persistent title section tabs */
.md-tabs__link {  
  margin-top: .1rem;
}
  
.md-tabs__item {
  height: 1.75rem;
}
  
/* Primary side bar header (desktop-only) */ 
.md-nav--lifted > .md-nav__list > .md-nav__item > [for] {
  color: #b22222;
  font-size: 18pt;
  font-weight: 400;
}

/* Primary side bar active (desktop-only) */
.md-nav__link.md-nav__link--active {
  color: #b22222;
}

/* Primary side bar sections (desktop-only) */
.md-nav__item--section > .md-nav__link[for] {
  color: #ffffff;
}

.md-nav__item--section > .md-nav__link {
  padding: 4px 8px;
  border-radius: 4px;
  background: #222222;
}
}

@media screen and (max-width: 76.234375em) {
/* Primary side bar header (mobile-only) */ 
.md-nav--primary .md-nav__title {
  color: #b22222;
  font-size: 16pt;
  font-weight: 400;
}

/* Primary side bar header icon (mobile-only) */ 
.md-nav--primary .md-nav__title .md-nav__icon:after {
  mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m 13.08,19.92 h -2 v -12 L 5.58,13.42 4.16,12 12.08,4.08 20,12 l -1.42,1.42 -5.5,-5.5 z"/></svg>');
  width: 1.75rem;
  height: 1.75rem;
}
}

/* TOC side bar header */
label.md-nav__title {
  font-weight: 600;
  color: #b22222;
}

/* Hide TOC side bar
.md-sidebar.md-sidebar--secondary {
  display: none;
}*/

/* Hide navigation footer 
.md-footer__inner:not([hidden]) {
  display: none;
}*/

/* Image styling */
.md-content img {
  filter: drop-shadow(5px 5px 10px #222222);
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0 8px 0;
}

.md-content img.small {
  width: 275px;
}

.md-content img.normal {
  width: 500px;
}

.md-content img.large {
  width: 100%;
}

.md-content img.light {
  filter: unset;
  width: 200px;
}

.md-content img.cap {
  filter: unset;
  height: 65px;
  margin-left: 0
}

.md-content img.capX {
  filter: unset;
  height: auto;
  width: auto;
  margin-left: 0
}

.md-content img.bind {
  filter: unset;
  width: 350px;
  margin-left: 0
}

.md-content img.inline {
  filter: unset;
  display: inline;
  min-width: 35px;
  min-height: 35px;
  max-width: 35px;
  max-height: 35px;
  padding: 0 !important;
  margin: 0 !important;
}

.md-content img.flow {
  display: unset;
  filter: unset;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px; 
  padding: 0 !important;
  margin: 0 !important;
}

.md-content img.tag {
  display: unset;
  filter: unset;
  height: 32px;
  padding: 0 !important;
  margin: 0 !important;
}

/* Text styling */
.md-typeset h1 {
  font-weight: 400;
  color: #b22222;
}

.md-typeset h2 {
  font-weight: 400;
  color: #b22222;
  margin: 1.4em 0 .64em;
}

.md-typeset h3 {
  font-weight: 200;
  color: #b22222;
  margin: 0;
}

.md-typeset h4 {
  font-weight: 700;
  color: #b22222;
}

/* Horizontal rule */
.md-typeset hr {
  border-bottom: .05rem solid #b22222;
}

/* Admonition styling */
.admonition p {
  font-size: .8rem;
}

/* Table styling */
.md-typeset__table {
  margin-left: auto;
  margin-right: auto;
}

.md-typeset table:not([class]) thead {
  display: none;
}

.md-typeset table:not([class]) td {
  padding: 3px 8px;
  font-size: .8rem;
  vertical-align: middle;
}

/* Global colors */
:root {
  --md-primary-fg-color: #222222;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #b22222;
  --md-typeset-a-color: #b22222;
}