:root {
  color-scheme: light;

  --bgColor-default: #ffffff;
  --bgColor-muted: #f6f8fa;
  --bgColor-inset: #f6f8fa;
  --overlay-bgColor: #ffffff;
  --fgColor-default: #1f2328;
  --fgColor-muted: #59636e;
  --fgColor-onEmphasis: #ffffff;
  --borderColor-default: #d0d7de;
  --borderColor-muted: #d8dee4;
  --fgColor-accent: #0969da;
  --bgColor-accent-emphasis: #0969da;
  --bgColor-accent-muted: #ddf4ff;
  --borderColor-accent-muted: #54aeff66;
  --fgColor-success: #1a7f37;
  --bgColor-success-muted: #dafbe1;
  --fgColor-attention: #9a6700;
  --bgColor-attention-muted: #fff8c5;
  --fgColor-danger: #d1242f;
  --bgColor-danger-muted: #ffebe9;

  --shadow-small: 0 1px 0 rgba(31, 35, 40, 0.04);
  --shadow-medium: 0 8px 24px rgba(140, 149, 159, 0.2);

  --base-size-4: 0.25rem;
  --base-size-8: 0.5rem;
  --base-size-12: 0.75rem;
  --base-size-16: 1rem;
  --base-size-20: 1.25rem;
  --base-size-24: 1.5rem;
  --base-size-32: 2rem;
  --base-size-40: 2.5rem;
  --base-size-48: 3rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 2rem;

  --radius-small: 6px;
  --radius-medium: 8px;
  --radius-large: 12px;

  --header-height: 64px;
  --sidebar-width: 304px;
  --toc-width: 226px;
  --content-width: 880px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
    --bgColor-default: #0d1117;
    --bgColor-muted: #161b22;
    --bgColor-inset: #010409;
    --overlay-bgColor: #161b22;
    --fgColor-default: #e6edf3;
    --fgColor-muted: #8d96a0;
    --fgColor-onEmphasis: #ffffff;
    --borderColor-default: #30363d;
    --borderColor-muted: #21262d;
    --fgColor-accent: #58a6ff;
    --bgColor-accent-emphasis: #1f6feb;
    --bgColor-accent-muted: #388bfd1a;
    --borderColor-accent-muted: #388bfd66;
    --fgColor-success: #3fb950;
    --bgColor-success-muted: #23863626;
    --fgColor-attention: #d29922;
    --bgColor-attention-muted: #9e6a0326;
    --fgColor-danger: #f85149;
    --bgColor-danger-muted: #f8514926;
    --shadow-small: 0 0 transparent;
  --shadow-medium: 0 8px 24px #01040980;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--base-size-24));
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bgColor-default);
  color: var(--fgColor-default);
  font-size: var(--text-md);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

a {
  color: var(--fgColor-accent);
}

[x-cloak] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: var(--base-size-16);
  z-index: 1000;
  padding: var(--base-size-8) var(--base-size-12);
  border-radius: var(--radius-small);
  background: var(--bgColor-accent-emphasis);
  color: var(--fgColor-onEmphasis);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--base-size-8);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--base-size-24);
  padding: 0 var(--base-size-24);
  background: color-mix(in srgb, var(--bgColor-default) 94%, transparent);
  border-bottom: 1px solid var(--borderColor-muted);
  backdrop-filter: blur(12px);
}

.brand-zone,
.header-actions,
.topnav,
.brand {
  display: flex;
  align-items: center;
}

.brand-zone {
  min-width: 0;
  gap: var(--base-size-8);
}

.header-actions {
  flex: 1;
  justify-content: flex-end;
  gap: var(--base-size-24);
  min-width: 0;
}

.brand {
  gap: 9px;
  color: var(--fgColor-default);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fgColor-default);
  color: var(--bgColor-default);
  font-size: 0.875rem;
  font-weight: 700;
}

.topnav {
  gap: var(--base-size-20);
}

.topnav a {
  color: var(--fgColor-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--fgColor-default);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.icon-button,
.quiet-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--fgColor-muted);
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-small);
  font-size: 1.25rem;
}

