:root {
  color-scheme: light;
  --orange: #e54b22;
  --ink: #171717;
  --pill: #111111;
  --warm: #fff0eb;
  --card-line: #efe6e1;
  --cmd-bg: #faf7f5;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #ececec;
  --sidebar-bg: #fafafa;
  --text: var(--ink);
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: rgba(17, 17, 17, .08);
  --line-strong: rgba(17, 17, 17, .14);
  --accent: var(--orange);
  --accent-soft: var(--warm);
  --code-bg: #f6f6f6;
  --code-text: var(--ink);
  --btn-copy-bg: var(--pill);
  --btn-copy-fg: #ffffff;
  --btn-copy-toast-bg: var(--pill);
  --btn-copy-toast-fg: #ffffff;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04);
  --shadow-card: 0 12px 36px rgba(17, 17, 17, .08);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --font-text: Inter, "Helvetica Neue", ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --sidebar-width: 252px;
  --toc-width: 214px;
  --topbar-height: 56px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1b1b1b;
  --surface-2: #242424;
  --surface-3: #2e2e2e;
  --sidebar-bg: #181818;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --muted-2: #737373;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #ff6b47;
  --accent-soft: rgba(229, 75, 34, .16);
  --card-line: rgba(255, 255, 255, .1);
  --cmd-bg: #262626;
  --code-bg: #262626;
  --code-text: #f3f4f6;
  --btn-copy-bg: #f5f5f5;
  --btn-copy-fg: #171717;
  --btn-copy-toast-bg: #f5f5f5;
  --btn-copy-toast-fg: #171717;
  --shadow: 0 1px 2px rgba(0, 0, 0, .22);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body,
.topbar,
.sidebar,
.toc,
.content,
.code-block,
.agent-install-panel,
.install-cmd,
.search-results,
.mobile-backdrop,
.icon-button,
.theme-toggle {
  transition:
    background-color .26s ease,
    color .26s ease,
    border-color .26s ease,
    box-shadow .26s ease;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .32s;
    animation-timing-function: ease;
  }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 14.5px/1.7 var(--font-text);
  letter-spacing: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--accent) 84%, var(--text)); text-decoration: underline; }
.markdown-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.markdown-body a:hover {
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  text-decoration: underline;
}
.topbar {
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
a.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 760;
  font-size: 20px;
  letter-spacing: -.01em;
  text-decoration: none;
}
a.brand:hover,
a.brand:focus-visible {
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  transition: transform .18s ease, opacity .18s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.03); }
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 38px;
}
.top-nav a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.top-nav a:hover,
.top-nav a:focus-visible {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
.top-nav a.active {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.top-nav a:hover { transform: translateY(-1px); }
.search-trigger {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.search-trigger:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
}
.icon-button, .theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.icon-button:hover, .theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.language-menu {
  position: relative;
  margin-left: auto;
}
.language-menu summary {
  list-style: none;
  height: 34px;
  min-width: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .65;
  transition: transform .16s ease, opacity .16s ease;
}
.language-menu[open] summary {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.language-menu[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
  opacity: .9;
}
.language-menu summary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.language-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 158px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform-origin: top right;
  animation: menuIn .14s ease both;
}
[data-theme="dark"] .language-panel {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.language-panel span,
.language-panel button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.language-panel .active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
}
.language-panel button:disabled {
  cursor: not-allowed;
  opacity: .72;
}
.language-panel em {
  color: var(--muted-2);
  font-style: normal;
  font-size: 12px;
}
.menu-toggle { display: none; }
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
}
.sidebar, .toc {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow: auto;
  padding: 20px 0;
}
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding-left: 14px;
  padding-right: 10px;
}
.content {
  min-width: 0;
  padding: 36px 32px 76px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  animation: pageIn .22s ease both;
}
.sidebar-nav {
  padding: 0;
}
.sidebar-search { margin-bottom: 16px; }
.nav-collection {
  border-top: 0;
  padding: 2px 0 10px;
}
.nav-collection summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}
.nav-collection summary::-webkit-details-marker { display: none; }
.nav-collection summary a { color: var(--text); }
.nav-group { margin: 4px 0 12px; }
.nav-group-title {
  padding: 11px 8px 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.nav-subgroup-title {
  padding: 6px 8px 2px 14px;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.collection-subgroup-title {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.collection-subgroup-title:first-child { margin-top: 0; }
a.nav-link {
  display: block;
  color: var(--muted);
  border-left: 0;
  border-radius: var(--radius);
  padding: 6px 9px;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .14s ease;
}
a.nav-link:hover,
a.nav-link:focus-visible {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
a.nav-link.active {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}
.toc {
  padding: 38px 18px 20px 12px;
  background: var(--surface);
}
.toc-title {
  color: var(--text);
  font-weight: 760;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
}
a.toc-link {
  display: block;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding: 5px 0 5px 12px;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .14s ease, border-color .14s ease, transform .14s ease;
}
a.toc-link.child { padding-left: 22px; font-size: 12.5px; }
a.toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}
a.toc-link:hover,
a.toc-link:focus-visible {
  color: var(--text);
  text-decoration: none;
  transform: translateX(2px);
}
.toc-empty {
  color: var(--muted);
  font-size: 13px;
}
.article, .home-intro, .collection-list {
  max-width: 780px;
  margin: 0 auto;
}
.article-intro, .home-intro {
  padding: 12px 0 24px;
}
.breadcrumb, .eyebrow, .link-kicker {
  color: var(--muted);
  font-weight: 780;
  font-size: 12px;
  text-transform: uppercase;
}
h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
}
.article-intro p, .home-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}
.markdown-body {
  margin-top: 14px;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  letter-spacing: 0;
  line-height: 1.22;
}
.markdown-body h1 { font-size: 30px; margin: 34px 0 12px; }
.markdown-body h2 { font-size: 22px; margin: 34px 0 10px; font-weight: 740; }
.markdown-body h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 740; }
.markdown-body h4 { font-size: 16px; margin: 22px 0 8px; }
.heading-anchor {
  opacity: 0;
  margin-left: -20px;
  padding-right: 6px;
  color: var(--muted);
}
h1:hover .heading-anchor, h2:hover .heading-anchor, h3:hover .heading-anchor, h4:hover .heading-anchor {
  opacity: 1;
  text-decoration: none;
}
.markdown-body p,
.markdown-body li {
  color: var(--text);
}
.markdown-body p {
  margin: 0 0 14px;
}
.markdown-body ul, .markdown-body ol {
  padding-left: 22px;
  margin: 12px 0 18px;
}
.markdown-body li + li { margin-top: 6px; }
.markdown-body code:not(pre code) {
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: .92em;
  font-family: var(--font-mono);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 16px 0 24px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}
