:root {
  --vp-side-width: var(--side-nav-fixed-width);
  --primary-color: #3b82f6;
  --primary-dark-color: #1e40af;
  --primary-light-color: #60a5fa;
  --page-background-color: #f8fafc;
  --page-foreground-color: #1e2937;
  --page-secondary-foreground-color: #64748b;
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spacing-small: 6px;
  --spacing-medium: 12px;
  --spacing-large: 20px;
  --spacing-xlarge: 140px;
  --border-radius-small: 6px;
  --border-radius-medium: 10px;
  --border-radius-large: 12px;
  --content-maxwidth: auto;
  --fragment-background: #f1f5f9;
  --fragment-foreground: #334155;
  --box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-color: #242424;
  --handle-icon: url(data: image/png;
	base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAMCAQAAADitaTfAAAAFUlEQVQIW2O++j+bkWUTAwZgJiwBAB9kCOy+u0d3AAAAAElFTkSuQmCC);
  --side-nav-fixed-width: 280px;
  --top-height: 56px;
  --bottom-height: 36px;
  --searchbar-width: 240px;
}

html:not(.dark-mode) {
  --font-family-monospace: ui-monospace, Menlo, Consolas, monospace;
}

html {
  overflow: hidden;
}

body, .PageDoc {
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#container {
  grid-template-columns: auto !important;
}

#doc-content {
  height: calc(100vh - var(--top-height) - var(--bottom-height)) !important;
  margin-top: var(--top-height);
  padding-top: 0 !important;
  margin-left: var(--vp-side-width);
  transition: width 0.15s ease, margin-left 0.15s ease;
}

.memitem {
  margin: 2rem 0 1.5rem 0;
  padding: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
}

.memtitle,h2.memtitle,.memtitle h2 {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  padding: 1.1rem 0 0.75rem 0 !important;
  margin: 0 0 1rem 0 !important;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-foreground-color);
  text-decoration: none !important;
  box-shadow: none !important;
}

.memproto {
  background: var(--fragment-background) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 0.85rem 1.1rem !important;
  margin: 0 0 0 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.memtitle::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 4px;
  background: transparent;
  border-radius: 9999px;
}

h2.memtitle {
  box-shadow: none;
}

.memtitle .permalink,.memtitle a.permalink,.memtitle .memtemplate,.memtitle .memname,.memtitle table,.memtitle td,.memtitle tr {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0;
  height: 0;
  overflow: hidden;
}

.memdoc {
  padding: 0 0 1.5rem 0;
  margin: 0;
  border: none;
  background: transparent;
  line-height: 1.65;
}

html.dark-mode .memtitle {
  border-bottom-color: rgba(148, 163, 184, 0.3) !important;
}

html.dark-mode .memtitle::before {
  background: var(--primary-color);
}

.paramname {
  color: var(--page-foreground-color);
}

.paramname em {
  color: var(--primary-color);
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

#projectbrief {
    font-family: inherit;
    font-size: 60%;
}

#projectbriefContainer {
    vertical-align: top;
    margin-top: -8px;
}

#nav-tree a {
  border-radius: var(--border-radius-small);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

table.doxtable {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

div.fragment {
  border-radius: var(--border-radius-medium);
  border: none;
}

.primary-button {
  border-radius: var(--border-radius-medium);
  transition: all 0.2s ease;
}

#projectname {
  white-space: revert;
}

.arrow {
  color: var(--primary-color);
  font-size: 80%;
  font-family: var(--font-family);
  text-align: left;
}

#nav-sync {
  visibility: hidden;
}

div.header .title {
  font-size: 2.25em;
}

div.groupHeader {
  margin-left: 0;
  margin-bottom: 1em;
}

div.caption {
  font-weight: normal;
  margin-top: 0.5em;
}

#nav-path {
    height: var(--bottom-height);
    left:0;
}

#nav-path address {
  border-top: 1px solid var(--separator-color);
  border-bottom: 1px solid var(--separator-color);
  background-color: var(--page-background-color);
  color: var(--page-secondary-foreground-color);
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-size: small;
  text-align: center;
}

dl.citelist dt {
  font-weight: normal;
  font-size: var(--page-font-size);
  line-height: var(--content-line-height);
  color: var(--page-foreground-color);
  padding-top: 0.4em;
}

.demo {
  display: block;
  width: 75%;
  height: 60vh;
  border: 1px solid #dedede;
  border-radius: 3px;
}

div.toc h3,div.toc li {
  font-family: var(--font-family);
}

.section_buttons:not(:empty) {
  margin-top: 0;
}

.section_buttons table.markdownTable {
  width: auto;
}

table.markdownTable {
  margin-left: 28px;
  margin-right: 28px;
}

span.mlabel {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}

