/* CSS for UI elements (a.k.a. chrome) */

@import "variables.css";

html {
  background-color: var(--bg);
  scrollbar-color: var(--scrollbar) var(--bg);
}
#searchresults a,
.content a:link,
a:visited,
a > .hljs {
  color: var(--links);
}

/*
  body-container is necessary because mobile browsers don't seem to like
  overflow-x on the body tag when there is a <meta name="viewport"> tag.
*/
#body-container {
  /*
      This is used when the sidebar pushes the body content off the side of
      the screen on small screens. Without it, dragging on mobile Safari
      will want to reposition the viewport in a weird way.
  */
  overflow-x: clip;
}

/* Menu Bar */

#menu-bar,
#menu-bar-hover-placeholder {
  z-index: 101;
  margin: auto calc(0px - var(--page-padding));
}
#menu-bar {
  padding: 8px 16px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  background-color: var(--bg);
  border-block-end-color: var(--bg);
  border-block-end-width: 1px;
  border-block-end-style: solid;
}
#menu-bar.sticky,
.js #menu-bar-hover-placeholder:hover + #menu-bar,
.js #menu-bar:hover,
.js.sidebar-visible #menu-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0 !important;
}
#menu-bar-hover-placeholder {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  height: var(--menu-bar-height);
}
#menu-bar.bordered {
  border-block-end-color: var(--divider);
}
#menu-bar i,
#menu-bar .icon-button {
  position: relative;
  height: 3rem;
  width: 3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.5s;
}
#menu-bar .icon-button:hover {
  background-color: var(--icon-btn-bg-hover);
}

#menu-bar {
  border-bottom: 1px solid var(--slate-800) !important;
  background-color: rgba(21, 23, 24, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@media only screen and (max-width: 420px) {
  #menu-bar i,
  #menu-bar .icon-button {
    padding: 0 5px;
  }
}

@media only screen and (max-width: 650px) {
  #menu-bar {
    padding: 8px 8px;
  }
}

.icon-button {
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}
.icon-button i {
  margin: 0;
}

.right-buttons {
  display: flex;
  align-items: center;
}
.right-buttons a {
  text-decoration: none;
}

.left-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.no-js .left-buttons button {
  display: none;
}

.menu-title {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  overflow: hidden;
}
.js .menu-title {
  cursor: pointer;
}

.menu-bar,
.menu-bar:visited,
.nav-chapters,
.nav-chapters:visited,
.mobile-nav-chapters,
.mobile-nav-chapters:visited,
.menu-bar .icon-button,
.menu-bar a i {
  color: var(--icons);
}

.menu-bar i:hover,
.menu-bar .icon-button:hover,
.nav-chapters:hover,
.mobile-nav-chapters i:hover {
  color: var(--icons-hover);
}

/* Nav Icons */

.nav-chapters {
  font-size: 2.5em;
  text-align: center;
  text-decoration: none;

  position: fixed;
  top: 0;
  bottom: 0;
  margin: 0;
  max-width: 150px;
  min-width: 90px;

  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;

  transition:
    color 0.5s,
    background-color 0.5s;
}

.nav-chapters:hover {
  text-decoration: none;
  background-color: rgba(var(--rgb-slate-700), 0.3);
  transition:
    background-color 0.15s,
    color 0.15s;
}

.nav-wrapper {
  margin-block-start: 30px;
  display: none;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.mobile-nav-chapters {
  font-size: 2.5em;
  text-align: center;
  text-decoration: none;
  width: 90px;
  border-radius: 5px;
  background-color: var(--sidebar-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  gap: var(--sp-2);
  font-size: 13px;
  background: rgba(var(--rgb-slate-700), 0.2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--round-l);
  text-decoration: none !important;
  color: var(--slate-400) !important;
  box-shadow: inset 0 1px #ffffff0d;
}

.mobile-nav-chapters:hover {
  color: var(--slate-300) !important;
  background: rgba(var(--rgb-slate-700), 0.5);
  text-decoration: none !important;
}

/* Only Firefox supports flow-relative values */
.previous {
  float: left;
  text-decoration: none !important;
}
[dir="rtl"] .previous {
  float: right;
}

/* Only Firefox supports flow-relative values */
.next {
  float: right;
  text-decoration: none !important;
  right: var(--page-padding);
}
[dir="rtl"] .next {
  float: left;
  right: unset;
  left: var(--page-padding);
}

/* Use the correct buttons for RTL layouts*/
[dir="rtl"] .previous i.fa-angle-left:before {
  content: "\f105";
}
[dir="rtl"] .next i.fa-angle-right:before {
  content: "\f104";
}

@media only screen and (max-width: 1080px) {
  .nav-wide-wrapper {
    display: none;
  }
  .nav-wrapper {
    display: block;
  }
}

/* sidebar-visible */
@media only screen and (max-width: 1380px) {
  #sidebar-toggle-anchor:checked ~ .page-wrapper .nav-wide-wrapper {
    display: none;
  }
  #sidebar-toggle-anchor:checked ~ .page-wrapper .nav-wrapper {
    display: block;
  }
}

/* Inline code */