.icon-button:hover,
.icon-button:focus-visible,
.quiet-button:hover,
.quiet-button:focus-visible {
  background: var(--bgColor-muted);
  color: var(--fgColor-default);
}

.icon-button:focus-visible,
.quiet-button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--fgColor-accent);
  outline-offset: 2px;
}

.mobile-menu {
  display: none;
}

.theme-toggle {
  flex: 0 0 auto;
}

.theme-toggle .ph {
  pointer-events: none;
}

.search-wrap {
  position: relative;
  width: min(390px, 38vw);
  min-width: 220px;
}

#search {
  width: 100%;
  --wa-form-control-height: 34px;
}

#search::part(input-wrapper) {
  background: var(--bgColor-muted);
  border-color: var(--borderColor-default);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-small);
}

#search::part(input) {
  color: var(--fgColor-default);
  font-size: var(--text-sm);
}

#search:focus-within::part(input-wrapper) {
  background: var(--bgColor-default);
  border-color: var(--fgColor-accent);
  box-shadow: 0 0 0 3px var(--borderColor-accent-muted);
}

.shortcut-key {
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--borderColor-default);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bgColor-default);
  color: var(--fgColor-muted);
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.search-results {
  position: absolute;
  top: calc(100% + var(--base-size-8));
  right: 0;
  left: 0;
  z-index: 120;
  max-height: min(520px, 70vh);
  overflow-y: auto;
  padding: var(--base-size-8);
  border: 1px solid var(--borderColor-default);
  border-radius: var(--radius-medium);
  background: var(--overlay-bgColor);
  box-shadow: var(--shadow-medium);
}

.search-results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--base-size-8);
  padding: 10px;
  border-radius: var(--radius-small);
  color: var(--fgColor-default);
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible,
.search-result.is-keyboard-active {
  background: var(--bgColor-accent-muted);
  outline: none;
}

.search-result-icon {
  padding-top: 2px;
  color: var(--fgColor-muted);
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  font-size: var(--text-sm);
  font-weight: 600;
}

.search-result small {
  margin-top: 2px;
  color: var(--fgColor-muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.search-empty {
  padding: var(--base-size-16);
  color: var(--fgColor-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: var(--base-size-20) var(--base-size-12) var(--base-size-32);
  border-right: 1px solid var(--borderColor-muted);
  background: var(--bgColor-muted);
  scrollbar-width: thin;
}

.sidebar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--base-size-8);
  padding: 0 var(--base-size-8) var(--base-size-16);
}

.sidebar-heading > div {
  display: grid;
  gap: 1px;
}

.sidebar-heading strong {
  font-size: var(--text-sm);
}

.eyebrow {
  color: var(--fgColor-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: var(--radius-small);
  font-size: var(--text-xs);
}

.doc-nav {
  display: grid;
  gap: 2px;
}

.nav-domain,
.nav-file {
  margin: 0;
}

.nav-domain > summary,
.nav-file > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-domain > summary::-webkit-details-marker,
.nav-file > summary::-webkit-details-marker {
  display: none;
}

.nav-domain > summary {
  display: flex;
  align-items: center;
  gap: var(--base-size-8);
  padding: 8px;
  border-radius: var(--radius-small);
  color: var(--fgColor-default);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-domain > summary:hover {
  background: color-mix(in srgb, var(--fgColor-muted) 8%, transparent);
}

.nav-domain-icon {
  width: 17px;
  color: var(--fgColor-muted);
  text-align: center;
}

.nav-caret {
  margin-left: auto;
  color: var(--fgColor-muted);
  transition: transform 120ms ease;
}

details[open] > summary > .nav-caret {
  transform: rotate(90deg);
}

.nav-domain-children {
  display: grid;
  gap: 1px;
  padding-left: var(--base-size-12);
}

.nav-file > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 5px 7px 5px 16px;
  border-radius: var(--radius-small);
  color: var(--fgColor-muted);
  font-size: 0.82rem;
}

.nav-file > summary:hover {
  background: color-mix(in srgb, var(--fgColor-muted) 7%, transparent);
  color: var(--fgColor-default);
}

.nav-file > summary .nav-caret {
  margin-left: 0;
  font-size: 0.75rem;
}

.nav-file-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-file-children {
  position: relative;
  display: grid;
  gap: 1px;
  margin: 2px 0 6px 25px;
  padding-left: 11px;
}

.nav-file-children::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  background: var(--borderColor-default);
}

.file-overview,
.topic-link {
  display: block;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--fgColor-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-decoration: none;
}

.file-overview {
  font-weight: 500;
}

.file-overview:hover,
.file-overview:focus-visible,
.topic-link:hover,
.topic-link:focus-visible,
.file-overview.active,
.topic-link.active {
  background: var(--bgColor-accent-muted);
  color: var(--fgColor-accent);
}

.file-overview.active {
  font-weight: 600;
}

.content {
  width: min(100%, var(--content-width));
  min-width: 0;
  margin: 0 auto;
  padding: var(--base-size-48) var(--base-size-40) 96px;
}

.content:focus {
  outline: none;
}

.doc-context {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--base-size-12);
  color: var(--fgColor-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.doc-context .ph {
  font-size: 0.95rem;
}

.markdown-body {
  color: var(--fgColor-default);
  font-size: var(--text-md);
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--fgColor-default);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-height) + var(--base-size-24));
}