th {
  background: color-mix(in srgb, var(--surface-2) 42%, transparent);
  color: var(--text);
  font-size: 13px;
}
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.code-block {
  margin: 18px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  color: var(--code-text);
  overflow: visible;
  box-shadow: none;
}
.code-block figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: color-mix(in srgb, var(--code-bg) 72%, var(--surface));
  padding: 8px 10px 8px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  overflow: visible;
}
.code-copy-actions {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}
.copy-code,
.install-cmd-copy {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-copy-bg);
  color: var(--btn-copy-fg);
  padding: 0;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease, color .15s ease;
}
.copy-code:hover,
.install-cmd-copy:hover {
  transform: scale(1.04);
  opacity: .88;
}
.copy-code svg,
.install-cmd-copy svg {
  width: 15px;
  height: 15px;
}
.copy-code-toast,
.install-cmd-toast {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 40;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--btn-copy-toast-bg);
  color: var(--btn-copy-toast-fg);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(17, 17, 17, .12);
  animation: install-toast-in .18s var(--ease);
}
[data-theme="dark"] .copy-code-toast,
[data-theme="dark"] .install-cmd-toast {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
}
.copy-code-toast[hidden],
.install-cmd-toast[hidden] {
  display: none !important;
}
.docs-copy-feedback {
  position: fixed;
  z-index: 120;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--btn-copy-toast-bg);
  color: var(--btn-copy-toast-fg);
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(17, 17, 17, .12);
  animation: install-toast-in .18s var(--ease);
}
.docs-copy-feedback[hidden] {
  display: none !important;
}
[data-theme="dark"] .docs-copy-feedback {
  box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
}
.agent-install-panel {
  margin: 0 0 24px;
}
.install-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--code-bg);
  color: var(--text);
  box-shadow: none;
}
.install-cmd-prompt {
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.install-cmd-text {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: inherit;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.install-cmd-text::-webkit-scrollbar { display: none; }
.install-cmd-actions {
  position: relative;
  flex-shrink: 0;
}
@keyframes install-toast-in {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.copy-code:active,
.language-menu summary:active {
  transform: translateY(0) scale(.985);
}
.code-block pre {
  margin: 0;
  overflow: auto;
  max-height: 430px;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
  background: var(--code-bg);
}
.code-block pre code {
  display: block;
  padding: 15px 17px;
  white-space: pre;
  font: 13px/1.65 var(--font-mono);
}
pre {
  margin: 0;
  overflow: auto;
  max-height: 430px;
}
pre code {
  display: block;
  padding: 15px 17px;
  white-space: pre;
  font: 13px/1.65 var(--font-mono);
}
.tok-keyword { color: #c2410c; font-weight: 680; }
.tok-string { color: #15803d; }
.tok-comment { color: var(--muted-2); font-style: italic; }
.tok-number { color: #7c3aed; }
.tok-function { color: #b45309; }
.tok-property { color: #e54b22; }
[data-theme="dark"] .tok-keyword { color: #ff8a65; }
[data-theme="dark"] .tok-string { color: #86efac; }
[data-theme="dark"] .tok-number { color: #c4b5fd; }
[data-theme="dark"] .tok-function { color: #fdba74; }
[data-theme="dark"] .tok-property { color: #ff8a65; }
.callout {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
  padding: 13px 15px;
  color: var(--text);
}
.callout.warning { border-color: color-mix(in srgb, #f59e0b 34%, var(--line)); background: rgba(245, 158, 11, .08); }
.callout.tip { border-color: color-mix(in srgb, #16a34a 30%, var(--line)); background: rgba(22, 163, 74, .08); }
.callout.important { border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 88%, var(--surface)); }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.related-section {
  margin-top: 42px;
  padding-top: 4px;
}
.related-list, .doc-link-list, .collection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
a.related-link,
a.doc-link,
a.collection-link {
  display: block;
  color: var(--text);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: none;
  transform: none;
}
a.related-link:hover,
a.related-link:focus-visible,
a.doc-link:hover,
a.doc-link:focus-visible,
a.collection-link:hover,
a.collection-link:focus-visible {
  color: var(--text);
  text-decoration: none;
  border-color: var(--card-line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform: none;
}
a.related-link strong,
a.doc-link strong,
a.collection-link strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 5px;
}
a.related-link:hover strong,
a.related-link:focus-visible strong,
a.doc-link:hover strong,
a.doc-link:focus-visible strong,
a.collection-link:hover strong,
a.collection-link:focus-visible strong {
  color: var(--text);
}
.related-link span, .doc-link span, .collection-link span,
.collection-link em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.home-intro {
  max-width: 830px;
}
.collection-list {
  max-width: 830px;
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.collection-link strong { font-size: 20px; margin: 8px 0 6px; }
.collection-link em { margin-top: 12px; color: var(--accent); font-weight: 700; }
.collection-group {
  margin-top: 36px;
}
.collection-group > p {
  color: var(--muted);
  margin-top: -6px;
}
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 9vh min(6vw, 72px);
  transition: opacity .18s ease, visibility .18s ease;
}
.search-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.search-box, .search-results {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(8px) scale(.99);
  transition: opacity .18s ease, transform .18s ease;
}
.search-panel.open .search-box,
.search-panel.open .search-results {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.search-box {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  padding: 9px 10px;
  box-shadow: var(--shadow-card);
}
#docs-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.search-close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.search-results {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 62vh;
  overflow-y: auto;
  transition-delay: .03s;
}
.search-result {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color .14s ease, transform .14s ease;
}
.search-result:hover {
  background: color-mix(in srgb, var(--surface-2) 54%, transparent);
  text-decoration: none;
  transform: translateX(2px);
}
.search-result strong { display: block; color: var(--text); }
.search-result span { display: block; color: var(--muted); font-size: 13px; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
@media (max-width: 1180px) {
  .shell { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
  .toc { display: none; }
  .content { border-right: 0; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .top-nav { display: none; }
  .language-menu { margin-left: auto; }
  .sidebar-search { width: 100%; }
  .shell { display: block; padding: 0 14px; }
  .sidebar {
    position: fixed;
    z-index: 80;
    top: var(--topbar-height);
    bottom: 0;
    left: 0;
    width: min(88vw, 340px);
    height: auto;
    background: var(--sidebar-bg);
    transform: translateX(-110%);
    transition: transform .2s ease;
    padding: 14px;
    border-right: 1px solid var(--line);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-backdrop {
    position: fixed;
    inset: var(--topbar-height) 0 0;
    background: rgba(2, 6, 23, .35);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
  }
  body.sidebar-open .mobile-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .content { padding-top: 18px; }
  .article-intro, .home-intro { padding: 14px 0 22px; }
  .related-list, .doc-link-list, .collection-list { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .brand { gap: 7px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-text { display: none; }
  .language-menu summary { min-width: 58px; }
}