:not(pre) > .hljs {
  display: inline;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

:not(pre):not(a) > .hljs {
  color: var(--inline-code-color);
  overflow-x: initial;
}

a:hover > .hljs {
  text-decoration: underline;
}

pre {
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  overflow-x: auto;
  border: 1px solid rgba(var(--rgb-slate-800), 1);
  border-radius: var(--round-m);
  position: relative;
  background: rgba(var(--rgb-slate-700), 0.1);
}
pre code.hljs {
  background: transparent !important;
}
pre code span {
  line-height: 1.7;
}

pre > .buttons {
  position: absolute;
  z-index: 100;
  right: 0px;
  top: 2px;
  margin: 0px;
  padding: 2px 0px;

  color: var(--sidebar-fg);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.1s linear,
    opacity 0.1s linear;
}
pre:hover > .buttons {
  visibility: visible;
  opacity: 1;
}
pre > .buttons :hover {
  color: var(--sidebar-active);
  border-color: var(--border-hover);
  background-color: var(--theme-hover);
}
pre > .buttons i {
  margin-inline-start: 8px;
}
pre > .buttons button {
  cursor: inherit;
  margin: 0 4px;
  height: 26px;
  width: 26px;
  font-size: 14px;
  border-style: solid;
  border-width: 1px;
  border-radius: 4px;
  border-color: var(--border);
  background-color: var(--theme-popup-bg);
  transition: 100ms;
  transition-property: color, border-color, background-color;
  color: var(--icons);
}

pre > .playground {
  border: none;
  margin: 0;
  box-shadow: none;
  /* HACK: This serves to visually hide nested <pre> elements in "playground" code snippets.
  A more robust solution would involve modifying the rendered HTML. */
}

@media (pointer: coarse) {
  pre > .buttons button {
    /* On mobile, make it easier to tap buttons. */
    padding: 0.3rem 1rem;
  }

  .sidebar-resize-indicator {
    /* Hide resize indicator on devices with limited accuracy */
    display: none;
  }
}
pre > code {
  display: block;
  padding: 1rem;
}

/* FIXME: ACE editors overlap their buttons because ACE does absolute
   positioning within the code block which breaks padding. The only solution I
   can think of is to move the padding to the outer pre tag (or insert a div
   wrapper), but that would require fixing a whole bunch of CSS rules.
*/
.hljs.ace_editor {
  padding: 0rem 0rem;
}

pre > .result {
  margin-block-start: 10px;
}

/* Search */

#searchresults a {
  text-decoration: none;
}

mark {
  border-radius: 2px;
  padding-block-start: 0;
  padding-block-end: 1px;
  padding-inline-start: 3px;
  padding-inline-end: 3px;
  margin-block-start: 0;
  margin-block-end: -1px;
  margin-inline-start: -3px;
  margin-inline-end: -3px;
  background-color: var(--search-mark-bg);
  transition: background-color 300ms linear;
  cursor: pointer;
  display: inline-block;
}

mark.fade-out {
  background-color: rgba(0, 0, 0, 0) !important;
  cursor: auto;
}

.searchbar-outer {
  margin-inline-start: auto;
  margin-inline-end: auto;
  max-width: var(--content-max-width);
}

#searchbar {
  width: 100%;
  margin-block-start: 20px;
  margin-block-end: 0;
  margin-inline-start: auto;
  margin-inline-end: auto;
  color: var(--searchbar-fg);
  -moz-column-gap: 2px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(var(--rgb-slate-700), 0.5);
  border-radius: var(--round-m);
  background-color: #00071a;
  justify-content: center;
  align-items: center;
  column-gap: 2px;
  display: flex;
  box-shadow: 0 0 5px #00000080;
  border-radius: var(--round-full);
  outline-offset: 1px;
}
#searchbar:focus,
#searchbar.active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  outline-offset: 1px;
  outline-width: 1px;
  outline-style: solid;
  outline-color: var(--sky-400) /* var(--cyan-500) */;
}

.searchresults-header {
  font-weight: bold;
  font-size: 1em;
  padding-block-start: 18px;
  padding-block-end: 0;
  padding-inline-start: 5px;
  padding-inline-end: 0;
  color: var(--searchresults-header-fg);
}

.searchresults-outer {
  margin-inline-start: auto;
  margin-inline-end: auto;
  max-width: var(--content-max-width);
  border-block-end: 1px dashed var(--searchresults-border-color);
}

ul#searchresults {
  list-style: none;
  padding-inline-start: 20px;
}
ul#searchresults li {
  margin: 10px 0px;
  padding: 2px;
  border-radius: 2px;
}
ul#searchresults li.focus {
  background-color: var(--searchresults-li-bg);
}
ul#searchresults span.teaser {
  display: block;
  clear: both;
  margin-block-start: 5px;
  margin-block-end: 0;
  margin-inline-start: 20px;
  margin-inline-end: 0;
  font-size: 0.8em;
}
ul#searchresults span.teaser em {
  font-weight: 500;
  font-style: normal;
  background-color: var(--rose-900);
  color: var(--sky-100);
}

mark {
  background-color: var(--rose-900);
  color: var(--sky-100);
}