.markdown-body h1 {
  margin: 0 0 var(--base-size-16);
  padding-bottom: var(--base-size-16);
  border-bottom: 1px solid var(--borderColor-muted);
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.markdown-body h2 {
  margin: 52px 0 var(--base-size-16);
  padding-bottom: var(--base-size-8);
  border-bottom: 1px solid var(--borderColor-muted);
  font-size: 1.5rem;
}

.markdown-body h3 {
  margin: var(--base-size-32) 0 var(--base-size-12);
  font-size: 1.125rem;
}

.markdown-body h4 {
  margin: var(--base-size-24) 0 var(--base-size-8);
  font-size: 1rem;
}

.markdown-body p,
.markdown-body li {
  max-width: 78ch;
}

.markdown-body p {
  margin: 0 0 var(--base-size-16);
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 var(--base-size-16);
  padding-left: 1.6rem;
}

.markdown-body li {
  margin: 4px 0;
}

.markdown-body li::marker {
  color: var(--fgColor-muted);
}

.markdown-body strong {
  font-weight: 600;
}

.markdown-body a {
  color: var(--fgColor-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.markdown-body code {
  padding: 0.18em 0.4em;
  border: 1px solid color-mix(in srgb, var(--borderColor-muted) 72%, transparent);
  border-radius: 6px;
  background: var(--bgColor-muted);
  color: var(--fgColor-default);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
}

.markdown-body pre {
  position: relative;
  margin: var(--base-size-20) 0 var(--base-size-24);
  padding: var(--base-size-16);
  overflow: auto;
  border: 1px solid var(--borderColor-default);
  border-radius: var(--radius-medium);
  background: var(--bgColor-inset);
  color: var(--fgColor-default);
  font-size: 0.84rem;
  line-height: 1.55;
  tab-size: 2;
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.code-copy {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--borderColor-default);
  border-radius: var(--radius-small);
  background: var(--bgColor-default);
  color: var(--fgColor-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease, background 120ms ease;
}

.markdown-body pre:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  background: var(--bgColor-muted);
  color: var(--fgColor-default);
}

.markdown-body blockquote {
  margin: var(--base-size-20) 0;
  padding: var(--base-size-12) var(--base-size-16);
  border: 1px solid var(--borderColor-accent-muted);
  border-left: 3px solid var(--fgColor-accent);
  border-radius: var(--radius-small);
  background: var(--bgColor-accent-muted);
  color: var(--fgColor-default);
}

.markdown-body blockquote > :last-child {
  margin-bottom: 0;
}

.table-scroll {
  width: 100%;
  margin: var(--base-size-20) 0 var(--base-size-24);
  overflow-x: auto;
  border: 1px solid var(--borderColor-default);
  border-radius: var(--radius-medium);
  background: var(--bgColor-default);
}

.markdown-body table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--borderColor-muted);
  text-align: left;
  vertical-align: top;
}

.markdown-body tr:last-child td {
  border-bottom: 0;
}

.markdown-body th {
  background: var(--bgColor-muted);
  color: var(--fgColor-default);
  font-weight: 600;
}

.markdown-body tr:hover td {
  background: color-mix(in srgb, var(--fgColor-muted) 4%, transparent);
}

.markdown-body hr {
  margin: var(--base-size-40) 0;
  border: 0;
  border-top: 1px solid var(--borderColor-muted);
}

.heading-anchor {
  margin-left: 7px;
  color: var(--fgColor-muted);
  font-size: 0.8em;
  text-decoration: none;
  opacity: 0;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.toc {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: var(--base-size-32) var(--base-size-16);
  border-left: 1px solid var(--borderColor-muted);
  background: var(--bgColor-default);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--base-size-12);
  color: var(--fgColor-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

#pageToc {
  display: grid;
  gap: 2px;
}

#pageToc a {
  display: block;
  padding: 4px 7px;
  border-left: 2px solid transparent;
  color: var(--fgColor-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-decoration: none;
}

#pageToc a[data-level="3"] {
  padding-left: 18px;
}

#pageToc a:hover,
#pageToc a:focus-visible,
#pageToc a.active {
  color: var(--fgColor-default);
}

