.md-sidebar--primary {
  --md-default-bg-color: #f1f5f9;
  --md-default-fg-color: #334155;
  --md-default-fg-color--light: #64748b;
  --md-default-fg-color--lighter: #94a3b8;
  --md-default-fg-color--lightest: #cbd5e1;
  --md-typeset-a-color: #0f766e;
  --md-accent-fg-color: #0f766e;
  --sidebar-hover: #e2e8f0;
  --sidebar-active: #dbe3eb;
  background: #f1f5f9;
  color: #334155;
}

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

.md-sidebar--primary .md-nav--primary .md-nav__title ~ .md-nav__list {
  box-shadow: none;
}

.md-sidebar--primary .md-nav__item--nested > label.md-nav__link .md-nav__icon {
  display: none;
}

.md-sidebar--primary .md-nav__item > .md-nav__link {
  align-items: center;
  gap: .5rem;
  margin-top: .2rem;
  padding: .5rem .75rem;
  border-radius: .2rem;
  color: #334155;
  line-height: 1.35;
  transition: background-color .15s ease, color .15s ease;
}

.md-sidebar--primary .md-nav__item > .md-nav__link::before {
  width: .85rem;
  height: .85rem;
  flex: 0 0 .85rem;
  background-color: currentColor;
  content: "";
  opacity: .7;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v5h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.md-sidebar--primary .md-nav__item--nested > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 6a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

/* Top-level icons follow the navigation order in mkdocs.yml. */
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(1) > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15c1-5 5-10 14-10 0 9-5 13-10 14l-4-4zM9 19l-1 3-3-3-3-3 3-1M14 10h.01'/%3E%3C/svg%3E");
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(2) > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='5' cy='18' r='2'/%3E%3Ccircle cx='19' cy='18' r='2'/%3E%3Cpath d='M11 7 6 16M13 7l5 9M7 18h10'/%3E%3C/svg%3E");
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(3) > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6c-3-2-6-2-9-1v14c3-1 6-1 9 1 3-2 6-2 9-1V5c-3-1-6-1-9 1zM12 6v14'/%3E%3C/svg%3E");
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(4) > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E");
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(5) > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l4 4v13H8zM16 3v4h4M5 7v14h12M11 11h6M11 15h6'/%3E%3C/svg%3E");
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item:nth-child(6) > label.md-nav__link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='14' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18M10 12v2h4v-2'/%3E%3C/svg%3E");
}

.md-sidebar--primary .md-nav__item > .md-nav__link:hover {
  background: var(--sidebar-hover);
  color: #0f172a;
}

.md-sidebar--primary .md-nav__item > .md-nav__link:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: -2px;
}

.md-sidebar--primary .md-nav__item > a.md-nav__link--active,
.md-sidebar--primary .md-nav__item > a.md-nav__link--active:hover {
  background: var(--sidebar-active);
  color: #1e293b;
  font-weight: 700;
}

.md-sidebar--primary .md-nav__item > a.md-nav__link--active::before {
  opacity: 1;
}

.md-sidebar--secondary .md-nav--secondary {
  --md-default-bg-color: #f1f5f9;
  --toc-hover: #e2e8f0;
  --toc-active: #dbe3eb;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #334155;
}

.md-sidebar--secondary .md-nav--secondary .md-nav__title {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .5rem;
  position: static;
  padding: .6rem .5rem;
  background: #f1f5f9;
  box-shadow: none;
  color: #64748b;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.md-sidebar--secondary .md-nav--secondary .md-nav__title::before {
  width: .85rem;
  height: .85rem;
  flex: 0 0 .85rem;
  background-color: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.md-sidebar--secondary .md-nav--secondary .md-nav__item > .md-nav__link {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin: .15rem 0;
  padding: .45rem .5rem;
  border-radius: .2rem;
  color: #334155;
  font-family: var(--md-code-font-family);
  font-size: .72rem;
  line-height: 1.35;
  transition: background-color .15s ease, color .15s ease;
}

.md-sidebar--secondary .md-nav--secondary .md-nav__item > .md-nav__link:hover {
  background: var(--toc-hover);
  color: #0f172a;
}

.md-sidebar--secondary .md-nav--secondary .md-nav__item > .md-nav__link:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: -2px;
}

.md-sidebar--secondary .md-nav--secondary .md-nav__item > .md-nav__link--active,
.md-sidebar--secondary .md-nav--secondary .md-nav__item > .md-nav__link--active:hover {
  background: var(--toc-active);
  color: #1e293b;
  font-weight: 600;
}

@media (min-width: 60em) {
  body {
    --docs-toc-width: 14rem;
    --docs-header-height: 2.4rem;
  }

  .md-main__inner:has(> .md-sidebar--secondary:not([hidden])) {
    padding-right: calc(var(--docs-toc-width) + 1.2rem);
  }

  .md-sidebar--secondary {
    position: fixed;
    inset: var(--docs-header-height) 0 0 auto;
    width: var(--docs-toc-width);
    height: calc(100dvh - var(--docs-header-height));
    padding: 0;
    z-index: 3;
    background: #f1f5f9;
    color: #334155;
    /* Material writes sidebar offsets inline when scrolling. */
    top: var(--docs-header-height) !important;
  }

  .md-sidebar--secondary .md-sidebar__scrollwrap {
    height: 100% !important;
    margin: 0;
    padding: 0 .6rem;
    overflow: hidden;
  }

  .md-sidebar--secondary .md-sidebar__inner {
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .md-sidebar--secondary .md-nav--secondary {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .md-sidebar--secondary .md-nav--secondary > .md-nav__list {
    min-height: 0;
    overflow-y: auto;
    padding-bottom: .6rem;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 76.25em) {
  body {
    --docs-sidebar-width: 14rem;
  }

  .md-container {
    margin-left: var(--docs-sidebar-width);
  }

  .md-header__inner {
    max-width: none;
    padding-inline: .6rem;
  }

  .md-main__inner {
    padding-inline: 1.2rem;
  }

  .md-sidebar--primary {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--docs-sidebar-width);
    height: calc(100dvh - var(--docs-header-height));
    padding: 0;
    z-index: 3;
    /* Override Material's inline offsets for the full-height layout. */
    top: var(--docs-header-height) !important;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    height: calc(100dvh - var(--docs-header-height)) !important;
    margin: 0;
    padding: .6rem;
    scrollbar-gutter: stable;
  }

  .md-sidebar--primary .md-sidebar__inner {
    width: 100%;
    padding: 0;
  }

  .md-sidebar--primary .md-nav--primary {
    margin-bottom: 0;
  }

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

  .md-sidebar--primary .md-nav__item--nested > .md-nav {
    margin-left: .5rem;
    padding-left: .35rem;
  }

  .md-sidebar--primary .md-nav__item--nested > .md-nav > .md-nav__list {
    padding-left: 0;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item {
    margin-bottom: .5rem;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--nested > .md-nav__link {
    color: #64748b;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--active > label.md-nav__link {
    background: var(--sidebar-active);
    color: #1e293b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-sidebar--primary .md-nav__item > .md-nav__link,
  .md-sidebar--secondary .md-nav--secondary .md-nav__item > .md-nav__link {
    transition: none;
  }
}