/* Sidebar */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  font-size: 0.875em;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-fg);
  border-right: 1px solid;
  border-color: var(--divider);
  background-color: transparent;
}
[dir="rtl"] .sidebar {
  left: unset;
  right: 0;
}
.sidebar-resizing {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.no-js .sidebar,
.js:not(.sidebar-resizing) .sidebar {
  transition: transform 0.3s; /* Animation: slide away */
}
.sidebar code {
  line-height: 2em;
}
.sidebar .sidebar-scrollbox {
  overflow-y: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px 12px 24px;
  padding-bottom: 32px;
}
.sidebar .sidebar-resize-handle {
  position: absolute;
  cursor: col-resize;
  width: 0;
  right: calc(var(--sidebar-resize-indicator-width) * -1);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.sidebar-resize-handle .sidebar-resize-indicator {
  width: 100%;
  height: 12px;
  background-color: var(--icons);
  margin-inline-start: var(--sidebar-resize-indicator-space);
}

[dir="rtl"] .sidebar .sidebar-resize-handle {
  left: calc(var(--sidebar-resize-indicator-width) * -1);
  right: unset;
}
.js .sidebar .sidebar-resize-handle {
  cursor: col-resize;
  width: calc(var(--sidebar-resize-indicator-width) - var(--sidebar-resize-indicator-space));
}
/* sidebar-hidden */
#sidebar-toggle-anchor:not(:checked) ~ .sidebar {
  transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
  z-index: -1;
}
[dir="rtl"] #sidebar-toggle-anchor:not(:checked) ~ .sidebar {
  transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
}
.sidebar::-webkit-scrollbar {
  background: var(--sidebar-bg);
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
}

/* sidebar-visible */
#sidebar-toggle-anchor:checked ~ .page-wrapper {
  transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
}
[dir="rtl"] #sidebar-toggle-anchor:checked ~ .page-wrapper {
  transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
}
@media only screen and (min-width: 620px) {
  #sidebar-toggle-anchor:checked ~ .page-wrapper {
    transform: none;
    margin-inline-start: var(--sidebar-width);
  }
  [dir="rtl"] #sidebar-toggle-anchor:checked ~ .page-wrapper {
    transform: none;
  }
}

.chapter {
  list-style: none outside none;
  padding-inline-start: 0;
  line-height: 2.2em;
  margin: 0;
}

.chapter ol {
  width: 100%;
}

.chapter li {
  display: flex;
  color: var(--sidebar-non-existent);
  position: relative;
}
.chapter li a {
  display: block;
  padding: 0;
  text-decoration: none;
  color: var(--sidebar-fg);
}

.chapter li.expanded > a {
  color: var(--orange-200);
  font-weight: 600;
}

.chapter li a:hover {
  color: var(--sidebar-active);
}

.chapter li a.active {
  color: var(--sidebar-active);
  background-color: var(--sidebar-active-bg);
}

.chapter li > a.toggle {
  position: absolute;
  cursor: pointer;
  display: block;
  margin-inline-start: auto;
  padding: 0 10px;
  user-select: none;
  opacity: 0.5;
  width: 20px;
  height: 20px;
  font-weight: 200;
  left: -4px;
  top: 9px;
}

.chapter li > a.toggle:hover {
  opacity: 0.8;
  background-color: transparent !important;
}

.chapter li > a.toggle div {
  transition: transform 0.1s;
}

/* collapse the section */
.chapter li:not(.expanded) + li > ol {
  display: none;
  border-left: 1px solid transparent;
}

/* collapse the section */
.chapter li.expanded + li > ol {
  border-left: 1px solid rgba(var(--rgb-slate-700), 0.7);
}

