/* Material Dashboard visual styling, adapted for MkDocs Material.
 * Original design: Creative Tim, MIT; see ../licenses/material-dashboard-MIT.txt.
 */
:root {
  --dl-sidebar-width: 250px;
  --dl-sidebar-space: 276px;
  --dl-sidebar-background: linear-gradient(195deg, #42424a 0%, #191919 100%);
  --dl-active-background: linear-gradient(195deg, #49a3f1 0%, #1a73e8 100%);
  --dl-surface: #fff;
  --dl-muted: #62626b;
  --md-primary-fg-color: #1a73e8;
  --md-accent-fg-color: #1a73e8;
  --md-text-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-code-font: ui-monospace, "Cascadia Code", "Liberation Mono", monospace;
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: #f5f5f5;
  --md-default-fg-color: #344767;
  --md-default-fg-color--light: #62626b;
}

[data-md-color-scheme="slate"] {
  --dl-sidebar-background: linear-gradient(195deg, #323a54, #1a2035);
  --dl-surface: #1d1d1d;
  --dl-muted: #c1c1cc;
  --md-default-bg-color: #171717;
  --md-default-fg-color: #eeeef3;
  --md-default-fg-color--light: #c1c1cc;
  --md-code-bg-color: #25252d;
  --md-code-fg-color: #eeeef3;
  --md-typeset-a-color: #64b5f6;
}

body {
  background: var(--md-default-bg-color);
}

.md-grid {
  max-width: none;
}

.dl-header {
  top: 8px;
  margin: 8px 16px 0;
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color);
  border-radius: 12px;
  box-shadow: none;
}

.dl-header .md-header__inner {
  gap: 8px;
  min-height: 64px;
  padding: 8px;
}

.dl-heading {
  flex: 1;
  min-width: 0;
}

.dl-breadcrumbs {
  display: flex;
  gap: 8px;
  overflow: hidden;
  font-size: 12px;
  color: var(--dl-muted);
  white-space: nowrap;
}

.dl-breadcrumbs span,
.dl-breadcrumbs a {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-breadcrumbs a {
  flex-shrink: 0;
}

.dl-page-title {
  overflow: hidden;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-palette {
  flex-shrink: 0;
}

.dl-header .dl-palette .dl-theme-toggle:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.dl-palette .dl-theme-toggle[hidden] {
  display: none;
}

.dl-theme-track {
  display: block;
  width: 32px;
  padding: 2px;
  background: #73737c;
  border-radius: 20px;
}

.dl-theme-track span {
  display: block;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}

[data-md-color-scheme="slate"] .dl-theme-track {
  background: #1a73e8;
}

[data-md-color-scheme="slate"] .dl-theme-track span {
  transform: translateX(14px);
}

.dl-palette:focus-within .dl-theme-toggle:not([hidden]),
a:focus-visible,
label[tabindex]:focus-visible {
  outline: 2px solid #49a3f1;
  outline-offset: 3px;
}

.md-sidebar--primary {
  color: #fff;
  background: var(--dl-sidebar-background);
  border-radius: 12px;
  box-shadow: 0 4px 12px #0000001a;
}

.md-sidebar--primary .md-sidebar__inner {
  padding: 0 12px 16px;
}

.md-sidebar--primary .md-nav {
  color: #fff;
  background: transparent;
}

.md-sidebar--primary .md-nav__title {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.md-sidebar--primary .dl-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  min-height: 80px;
  margin: 0 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ffffff26;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
}

.md-sidebar--primary .dl-brand .md-logo {
  display: inline-flex;
  position: static;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 4px;
}

.dl-audience {
  display: block;
  color: #d4d4dc;
  font-size: 11px;
}

.dl-brand .dl-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.dl-logo-dark,
[data-md-color-scheme="slate"] .dl-logo--dual .dl-logo-light {
  display: none;
}

[data-md-color-scheme="slate"] .dl-logo--dual .dl-logo-dark {
  display: block;
}

.md-sidebar--primary .md-nav__link {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.md-sidebar--primary .md-nav__link:hover,
.md-sidebar--primary .md-nav__link:focus-visible {
  color: #fff;
  background-color: #ffffff1a;
}

.md-sidebar--primary .md-nav__link--active,
.md-sidebar--primary .md-nav__link--active:hover {
  color: #fff;
  background: var(--dl-active-background);
  box-shadow: 0 3px 8px #1a73e833;
}

.md-sidebar--primary .md-nav__item--section > .md-nav__link {
  color: #d4d4dc;
  font-weight: 700;
}

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

.md-sidebar--primary .md-nav__list .md-nav__list {
  padding-left: 8px;
}

.md-main__inner {
  margin: 20px 16px;
}

.md-sidebar--secondary:not(:has(.md-nav__item)) {
  display: none;
}

.md-content {
  min-width: 0;
  background: var(--dl-surface);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0000000d;
}

.md-content__inner {
  margin: 0;
  padding: 24px;
}

.md-content__inner::before {
  display: none;
}

.md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: 700;
}

.md-typeset .mermaid {
  max-width: 100%;
  overflow-x: auto;
}

.dl-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 24px;
  padding: 16px 0 24px;
  color: var(--dl-muted);
  font-size: 12px;
}

@media screen and (min-width: 76.25em) {
  .dl-header {
    margin-left: var(--dl-sidebar-space);
  }

  .md-main__inner {
    margin-left: var(--dl-sidebar-space);
  }

  .md-sidebar--primary {
    position: fixed;
    top: 8px !important;
    bottom: 8px;
    left: 8px;
    width: var(--dl-sidebar-width);
    height: calc(100vh - 16px);
    padding: 0;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    height: 100%;
    max-height: 100% !important;
    margin: 0;
  }

  .dl-drawer-close {
    display: none;
  }

  .dl-footer {
    margin-left: var(--dl-sidebar-space);
  }
}

@media screen and (max-width: 76.234375em) {
  .md-sidebar--primary {
    top: 0;
    border-radius: 0 12px 12px 0;
  }

  .dl-brand {
    cursor: pointer;
  }

  .dl-drawer-close {
    flex-shrink: 0;
    margin-left: auto;
  }

  .md-sidebar--primary .md-nav__title:not(.dl-brand) {
    background: #25252d;
  }
}

@media screen and (max-width: 44.984375em) {
  .dl-header {
    margin: 8px 8px 0;
  }

  .dl-header .md-header__inner {
    gap: 0;
    padding: 4px;
  }

  .dl-breadcrumbs {
    display: none;
  }

  .dl-page-title {
    margin: 0;
  }

  .dl-header .dl-palette .dl-theme-toggle:not([hidden]) {
    gap: 4px;
    padding: 4px;
    font-size: 11px;
  }

  .md-main__inner {
    margin: 12px 8px;
  }

  .md-content__inner {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-theme-track span {
    transition: none;
  }
}
