

@layer components {

.docs-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.docs-brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.docs-brand__mark {
  width: 20px;
  height: 20px;
}

.docs-brand__rule {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
}

.docs-brand__name {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 510;
  line-height: 27px;
  letter-spacing: normal;
  color: var(--text-primary);
}

.docs-brand__name:hover { opacity: 0.85; }

@media (max-width: 1023px) {

  .docs-brand__logo {
    width: 44px;
    height: 44px;
    margin-left: -10px;
  }

  .docs-brand__mark {
    width: 24px;
    height: 24px;
  }

  .docs-brand__name {
    min-height: 44px;
    padding-right: 4px;
  }
}

}

@layer components {

.docs-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--text-primary);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.docs-cta:hover { opacity: 0.9; }

@media (max-width: 1023px) {
  .docs-cta {
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }
}

}

@layer components {

.docs-shell {
  --docs-ink: color-mix(in srgb, var(--text-primary) 78%, var(--text-secondary));
  --docs-bar-h: 64px;
}

.docs-shell__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.docs-shell__body { min-width: 0; }

.docs-shell__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--docs-bar-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.docs-shell__bar .docs-brand { display: none; }

.docs-shell__crumbs {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.docs-shell__crumb + .docs-shell__crumb::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

.docs-shell__crumb--here { color: var(--text-primary); }

.docs-shell__menu { display: none; }

.docs-shell__cols {
  display: grid;
  grid-template-columns: minmax(0, 650px) 250px;
  column-gap: 76px;
  padding: 0 24px 128px 92px;
}

@media (max-width: 1279px) {
  .docs-shell__cols {
    grid-template-columns: minmax(0, 650px);
    padding-left: clamp(32px, calc((100% - 650px) / 2), 92px);
  }
}

@media (max-width: 1023px) {
  .docs-shell__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .docs-shell__bar {
    gap: 8px;
    padding: 0 var(--gutter);
  }

  .docs-shell__bar .docs-brand {
    display: flex;
    flex: 1;
    min-width: 0;
  }

  .docs-shell__crumbs { display: none; }

  .docs-shell__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border-radius: 10px;
    color: var(--text-primary);
  }

  .docs-shell__cols {
    display: block;
    padding: 0 var(--gutter) 72px;
  }
}

}

@layer components {

.docs-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg-primary);
}

.docs-side::after {
  content: "";
  position: absolute;
  top: var(--docs-bar-h);
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}

.docs-side__top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: var(--docs-bar-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
}

.docs-side__top .docs-cta,
.docs-side__close { display: none; }

.docs-side__tree {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 32px;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, var(--bg-primary) calc(100% - 40px), transparent);
  mask-image: linear-gradient(to bottom, var(--bg-primary) calc(100% - 40px), transparent);
}

.docs-side__tree[hidden] { display: none; }

.docs-side__aud {
  margin: 0;
  padding: 20px 10px 6px;
  font-size: 12px;
  font-weight: 510;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.docs-side__aud:first-child { padding-top: 8px; }

.docs-side__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 510;
  line-height: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
}

.docs-side__sum::-webkit-details-marker { display: none; }

.docs-side__sum::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.docs-side__group[open] > .docs-side__sum { color: var(--text-primary); }
.docs-side__group[open] > .docs-side__sum::after { transform: rotate(45deg); }

.docs-side__sum:hover { color: var(--text-primary); }

.docs-side__list {
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}

.docs-side__link {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px 6px 22px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.docs-side__link:hover { color: var(--text-primary); }

.docs-side__link[aria-current="page"] {
  font-weight: 510;
  color: var(--text-primary);
}

.docs-side__foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-top: 1px solid var(--border-light);
}

.docs-side__foot-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.docs-side__foot-link:hover { color: var(--text-primary); }

.docs-side-open { overflow: hidden; }

@media (max-width: 1023px) {
  .docs-side {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    height: 100dvh;
    border-right: 0;
  }

  .docs-side.is-open,
  .docs-side:target { display: flex; }

  .docs-side::after { display: none; }

  .docs-side__top {
    gap: 8px;
    padding: 0 var(--gutter);
  }

  .docs-side__top .docs-brand {
    display: flex;
    flex: 1;
    min-width: 0;
  }

  .docs-side__top .docs-cta { display: inline-flex; }

  .docs-side__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    color: var(--text-primary);
  }

  .docs-side__tree { padding: 4px calc(var(--gutter) - 10px) 40px; }

  .docs-side__aud { padding-top: 24px; }

  .docs-side__sum {
    min-height: 44px;
    font-size: 17px;
    line-height: 24px;
  }

  .main-content.main-content.docs-shell .docs-side__link {
    display: flex;
    min-height: 44px;
    margin: 0;
    padding: 10px 10px 10px 22px;
    font-size: 16px;
    line-height: 22px;
  }

  .docs-side__foot { padding: 12px calc(var(--gutter) - 10px) calc(12px + env(safe-area-inset-bottom, 0px)); }

  .docs-side__foot-link {
    min-height: 44px;
    font-size: 16px;
  }
}

}