.chapter li.chapter-item {
  line-height: 1.5em;
  margin-block-start: 0.6em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter li.expanded > a.toggle div {
  /* transform: rotate(90deg) translateX(-2px); */
  transform: rotate(90deg) translateX(-7px) translateY(-50%);
}

.spacer {
  width: 100%;
  height: 3px;
  margin: 5px 0px;
}
.chapter .spacer {
  background-color: var(--divider);
}

@media (-moz-touch-enabled: 1), (pointer: coarse) {
  .chapter li a {
    padding: 5px 0;
  }
  .spacer {
    margin: 10px 0;
  }
}

.section {
  list-style: none outside none;
  padding-inline-start: 20px;
  line-height: 1.9em;
}

.chapter li ol.section {
  margin-inline-start: 15px;
  padding-inline-start: 5px;
}

/* Theme Menu Popup */

.theme-popup {
  position: absolute;
  left: 32px;
  top: calc(var(--menu-bar-height) - 12px);
  z-index: 1000;
  border-radius: 4px;
  font-size: 1.4rem;
  color: var(--fg);
  background: var(--theme-popup-bg);
  border: 1px solid var(--theme-popup-border);
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  /* Don't let the children's background extend past the rounded corners. */
  overflow: hidden;
}
[dir="rtl"] .theme-popup {
  left: unset;
  right: 10px;
}
.theme-popup .default {
  color: var(--icons);
}
.theme-popup .theme {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 2px 24px;
  line-height: 25px;
  white-space: nowrap;
  text-align: start;
  cursor: pointer;
  color: inherit;
  background: inherit;
  font-size: inherit;
  font-family: inherit;
}
.theme-popup .theme:hover {
  background-color: var(--theme-hover);
}

.theme-selected::before {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  display: inline-block;
  content: "✓";
  margin-inline-start: -20px;
  width: 20px;
}

.chapter li.chapter-item {
  margin-block-start: 0;
  padding-top: var(--sp-0-5);
}

.chapter li.part-title {
  color: rgba(var(--rgb-orange-50), 0.88);
  font-size: 16px;
  margin: var(--sp-4) 0 var(--sp-1);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02rem;
}

.chapter li a {
  width: 100%;
  padding: 4px 8px 4px 22px;
  border-radius: var(--round-full);
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02rem;
}

.chapter li a:not(.active):hover {
  color: var(--orange-200);
  background: rgba(var(--rgb-blue-400), 0.1);
}

.chapter li a.active {
  color: var(--orange-200);
  background: rgba(var(--rgb-blue-400), 0.1);
  font-weight: 600;
}

.chapter ol,
.chapter ul {
  margin-top: 0 !important;
}

a[role="button"].app-btn {
  gap: var(--sp-1-5);
  letter-spacing: 0.02em;
  user-select: none;
  outline: none;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid var(--btn-border-color);
  gap: var(--sp-1-5);
  padding: var(--sp-2) var(--sp-2-5) var(--sp-2) var(--sp-4);
  border-radius: var(--round-full);
  background: #000
    linear-gradient(to top, rgba(var(--rgb-blue-500), 0.45), rgba(var(--rgb-sky-500), 0.5) 86%)
    padding-box;
  color: rgba(var(--rgb-sky-100), 0.94);
  border-color: #0000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff09;
  font-weight: 500;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

a[role="button"].app-btn:hover {
  background: #000
    linear-gradient(to top, rgba(var(--rgb-blue-500), 0.55), rgba(var(--rgb-sky-500), 0.6) 86%)
    padding-box;
}

a[role="button"].app-btn i.fa {
  width: max-content !important;
  height: max-content !important;
  padding: 2px !important;
  font-size: 14px;
  line-height: 0;
  color: inherit !important;
}

@media only screen and (max-width: 650px) {
  .right-buttons [role="button"].app-btn {
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  }
}

a[role="button"].app-btn .lname {
  color: var(--slate-100);
}

.logo {
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

@media only screen and (max-width: 650px) {
  .logo {
    transform: scale(0.9);
  }
}

.logo-blk {
  color: var(--slate-700);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.logo-title {
  background: -webkit-linear-gradient(
    90deg,
    var(--orange-200),
    var(--sky-300),
    var(--purple-xx-200)
  );
  background: linear-gradient(90deg, var(--orange-200), var(--sky-300), var(--purple-xx-200));
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow: 0 1px #0000001a;
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
  font-size: 18px;
  padding: 0;
  margin: 0;
}

.logo-sub {
  border-radius: var(--round-full);
  justify-content: center;
  align-items: center;
  padding: 1px 6px;
  display: flex;
  box-shadow: inset 0 1px #ffffff0d;
  background: rgba(var(--rgb-pink-600), 0.35);
}

.logo-sub-title {
  text-align: center;
  color: var(--sky-100);
  text-shadow: 0 1px #00000019;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04rem;
}

@media only screen and (max-width: 650px) {
  .logo-sub-title {
    font-size: 10px;
  }
}

.main-footer {
  position: absolute;
  bottom: 0;
  margin: auto calc(0px - var(--page-padding));
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-top: 1px solid var(--slate-800);
  padding: var(--sp-5) var(--sp-1) var(--sp-2);
  gap: var(--sp-1);
  font-size: 12px;
  color: var(--slate-400);
  background: var(--bg-default);
  overflow: hidden;
}

.divider {
  background: linear-gradient(
    90deg,
    rgba(var(--rgb-slate-900), 0.2),
    var(--slate-400),
    rgba(var(--rgb-slate-900), 0.2)
  );
  border: none;
  height: 1px;
  margin: 0.5rem 0;
  width: 420px;
  max-width: 95%;
}
.divider.small {
  width: 280px;
  max-width: 85%;
}
.copyright {
  width: 100%;
  text-align: center;
  color: var(--slate-400);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
}

.copyright > .social {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

@media only screen and (max-width: 900px) {
  .copyright {
    flex-direction: column;
    gap: 12px;
  }
}

a.social {
  padding-left: var(--sp-1);
  color: var(--slate-300);
}
a.social:hover {
  color: var(--purple-xx-200);
}
a.social {
  color: var(--slate-300);
}
a.social.x:hover {
  color: var(--sky-300);
}
a.social.linkedin:hover {
  color: var(--sky-400);
}
a.social.youtube:hover {
  color: rgb(234, 51, 35);
}
a.social.github:hover {
  color: var(--slate-50);
}

@media only screen and (max-width: 1000px) {
  .main-footer {
    flex-direction: column;
    gap: 4px;
  }
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
}
.footer-links a {
  font-size: 11.5px;
  letter-spacing: 0.02rem;
  color: var(--slate-300);
  font-weight: 500;
  text-decoration: none !important;
  padding: 4px 8px;
  background-color: rgba(var(--rgb-sky-300), 0.08);
  border-radius: var(--round-m);
  box-shadow: inset 0 1px #ffffff0d;
}
.footer-links a:hover {
  color: var(--slate-200);
  background-color: rgba(var(--rgb-sky-300), 0.16);
}

#search-toggle,
#sidebar-toggle {
  background: rgba(var(--rgb-slate-700), 0.2) padding-box;
  border-radius: var(--round-full);
  box-shadow: inset 0 1px #ffffff09;
  color: var(--slate-300);
  font-size: 13px;
}

#search-toggle:hover,
#sidebar-toggle:hover {
  background: var(--blue-900) padding-box !important;
}

#menu-bar i,
#menu-bar .icon-button {
  width: 30px;
  height: 30px;
  padding: 4px;
}
.search-txt {
  padding-right: 6px;
}

#menu-bar #search-toggle {
  padding: 4px 8px;
  width: 86px;
}

@media only screen and (max-width: 650px) {
  .search-txt {
    display: none;
  }
  #menu-bar #search-toggle {
    padding: 4px;
    width: 30px;
  }
}

