/* Legend Brands standalone documentation theme. */
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lb-black: #121416;
  --lb-charcoal: #22262a;
  --lb-yellow: #edbc31;
  --lb-yellow-dark: #d7a521;
  --lb-yellow-soft: #f7ecc9;
  --lb-warm-gray: #f1efe7;
  --lb-paper: #f8f8f6;
  --lb-line: #d1d2cf;
  --lb-gray: #5d6266;
  --lb-mid-gray: #777b7e;
  --lb-link: #765700;
  --lb-ink: #242424;
  --lb-code-background: #1e2126;
  --lb-code-foreground: #e0e2ea;
  --lb-code-comment: #6e7581;
  --lb-code-keyword: #c4b0fd;
  --lb-code-type: #f9e2af;
  --lb-code-constant: #fab387;
  --lb-code-string: #b3f6c0;
  --lb-code-function: #8cf8f7;
  --lb-code-property: #a6dbff;
  --lb-header-height: 4rem;
  color-scheme: light;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lb-header-height) + 1rem);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--lb-ink);
  background: var(--lb-paper);
  font-family: "Lato", Arial, sans-serif;
  line-height: 1.55;
}

body.lb-navigation-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

code,
kbd,
pre,
samp {
  font-family: "Lato", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

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

.lb-skip {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-150%);
  background: var(--lb-yellow);
  color: var(--lb-black);
  font-weight: 700;
}

.lb-skip:focus {
  transform: translateY(0);
}

.lb-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--lb-header-height);
  background: var(--lb-black);
  color: #ffffff;
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.25);
}

.lb-header__inner {
  display: flex;
  align-items: center;
  width: min(100%, 92rem);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.lb-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.lb-brand img {
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

.lb-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.lb-icon-button {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  place-items: center;
  border: 0;
  border-radius: 0.2rem;
  color: var(--lb-yellow);
  background: transparent;
  cursor: pointer;
}

.lb-icon-button:hover,
.lb-icon-button:focus-visible {
  color: var(--lb-black);
  background: var(--lb-yellow);
}

.lb-icon-button svg,
.lb-language svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-nav-toggle {
  display: none;
  margin-right: 0.25rem;
}

.lb-language {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--lb-yellow);
}

.lb-language__select {
  max-width: 8rem;
  border: 0;
  color: #ffffff;
  background: var(--lb-black);
  cursor: pointer;
}

.lb-language__select:focus-visible,
.lb-repository:focus-visible,
.lb-icon-button:focus-visible,
.lb-content a:focus-visible,
.lb-nav__link:focus-visible,
.lb-toc__link:focus-visible {
  outline: 0.13rem solid var(--lb-yellow-dark);
  outline-offset: 0.13rem;
}

.lb-repository {
  margin-left: 0.4rem;
  color: #ffffff;
  font-size: 0.85rem;
}

.lb-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 52rem) minmax(10rem, 14rem);
  gap: clamp(1.5rem, 3vw, 3rem);
  justify-content: center;
  width: min(100%, 92rem);
  min-height: calc(100vh - var(--lb-header-height) - 4rem);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.lb-sidebar {
  min-width: 0;
}

.lb-sidebar--primary,
.lb-sidebar--secondary {
  position: sticky;
  top: calc(var(--lb-header-height) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--lb-header-height) - 3rem);
  overflow: auto;
}

.lb-nav__list,
.lb-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-nav__section + .lb-nav__section,
.lb-nav__item + .lb-nav__section {
  margin-top: 1rem;
}

.lb-nav__heading,
.lb-toc__title {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--lb-black);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.lb-nav__list--level-2 .lb-nav__list {
  padding-left: 0.6rem;
}

.lb-nav__link,
.lb-toc__link {
  display: block;
  margin: 0.08rem 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.18rem;
  color: var(--lb-ink);
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: none;
}

.lb-nav__link:hover,
.lb-nav__link:focus,
.lb-toc__link:hover,
.lb-toc__link:focus {
  color: var(--lb-black);
  background: var(--lb-yellow-soft);
}

.lb-nav__link--active,
.lb-nav__link--active:hover,
.lb-nav__link--active:focus {
  color: var(--lb-yellow);
  background: var(--lb-black);
  box-shadow: inset 0.18rem 0 var(--lb-yellow);
  font-weight: 700;
}

.lb-toc__list .lb-toc__list {
  padding-left: 0.65rem;
}

.lb-toc__link {
  padding: 0.25rem 0.4rem;
  border-left: 0.12rem solid transparent;
  color: var(--lb-gray);
  font-size: 0.78rem;
}

.lb-main {
  min-width: 0;
}

.lb-content {
  color: var(--lb-ink);
  font-size: 1rem;
}

.lb-content h1,
.lb-content h2,
.lb-content h3,
.lb-content h4,
.lb-content h5,
.lb-content h6 {
  color: var(--lb-black);
  line-height: 1.2;
  scroll-margin-top: calc(var(--lb-header-height) + 1rem);
}

