html { scroll-padding-top: 112px; }

.docs-page {
  --docs-header-height: 76px;
  --docs-soft-blue: #f1f6fe;
  --docs-soft-mint: #f0faf6;
  --docs-border: #dce6ec;
  --docs-secondary: #526777;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.docs-header .header-links > a[aria-current]:not(.button) {
  color: var(--ink);
  font-weight: 600;
}

.docs-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 740px) minmax(140px, 1fr);
  gap: 46px;
  max-width: 1380px;
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 0 40px;
}

.docs-layout--home {
  grid-template-columns: 208px minmax(0, 900px);
  gap: 56px;
}

.docs-sidebar {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  max-height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  padding: 34px 20px 40px 0;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.docs-side-home {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
}

.docs-side-home span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d8e8ed;
  border-radius: 6px;
  background: linear-gradient(120deg, #edf4ff, #eafaf2);
  color: #426b80;
  font: 12px var(--mono);
}

.docs-nav-label {
  margin: 25px 0 8px;
  padding-left: 11px;
  color: #647584;
  font-size: 11px;
  letter-spacing: .07em;
}

.docs-side-link {
  display: block;
  margin: 3px 0;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  transition: background .15s, color .15s;
}

.docs-side-link:hover {
  background: #f7fafc;
  color: var(--link);
}

.docs-side-link[aria-current="page"] {
  background: linear-gradient(110deg, #edf4ff, #edf9f4);
  color: #365d79;
  font-weight: 500;
  box-shadow: inset 2px 0 var(--blue);
}

.docs-main {
  min-width: 0;
  padding: 35px 0 86px;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 39px;
  color: #647584;
  font-size: 11px;
}

.docs-breadcrumb a:hover { color: var(--link); }
.docs-breadcrumb span[aria-hidden] { color: #b3c0c9; }
.docs-article { max-width: 740px; }
.docs-layout--home .docs-article { max-width: 900px; }

.docs-kicker {
  margin-bottom: 15px;
  color: #4d738a;
  font: 11px/1.6 var(--mono);
  letter-spacing: .12em;
}

.docs-article h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.25;
}

.docs-guide-title { font-size: clamp(38px, 4.1vw, 56px) !important; }

.docs-intro {
  max-width: 46em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.docs-rule {
  height: 1px;
  margin: 35px 0 42px;
  border: 0;
  background: var(--line);
}

.docs-article section {
  margin-bottom: 48px;
  scroll-margin-top: 0;
}

.docs-article h2 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.docs-article h3 {
  margin: 28px 0 12px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.docs-article section p,
.docs-article li {
  color: var(--docs-secondary);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.docs-article section p + p { margin-top: 14px; }
.docs-article strong { color: var(--ink); font-weight: 600; }

.docs-article section a:not(.docs-card):not(.docs-shortcut) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.docs-article section a:hover { color: #234c7e; }

.docs-article :not(pre) > code {
  padding: 2px 5px;
  border: 1px solid #e0e8ef;
  border-radius: 4px;
  background: #f5f8fb;
  color: #365d79;
  font-family: var(--mono);
  font-size: .87em;
  overflow-wrap: anywhere;
}

.docs-article ul,
.docs-article ol { margin: 16px 0; padding-left: 22px; }
.docs-article li + li { margin-top: 7px; }

.docs-code {
  min-width: 0;
  margin: 21px 0;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: #fcfdfe;
}

.docs-code-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 15px;
  border-bottom: 1px solid #e7edf2;
  background: #f6f9fc;
  color: #587084;
  font: 10px/1.6 var(--mono);
  letter-spacing: .04em;
}

.docs-code pre {
  margin: 0;
  padding: 17px 19px;
  overflow-x: auto;
  color: #324f65;
  font: 12px/1.9 var(--mono);
  tab-size: 2;
}

.docs-copy {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 4px 7px;
  border: 1px solid #dce6ec;
  border-radius: 5px;
  background: #fff;
  color: #526777;
  font: 10px/1.5 var(--font);
  letter-spacing: 0;
}

.docs-copy:hover { border-color: #9cbede; color: var(--link); }
.docs-copy[data-copied] { border-color: #a9d6c3; background: #f0faf6; color: #307262; }

.docs-note {
  margin: 22px 0;
  padding: 16px 19px;
  border: 1px solid #dceee4;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--docs-soft-mint);
}

.docs-note b {
  display: block;
  margin-bottom: 5px;
  color: #307262;
  font-size: 13px;
  font-weight: 600;
}

.docs-note p { color: #49675a !important; font-size: 13px !important; }

.docs-table-wrap {
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.docs-table th {
  padding: 11px 15px;
  border-bottom: 1px solid var(--docs-border);
  background: #f6f9fc;
  color: #526777;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.docs-table td {
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--docs-secondary);
  font-size: 13px;
  line-height: 1.8;
  vertical-align: top;
}

.docs-table tr:first-child td { border-top: 0; }
.docs-table td:first-child { color: var(--ink); white-space: nowrap; }
.docs-table td:not(:first-child) { min-width: 170px; }

.docs-toc {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  max-height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  padding: 36px 0 28px;
}

.docs-toc-title {
  margin-bottom: 15px;
  color: #647584;
  font-size: 11px;
  letter-spacing: .06em;
}

.docs-toc a {
  display: block;
  padding: 7px 0 7px 13px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.docs-toc a:hover { color: var(--link); }
.docs-toc a[aria-current="location"] { border-color: var(--blue); color: #365d79; }

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

.docs-pager a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px 19px;
  border: 1px solid var(--docs-border);
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  transition: border-color .15s, background .15s;
}

.docs-pager a:hover { border-color: #b3cce3; background: #f7fbfd; }
.docs-pager a:last-child { grid-column: 2; text-align: right; }
.docs-pager small { color: #647584; font-size: 10px; }

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.docs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 157px;
  padding: 22px;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .16s, background .16s;
}

.docs-card::after {
  position: absolute;
  top: 19px;
  right: 22px;
  content: "↗";
  color: #668499;
  font-size: 15px;
}

.docs-card:hover { border-color: #b2cfdf; background: #f8fcfd; }
.docs-card-index { color: #4d738a; font: 10px/1.6 var(--mono); letter-spacing: .06em; }
.docs-card strong { margin: 15px 0 7px; font-size: 17px; letter-spacing: -.025em; }
.docs-card span:last-child { color: var(--muted); font-size: 12px; line-height: 1.8; }

.docs-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 23px 0 0;
  padding: 28px;
  border: 1px solid #dce8ed;
  border-radius: 12px;
  background: linear-gradient(110deg, #f3f7fe, #f1fbf6);
}

.docs-start h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.035em; }
.docs-start p { font-size: 13px !important; }
.docs-start a { display: inline-block; margin-top: 17px; font-size: 12px; }
.docs-start .docs-code { margin: 0; background: #ffffffdb; }

.docs-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.docs-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfe;
  font-size: 11px;
  color: var(--muted);
}

.docs-shortcut:hover { border-color: #b2cfdf; }
.docs-shortcut code { border: 0 !important; padding: 0 !important; background: none !important; font-size: 12px !important; }

.docs-faq {
  margin: 12px 0;
  padding: 16px 19px;
  border: 1px solid var(--docs-border);
  border-radius: 9px;
  background: #fff;
}

.docs-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  list-style: none;
  color: #365d79;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after { content: "+"; color: #668499; font: 17px var(--mono); }
.docs-faq[open] summary::after { content: "−"; }
.docs-faq[open] summary { margin-bottom: 14px; }
.docs-faq .docs-code:last-child { margin-bottom: 0; }

.docs-footer { border-top: 1px solid var(--line); padding: 25px 0; color: #647584; font-size: 11px; }
.docs-footer .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.docs-footer a:hover { color: var(--link); }

.docs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.docs-copy-fallback { position: fixed; top: 0; left: -9999px; }
html[lang="en"] .docs-side-home { align-items: flex-start; }
html[lang="en"] .docs-side-home span { flex-shrink: 0; }
html[lang="en"] .docs-code-label { letter-spacing: 0; }
.docs-pager a, .docs-card, .docs-shortcut { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 38px; }
  .docs-toc { display: none; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 150px; }
  .docs-layout, .docs-layout--home { display: block; padding: 0 24px; }
  .docs-sidebar {
    z-index: 20;
    display: flex;
    gap: 5px;
    max-height: none;
    margin: 0 -24px;
    padding: 11px 24px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #fffffff5;
    white-space: nowrap;
  }
  .docs-side-home, .docs-nav-label { display: none; }
  .docs-side-link { flex: 0 0 auto; margin: 0; padding: 7px 11px; font-size: 12px; }
  .docs-side-link[aria-current="page"] { box-shadow: inset 0 -2px var(--blue); }
  .docs-main { padding: 28px 0 66px; }
  .docs-breadcrumb { margin-bottom: 31px; }
  .docs-article { max-width: none; }
}

@media (max-width: 780px) {
  .docs-page { --docs-header-height: 64px; }
}

@media (max-width: 560px) {
  .docs-layout, .docs-layout--home { padding: 0 20px; }
  .docs-sidebar { margin-inline: -20px; padding-inline: 20px; }
  .docs-intro { font-size: 14px; }
  .docs-article h1 { font-size: 32px; }
  .docs-guide-title { font-size: 38px !important; }
  .docs-article h2 { font-size: 23px; }
  .docs-rule { margin: 30px 0 34px; }
  .docs-article section { margin-bottom: 38px; }
  .docs-card-grid, .docs-start { grid-template-columns: 1fr; }
  .docs-card { min-height: 144px; padding: 20px; }
  .docs-start { gap: 22px; padding: 21px; }
  .docs-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-code pre { padding: 15px; font-size: 11px; }
  .docs-code-label { padding-inline: 12px; font-size: 9px; }
  .docs-pager { gap: 10px; }
  .docs-pager a { padding: 14px 12px; font-size: 12px; }
  .docs-footer { padding-block: 22px; font-size: 10px; }
}

@media print {
  .docs-header, .docs-sidebar, .docs-toc, .docs-pager, .docs-copy, .docs-footer, .skip-link { display: none; }
  .docs-layout { display: block; padding: 0; }
  .docs-main { padding: 0; }
  .docs-article { max-width: none; }
  .docs-code, .docs-note, .docs-table-wrap { break-inside: avoid; }
  .docs-code pre { white-space: pre-wrap; }
}