:root {
  --dl-font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dl-font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  /* Derived from deeplake-ui landing and scaled down 20% for docs chrome. */
  --dl-header-height: 2.8rem;
  --dl-header-logo-height: 1.2rem;
  --dl-header-icon-size: 1rem;
  --dl-header-tab-size: 0.7rem;
  --dl-header-meta-size: 0.7rem;
  --dl-prose-h1-size: 1.8rem;
  --dl-prose-h2-size: 1.4rem;
  --dl-prose-h3-size: 1rem;
  --dl-inline-code-size: 0.7rem;
  --dl-bg-dark: #141214;
  --dl-bg-dark-elevated: #1b181d;
  --dl-bg-dark-soft: #221f26;
  --dl-bg-light: #ffffff;
  --dl-bg-light-soft: #f4f4f5;
  --dl-fg-dark: rgba(255, 255, 255, 0.92);
  --dl-fg-dark-muted: rgba(255, 255, 255, 0.62);
  --dl-fg-dark-subtle: rgba(255, 255, 255, 0.44);
  --dl-fg-light: #171717;
  --dl-fg-light-muted: rgba(23, 23, 23, 0.64);
  --dl-border-dark: rgba(255, 255, 255, 0.1);
  --dl-border-light: rgba(23, 23, 23, 0.1);
}

[data-md-color-scheme="slate"] {
  color-scheme: dark;
  --md-default-fg-color: var(--dl-fg-dark);
  --md-default-fg-color--light: var(--dl-fg-dark-muted);
  --md-default-fg-color--lighter: var(--dl-fg-dark-subtle);
  --md-default-fg-color--lightest: rgba(255, 255, 255, 0.12);
  --md-default-bg-color: var(--dl-bg-dark);
  --md-default-bg-color--light: var(--dl-bg-dark-elevated);
  --md-default-bg-color--lighter: var(--dl-bg-dark-soft);
  --md-default-bg-color--lightest: rgba(255, 255, 255, 0.08);
  --md-primary-fg-color: var(--dl-bg-dark);
  --md-primary-fg-color--light: var(--dl-bg-dark-elevated);
  --md-primary-fg-color--dark: #0f0d10;
  --md-accent-fg-color: #ffffff;
  --md-accent-fg-color--transparent: rgba(255, 255, 255, 0.08);
  --md-typeset-color: rgba(255, 255, 255, 0.88);
  --md-typeset-a-color: rgba(255, 255, 255, 0.96);
  --md-code-fg-color: rgba(255, 255, 255, 0.92);
  --md-code-bg-color: rgba(255, 255, 255, 0.05);
  --md-code-hl-color: rgba(255, 255, 255, 0.08);
  --md-code-hl-color--light: rgba(255, 255, 255, 0.04);
}

[data-md-color-scheme="default"] {
  --md-default-fg-color: var(--dl-fg-light);
  --md-default-fg-color--light: var(--dl-fg-light-muted);
  --md-default-fg-color--lighter: rgba(23, 23, 23, 0.44);
  --md-default-fg-color--lightest: rgba(23, 23, 23, 0.1);
  --md-default-bg-color: var(--dl-bg-light);
  --md-default-bg-color--light: #fafafa;
  --md-default-bg-color--lighter: var(--dl-bg-light-soft);
  --md-default-bg-color--lightest: rgba(23, 23, 23, 0.04);
  --md-typeset-a-color: var(--dl-fg-light);
  --md-code-bg-color: rgba(23, 23, 23, 0.04);
}

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

html {
  background: var(--dl-bg-light);
}

html:has(body[data-md-color-scheme="slate"]) {
  background: var(--dl-bg-dark);
}

body,
input,
button,
select,
textarea {
  font-family: var(--dl-font-sans);
}

code,
kbd,
pre,
.md-typeset code,
.md-typeset pre,
.md-nav,
.md-tabs,
.md-header-tabs__link,
.md-version,
.md-source,
.md-search-result__meta {
  font-family: var(--dl-font-mono);
}

.md-main,
.md-main__inner,
.md-sidebar,
.md-sidebar__scrollwrap,
.md-content,
.md-content__inner {
  background: var(--md-default-bg-color);
}

.md-content {
  margin-bottom: 100px;
}