.lb-content h1,
.lb-content h2 {
  font-weight: 900;
  letter-spacing: -0.012em;
}

.lb-content h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.lb-content h1::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 0.16rem;
  margin-top: 0.6rem;
  background: var(--lb-yellow);
}

.lb-content h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.65rem;
}

.lb-content h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
}

.lb-content p,
.lb-content ul,
.lb-content ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

.lb-content a:not(.lb-button) {
  color: var(--lb-link);
  font-weight: 600;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.16em;
}

.lb-content a:not(.lb-button):hover {
  border-radius: 0.1rem;
  color: var(--lb-black);
  background: var(--lb-yellow-soft);
}

.lb-content img {
  height: auto;
}

.lb-content code {
  padding: 0.08em 0.28em;
  border: 1px solid rgba(215, 169, 0, 0.35);
  border-radius: 0.15rem;
  background: #ffffff;
}

.lb-content pre {
  max-width: 100%;
  overflow: auto;
  padding: 1rem;
  border-left: 0.2rem solid var(--lb-yellow);
  background: var(--lb-code-background);
  color: var(--lb-code-foreground);
}

.lb-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.lb-code-highlighting .lb-content .highlight {
  margin: 1rem 0;
}

.lb-code-highlighting .lb-content .highlight pre {
  margin: 0;
}

.lb-code-highlighting .lb-content .highlight .hll {
  background-color: #4f5258;
}

.lb-code-highlighting .lb-content .highlight :is(.c, .ch, .cm, .cp, .cpf, .c1, .cs, .gu) {
  color: var(--lb-code-comment);
  font-style: italic;
}

.lb-code-highlighting .lb-content .highlight :is(.k, .kd, .kn, .kp, .kr, .kt, .ow, .nd) {
  color: var(--lb-code-keyword);
}

.lb-code-highlighting .lb-content .highlight :is(.kc, .l, .m, .mb, .mf, .mh, .mi, .mo, .il, .no, .sc) {
  color: var(--lb-code-constant);
}

.lb-code-highlighting .lb-content .highlight :is(.s, .sa, .sb, .dl, .sd, .s1, .s2, .sh, .si, .sr, .ss, .sx, .ld) {
  color: var(--lb-code-string);
}

.lb-code-highlighting .lb-content .highlight :is(.se, .nb, .nf, .fm, .nt) {
  color: var(--lb-code-function);
}

.lb-code-highlighting .lb-content .highlight :is(.nc, .ne, .nn) {
  color: var(--lb-code-type);
}

.lb-code-highlighting .lb-content .highlight :is(.na, .nv, .py, .vc, .vg, .vi, .vm) {
  color: var(--lb-code-property);
}

.lb-code-highlighting .lb-content .highlight :is(.n, .nx, .o, .p, .go, .gp) {
  color: var(--lb-code-foreground);
}

.lb-code-highlighting .lb-content .highlight .gi {
  color: #eef1f8;
  background-color: #005523;
}

.lb-code-highlighting .lb-content .highlight :is(.gd, .gr, .gt) {
  color: #ffc0b9;
}

.lb-code-highlighting .lb-content .highlight :is(.ge, .ges) {
  font-style: italic;
}

.lb-code-highlighting .lb-content .highlight :is(.gs, .ges) {
  font-weight: 700;
}

.lb-code-highlighting .lb-content .highlight .err {
  color: #eef1f8;
  background-color: #590008;
}

.lb-code-highlighting .lb-content .highlight :is(.linenos, .linenos.special) {
  padding-right: 0.75rem;
  color: #4f5258;
  background: transparent;
  user-select: none;
}

.lb-code-highlighting .lb-content .lb-syntax-keyword {
  color: var(--lb-code-keyword);
}

.lb-code-highlighting .lb-content .lb-syntax-function {
  color: var(--lb-code-function);
}

.lb-code-highlighting .lb-content .lb-syntax-string {
  color: var(--lb-code-string);
}

.lb-code-highlighting .lb-content .lb-syntax-property,
.lb-code-highlighting .lb-content .lb-syntax-variable {
  color: var(--lb-code-property);
}

.lb-code-highlighting .lb-content .lb-syntax-constant {
  color: var(--lb-code-constant);
}

.lb-code-highlighting .lb-content .lb-syntax-comment {
  color: var(--lb-code-comment);
}

.lb-code-highlighting .lb-content code.lb-syntax-inline {
  padding: 0;
  border: 0;
  color: var(--lb-ink);
  background: transparent;
  font-weight: 600;
  white-space: break-spaces;
}

.lb-code-highlighting .lb-content code.lb-syntax-inline .lb-syntax-keyword {
  color: #6847a8;
}

.lb-code-highlighting .lb-content code.lb-syntax-inline .lb-syntax-function {
  color: #176b70;
}

.lb-code-highlighting .lb-content code.lb-syntax-inline .lb-syntax-string {
  color: #3c6e49;
}

.lb-code-highlighting .lb-content code.lb-syntax-inline :is(.lb-syntax-property, .lb-syntax-variable) {
  color: #365f79;
}

