:root {
  --ce-radius-xl: 0.75rem;
  --ce-radius-lg: 0.75rem;
  --ce-radius-md: 0.75rem;
  --ce-radius-sm: 0.75rem;
  --ce-border-light: rgba(255, 255, 255, 0.72);
  --ce-surface-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  --ce-surface-glow: 0 0 0 1px rgba(20, 184, 166, 0.06), 0 12px 32px rgba(20, 184, 166, 0.08);
  --ce-layout-border: rgba(20, 184, 166, 0.10);
  --ce-sidebar-gap: 0.5rem;
}

body {
  letter-spacing: 0;
  color: #1c1917;
}

body[data-theme="dark"] {
  --ce-border-light: rgba(255, 255, 255, 0.14);
  --ce-layout-border: rgba(255, 255, 255, 0.12);
  --ce-surface-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
  --ce-surface-glow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 14px 40px rgba(20, 184, 166, 0.12);
  background: #121212;
  color: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) {
    --ce-border-light: rgba(255, 255, 255, 0.14);
    --ce-layout-border: rgba(255, 255, 255, 0.12);
    --ce-surface-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
    --ce-surface-glow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 14px 40px rgba(20, 184, 166, 0.12);
    background: #121212;
    color: #f5f5f5;
  }
}

.announcement {
  display: none;
}

.mobile-header,
.sidebar-drawer,
.toc-drawer,
.content,
.search-dialog {
  backdrop-filter: blur(16px);
}