#pageToc a.active {
  border-left-color: var(--fgColor-accent);
  color: var(--fgColor-accent);
  font-weight: 600;
}

.loading-card,
.error-card,
.noscript {
  padding: var(--base-size-16);
  border: 1px solid var(--borderColor-default);
  border-radius: var(--radius-medium);
  background: var(--bgColor-muted);
  color: var(--fgColor-muted);
  font-size: var(--text-sm);
}

.loading-card {
  display: flex;
  align-items: center;
  gap: var(--base-size-8);
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fgColor-accent);
  animation: pulse 1.3s ease-in-out infinite;
}

.sidebar-backdrop {
  display: none;
}

.noscript {
  margin: var(--base-size-16);
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 800px) {
  .topbar {
    padding: 0 var(--base-size-12);
    gap: var(--base-size-12);
  }

  .mobile-menu {
    display: inline-grid;
  }

  .topnav {
    display: none;
  }

  .header-actions {
    gap: var(--base-size-8);
  }

  .search-wrap {
    width: min(58vw, 360px);
    min-width: 150px;
  }

  .shortcut-key {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(88vw, 330px);
    height: auto;
    transform: translateX(-102%);
    transition: transform 160ms ease;
    box-shadow: var(--shadow-medium);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 80;
    display: block;
    background: rgba(0, 0, 0, 0.32);
  }

  .content {
    padding: var(--base-size-32) var(--base-size-20) 72px;
  }

  .markdown-body h1 {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    display: none;
  }

  .brand {
    font-size: 0.9rem;
  }

  .search-wrap {
    width: 48vw;
  }

  #search::part(input) {
    font-size: 0.8rem;
  }

  .content {
    padding-inline: var(--base-size-16);
  }
}

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