.lb-code-highlighting .lb-content code.lb-syntax-inline .lb-syntax-constant {
  color: #8a4b27;
}

.lb-code-highlighting .lb-content code.lb-syntax-inline .lb-syntax-comment {
  color: var(--lb-gray);
}

.lb-content pre.mermaid {
  display: block;
  min-height: 4rem;
  padding: 1rem;
  border: 1px solid var(--lb-line);
  border-left: 0.2rem solid var(--lb-yellow);
  background: #ffffff;
  color: var(--lb-ink);
  text-align: center;
}

.lb-content pre.mermaid svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

.lb-content pre.mermaid.mermaid--error {
  border-color: #a90046;
  color: #a90046;
  text-align: left;
  white-space: pre-wrap;
}

.lb-content blockquote {
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border-left: 0.2rem solid var(--lb-line);
  color: var(--lb-gray);
}

.lb-content .headerlink {
  margin-left: 0.35rem;
  color: var(--lb-mid-gray);
  font-weight: 400;
  opacity: 0;
  text-decoration: none;
}

.lb-content :is(h1, h2, h3, h4, h5, h6):hover .headerlink,
.lb-content .headerlink:focus {
  opacity: 1;
}

.lb-button {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 0.1rem solid var(--lb-black);
  color: var(--lb-black);
  font-weight: 700;
  text-decoration: none;
}

.lb-button:hover {
  border-color: var(--lb-yellow);
  background: var(--lb-yellow);
}

.lb-page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lb-line);
}

.lb-page-nav__link {
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  text-decoration: none;
}

.lb-page-nav__link span {
  color: var(--lb-mid-gray);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.lb-page-nav__link--next {
  grid-column: 2;
  text-align: right;
}

.lb-footer {
  background: #000000;
}

.lb-footer__inner {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}

.lb-legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.4rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.lb-legal-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.lb-legal-footer a:hover {
  color: var(--lb-yellow);
}

.lb-legal-footer__separator {
  color: rgba(255, 255, 255, 0.34);
}

.lb-search {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(45rem, calc(100vh - 2rem));
  margin: 1rem auto auto;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  color: var(--lb-ink);
  background: var(--lb-paper);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.35);
}

.lb-search::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.lb-search__header {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--lb-black);
}

.lb-search__field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.75rem;
  background: #ffffff;
}

.lb-search__field svg {
  width: 1.2rem;
  fill: none;
  stroke: var(--lb-black);
  stroke-width: 1.8;
}

.lb-search__field input {
  width: 100%;
  min-height: 2.7rem;
  border: 0;
  outline: 0;
  background: transparent;
}

.lb-search__close {
  color: var(--lb-yellow);
  font-size: 1.8rem;
}

.lb-search__results {
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 0.5rem 1rem 1rem;
}

.lb-search__results article {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--lb-line);
}

.lb-search__results h3,
.lb-search__results p {
  margin: 0;
}

.lb-search__results a {
  color: var(--lb-link);
}

.lb-drawer-scrim {
  display: none;
}

mark {
  background: rgba(255, 210, 0, 0.5);
}

@media (max-width: 72rem) {
  .lb-layout {
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 52rem);
  }

  .lb-sidebar--secondary {
    display: none;
  }
}

@media (max-width: 50rem) {
  .lb-header__inner {
    padding: 0 0.65rem;
  }

  .lb-nav-toggle {
    display: inline-grid;
  }

  .lb-brand span,
  .lb-repository,
  .lb-language svg {
    display: none;
  }

  .lb-layout {
    display: block;
    padding: 1.5rem 1rem 3rem;
  }

  .lb-sidebar--primary {
    position: fixed;
    z-index: 90;
    top: var(--lb-header-height);
    bottom: 0;
    left: 0;
    width: min(19rem, calc(100% - 3rem));
    max-height: none;
    padding: 1.25rem;
    transform: translateX(-105%);
    overflow: auto;
    background: var(--lb-paper);
    box-shadow: 0.5rem 0 1.5rem rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease;
  }

  .lb-navigation-open .lb-sidebar--primary {
    transform: translateX(0);
  }

  .lb-drawer-scrim {
    position: fixed;
    z-index: 80;
    inset: var(--lb-header-height) 0 0;
    background: rgba(0, 0, 0, 0.55);
  }

  .lb-navigation-open .lb-drawer-scrim {
    display: block;
  }
}

@media (max-width: 31rem) {
  .lb-language__select {
    max-width: 5.5rem;
  }

  .lb-page-nav {
    grid-template-columns: 1fr;
  }

  .lb-page-nav__link--next {
    grid-column: 1;
  }
}

@media print {
  .lb-header,
  .lb-sidebar,
  .lb-footer,
  .lb-search,
  .lb-drawer-scrim,
  .lb-page-nav,
  .lb-skip {
    display: none !important;
  }

  .lb-layout {
    display: block;
    min-height: 0;
    padding: 0;
  }
}