/* docs */
.l-doc {
  padding: var(--sp-0-5) 0;
  /* min-width: 256px; */
  /* max-height: 512px; */
  /* overflow-y: auto; */
  letter-spacing: 0.01rem;
}

.l-doc del {
  background-color: var(--red-900);
}

.l-doc del ins {
  background-color: var(--lime-900);
}

.l-doc h1,
.l-doc h2,
.l-doc h3,
.l-doc h4,
.l-doc h5,
.l-doc h6 {
  color: var(--sky-300);
  font-weight: 500;
  margin: 0;
}

.l-doc .examples h1,
.l-doc .examples h2,
.l-doc .examples h3,
.l-doc .examples h4,
.l-doc .examples h5,
.l-doc .examples h6 {
  color: var(--indigo-300);
  /* font-style: italic; */
  margin: 0;
}

.l-doc .examples h1 a,
.l-doc .examples h2 a,
.l-doc .examples h3 a,
.l-doc .examples h4 a,
.l-doc .examples h5 a,
.l-doc .examples h6 a {
  color: var(--blue-300) !important;
}

.l-doc h1 {
  font-weight: 600;
  font-style: normal;
  /* font-style: italic; */
}

.l-doc header > h1 > a > .dim {
  color: var(--slate-500);
  font-style: italic;
  font-size: 16px;
}

.l-doc header > h1 {
  font-weight: 600;
  color: var(--orange-200);
  font-size: 18px;
  line-height: 1.7;
}

.l-doc h6 {
  font-size: 14px; /* 10px */
  line-height: 1.7;
}
.l-doc h5 {
  font-size: 15px; /* 11px */
  line-height: 1.7;
}
.l-doc h4 {
  font-size: 16px; /* 12px */
  line-height: 1.7;
}
.l-doc h3 {
  font-size: 17px; /* 14px */
  line-height: 1.7;
}
.l-doc h2 {
  font-size: 18; /* 16px */
  line-height: 1.7;
}
.l-doc h1 {
  font-size: 18; /* 18px */
  line-height: 1.7;
}

.l-doc h1,
.l-doc h2 {
  margin-top: var(--sp-2);
  margin-bottom: 0;
}

.l-doc p,
.l-doc ul,
.l-doc ol,
.l-doc li {
  color: var(--slate-300);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;
  margin: 0;
  padding: 0;
  letter-spacing: 0.015rem;
}

.l-doc .desc ul li > p,
.l-doc .desc ol li > p {
  display: inline;
}

.l-doc em {
  color: var(--orange-200);
}

/* .l-doc strong,
.l-doc b {
  color: var(--slate-300);
  font-weight: 600;
} */

.l-doc a {
  text-decoration: underline;
}

.l-doc ul {
  list-style-type: disc;
  /* list-style-position: inside; */
  padding-left: var(--sp-1);
}

.l-doc ol {
  list-style-type: decimal;
  /* list-style-position: inside; */
  padding-left: var(--sp-1);
}

/* .l-doc ol > li {
  padding-left: var(--sp-1-5);
} */

.l-doc table {
  width: max-content;
  min-width: 300px;
  border-radius: var(--round-m);
  margin-top: var(--sp-2);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  font-size: 1.3rem;
}

.l-doc table thead,
.l-doc table tfoot {
  position: unset;
}

.l-doc table th {
  text-align: center;
  padding: var(--sp-1-5) var(--sp-3);
  font-size: 12.5px;
  font-weight: 500;
}

.l-doc table td {
  font-size: 12.5px; /* 11px */
  line-height: 1.4; /* 16px */
  padding: var(--sp-1-5) var(--sp-3);
  text-align: center;
}

.l-doc table thead {
  border-radius: 0 !important;
}

/** First column is the type **/
/* .l-doc table tbody tr:first-child td {
  color: var(--teal-300);
} */

/** Hide the dash row line after the column types row **/
/* .l-doc table tbody tr:nth-child(2) {
  display: none;
} */

.l-doc thead tr:first-child th:first-child,
.l-doc thead tr:last-child th:first-child {
  border-radius: 0 !important;
}

:is(.l-doc :not(pre) code:not(.hljs)),
:not(pre) > .hljs {
  padding: 1px var(--sp-2);
  border: 1px solid rgba(var(--rgb-slate-700), 0.4);
  border-radius: var(--round-m);
  font-weight: var(--weight-normal-mono);
  font-size: 12px !important;
  line-height: 0.8;
  color: var(--code-text);
  background-color: var(--code-bg);
  letter-spacing: 0 !important;
}

