:root {
  --docs-sidebar-width: 236px;
  --docs-outline-width: 190px;
  --docs-content-width: 760px;
  --docs-accent: var(--headline);
  --docs-accent-hover: color-mix(in srgb, var(--headline) 84%, var(--surface));
}

.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;
}

.docs-page {
  background:
    radial-gradient(circle at 50% -240px, color-mix(in srgb, var(--docs-accent) 8%, transparent), transparent 540px),
    var(--bg);
}

.docs-main {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 138px);
  padding: 0 32px 72px;
}

.docs-layout {
  width: 100%;
  max-width: calc(var(--docs-sidebar-width) + var(--docs-content-width) + var(--docs-outline-width) + 108px);
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, var(--docs-content-width)) var(--docs-outline-width);
  margin-inline: auto;
  gap: 54px;
  padding-top: 36px;
}

.docs-layout--home {
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 900px);
  justify-content: start;
}

.docs-sidebar,
.docs-outline {
  position: sticky;
  top: calc(var(--app-header-height) + 24px);
  align-self: start;
  max-height: calc(100dvh - var(--app-header-height) - 48px);
}

.docs-sidebar {
  overflow: auto;
  padding: 4px 18px 28px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong, var(--line)) transparent;
}

.docs-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.docs-sidebar-title {
  color: var(--headline);
  font: 620 19px/1.15 "Space Grotesk", sans-serif;
  letter-spacing: -.025em;
  text-decoration: none;
}

.docs-sidebar-title[aria-current="page"] {
  color: var(--docs-accent);
}

.docs-menu-close {
  width: 36px;
  height: 36px;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.docs-main .docs-menu-close {
  min-height: 36px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.docs-main .docs-menu-close:hover {
  color: var(--headline);
  background: var(--surface-soft);
}

.docs-menu-close svg,
.docs-menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.docs-nav-section + .docs-nav-section {
  margin-top: 25px;
}

.docs-nav-section h2 {
  margin: 0 0 8px;
  color: var(--headline);
  font: 600 12px/1.35 "Space Grotesk", sans-serif;
  letter-spacing: .015em;
}

.docs-nav-section ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav-section a {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-left: 0;
  padding: 7px 10px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}

.docs-nav-section a:hover {
  color: var(--headline);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.docs-nav-section a.is-active {
  color: var(--headline);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 1px color-mix(in srgb, var(--headline) 5%, transparent);
  font-weight: 600;
}

.docs-nav-draft {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: 50%;
}

.docs-sidebar-help {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.docs-sidebar-help span {
  color: var(--muted);
}

.docs-sidebar-help a {
  width: fit-content;
  color: var(--headline);
  font-weight: 570;
  text-underline-offset: 3px;
}

.docs-content-column {
  min-width: 0;
}

.docs-search {
  position: relative;
  z-index: 12;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  padding: 0 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .025);
  backdrop-filter: blur(12px);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.docs-search:focus-within {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--docs-accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--docs-accent) 11%, transparent), var(--product-shadow-soft);
}

.docs-search > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.docs-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0;
  color: var(--headline);
  background: transparent;
  border: 0;
  outline: 0;
  font: 450 14px/1 "Space Grotesk", sans-serif;
}

.docs-search input::placeholder {
  color: var(--muted);
  opacity: .82;
}

.docs-search kbd {
  min-width: 25px;
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font: 500 11px/1 "Space Grotesk", sans-serif;
  text-align: center;
  box-shadow: 0 1px 0 var(--line);
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(430px, 62svh);
  overflow: auto;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 15px;
  box-shadow: var(--product-shadow);
}

.docs-search-result {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  color: var(--text);
  border-radius: 10px;
  text-decoration: none;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
  background: var(--surface-soft);
  outline: 0;
}

.docs-search-result strong {
  color: var(--headline);
  font-size: 13px;
  font-weight: 620;
}

.docs-search-result span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.docs-search-empty {
  padding: 22px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.docs-home-hero {
  max-width: 760px;
  padding: 18px 0 56px;
}

.docs-kicker {
  margin: 0 0 13px;
  color: var(--docs-accent);
  font: 620 11px/1 "Space Grotesk", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.docs-home-hero h1,
.docs-article-header h1 {
  margin: 0;
  color: var(--headline);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 620;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.docs-home-hero h1 {
  max-width: 650px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: .98;
}

.docs-home-hero > p:not(.docs-kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.docs-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.docs-primary-action,
.docs-secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 999px;
  font: 570 13px/1 "Space Grotesk", sans-serif;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.docs-primary-action {
  color: var(--bg);
  background: var(--docs-accent);
}

.docs-primary-action:hover {
  color: var(--bg);
  background: var(--docs-accent-hover);
  transform: translateY(-1px);
}

.docs-secondary-action {
  color: var(--headline);
  background: var(--surface);
  border: 1px solid var(--line);
}

.docs-secondary-action:hover {
  border-color: var(--line-strong, var(--line));
  transform: translateY(-1px);
}

.docs-draft-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-bottom: 26px;
  padding: 17px 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--docs-accent) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--docs-accent) 18%, var(--line));
  border-radius: 15px;
}

.docs-draft-note-icon {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  background: var(--docs-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--docs-accent) 12%, transparent);
}