span.mlabel.private {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

html.dark-mode span.mlabel.private {
  background: #7f1d1d;
  color: #fda4af;
  border-color: #991b1b;
}

span.mlabel.protected {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

html.dark-mode span.mlabel.protected {
  background: #78350f;
  color: #fcd34d;
  border-color: #92400e;
}

span.mlabel.public {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-color: rgba(59, 130, 246, 0.3);
}

html.dark-mode span.mlabel.public {
  background: rgba(96, 165, 250, 0.15);
  color: var(--primary-color);
}

span.mlabel.static,span.mlabel.inline,span.mlabel.virtual,span.mlabel.const,span.mlabel.explicit,span.mlabel.mutable {
  background: rgba(148, 163, 184, 0.1);
  color: var(--page-secondary-foreground-color);
  border-color: rgba(148, 163, 184, 0.25);
  font-weight: 500;
  text-transform: none;
}

html.dark-mode span.mlabel.static,html.dark-mode span.mlabel.inline,html.dark-mode span.mlabel.virtual,html.dark-mode span.mlabel.const {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
}

.title {
  font-size: 3.2rem;
  line-height: 1.05;
  margin: 0 0 1rem 0;
  padding: 0;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--primary-color);
  padding-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2.groupheader {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--page-foreground-color);
  margin: 0 0 1rem 0;
  padding-bottom: 8px;
}

span.name {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--primary-color);
  padding-bottom: 8px;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

span.text {
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--page-secondary-foreground-color);
  margin: 0 0 2rem 0;
  max-width: 680px;
}

span.tagline {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--page-secondary-foreground-color);
  opacity: 0.75;
  margin: 0.25rem 0 2.5rem 0;
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  margin: -6px;
  padding-top: 24px;
}

.action {
  padding: 6px;
  flex-shrink: 0;
}

.button {
  display: inline-block;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}

.button:active {
  transition: color 0.1s, border-color 0.1s, background-color 0.1s;
}

.button.medium {
  border-radius: 20px;
  padding: 0 20px;
  line-height: 38px;
  font-size: 14px;
}

.button.big {
  border-radius: 24px;
  padding: 0 24px;
  line-height: 46px;
  font-size: 16px;
}

.button.brand {
  border-color: var(--primary-color);
  color: var(--page-foreground-color) !important;
  background-color: var(--primary-color);
  text-decoration: none;
}

.button.brand:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light-color);
  text-decoration: none;
}

.button.brand:active {
  border-color: var(--primary-color);
  background-color: var(--primary-dark-color);
  text-decoration: none;
}

.button.alt {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background-color: transparent;
  text-decoration: none;
}

.button.alt:hover {
  border-color: var(--primary-color);
  color: var(--page-foreground-color) !important;
  background-color: var(--primary-light-color);
  text-decoration: none;
}

.button.alt:active {
  border-color: var(--primary-color);
  color: var(--page-foreground-color) !important;
  background-color: var(--primary-light-color);
  text-decoration: none;
}

#top {
  display: none !important;
}

#vp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--page-background);
  color: var(--primary-text-color);
  border-bottom: 1px solid var(--separator-color);
  z-index: 9999;
}

.vp-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-logo {
  height: 24px;
}

.vp-title {
  font-weight: 600;
}

.vp-center {
  flex: 1;
  display: flex;
  margin-left: 12px;
  margin-right: 12px;
  justify-content: center;
}

#vp-search {
  width: 400px;
  max-width: 60vw;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.vp-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.vp-nav a {
  text-decoration: none;
  color: inherit;
}

.vp-right {
  margin-left: 12px;
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

#nav-tree.vp-hidden {
  display: none !important;
}

#nav-tree {
  width: var(--side-nav-fixed-width);
  transition: width 0.15s ease, margin-left 0.15s ease;
  overflow: hidden;
  margin-top: 0;
  position: relative;
}

#nav-tree, #side-nav {
    height: calc(100vh - var(--top-height) - var(--bottom-height)) !important;
}

#nav-tree-contents {
  margin-top: 18px;
}

body.vp-sidebar-collapsed {
  --vp-side-width: 0px;
}

body.vp-sidebar-collapsed #nav-tree {
  width: 0 !important;
}

body.vp-sidebar-collapsed #doc-content {
  margin-left: 0 !important;
  width: 100%;
}

#vp-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  margin-right: -5px;
  height: calc(100vh - 56px);
  cursor: col-resize;
  z-index: 10000;
  background: transparent;
}

#vp-resizer:hover {
  background: var(--separator-color);
}

body.vp-resizing #vp-resizer {
  background: var(--separator-color);
}

body.vp-resizing,body.vp-resizing * {
  user-select: none !important;
  cursor: col-resize !important;
}

#MSearchBox {
  width: var(--searchbar-width) !important;
}

#MSearchField {
  width: var(--searchbar-width) - calc(2 * var(--spacing-medium)) - 66px - var(--searchbar-height);
}

.vp-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--primary-text-color);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.vp-icon-button:hover {
  background: var(--separator-color);
}

.vp-icon-button svg {
  width: 20px;
  height: 20px;
}

#vp-header .vp-icon-button {
  color: var(--primary-text-color) !important;
}