.doc-slate {
  color: var(--slate-200);
}
.doc-gray {
  color: var(--gray-200);
}
.doc-zinc {
  color: var(--zinc-200);
}
.doc-neutral {
  color: var(--neutral-200);
}
.doc-stone {
  color: var(--stone-200);
}
.doc-red {
  color: var(--red-200);
}
.doc-orange {
  color: var(--orange-200);
}
.doc-amber {
  color: var(--amber-200);
}
.doc-yellow {
  color: var(--yellow-200);
}
.doc-lime {
  color: var(--lime-200);
}
.doc-green {
  color: var(--green-200);
}
.doc-emrald {
  color: var(--emrald-200);
}
.doc-teal {
  color: var(--teal-200);
}
.doc-cyan {
  color: var(--cyan-200);
}
.doc-sky {
  color: var(--sky-200);
}
.doc-blue {
  color: var(--blue-200);
}
.doc-indigo {
  color: var(--indigo-200);
}
.doc-violet {
  color: var(--violet-200);
}
.doc-purple {
  color: var(--purple-200);
}
.doc-fuchsia {
  color: var(--fuchsia-200);
}
.doc-pink {
  color: var(--pink-200);
}
.doc-rose {
  color: var(--rose-200);
}

.missing {
  color: var(--red-600) !important;
  font-weight: var(--weight-bold);
  text-decoration: underline;
}

.l-doc > .outer.fields {
  border-top: 1px solid rgba(var(--rgb-slate-700), 0.6);
  padding-top: var(--sp-4);
  margin-top: var(--sp-4);
}

.l-doc .fields > .field,
.l-doc .fields > .oneof,
.l-doc .field > .nested,
.l-doc .values {
  margin-left: var(--sp-2);
}

.l-doc .enum {
  display: grid;
  grid-template-columns: max-content 1fr;
  margin-left: var(--sp-4);
  max-width: 100%;
}

.l-doc .enum > .name {
  color: var(--violet-300);
  font-weight: 500;
  min-height: 30px;
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  padding: var(--sp-0-5) 0;
}

.l-doc .enum > .name > .esep {
  color: var(--slate-500);
}

.l-doc .enum > .name.is-def > span:first-child {
  text-decoration: underline;
  /* text-decoration-style: wavy; */
  text-underline-offset: 6px;
  /* text-decoration-color: var(--slate-500); */
}

.l-doc .oneof > .fields > .field > .field-name .param.is-def {
  text-decoration: underline;
  /* text-decoration-style: wavy; */
  text-underline-offset: 6px;
  /* text-decoration-color: var(--slate-500); */
}

.l-doc .enum > .desc {
  /* margin-left: var(--sp-1); */
  padding: 2px 0 var(--sp-0-5);
}

.l-doc .esep {
  margin-right: var(--sp-1);
  font-weight: 700;
  font-style: normal;
}

.l-doc .rsep {
  color: var(--teal-600);
}

.l-doc .param {
  color: var(--blue-300);
  font-weight: 500;
  font-style: italic;
  font-size: 14px;
}
.l-doc .param::after {
  content: ":";
  color: var(--slate-600);
}
.l-doc .ty {
  color: var(--teal-300);
  font-style: italic;
  font-size: 13px;
}
.l-doc .field > h2,
.l-doc .nested > header > h2,
.l-doc .nested > header > .desc,
.l-doc .oneof > header > h2,
.l-doc .oneof > header > .desc,
.l-doc header > .inputs > *,
.l-doc header > .outputs > * {
  display: inline-block !important;
  width: max-content;
}

.l-doc .field > h2,
.l-doc .nested > header > h2 {
  /* border: 1px solid var(--slate-700); */
  padding: var(--sp-0-5) var(--sp-2) var(--sp-0-5) var(--sp-1);
  /* border-radius: var(--round-full); */
}

.l-doc .field {
  margin-top: var(--sp-0-5);
}

.l-doc .field h2 {
  line-height: 1;
  margin-top: 0;
}

.l-doc .value::before {
  content: "-";
  color: var(--slate-700);
}
/*
.l-doc .field::before {
  content: "▪";
  color: var(--slate-700);
} */

.l-doc .defval {
  padding: 1px var(--sp-1);
  border: 1px solid rgba(var(--rgb-slate-700), 0.6);
  border-radius: var(--round-m);
  color: var(--slate-400);
  margin-left: var(--sp-2);
  font-size: 11px;
  font-weight: 500;
}

.l-doc .defval::before {
  content: "Default: ";
  color: var(--slate-500);
}

.l-doc header.outer > .inputs .name,
.l-doc header.outer > .outputs .name {
  padding: 0 var(--sp-1);
  text-align: right;
  min-width: 20px;
  font-size: 8px;
  line-height: 1rem;
  display: inline-block;
  transform: translateY(-2.5px);
}

.l-doc header.outer > .inputs .name {
  color: rgba(var(--rgb-amber-600), 0.7);
}

.l-doc header.outer > .outputs .name {
  color: rgba(var(--rgb-purple-600), 0.7);
}

.l-doc header.outer > .inputs,
.l-doc header.outer > .outputs {
  padding-left: var(--sp-3);
  padding-bottom: 0;
  padding-right: 0;
  padding-top: 0;
  margin-left: 10px;
}