.md-header,
.md-header--shadow {
  box-shadow: none;
  border-bottom: 1px solid var(--dl-border-light);
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-header--shadow {
  background: var(--dl-bg-dark);
  border-bottom-color: var(--dl-border-dark);
}

[data-md-color-scheme="default"] .md-header,
[data-md-color-scheme="default"] .md-header--shadow {
  background: var(--dl-bg-light);
}

.dl-header__inner {
  display: flex;
  min-height: var(--dl-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0 0.8rem;
}

.dl-header__left,
.dl-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.dl-header__right {
  flex: 0 0 auto;
}

.md-header__button,
.dl-header__action,
.dl-header__palette .md-header__button {
  color: var(--md-default-fg-color--light);
  padding: 0.25rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease;
}

.md-icon svg,
.dl-header__social img {
  width: var(--dl-header-icon-size);
  height: var(--dl-header-icon-size);
}

.md-header__button:hover,
.md-header__button:focus,
.dl-header__action:hover,
.dl-header__action:focus,
.dl-header__palette .md-header__button:hover,
.dl-header__palette .md-header__button:focus {
  color: var(--md-default-fg-color);
}

.dl-header__logo {
  margin: 0;
  padding: 0;
}

.dl-header__logo img,
.dl-header__logo svg {
  height: var(--dl-header-logo-height);
  width: auto;
}

[data-md-color-scheme="default"] .dl-header__logo img,
[data-md-color-scheme="default"] .dl-header__logo svg {
  filter: invert(1);
}

[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__button.md-logo img,
[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__button.md-logo svg {
  filter: invert(1);
}

.md-header-tabs {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: 1.2rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.md-header-tabs::-webkit-scrollbar {
  display: none;
}

.md-header-tabs__link {
  font-size: var(--dl-header-tab-size);
  font-weight: 500;
  line-height: 1;
  padding: 0.25rem 0;
  color: var(--md-default-fg-color--light);
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: none !important;
}

.md-header-tabs__link:hover,
.md-header-tabs__link:focus,
.md-header-tabs__link:active {
  color: var(--md-default-fg-color);
  text-decoration: none !important;
  border-bottom: none !important;
}

.md-header-tabs__link--active {
  color: var(--md-default-fg-color) !important;
  font-weight: 600;
}

.md-header__source,
.dl-header__repo {
  margin: 0 !important;
  width: auto;
  display: block !important;
  flex: 0 0 auto;
}

.dl-header__version {
  flex: 0 0 auto;
  position: relative;
}

.dl-version-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--dl-font-mono);
  font-size: var(--dl-header-meta-size);
  font-weight: 500;
  color: var(--md-default-fg-color--light);
  background: transparent;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  min-height: 1.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.dl-version-btn:hover,
.dl-version-btn:focus {
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color--lightest);
  outline: none;
}

.dl-version-btn__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dl-header__version.open .dl-version-btn__icon {
  transform: rotate(180deg);
}

.dl-version-list {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.dl-header__version.open .dl-version-list {
  display: block;
}

.dl-version-list__item {
  display: block;
  padding: 0.3rem 0.55rem;
  font-family: var(--dl-font-mono);
  font-size: var(--dl-header-meta-size);
  font-weight: 500;
  color: var(--md-default-fg-color--light);
  text-decoration: none;
  border-radius: 0.35rem;
  white-space: nowrap;
  cursor: pointer;
}

.dl-version-list__item:hover,
.dl-version-list__item--active {
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color--lightest);
}

.md-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 999px;
  background: transparent;
  color: var(--md-default-fg-color--light);
  font-size: 0.64rem;
  min-height: 1.55rem;
  line-height: 1;
  opacity: 1;
  padding-right: 0.35rem;
  white-space: nowrap;
}

.md-source:hover,
.md-source:focus-within {
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color--lightest);
  opacity: 1;
}

.md-source__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
}

.md-source__icon svg {
  width: 0.78rem;
  height: 0.78rem;
  margin: 0;
}

.md-source__repository,
.md-source__facts {
  font-size: 0.64rem;
}

.md-source__repository {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: none;
  margin: 0;
  overflow: visible;
  text-overflow: clip;
  vertical-align: middle;
  white-space: nowrap;
}

.md-source__icon + .md-source__repository {
  margin: 0;
  padding: 0;
}

.md-source__repository--active {
  width: auto;
  max-width: none;
  overflow: visible;
}

.md-source__facts {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  overflow: visible;
  width: auto;
  white-space: nowrap;
  opacity: 0.9;
}

.md-source__fact {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  flex-shrink: 0;
  overflow: visible;
  text-overflow: clip;
}

.md-source__fact:before {
  width: 0.52rem;
  height: 0.52rem;
  margin: 0 !important;
  vertical-align: middle;
}

