@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-latin-variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
}
:root {
  color-scheme: light;
  --ink: #1c1c1e;
  --body: #42424a;
  --quiet: #686874;
  --violet: #5c00e4;
  --violet-press: #4b00bb;
  --violet-soft: #eee9ff;
  --rb2-red: #fe150a;
  --surface: #fff;
  --canvas: #f7f7fb;
  --border: #e2e3eb;
  --focus: #312e81;
  --dark-bg: #0f172a;
  --dark-ink: #f8fafc;
  --dark-quiet: #94a3b8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font:
    400 1rem/1.65 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #4448bd;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--violet-press);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  z-index: 101;
  left: 1rem;
  top: -4rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus {
  top: 1rem;
}
.wrap {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.nav {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
}
@supports (backdrop-filter: blur(1px)) {
  .nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 2rem;
  height: 2rem;
}
.brand small {
  color: var(--quiet);
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: 0;
}
.rb2-word,
.rb2-word:hover {
  color: var(--rb2-red);
}
.nav-primary {
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--violet);
}
.btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
}
.btn-primary:hover {
  background: var(--violet-press);
  color: #fff;
}
.nav-cta {
  min-height: 2.5rem;
  padding: 0.68rem 1.15rem;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.8125rem;
}
.mobile-nav {
  display: none;
  position: relative;
  margin-left: auto;
}
.mobile-nav summary {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav summary span,
.mobile-nav summary span::before,
.mobile-nav summary span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.16s ease;
}
.mobile-nav summary span {
  position: relative;
}
.mobile-nav summary span::before,
.mobile-nav summary span::after {
  position: absolute;
  content: "";
}
.mobile-nav summary span::before {
  transform: translateY(-0.36rem);
}
.mobile-nav summary span::after {
  transform: translateY(0.36rem);
}
.mobile-nav[open] summary span {
  background: transparent;
}
.mobile-nav[open] summary span::before {
  transform: rotate(45deg);
}
.mobile-nav[open] summary span::after {
  transform: rotate(-45deg);
}
.mobile-nav nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(20rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 5.5rem);
  max-height: calc(100dvh - 5.5rem);
  overflow-y: auto;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
}
.mobile-nav ul {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav a:hover {
  background: var(--violet-soft);
}
.mobile-nav .mobile-nav-cta {
  justify-content: center;
  margin-top: 0.35rem;
  background: var(--violet);
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
}
.page {
  max-width: 75rem;
  margin: auto;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
}
.hero {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}
.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--violet);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-family: Outfit, Inter, sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}
h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
}
h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}
.lede {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--body);
  text-wrap: pretty;
}
.help-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.topic-nav {
  min-width: 0;
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
}
.topic-nav h2 {
  margin: 0 0 0.5rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.95rem;
}
.topic-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-nav a {
  display: block;
  padding: 0.37rem 0.45rem;
  border-radius: 0.25rem;
  color: var(--quiet);
  font-size: 0.9rem;
  text-decoration: none;
}
.topic-nav a:hover,
.topic-nav a[aria-current="page"] {
  background: #efeff9;
  color: var(--ink);
  font-weight: 650;
}
.article {
  min-width: 0;
  max-width: 48rem;
}
.article-wide {
  max-width: none;
}
/* API reference: Scalar brings its own sidebar and three-column operations, so the
   page drops the 75rem cap and the help topics become a wrapped row above it. */
.page-wide {
  max-width: none;
}
.help-layout-wide {
  grid-template-columns: 1fr;
  --scalar-custom-header-height: 4.5rem;
}
.help-layout-wide .topic-nav {
  position: static;
  max-height: none;
}
.help-layout-wide .topic-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.article section {
  margin-top: 2.4rem;
  scroll-margin-top: calc(4.5rem + 1px);
}
.article p,
.article li {
  max-width: 70ch;
}
.article ul,
.article ol {
  padding-left: 1.25rem;
}
.article li + li {
  margin-top: 0.45rem;
}
.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cccef5;
  border-radius: 0.45rem;
  background: #f4f4ff;
}
.article code {
  font-family: var(--font-mono, "SFMono-Regular", Consolas, "Liberation Mono", monospace);
  font-size: 0.9em;
}
.code-example {
  max-width: 100%;
  margin: 0.75rem 0 1.25rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: #f7f7fb;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre;
}
.code-example code {
  font-size: 0.82rem;
}
.last-reviewed {
  margin: 1rem 0 0;
  color: var(--quiet);
  font-size: 0.9rem;
}
.on-this-page {
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--violet);
  background: var(--violet-soft);
}
.on-this-page h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.on-this-page ol {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.25rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
}
.guide-card p {
  margin: 0.2rem 0 0.85rem;
  color: var(--quiet);
  font-size: 0.94rem;
}
.guide-card a {
  margin-top: auto;
  font-weight: 650;
}
footer {
  padding-block: 4rem;
  background: var(--dark-bg);
  color: var(--dark-quiet);
  font-size: 0.8125rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
}
.foot-inner .brand {
  color: var(--dark-ink);
  font-size: 1.15rem;
}
.foot-inner .brand small {
  color: var(--dark-quiet);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-links a {
  color: inherit;
  text-decoration: none;
}
.foot-links a:hover,
footer .link:hover {
  color: var(--dark-ink);
}
@media (max-width: 48rem) {
  .nav-primary,
  .nav-cta {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .page {
    padding-top: 2rem;
  }
  .help-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .topic-nav {
    position: static;
  }
  .topic-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .foot-inner {
    display: grid;
    justify-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .skip-link,
  .nav,
  .topic-nav,
  .on-this-page,
  footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .page,
  .article {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .help-layout {
    display: block;
  }
  a {
    color: inherit;
    text-decoration: underline;
  }
  h1,
  h2,
  h3 {
    color: #000;
    break-after: avoid;
  }
  section {
    break-inside: avoid;
  }
}