.l-doc header.outer > h1 {
  border-bottom: 1px solid rgba(var(--rgb-orange-200), 0.4);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
}

.l-doc header.outer > .inputs::before {
  content: "⬤";
  color: rgba(var(--rgb-amber-600), 0.7);
  font-size: 8px;
  padding: 0 var(--sp-1);
  vertical-align: middle;
}

.l-doc header.outer > .outputs::before {
  content: "⬤";
  color: rgba(var(--rgb-purple-600), 0.7);
  font-size: 8px;
  padding: 0 var(--sp-1);
  vertical-align: middle;
}

.l-doc .outer.fields > h2,
.l-doc .examples > h3 {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
}

.l-doc .example {
  margin-left: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--slate-700);
}

.l-doc .empty {
  color: var(--slate-500);
  padding-left: var(--sp-2);
  font-weight: 500;
  letter-spacing: 0.02rem;
  font-style: italic;
  font-size: 13px;
}

.l-doc .nested > header > .desc {
  margin-left: var(--sp-2);
}

.l-doc header.outer > * {
  padding-bottom: var(--sp-1);
  padding-top: var(--sp-1);
  padding-left: var(--sp-2);
  padding-right: var(--sp-1);
}

.l-doc .oneof > header > h2 {
  font-size: 14px;
}

.l-doc .oneof-field > div > :is(h2, h3, h4, h5, h6) > a > .name {
  font-size: 14px; /* 14px */
  line-height: 16px; /* 20px */
  color: var(--pink-300);
  font-weight: 500;
  font-style: italic;
}

.l-doc .oneof-field > div > :is(h2, h3, h4, h5, h6) > a > .name::after {
  content: ":";
  color: var(--slate-600);
}

.l-doc .oneof > header {
  margin-top: var(--sp-1);
}

.l-doc .ty {
  font-weight: 400;
}

.l-doc .field > .desc {
  padding-left: var(--sp-5);
  padding-bottom: var(--sp-0-5);
  display: flex;
  flex-direction: column;
}

.l-doc .osep {
  color: var(--slate-500);
}

.l-doc header.outer > .outputs > h2 {
  line-height: 1.2;
}

.l-doc header.outer > .inputs > h2 {
  line-height: 1.2;
}

.l-doc header.outer > .desc > p {
  font-size: 15px;
  line-height: 1.7;
}

.l-doc > section.examples {
  border-top: 1px solid rgba(var(--rgb-slate-700), 0.6);
  padding-top: var(--sp-2);
  margin-top: var(--sp-4);
}

.l-doc > section.footer {
  border-top: 1px solid rgba(var(--rgb-slate-700), 0.6);
  padding-top: var(--sp-2);
  margin-top: var(--sp-4);
  border-bottom: 1px solid rgba(var(--rgb-slate-700), 0.6);
  padding-bottom: var(--sp-2);
}

.l-doc .divider {
  border: none;
  height: 1px;
  max-width: 100%;
  width: 100%;
  margin: 3rem 0;
  background: rgba(var(--rgb-slate-700), 0.6);
}