@layer components {

.docs-search {
  flex: none;
  padding: 16px 12px 8px;
}

.docs-search[hidden] { display: none; }

.docs-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: text;
}

.docs-search__field:focus-within { border-color: var(--accent-color); }

.docs-search__icon { flex: none; }

.docs-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-primary);
}

.docs-search__input::placeholder { color: var(--text-muted); }

.docs-search__results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 32px;
}

.docs-search__results[hidden] { display: none; }

.docs-search__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-search__hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.docs-search__hit:hover,
.docs-search__hit:focus-visible { background: var(--border-light); }

.docs-search__hit-title {
  font-size: 14px;
  font-weight: 510;
  line-height: 20px;
  color: var(--text-primary);
}

.docs-search__hit-path {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.docs-search__hit-sum {
  font-size: 13px;
  line-height: 19px;
}

.docs-search__none {
  margin: 0;
  padding: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .docs-search { padding: 16px var(--gutter) 8px; }

  .docs-search__field { height: 48px; }

  .docs-search__input { font-size: 16px; }

  .docs-search__results { padding: 4px calc(var(--gutter) - 10px) 40px; }

  .main-content.main-content.docs-shell .docs-search__hit {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    margin: 0;
    padding: 10px;
  }

  .docs-search__hit-title { font-size: 16px; line-height: 22px; }

  .docs-search__hit-path { font-size: 13px; }

  .docs-search__hit-sum { font-size: 15px; line-height: 22px; }

  .docs-search__none { font-size: 16px; }
}

}

@layer components {

.docs-art {
  min-width: 0;
  max-width: 650px;
  padding-top: 48px;
}

.docs-art__h1 {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 590;
  line-height: 36px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.docs-art__body {
  font-size: 15px;
  line-height: 24px;
  color: var(--docs-ink);
}

.docs-art__body p { margin: 0 0 20px; }

.docs-art__body h2 {
  margin: 48px 0 12px;
  font-size: 24px;
  font-weight: 590;
  line-height: 32px;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--docs-bar-h) + 32px);
}

.docs-art__body h3 {
  margin: 32px 0 8px;
  font-size: 20px;
  font-weight: 590;
  line-height: 32px;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--docs-bar-h) + 32px);
}

.docs-art__body ul,
.docs-art__body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.docs-art__body li { margin: 8px 0; }

.docs-art__body li::marker { color: var(--text-muted); }

.docs-art__body strong {
  font-weight: 590;
  color: var(--text-primary);
}

.docs-art__body code {
  padding: 1px 5px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-tertiary);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.docs-art__body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.docs-art__body a:hover { text-decoration-color: currentColor; }

.docs-art__note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.docs-art__note p:last-child { margin-bottom: 0; }

@media (max-width: 1023px) {

  .docs-art {
    max-width: none;
    padding-top: 112px;
  }

  .main-content.main-content .docs-art__h1 {
    margin-bottom: 16px;
    font-size: var(--mt-h1-docs);
    line-height: var(--mt-lh-title);
    letter-spacing: var(--mt-ls-display);
  }

  .main-content.main-content .docs-art__body {
    font-size: var(--mt-body);
    line-height: 1.6;
  }

  .main-content.main-content .docs-art__body h2 {
    margin-top: 40px;
    font-size: var(--mt-h2-docs);
    line-height: var(--mt-lh-title);
  }

  .main-content.main-content .docs-art__body h3 {
    margin-top: 28px;
    font-size: var(--mt-h3);
    line-height: 1.35;
  }
}

}

@layer components {

.docs-toc { display: none; }

@media (min-width: 1280px) {
  .docs-toc {
    position: sticky;
    top: calc(var(--docs-bar-h) + 24px);
    display: block;
    align-self: start;
    max-height: calc(100vh - var(--docs-bar-h) - 48px);
    padding-top: 36px;
    overflow-y: auto;
  }
}

.docs-toc__h {
  margin: 0 0 10px;
  padding-left: 14px;
  font-size: 13px;
  font-weight: 510;
  line-height: 20px;
  color: var(--text-primary);
}

.docs-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border-light);
}

