:root {
  --sat-blue: #2563eb;
  --sat-blue-hover: #1d4ed8;
}

[data-md-color-scheme="default"] {
  --sat-bg: #ffffff;
  --sat-surface: #f5f7fa;
  --sat-text: #1f2328;
  --sat-muted: #59636e;
  --sat-border: #dfe3e8;
  --sat-search-icon: #334155;
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #ffffff;
  --md-primary-fg-color--dark: #ffffff;
  --md-accent-fg-color: var(--sat-blue);
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: var(--sat-text);
  --md-typeset-a-color: var(--sat-blue);
  --md-code-bg-color: #f6f7f8;
}

[data-md-color-scheme="slate"] {
  --sat-bg: #101317;
  --sat-surface: #191e24;
  --sat-text: #e7ebf0;
  --sat-muted: #a9b2bd;
  --sat-border: #303740;
  --sat-blue: #82aaff;
  --sat-blue-hover: #a8c1ff;
  --sat-search-icon: #e7ebf0;
  --md-primary-fg-color: #101317;
  --md-primary-fg-color--light: #191e24;
  --md-primary-fg-color--dark: #0b0d10;
  --md-accent-fg-color: var(--sat-blue);
  --md-default-bg-color: var(--sat-bg);
  --md-default-fg-color: var(--sat-text);
  --md-default-fg-color--light: #b8c0ca;
  --md-default-fg-color--lighter: #7f8996;
  --md-default-fg-color--lightest: #303740;
  --md-typeset-a-color: var(--sat-blue);
  --md-code-bg-color: #171c22;
  --md-code-fg-color: #e7ebf0;
}

body {
  background: var(--sat-bg);
}

.md-header {
  color: var(--sat-text);
  background: var(--sat-bg);
  border-bottom: 1px solid var(--sat-border);
  box-shadow: none;
  backdrop-filter: none;
}

.md-header__button,
.md-header__title {
  color: var(--sat-text);
}

.md-header__button.md-logo {
  display: none;
}

.md-header__title {
  margin-left: 0.4rem;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.md-header__option {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 4;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  color: var(--sat-text);
  background: var(--sat-surface);
  border: 1px solid var(--sat-border);
  border-radius: 0.25rem;
}

.md-header__option .md-header__button {
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0.5rem;
  color: var(--sat-text);
}

.md-header__source {
  width: auto;
}

.md-header__source .md-source {
  display: flex;
  align-items: center;
  width: auto;
  height: 2.4rem;
  padding: 0;
}

.md-header__source .md-source__icon {
  display: flex;
  flex: 0 0 1.2rem;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 0.45rem 0 0;
}

.md-header__source .md-source__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.md-header__source .md-source__repository {
  display: flex;
  align-items: center;
  width: auto;
  max-width: none;
  height: 2.4rem;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  font-size: 0.65rem;
  line-height: 1;
  white-space: nowrap;
}

.md-header__source .md-source__repository--active {
  opacity: 1;
  transform: none;
}

.md-source__facts {
  display: none !important;
}

.md-search__form {
  background: var(--sat-surface);
  border: 1px solid var(--sat-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.md-search__icon,
.md-search__icon svg {
  color: var(--sat-search-icon);
  fill: currentColor;
  opacity: 1;
}

.md-search__input {
  color: var(--sat-text);
}

.md-search__input::placeholder {
  color: var(--sat-muted);
  opacity: 0.85;
}

.md-search__output,
.md-search-result__meta {
  color: var(--sat-text);
  background: var(--sat-bg);
}

.md-grid {
  max-width: 96rem;
}

.md-main__inner {
  margin-top: 0;
}

.md-sidebar--primary {
  border-right: 0;
}

.md-sidebar--primary .md-sidebar__scrollwrap {
  background: var(--sat-bg);
  border-right: 1px solid var(--sat-border);
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.md-nav--primary > .md-nav__title {
  color: var(--sat-text);
  background: var(--sat-bg);
  font-weight: 700;
  letter-spacing: 0;
}

.md-nav__item--section > .md-nav__link {
  color: var(--sat-text);
  font-weight: 650;
}

.md-nav__link {
  color: var(--sat-muted);
  line-height: 1.48;
  border-radius: 0;
  transition: color 100ms ease;
}

.md-nav__link:hover {
  color: var(--sat-text);
  background: transparent;
  transform: none;
}

.md-nav__link--active,
.md-nav__link[aria-current="page"] {
  color: var(--sat-blue);
  background: transparent;
  box-shadow: none;
  font-weight: 650;
}

.md-sidebar--secondary {
  border-left: 1px solid var(--sat-border);
}

.md-sidebar--secondary .md-nav__link--active {
  color: var(--sat-blue);
}

.md-content__inner {
  max-width: 56rem;
  margin-inline: auto;
  padding-top: 2.2rem;
  padding-bottom: 4rem;
}

.md-typeset {
  color: var(--sat-text);
  font-size: 0.78rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--sat-text);
  letter-spacing: -0.02em;
}

.md-typeset h1 {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  font-weight: 750;
}

.md-typeset h2 {
  margin-top: 2.5rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-weight: 700;
}

.md-typeset h3 {
  margin-top: 1.8rem;
  font-weight: 650;
}

.md-typeset p,
.md-typeset li {
  line-height: 1.75;
}

.md-typeset a:hover {
  color: var(--sat-blue-hover);
}

.md-typeset code {
  border: 0;
  border-radius: 0.2rem;
}

.md-typeset .highlight {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.md-typeset .highlight pre {
  border: 0;
  box-shadow: none;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--sat-border);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.md-typeset table:not([class]) th {
  color: var(--sat-text);
  background: var(--sat-surface);
  font-weight: 650;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.62rem 0.76rem;
  border-top-color: var(--sat-border);
}

.md-typeset blockquote {
  color: var(--sat-muted);
  background: transparent;
  border-left-color: #cbd5e1;
  border-radius: 0;
  padding: 0 0 0 1rem;
}

.md-typeset sub {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--sat-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  line-height: 1.6;
}

.md-footer {
  border-top: 1px solid var(--sat-border);
}

@media screen and (max-width: 76.2344em) {
  .md-sidebar--primary {
    border-right: 0;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    border-right: 0;
    border-bottom: 0;
  }

  .md-content__inner {
    max-width: none;
    padding-top: 1.5rem;
  }
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 17rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    margin-right: 0;
    padding-right: 0.8rem;
  }

  .md-sidebar--primary .md-sidebar__inner {
    padding-right: 0;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title {
    display: none;
  }

  .md-sidebar--primary .md-nav__link {
    white-space: nowrap;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list >
    .md-nav__item:first-child {
    margin-top: 0.35rem;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list >
    .md-nav__item:first-child > .md-nav__link {
    margin-top: 0;
  }

  .md-top {
    right: 0.8rem;
    bottom: 3.6rem;
  }
}