.l-doc .field-name {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.l-doc .field-name > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.l-doc .field-name > div > :is(h2, h3, h4, h5, h6) {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 0;
}

.l-doc .field-name > div::before {
  content: "▪";
  color: var(--slate-700);
  margin-right: 5px;
}

.l-doc .field-name > div > :is(h2, h3, h4, h5, h6) > a.header {
  display: flex;
  align-items: center;
}

.l-doc .oneof > .fields > .field > .field-name > div::before {
  content: "❍";
  color: var(--pink-300);
  font-size: 14px;
  display: inline-block;
}

.l-doc .field-name.oneof-field > div > h2::after {
  content: ":";
  color: var(--slate-600);
}
.l-doc .field-name > .allowed {
  display: inline-flex;
  gap: var(--sp-1);
  padding: 1px var(--sp-1);
  border: 1px solid rgba(var(--rgb-orange-900), 0.4);
  border-radius: var(--round-m);
  color: rgba(var(--rgb-sky-200), 0.7);
  margin: 0 var(--sp-2);
  font-size: 12px;
  font-weight: 500;
  background: rgba(var(--rgb-orange-900), 0.3);
  font-style: italic;
}
.l-doc .field-name > .allowed > .where {
  color: rgba(var(--rgb-sky-200), 0.6);
}
.l-doc .field-name > .allowed > .where-col {
  color: rgba(var(--rgb-sky-200), 0.6);
}
.l-doc .field-name > .allowed > .tys {
  color: var(--teal-300);
}

.l-doc h1:target::before,
.l-doc h2:target::before,
.l-doc h3:target::before,
.l-doc h4:target::before,
.l-doc h5:target::before,
.l-doc h6:target::before {
  background: rgba(var(--rgb-blue-600), 0.5);
}

.l-doc .outer .doc-flow {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--sp-0-5);
  padding: var(--sp-6) 0 var(--sp-4) !important;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.02rem;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* background-image: linear-gradient(
    to right,
    rgba(var(--rgb-slate-700), 0),
    rgba(var(--rgb-slate-700), 0.2),
    rgba(var(--rgb-slate-700), 0)
  );
  backdrop-filter: blur(8px); */
}
.l-doc .ilayer {
  width: 128px;
  min-height: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--round-xl);
  background-image: linear-gradient(
    to bottom,
    rgba(var(--rgb-sky-300), 0.1),
    rgba(var(--rgb-sky-300), 0.06) 76%
  );
  backdrop-filter: blur(3px);
  box-shadow:
    #00000030 0px 2px 8px 0px,
    inset 0 1px rgba(var(--rgb-sky-300), 0.15);
  color: var(--sky-200);
  padding: var(--sp-1);
}
.l-doc .iflow {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: center;
  padding: var(--sp-2) 0;
}
.l-doc .oflow {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: center;
  padding: var(--sp-2) 0;
}
.l-doc .iosocket {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.l-doc .iflow .iosocket {
  justify-content: flex-end;
}
.l-doc .oflow .iosocket {
  justify-content: flex-start;
}

.l-doc .iosocket .ionum {
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(var(--rgb-sky-100), 0.75);
  background: var(--bg-6);
  border-radius: var(--round-full);
}

.l-doc .iflow .iosocket .ionum {
  border: 1px solid var(--amber-800);
  background-color: var(--amber-900);
}

.l-doc .oflow .iosocket .ionum {
  border: 1px solid var(--purple-800);
  background-color: var(--purple-900);
}

.l-doc .iosocket .ioname {
  color: var(--slate-300);
  /* text-transform: uppercase; */
}

.l-doc .iosocket .iarr {
  color: var(--slate-500);
}

.l-doc .iosocket .iallowed {
  color: var(--teal-300);
  font-style: italic;
}

.l-doc .iosocket .iallowed::before {
  content: "( ";
}
.l-doc .iosocket .iallowed::after {
  content: " )";
}

.l-doc .iosocket .itbl {
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 650px) {
  .l-doc a[role="button"].app-btn {
    flex-direction: column;
    gap: var(--sp-0-5);
  }
}

@media only screen and (max-width: 750px) {
  .l-doc .outer .doc-flow {
    transform: scale(0.8);
    padding: var(--sp-3) 0 var(--sp-2) !important;
  }
}

.max-content {
  text-align: center;
  margin: 10px auto;
  border-radius: 8px;
  overflow: clip;
}
figcaption {
  color: var(--slate-500);
  padding: var(--sp-1);
  font-size: 14px;
}

/* .sidetoc {
  display: none !important;
} */

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #333;
  color: var(--slate-400);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--round-full);
  font-size: 14px;
  transition: all 0.3s ease;
  width: 28px;
  height: 28px;
  line-height: 0;
}

#scrollToTopBtn:hover {
  color: var(--slate-200);
  background-color: #444;
}

:not(.l-doc) p,
:not(.l-doc) ul,
:not(.l-doc) ol,
:not(.l-doc) li {
  color: var(--slate-200);
}

:not(.l-doc) ul,
:not(.l-doc) ol {
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-1);
}

.content :not(.l-doc) ul,
.content :not(.l-doc) ol {
  padding-left: 2em;
}

.content :not(.l-doc) ul li,
.content :not(.l-doc) ol li {
  padding-bottom: 0.25em;
}

pre {
  margin-top: var(--sp-4);
}

/* :not(.l-doc) .content :is(h2, h3, h4, h5, h6) .header:link {
  color: var(--slate-100);
} */

.content img,
.content video {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.content h1.layer-bkt {
  border-bottom: 1px solid rgba(var(--rgb-orange-200), 0.4);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
}

ol > li::marker {
  content: counter(list-item) ". ";
  vertical-align: middle;
  font:
    normal 600 94%/1.5 InterVariable,
    sans-serif;
  -webkit-font-feature-settings: var(--ff-sans-serif-features) !important;
  -moz-font-feature-settings: var(--ff-sans-serif-features) !important;
  -ms-font-feature-settings: var(--ff-sans-serif-features) !important;
  font-feature-settings: var(--ff-sans-serif-features) !important;
}

li::marker {
  color: rgba(var(--rgb-blue-300), 0.5);
}

/* ol > li::before {
  content: "-";
  vertical-align: middle;
  line-height: 0;
  display: inline;
  font-size: inherit;
  color: transparent !important;
  user-select: none !important;
} */

blockquote {
  border-radius: var(--round-l);
}

blockquote > p {
  font-size: 1.55rem;
}
.content blockquote p {
  padding: 0 !important;
  padding-left: 2.6rem !important;
}

.content hr {
  background: radial-gradient(circle at center, var(--slate-600), transparent);
  border: none;
  height: 1px;
  margin: 5rem 0;
  position: relative;
  overflow: visible;
}

.content .small hr {
  margin: 1rem 0;
}

/* .content hr::after {
  content: "";
  background: var(--bg-default);
  border: 1px solid var(--slate-600);
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: rotate(45deg) translate(-50%, -50%);
  border-radius: var(--round-full);
} */

#searchresults a:hover {
  color: var(--sky-400);
}

.table-wrapper {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
}

table {
  width: 100%;
}

.table-wrapper :not(.l-doc) table thead,
.table-wrapper :not(.l-doc) table tfoot {
  position: unset;
}

.table-wrapper :not(.l-doc) table th {
  padding: var(--sp-1-5) var(--sp-3);
}

.table-wrapper :not(.l-doc) table td {
  padding: var(--sp-1-5) var(--sp-3);
}