.docs-toc__link {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 13px;
  border-left: 1px solid transparent;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.docs-toc__item--sub .docs-toc__link { padding-left: 25px; }

.docs-toc__link:hover { color: var(--text-secondary); }

.docs-toc__link.is-active {
  border-left-color: var(--text-primary);
  color: var(--text-primary);
}

}

@layer components {

.docs-faq { margin-top: 48px; }

.docs-faq__h {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 590;
  line-height: 32px;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--docs-bar-h) + 32px);
}

.docs-faq__item { border-bottom: 1px solid var(--border-light); }

.docs-faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 510;
  line-height: 22px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.docs-faq__q::-webkit-details-marker { display: none; }

.docs-faq__q::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.docs-faq__item[open] > .docs-faq__q::before { transform: rotate(45deg); }

.docs-faq__a {
  padding: 0 0 18px 24px;
  font-size: 15px;
  line-height: 24px;
  color: var(--docs-ink);
}

.docs-faq__a p { margin: 0 0 12px; }

.docs-faq__a p:last-child { margin-bottom: 0; }

@media (max-width: 1023px) {
  .main-content.main-content .docs-faq__h {
    font-size: var(--mt-h2-read);
    line-height: var(--mt-lh-title);
  }

  .docs-faq__q {
    font-size: var(--mt-body);
    line-height: 24px;
  }

  .docs-faq__a {
    padding-left: 0;
    font-size: var(--mt-body);
    line-height: 1.6;
  }
}

}

@layer components {

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}

.docs-pager__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 80px;
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.docs-pager__card:hover { background: var(--border-subtle); border-color: var(--text-muted); }

.docs-pager__card--next {
  align-items: flex-end;
  text-align: right;
}

.docs-pager__dir {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}

.docs-pager__title {
  font-size: 15px;
  font-weight: 510;
  line-height: 20px;
  color: var(--text-primary);
}

@media (max-width: 1023px) {
  .docs-pager {
    gap: 12px;
    margin-top: 48px;
  }

  .docs-pager__card {
    min-height: 98px;
    padding: 14px;
  }

  .docs-pager__title { font-size: 16px; line-height: 22px; }
}

}

@layer components {

.docs-home { padding: 48px 72px 128px 92px; }

.docs-home__h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 590;
  line-height: 44px;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.docs-home__sub {
  margin: 0 0 48px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}

.docs-home__h2 {
  margin: 56px 0 24px;
  font-size: 20px;
  font-weight: 590;
  line-height: 28px;
  color: var(--text-primary);
}

.docs-home__entries,
.docs-home__cards {
  display: grid;
  gap: 16px;
  margin: 0 0 0 -20px;
  padding: 0;
  list-style: none;
}

.docs-home__entries { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.docs-home__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.docs-home__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-secondary);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.docs-home__card--entry { min-height: 250px; }

.docs-home__card--entry .docs-home__icon { height: 116px; }

.docs-home__card:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
}

.docs-home__icon {
  display: block;
  flex: none;
  height: 146px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.docs-home__title {
  padding: 20px 20px 0;
  font-size: 15px;
  font-weight: 510;
  line-height: 22px;
  color: var(--text-primary);
}

.docs-home__text {
  padding: 6px 20px 22px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-secondary);
}

@media (max-width: 1279px) {
  .docs-home { padding: 48px 32px 112px 48px; }

  .docs-home__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {

  .docs-home { padding: 112px var(--gutter) 72px; }

  .main-content.main-content .docs-home__h1 {
    font-size: var(--mt-h1);
    line-height: var(--mt-lh-title);
    letter-spacing: var(--mt-ls-display);
  }

  .docs-home__sub {
    margin-bottom: 32px;
    font-size: var(--mt-body);
  }

  .main-content.main-content .docs-home__h2 {
    margin-top: 48px;
    font-size: var(--mt-h2-read);
    line-height: var(--mt-lh-title);
  }

  .docs-home__entries,
  .docs-home__cards {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
  }

  .main-content.main-content.docs-shell .docs-home__card {
    display: flex;
    align-items: stretch;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .docs-home__icon,
  .docs-home__card--entry .docs-home__icon {
    height: auto;
    padding: 20px;
  }

  .docs-home__title { font-size: var(--mt-body); }

  .docs-home__text {
    font-size: var(--mt-body);
    line-height: 1.5;
  }
}

}
