@font-face {
  font-family: "Roobert";
  src: url("https://s.lalal.ai/font/Roobert/Roobert-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roobert";
  src: url("https://s.lalal.ai/font/Roobert/Roobert-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --scalar-font: "Roobert", sans-serif;
  --scalar-custom-header-height: 54px;
}

/* fallback for scalar colors. light-mode and dark-mode are scalar classes*/
.light-mode {
  --secondary-background: var(--scalar-background-1, #1b191c);
  --secondary-text: var(--scalar-color-2, #767577);
  --border-color: var(--scalar-border-color, #5f5e60);
}

.dark-mode {
  --secondary-background: var(--scalar-background-1, #f4f4f4);
  --secondary-text: var(--scalar-color-2, #bbbabb);
  --border-color: var(--scalar-border-color, #e8e8e8);
}

/* Header block */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--scalar-custom-header-height);
  padding: 12px;
  background-color: var(--secondary-background);
  border-bottom: 0.5px solid var(--border-color);
  box-sizing: border-box;
}

/* Header left section - site branding */
.header__site-info {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Header logo link */
.header__logo-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 16px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header__logo-link:hover {
  opacity: 0.64;
}

/* Header logo text (SVG) */
.header__text-logo {
  color: var(--secondary-text);
}

/* Header separator dot */
.header__dot {
  width: 2px;
  height: 2px;
  background-color: var(--secondary-text);
  border-radius: 50%;
}

/* Header docs label text */
.header__docs-text {
  margin: 0;
  font-family: "Roobert", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  color: var(--secondary-text);
}

/* Header GitHub link */
.header__github-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header__github-link:hover {
  opacity: 0.64;
}

/* Header GitHub link text */
.header__github-text {
  font-family: "Roobert", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--secondary-text);

  @media (max-width: 390px) {
    display: none;
  }
}

/* scalar header */
#app .t-doc__header {
  top: var(--scalar-custom-header-height);
}

#app aside {
  top: var(--scalar-custom-header-height);
}