@media print {
  .topbar,
  .sidebar,
  .toc,
  .sidebar-backdrop,
  .code-copy {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .content {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .markdown-body {
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   Sidebar reset
   Web Awesome's native stylesheet intentionally styles HTML details/summary.
   The documentation navigation owns its visual language, so we neutralize
   those native presentation rules here and keep only their accessible behavior.
   -------------------------------------------------------------------------- */

.sidebar .doc-nav details,
.sidebar .doc-nav details[open] {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.sidebar .doc-nav details::details-content {
  border: 0 !important;
  background: transparent !important;
}

.sidebar .doc-nav summary,
.sidebar .doc-nav details[open] > summary {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

.sidebar .doc-nav summary::marker {
  content: "";
}

.sidebar .doc-nav summary::-webkit-details-marker {
  display: none !important;
}

.sidebar .nav-domain > summary {
  min-height: 36px;
  padding: 7px 8px !important;
  color: var(--fgColor-default) !important;
}

.sidebar .nav-domain > summary:hover,
.sidebar .nav-domain > summary:focus-visible {
  background: color-mix(in srgb, var(--fgColor-muted) 10%, transparent) !important;
}

.sidebar .nav-domain + .nav-domain {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--borderColor-muted) !important;
}

.sidebar .nav-domain-children {
  margin-top: 2px;
  padding-left: 24px;
}

.sidebar .nav-file > summary {
  min-height: 30px;
  padding: 4px 6px !important;
  color: var(--fgColor-muted) !important;
  font-weight: 500;
}

.sidebar .nav-file > summary:hover,
.sidebar .nav-file > summary:focus-visible {
  background: color-mix(in srgb, var(--fgColor-muted) 8%, transparent) !important;
  color: var(--fgColor-default) !important;
}

.sidebar .nav-file-children {
  margin: 1px 0 7px 9px;
  padding-left: 13px;
}

.sidebar .nav-file-title {
  flex: 1;
  min-width: 0;
}

.sidebar .nav-caret {
  flex: 0 0 auto;
  margin-left: auto;
}

.sidebar .nav-file > summary .nav-caret {
  margin-right: 1px;
  margin-left: 0;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 7px 8px;
  color: var(--fgColor-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-home:hover,
.nav-home:focus-visible,
.nav-home.active {
  background: var(--bgColor-accent-muted);
  color: var(--fgColor-accent);
}

.nav-home .ph {
  width: 17px;
  text-align: center;
}

.sidebar {
  scrollbar-color: color-mix(in srgb, var(--fgColor-muted) 42%, transparent) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fgColor-muted) 42%, transparent);
  background-clip: padding-box;
}

html[data-theme="dark"] .sidebar {
  background: #0d1117;
  border-right-color: #21262d;
}

html[data-theme="dark"] .sidebar-heading {
  color: #e6edf3;
}

html[data-theme="dark"] .sidebar .eyebrow {
  color: #7d8590;
}

html[data-theme="dark"] .sidebar .quiet-button {
  color: #8d96a0;
}

html[data-theme="dark"] .sidebar .quiet-button:hover,
html[data-theme="dark"] .sidebar .quiet-button:focus-visible {
  background: #161b22;
  color: #e6edf3;
}

html[data-theme="dark"] .sidebar .nav-domain > summary {
  color: #e6edf3 !important;
}

html[data-theme="dark"] .sidebar .nav-domain-icon,
html[data-theme="dark"] .sidebar .nav-caret {
  color: #7d8590;
}

html[data-theme="dark"] .sidebar .nav-file > summary,
html[data-theme="dark"] .sidebar .file-overview,
html[data-theme="dark"] .sidebar .topic-link,
html[data-theme="dark"] .sidebar .nav-home {
  color: #8d96a0 !important;
}

html[data-theme="dark"] .sidebar .nav-domain > summary:hover,
html[data-theme="dark"] .sidebar .nav-domain > summary:focus-visible,
html[data-theme="dark"] .sidebar .nav-file > summary:hover,
html[data-theme="dark"] .sidebar .nav-file > summary:focus-visible {
  background: #161b22 !important;
  color: #e6edf3 !important;
}

html[data-theme="dark"] .sidebar .file-overview:hover,
html[data-theme="dark"] .sidebar .file-overview:focus-visible,
html[data-theme="dark"] .sidebar .topic-link:hover,
html[data-theme="dark"] .sidebar .topic-link:focus-visible,
html[data-theme="dark"] .sidebar .file-overview.active,
html[data-theme="dark"] .sidebar .topic-link.active,
html[data-theme="dark"] .sidebar .nav-home:hover,
html[data-theme="dark"] .sidebar .nav-home:focus-visible,
html[data-theme="dark"] .sidebar .nav-home.active {
  background: #1f6feb26 !important;
  color: #58a6ff !important;
}

html[data-theme="dark"] .sidebar .nav-file-children::before {
  background: #30363d;
}

html[data-theme="dark"] .sidebar .nav-domain + .nav-domain {
  border-top-color: #21262d !important;
}
