:root {
  --site-topbar-height: 3.25rem;
  --site-fab-size: 3rem;
  --site-chrome-bg: #1a1f24;
  --site-chrome-fg: #f4f6f8;
  --site-accent: #3d9a6a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.site-body {
  height: 100%;
  margin: 0;
}

.site-body {
  display: flex;
  flex-direction: column;
  background: #0f1215;
  color: var(--site-chrome-fg);
  overflow: hidden;
}

.site-topbar {
  flex: 0 0 var(--site-topbar-height);
  height: var(--site-topbar-height);
  padding: 0 1rem;
  background: var(--site-chrome-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1030;
}

.site-logo {
  color: var(--site-chrome-fg);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--site-accent);
}

.site-topbar .site-logo.site-tab-btn.active {
  box-shadow: none;
  color: var(--site-chrome-fg);
}

.site-topbar .nav-link,
.offcanvas .nav-link {
  color: rgba(244, 246, 248, 0.85);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
}

.site-topbar .nav-link:hover,
.offcanvas .nav-link:hover,
.site-topbar .nav-link.active,
.offcanvas .nav-link.active {
  color: #fff;
}

.site-topbar .site-tab-btn.active,
.offcanvas .site-tab-btn.active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--site-accent);
}

.site-topbar .dropdown-menu,
.offcanvas .dropdown-menu {
  --bs-dropdown-bg: #243038;
  --bs-dropdown-link-color: var(--site-chrome-fg);
  --bs-dropdown-link-hover-bg: #2f3b44;
  --bs-dropdown-link-active-bg: var(--site-accent);
  --bs-dropdown-link-active-color: #fff;
}

.site-main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.site-panel {
  position: absolute;
  inset: 0;
}

.site-panel.d-none,
.site-panel[hidden] {
  display: none !important;
}

.site-lounge {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.site-doc-content {
  height: 100%;
  overflow: auto;
  color: var(--site-chrome-fg);
}

.site-doc-content a {
  color: #7dcea0;
}

.site-doc-content .help-toc ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.site-doc-content table {
  width: 100%;
  margin-bottom: 1rem;
}

.site-doc-content th,
.site-doc-content td {
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-doc-content pre,
.site-doc-content code {
  color: #e8eef2;
}

.site-doc-content pre {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  overflow: auto;
}

.site-fab {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: var(--site-fab-size);
  height: var(--site-fab-size);
  border: 0;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 1040;
  touch-action: none;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-fab:active {
  cursor: grabbing;
}

.site-fab-icon,
.site-fab-icon::before,
.site-fab-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-fab-icon {
  position: relative;
}

.site-fab-icon::before,
.site-fab-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-fab-icon::before {
  top: -6px;
}

.site-fab-icon::after {
  top: 6px;
}

#site-menu {
  --bs-offcanvas-bg: var(--site-chrome-bg);
  --bs-offcanvas-color: var(--site-chrome-fg);
}

#site-menu .navbar-nav {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
}

#site-menu .nav-link {
  text-align: left;
}

@media (max-width: 767.98px) {
  .site-main {
    height: 100%;
  }
}