.dl-header__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 999px;
}

.dl-header__social img {
  display: block;
}

.md-search {
  margin: 0;
}

:root {
  --dl-search-radius: 1rem;
}

/* Search: fully rounded when inactive */
.md-search__form {
  border-radius: var(--dl-search-radius) !important;
}

/* Flat bottom on form when search is active */
#__search:checked ~ .md-header .md-search__form {
  border-radius: var(--dl-search-radius) var(--dl-search-radius) 0 0 !important;
}

.md-search__output {
  border-radius: 0 0 var(--dl-search-radius) var(--dl-search-radius) !important;
}

.md-search-result {
  border-radius: 0 0 var(--dl-search-radius) var(--dl-search-radius) !important;
}

[data-md-color-scheme="slate"] .md-search__form,
[data-md-color-scheme="slate"] .md-search__output,
[data-md-color-scheme="slate"] .md-search-result,
[data-md-color-scheme="slate"] .md-search-result__meta {
  background: var(--dl-bg-dark-elevated);
  border-color: var(--dl-border-dark);
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
  color: var(--dl-fg-dark-subtle);
}

[data-md-color-scheme="default"] .md-search__form,
[data-md-color-scheme="default"] .md-search__output,
[data-md-color-scheme="default"] .md-search-result,
[data-md-color-scheme="default"] .md-search-result__meta {
  background: var(--dl-bg-light-soft);
  border-color: var(--dl-border-light);
}

[data-md-color-scheme="default"] .md-search__input {
  color: var(--dl-fg-light);
}

[data-md-color-scheme="default"] .md-search__input::placeholder {
  color: var(--dl-fg-light-muted);
}

.md-nav__link {
  padding: 0.35rem 0.625rem;
  margin: 0 !important;
  border-radius: 0.625rem;
  color: var(--md-default-fg-color--light);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.md-nav__link:hover,
.md-nav__link:focus {
  color: var(--md-default-fg-color) !important;
  background: var(--md-default-bg-color--lightest);
}

.md-nav__link--active {
  color: var(--md-default-fg-color) !important;
  font-weight: 600;
  background: var(--md-default-bg-color--lightest);
}

.md-nav__link:before {
  content: "";
}

.md-nav__title {
  color: var(--md-default-fg-color);
}

.md-nav__title .md-nav__icon,
.md-nav__title .md-icon {
  color: var(--md-default-fg-color--light);
}

[data-md-color-scheme="default"] .md-nav__title {
  color: var(--dl-fg-light) !important;
  background: var(--md-default-bg-color);
}

[data-md-color-scheme="default"] .md-nav__title .md-nav__icon,
[data-md-color-scheme="default"] .md-nav__title .md-icon {
  color: var(--dl-fg-light-muted) !important;
}

.md-version__current,
.md-version__list {
  border-radius: 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-version__link:hover,
.md-version__link:focus {
  color: var(--md-default-fg-color) !important;
  background: var(--md-default-bg-color--lightest) !important;
}

.md-typeset {
  color: var(--md-typeset-color);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: var(--md-default-fg-color);
  font-weight: 700;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--dl-header-height) + 1rem);
}

.md-typeset h1 {
  font-size: var(--dl-prose-h1-size);
  line-height: 1.25;
}

.md-typeset h2 {
  font-size: var(--dl-prose-h2-size);
  line-height: 1.3;
}

.md-typeset h3 {
  font-size: var(--dl-prose-h3-size);
  line-height: 1.4;
}