.sidebar-drawer,
.toc-drawer {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mobile-header {
  margin: 0;
  border-bottom: 1px solid var(--ce-layout-border);
  background: transparent;
  box-shadow: none;
}

.sidebar-drawer,
.toc-drawer {
  border-radius: 0;
}

.sidebar-drawer,
.toc-drawer {
  overflow: visible;
}

.content {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.sidebar-container,
.toc-scroll,
.article-container {
  position: relative;
  z-index: 1;
}

.sidebar-container {
  padding-right: 0.75rem;
  border-right: 1px solid var(--ce-layout-border);
}

.toc-sticky {
  padding-left: 0.75rem;
  border-left: 1px solid var(--ce-layout-border);
}

.sidebar-brand {
  margin: 0.75rem 0.75rem 0.25rem;
  padding: 0.35rem 0.1rem 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-brand-text {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #78716c;
}

.sidebar-search-container,
.theme-toggle,
.view-this-page a,
.toc-overlay-icon,
.nav-overlay-icon {
  border: 0;
}

.theme-toggle,
.view-this-page a,
.toc-overlay-icon,
.nav-overlay-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sidebar-search-container {
  margin: 0.5rem 0.75rem 0;
  border-radius: var(--ce-radius-md);
  overflow: hidden;
  background: rgba(28, 25, 23, 0.045);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-search-container:hover,
.sidebar-search-container:focus-within {
  background: rgba(28, 25, 23, 0.06);
  box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.05);
}

.sidebar-search {
  min-height: 2.7rem;
  color: inherit;
  border-top: 0;
  border-bottom: 0;
}

.sidebar-search:focus {
  outline: none;
  box-shadow: none;
}

.sidebar-search::placeholder {
  color: #78716c;
  opacity: 1;
}

.theme-toggle,
.view-this-page a,
.toc-overlay-icon,
.nav-overlay-icon {
  border-radius: var(--ce-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.nav-overlay-icon,
.toc-overlay-icon {
  padding: 0;
}

.theme-toggle:hover,
.view-this-page a:hover {
  box-shadow: var(--ce-surface-glow);
}

.sidebar-tree .current > .reference,
.theme-toggle:hover,
.view-this-page a:hover,
.admonition.note,
.admonition.tip,
.admonition.important {
  background-image: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(16, 185, 129, 0.04));
}

body[data-theme="dark"] .sidebar-tree .current > .reference,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .view-this-page a:hover,
body[data-theme="dark"] .admonition.note,
body[data-theme="dark"] .admonition.tip,
body[data-theme="dark"] .admonition.important {
  background-image: none;
  background-color: #134e4a33;
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .sidebar-tree .current > .reference,
  body:not([data-theme="light"]) .theme-toggle:hover,
  body:not([data-theme="light"]) .view-this-page a:hover,
  body:not([data-theme="light"]) .admonition.note,
  body:not([data-theme="light"]) .admonition.tip,
  body:not([data-theme="light"]) .admonition.important {
    background-image: none;
    background-color: #134e4a33;
  }
}

.header-center {
  display: none;
}

.sidebar-scroll {
  padding-bottom: 0.75rem;
}

.sidebar-tree {
  margin-top: 1rem;
}

.sidebar-tree ul {
  gap: 0.15rem;
}

.sidebar-tree li {
  padding: 0 var(--ce-sidebar-gap);
}

.sidebar-tree .reference,
.toc-tree a.reference {
  border-radius: var(--ce-radius-md);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-tree .reference {
  width: calc(100% - 0.1rem);
  padding: 0.6rem 0.8rem;
}

.sidebar-tree .reference:hover,
.toc-tree a.reference:hover {
  transform: translateX(2px);
}

.sidebar-tree .current > .reference {
  box-shadow: none;
}

body[data-theme="dark"] .sidebar-tree .current > .reference {
  color: rgb(20 184 166);
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .sidebar-tree .current > .reference {
    color: rgb(20 184 166);
    box-shadow: none;
  }
}

.article-container {
  padding: 1.25rem 1.5rem 1.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-icon-container {
  top: 1rem;
  right: 1rem;
}

.highlight,
table.docutils,
.admonition,
blockquote {
  border: 1px solid var(--ce-border-light);
  border-radius: var(--ce-radius-lg);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.highlight,
table.docutils {
  overflow: hidden;
}

.admonition {
  border-left-width: 1px;
}

.admonition.note,
.admonition.tip,
.admonition.important {
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(20, 184, 166, 0.06);
}

body[data-theme="dark"] .admonition.note,
body[data-theme="dark"] .admonition.tip,
body[data-theme="dark"] .admonition.important {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(94, 234, 212, 0.08);
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .admonition.note,
  body:not([data-theme="light"]) .admonition.tip,
  body:not([data-theme="light"]) .admonition.important {
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(94, 234, 212, 0.08);
  }
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

a {
  text-underline-offset: 0.18em;
}

code,
pre {
  border-radius: var(--ce-radius-md);
}

body[data-theme="dark"] .sidebar-brand {
  background: transparent;
}

body[data-theme="dark"] .sidebar-brand-text {
  color: #a3a3a3;
}

body[data-theme="dark"] .sidebar-search-container,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .view-this-page a,
body[data-theme="dark"] .toc-overlay-icon,
body[data-theme="dark"] .nav-overlay-icon {
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .sidebar-search-container:hover,
body[data-theme="dark"] .sidebar-search-container:focus-within {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .article-container {
  background: transparent;
}

body[data-theme="dark"] .highlight,
body[data-theme="dark"] table.docutils,
body[data-theme="dark"] .admonition,
body[data-theme="dark"] blockquote {
  background: rgba(255, 255, 255, 0.03);
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .sidebar-brand {
    background: transparent;
  }

  body:not([data-theme="light"]) .sidebar-brand-text {
    color: #a3a3a3;
  }

  body:not([data-theme="light"]) .sidebar-search-container,
  body:not([data-theme="light"]) .theme-toggle,
  body:not([data-theme="light"]) .view-this-page a,
  body:not([data-theme="light"]) .toc-overlay-icon,
  body:not([data-theme="light"]) .nav-overlay-icon {
    background: rgba(255, 255, 255, 0.04);
  }

  body:not([data-theme="light"]) .sidebar-search-container:hover,
  body:not([data-theme="light"]) .sidebar-search-container:focus-within {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  body:not([data-theme="light"]) .article-container {
    background: transparent;
  }

  body:not([data-theme="light"]) .highlight,
  body:not([data-theme="light"]) table.docutils,
  body:not([data-theme="light"]) .admonition,
  body:not([data-theme="light"]) blockquote {
    background: rgba(255, 255, 255, 0.03);
  }
}

@media (max-width: 63rem) {
  .sidebar-drawer,
  .toc-drawer {
    backdrop-filter: none;
    background: #f7f7f6;
  }

  body[data-theme="dark"] .sidebar-drawer,
  body[data-theme="dark"] .toc-drawer {
    background: #121212;
  }

  .sidebar-container,
  .toc-sticky {
    padding-top: 0.75rem;
  }
}

@media (max-width: 63rem) and (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .sidebar-drawer,
  body:not([data-theme="light"]) .toc-drawer {
    background: #121212;
  }
}

.related-pages a,
.bottom-of-page {
  border-top-color: var(--ce-border-light);
}

@media (max-width: 63rem) {
  .sidebar-drawer,
  .toc-drawer {
    border-radius: 0;
  }

  .article-container {
    padding: 1rem 1rem 1.5rem;
    border-radius: 0;
  }

  .sidebar-container,
  .toc-sticky {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-right: 0;
  }
}