.docs-draft-note strong {
  color: var(--headline);
  font-size: 13px;
}

.docs-draft-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.docs-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docs-section-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.docs-section-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong, var(--line));
  box-shadow: var(--product-shadow-soft);
}

.docs-section-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--docs-accent);
  background: color-mix(in srgb, var(--docs-accent) 9%, transparent);
  border-radius: 12px;
  font: 600 11px/1 "Space Grotesk", sans-serif;
  letter-spacing: .04em;
}

.docs-section-card h2 {
  margin: 1px 0 5px;
  color: var(--headline);
  font: 620 19px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

.docs-section-card-body > p {
  min-height: 38px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.docs-section-card ul {
  display: grid;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.docs-section-card li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
}

.docs-section-card li a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}

.docs-section-card li a:hover {
  color: var(--docs-accent);
}

.docs-section-card li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.docs-section-card li a:hover svg {
  transform: translateX(2px);
}

.docs-outline {
  padding-top: 67px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.docs-outline > span {
  display: block;
  margin-bottom: 11px;
  color: var(--headline);
  font: 600 11px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .02em;
}

.docs-outline p {
  margin: 0;
}

.docs-outline ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-outline ul ul {
  margin-top: 7px;
  padding-left: 11px;
}

.docs-outline a {
  color: var(--muted);
  text-decoration: none;
}

.docs-outline a:hover {
  color: var(--headline);
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 32px;
  color: var(--muted);
  font-size: 12px;
}

.docs-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.docs-breadcrumbs a:hover {
  color: var(--headline);
}

.docs-article-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.docs-article-status {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 9px/1 "Space Grotesk", sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.docs-article-status.is-published {
  color: var(--product-success);
  background: color-mix(in srgb, var(--product-success) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--product-success) 22%, var(--line));
}

.docs-article-header h1 {
  max-width: 680px;
  font-size: clamp(37px, 5vw, 54px);
  line-height: 1.03;
}

.docs-article-header p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.docs-empty-state {
  margin-top: 34px;
  padding: clamp(32px, 6vw, 58px) 30px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px dashed var(--line-strong, var(--line));
  border-radius: 20px;
}

.docs-empty-mark {
  width: 50px;
  height: 50px;
  display: grid;
  align-content: center;
  gap: 5px;
  margin: 0 auto 18px;
  padding: 0 13px;
  background: color-mix(in srgb, var(--docs-accent) 9%, var(--surface));
  border-radius: 15px;
}

.docs-empty-mark span {
  height: 2px;
  background: color-mix(in srgb, var(--docs-accent) 70%, var(--muted));
  border-radius: 999px;
}

.docs-empty-mark span:nth-child(2) {
  width: 70%;
}

.docs-empty-state h2 {
  margin: 0;
  color: var(--headline);
  font: 620 22px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

.docs-empty-state p {
  max-width: 500px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.docs-empty-state a {
  display: inline-block;
  margin-top: 20px;
  color: var(--headline);
  font-size: 12.5px;
  font-weight: 580;
  text-underline-offset: 4px;
}

.docs-markdown {
  padding-top: 38px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.74;
}

.docs-markdown h2,
.docs-markdown h3 {
  color: var(--headline);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
  scroll-margin-top: calc(var(--app-header-height) + 24px);
}

.docs-markdown h2 {
  margin: 46px 0 14px;
  font-size: 29px;
  line-height: 1.15;
}

.docs-markdown h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.docs-markdown h2:first-child,
.docs-markdown h3:first-child {
  margin-top: 0;
}

.docs-markdown p,
.docs-markdown ul,
.docs-markdown ol {
  margin: 0 0 18px;
}

.docs-markdown li + li {
  margin-top: 7px;
}

.docs-markdown a {
  color: var(--docs-accent);
  text-underline-offset: 3px;
}

.docs-markdown blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  color: var(--text);
  background: color-mix(in srgb, var(--docs-accent) 7%, var(--surface));
  border-left: 3px solid var(--docs-accent);
  border-radius: 0 12px 12px 0;
}

.docs-markdown blockquote > :last-child {
  margin-bottom: 0;
}

.docs-markdown code {
  padding: 2px 5px;
  color: var(--headline);
  background: var(--surface-muted, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 500 .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs-markdown pre {
  position: relative;
  overflow: auto;
  margin: 24px 0;
  padding: 19px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.docs-markdown pre code {
  padding: 0;
  background: transparent;
  border: 0;
}

.docs-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 30px !important;
  padding: 0 10px !important;
  color: var(--muted) !important;
  background: var(--surface-soft) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  font-size: 10px !important;
}

.docs-markdown table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.docs-markdown th,
.docs-markdown td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-markdown th {
  color: var(--headline);
  background: var(--surface-soft);
  font-weight: 620;
}

.docs-markdown .headerlink {
  margin-left: 7px;
  color: var(--muted);
  opacity: 0;
  text-decoration: none;
  transition: opacity .16s ease;
}

.docs-markdown h2:hover .headerlink,
.docs-markdown h3:hover .headerlink,
.docs-markdown .headerlink:focus-visible {
  opacity: 1;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.docs-pagination-link {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}

.docs-pagination-link:hover {
  border-color: var(--line-strong, var(--line));
  transform: translateY(-1px);
}

.docs-pagination-link--next {
  text-align: right;
}

.docs-pagination-link span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.docs-pagination-link strong {
  color: var(--headline);
  font-size: 12.5px;
  font-weight: 590;
  line-height: 1.4;
}

.docs-mobile-bar {
  display: none;
}

.docs-scrim {
  display: none;
}

.docs-scrim[hidden] {
  display: none !important;
}

.docs-footer-nav {
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .docs-layout,
  .docs-layout--home {
    max-width: calc(var(--docs-sidebar-width) + var(--docs-content-width) + 42px);
    grid-template-columns: var(--docs-sidebar-width) minmax(0, var(--docs-content-width));
    justify-content: center;
    gap: 42px;
  }

  .docs-outline {
    display: none;
  }
}

@media (max-width: 820px) {
  .docs-main {
    padding: 0 20px 56px;
  }

  .docs-mobile-bar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }

  .docs-mobile-bar > a {
    color: var(--headline);
    font: 600 13px/1 "Space Grotesk", sans-serif;
    text-decoration: none;
  }

  .docs-menu-button {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 0 !important;
    color: var(--text) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font: 550 12px/1 "Space Grotesk", sans-serif !important;
  }

  .docs-layout,
  .docs-layout--home {
    display: block;
    max-width: none;
    padding-top: 24px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 101;
    /* Reset the desktop grid alignment: start makes a fixed panel size to its
       contents instead of filling the safe top/bottom bounds (also in WebKit). */
    align-self: normal;
    top: var(--product-overlay-top);
    bottom: var(--product-overlay-bottom);
    left: 0;
    width: min(86vw, 320px);
    min-height: 0;
    max-height: var(--product-overlay-height);
    overscroll-behavior-y: contain;
    padding: 24px 20px 34px;
    background: var(--bg);
    border-right: 1px solid var(--line);
    box-shadow: var(--product-shadow);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility .22s;
  }

  .docs-nav-open .docs-sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .docs-menu-close {
    display: inline-flex !important;
  }

  .docs-scrim {
    position: fixed;
    z-index: 100;
    inset: var(--product-overlay-top) 0 var(--product-overlay-bottom);
    display: block;
    background: var(--product-overlay);
    backdrop-filter: blur(2px);
  }

  .docs-search {
    margin-bottom: 42px;
  }

  .docs-home-hero {
    padding-top: 12px;
  }
}

@media (max-width: 620px) {
  .docs-main {
    padding-inline: 16px;
  }

  .docs-search {
    height: 46px;
    margin-bottom: 34px;
  }

  .docs-search kbd {
    display: none;
  }

  .docs-home-hero {
    padding-bottom: 38px;
  }

  .docs-home-hero h1 {
    font-size: clamp(39px, 13vw, 55px);
  }

  .docs-home-hero > p:not(.docs-kicker) {
    margin-top: 17px;
    font-size: 15px;
  }

  .docs-home-actions {
    display: grid;
  }

  .docs-primary-action,
  .docs-secondary-action {
    width: 100%;
  }

  .docs-section-grid {
    grid-template-columns: 1fr;
  }

  .docs-section-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .docs-section-number {
    width: 36px;
    height: 36px;
  }

  .docs-breadcrumbs {
    margin-bottom: 24px;
  }

  .docs-article-header h1 {
    font-size: 38px;
  }

  .docs-article-header p {
    font-size: 14.5px;
  }

  .docs-empty-state {
    padding-inline: 20px;
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-pagination > span:empty {
    display: none;
  }

  .docs-pagination-link--next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-sidebar,
  .docs-section-card,
  .docs-primary-action,
  .docs-secondary-action,
  .docs-pagination-link,
  .docs-section-card li svg {
    transition: none;
  }
}