.md-typeset a {
  color: var(--md-typeset-a-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.md-typeset blockquote {
  border-left: 3px solid var(--md-default-fg-color--lightest);
}

.md-typeset pre,
.md-typeset .highlight pre {
  border-radius: 1rem;
}

.md-typeset code,
.md-typeset pre,
.md-typeset kbd {
  font-size: var(--dl-inline-code-size);
}

.md-typeset table code {
  white-space: nowrap;
}

.doc-function,
.doc-attribute {
  border-bottom: 2px dashed var(--md-default-fg-color--lightest);
  margin-bottom: 40px;
}

#next-steps {
  font-size: 30px;
  font-weight: bold;
}

.jupiter_download .md-content__button {
  border-top: 1px dashed var(--md-default-fg-color--lightest);
  padding-top: 8px;
  float: none;
  display: block !important;
  color: var(--md-default-fg-color--light);
}

.md-content__button:nth-child(1) {
  display: none;
}

.md-footer {
  display: none;
}

.screenshot {
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-header__topic .md-ellipsis {
  display: none;
}

.md-path,
.md-tabs {
  display: none !important;
}

@media screen and (max-width: 76.1875em) {
  .md-header-tabs {
    display: none;
  }

  .dl-header__inner {
    padding: 0 0.65rem;
  }

  /* ── Drawer shell ── */
  .md-sidebar--primary {
    height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: contain;
    background: var(--md-default-bg-color);
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none;
    background: var(--md-default-bg-color);
  }

  .md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar {
    display: none;
  }

  .md-sidebar--primary .md-sidebar__inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 0 !important;
    overflow: visible;
  }

  /* ── Logo row ── */
  .md-sidebar--primary .md-nav--primary > .md-nav__title[for="__drawer"] {
    display: block !important;
    padding: 0.85rem 1rem 0.95rem;
    background: transparent !important;
  }

  .md-sidebar--primary .md-nav__button.md-logo img,
  .md-sidebar--primary .md-nav__button.md-logo svg {
    width: auto;
    height: var(--dl-header-logo-height);
    max-width: none;
  }

  /* ── Flatten MkDocs nav: kill transforms, fixed positioning, slide-in ── */
  .md-sidebar--primary .md-nav,
  .md-nav--secondary {
    position: static;
    inset: auto;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none !important;
  }

  .md-sidebar--primary .md-nav,
  .md-sidebar--primary .md-nav__list,
  .md-sidebar--primary .md-nav__item,
  .md-sidebar--primary .md-nav__container,
  .md-nav--secondary,
  .md-nav--secondary .md-nav__list,
  .md-nav--secondary .md-nav__item {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Hide back-button titles on nested navs (causes duplicate labels) */
  .md-sidebar--primary .md-nav[data-md-level]:not([data-md-level="0"]) > .md-nav__title,
  .md-nav--secondary > .md-nav__title {
    display: none !important;
  }

  /* ── Typography base ── */
  .md-sidebar--primary .md-nav__title,
  .md-sidebar--primary .md-nav__link,
  .md-sidebar--primary .md-nav__container > .md-nav__link,
  .md-nav--secondary .md-nav__link {
    font-family: var(--dl-font-mono);
  }

  .md-sidebar--primary .md-nav__link,
  .md-sidebar--primary .md-nav__link--active,
  .md-sidebar--primary .md-nav__title,
  .md-sidebar--primary .md-nav__title .md-ellipsis,
  .md-sidebar--primary .md-nav__link .md-ellipsis,
  .md-nav--secondary .md-nav__link,
  .md-nav--secondary .md-nav__link--active,
  .md-nav--secondary .md-nav__link .md-ellipsis {
    color: var(--md-default-fg-color--light) !important;
    font-size: 0.76rem;
    font-weight: 400 !important;
    letter-spacing: 0;
    text-transform: none;
    background: transparent !important;
  }

  /* ── Layout: primary nav grows to fill space ── */
  .md-sidebar--primary .md-nav--primary {
    display: block;
    overflow: visible;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list {
    flex: 1 1 auto;
    margin: 0;
    padding: 0 0.375rem;
    overflow: visible;
  }

  .md-sidebar--primary .md-nav__list,
  .md-nav--secondary .md-nav__list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 0 0.25rem;
  }

  .md-sidebar--primary .md-nav__item,
  .md-nav--secondary .md-nav__item {
    margin: 0;
    border-radius: 0 !important;
  }

  /* ── Container (holds link + toggle label side-by-side) ── */
  .md-sidebar--primary .md-nav__container,
  .md-nav--secondary .md-nav__container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.75rem !important;
    background: transparent;
    box-shadow: none !important;
  }

  /* ── All nav links: uniform compact style ── */
  .md-sidebar--primary .md-nav__link,
  .md-nav--secondary .md-nav__link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.25rem;
    width: 100%;
    padding: 0.375rem 0.75rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0.75rem !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .md-sidebar--primary .md-nav__container > .md-nav__link {
    flex: 1 1 auto;
  }

  /* Toggle label (chevron) inside containers */
  .md-sidebar--primary .md-nav__container > label.md-nav__link {
    flex: 0 0 auto;
    width: auto;
    min-height: 2.25rem;
    padding-left: 0 !important;
    justify-content: center;
  }

  /* ── Section labels (Fundamentals, Data, Search, etc.) ── */
  .md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item--section > label.md-nav__link,
  .md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item--nested > label.md-nav__link,
  .md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item--nested > .md-nav__container > label.md-nav__link {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: var(--md-default-fg-color--light) !important;
    min-height: 2.25rem;
  }

  /* ── Hover states: text color only, no background ── */
  .md-sidebar--primary .md-nav__link:hover,
  .md-sidebar--primary .md-nav__link:focus,
  .md-nav--secondary .md-nav__link:hover,
  .md-nav--secondary .md-nav__link:focus {
    color: var(--md-default-fg-color) !important;
    background: transparent !important;
  }

  /* ── Expand / collapse ── */
  .md-sidebar--primary .md-nav__item--nested > .md-nav {
    display: none;
  }

  .md-sidebar--primary .md-nav__item--nested > .md-nav__toggle:checked ~ .md-nav {
    display: block;
  }

  /* Active sections default open, but can be closed via toggle */
  .md-sidebar--primary .md-nav__item--active > .md-nav:not(.md-nav--secondary) {
    display: block;
  }

  .md-sidebar--primary .md-nav__item--nested.md-nav__item--active > .md-nav__toggle:not(:checked) ~ .md-nav {
    display: none;
  }

  /* ── Active item: white text only, no background ── */
  .md-sidebar--primary .md-nav__link--active,
  .md-sidebar--primary .md-nav__link--active .md-ellipsis,
  .md-nav--secondary .md-nav__link--active,
  .md-nav--secondary .md-nav__link--active .md-ellipsis {
    color: var(--md-default-fg-color) !important;
    font-weight: 500 !important;
    background: transparent !important;
  }

  /* Hide the TOC toggle label on active leaf items (causes duplicate entry) */
  .md-sidebar--primary .md-nav__item--active > label.md-nav__link--active {
    display: none !important;
  }

  /* Hide the inline secondary nav (TOC) inside the primary sidebar */
  .md-sidebar--primary .md-nav--secondary {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* ── Chevron icons ── */
  .md-sidebar--primary .md-nav__icon,
  .md-nav--secondary .md-nav__icon {
    color: var(--md-default-fg-color--lighter) !important;
    transition: transform 0.2s ease;
  }

  .md-sidebar--primary .md-nav__item--nested > .md-nav__toggle:checked ~ label.md-nav__link .md-nav__icon,
  .md-sidebar--primary .md-nav__item--nested > .md-nav__toggle:checked ~ .md-nav__container label.md-nav__link .md-nav__icon {
    transform: rotate(90deg);
  }

  /* ── Source / GitHub pill ── */
  .md-sidebar--primary .md-nav__source {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .md-sidebar--primary .md-source {
    background: transparent;
  }

  /* ── Footer (GitHub, Slack, CTA) — always at bottom ── */
  .md-sidebar--primary .dl-mobile-drawer__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.75rem 0;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--md-default-fg-color--lightest);
    background: var(--md-default-bg-color);
  }

  .md-sidebar--primary .dl-mobile-drawer__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.35rem;
    margin-right: 0.35rem;
  }

  .md-sidebar--primary .dl-mobile-drawer__actions .md-nav__source {
    flex: 0 0 auto;
  }

  .md-sidebar--primary .dl-mobile-drawer__actions .md-source:hover,
  .md-sidebar--primary .dl-mobile-drawer__actions .md-source:focus-within {
    background: var(--md-default-bg-color--lightest);
  }

  .md-sidebar--primary .dl-mobile-drawer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    color: var(--md-default-fg-color);
    border-radius: 999px;
  }

  .md-sidebar--primary .dl-mobile-drawer__social img {
    display: block;
    width: var(--dl-header-icon-size);
    height: var(--dl-header-icon-size);
  }

  .md-sidebar--primary .dl-mobile-drawer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    margin: 0 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #171717;
    font-family: var(--dl-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
  }

  .md-sidebar--primary .dl-mobile-drawer__cta:hover,
  .md-sidebar--primary .dl-mobile-drawer__cta:focus {
    background: #fdba74;
    color: #171717;
  }
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-nav[data-md-level="0"] > .md-nav__list > .md-nav__item--nested > .md-nav__container,
  .md-sidebar--primary .md-nav[data-md-level="0"] > .md-nav__list > .md-nav__item--section > label.md-nav__link,
  .md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__title {
    display: none !important;
  }
}

@media screen and (max-width: 60em) {
  .dl-header__repo {
    display: none !important;
  }
}

@media screen and (max-width: 44em) {
  .dl-header__right {
    gap: 0.25rem;
  }

  .dl-header__social {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
