/* Notion reading layout with neutral gray backgrounds and pale-gold accents. */
.docs-page {
  --ground: #202020; --ink: #e3e2d4; --muted: #acb8a7; --line: #404040;
  --accent: #e4c797; --accent-soft: #303030; --surface-solid: #202020;
  background: #202020; color: #e3e2d4; color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.docs-page:before, .docs-page .site-header:after, .docs-page .site-nav a:after { display: none; }
.docs-page *, .docs-page *:before, .docs-page *:after { box-shadow: none; text-shadow: none; }
.docs-page a, .docs-page button { transition: color 150ms linear, background-color 150ms linear, opacity 150ms linear; }
.docs-page a:hover { color: inherit; }
.docs-page a:active, .docs-page button:active { transform: none; background: #3b3b3b; }
.docs-page :focus-visible { outline: 2px solid #e4c79766; outline-offset: 2px; }
.docs-page ::selection { background: #e4c797; color: #202020; }
.docs-page .site-header {
  width: 100%; min-height: 64px; margin: 0; padding: 0 28px;
  display: flex; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid #404040; background: #202020; animation: none;
}
.docs-page .site-name { gap: 10px; font-size: 17px; letter-spacing: -.02em; }
.docs-page .brand-icon { width: 19px; height: 26px; filter: none; transition: none; }
.docs-page .site-nav { display: flex; align-items: center; gap: 5px; margin: 0; }
.docs-page .site-nav a { min-height: 34px; padding: 7px 11px; font-size: 13px; border: 0; border-radius: 5px; color: #b9c2b4; }
.docs-page .site-nav a:hover { background: #303030; }
.docs-page .site-nav a[aria-current] { color: #e3e2d4; background: #3b3b3b; font-weight: 600; }
.docs-page .site-footer { display: none; }
.docs-page .docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0; min-height: calc(100svh - 64px); outline: none; }
.docs-page .doc-sidebar {
  position: sticky; top: 0; height: calc(100svh - 64px); max-height: 100svh; align-self: start;
  display: flex; flex-direction: column; gap: 0; padding: 28px 14px 20px;
  border-right: 1px solid #404040; background: #202020;
}
.doc-workspace { display: flex; align-items: center; gap: 11px; padding: 0 10px 32px; }
.workspace-icon { width: 34px; height: 36px; display: grid; place-items: center; color: #b9c2b4; background: #303030; border: 1px solid #404040; border-radius: 6px; }
.workspace-icon svg { width: 22px; height: 22px; }
.doc-workspace strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.6; }
.doc-workspace div > span { display: block; font-size: 12px; color: #acb8a7; line-height: 1.6; }
.doc-section-label { padding: 0 12px 10px; color: #acb8a7; font-size: 12px; font-weight: 500; }
.docs-page .doc-sidebar nav { display: grid; gap: 3px; border: 0; overflow: visible; }
.docs-page .doc-sidebar nav .doc-nav-item {
  position: relative; display: flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 8px 12px 8px 24px; margin: 0;
  border: 0; border-radius: 5px; color: #b9c2b4; background: transparent; font-size: 14px; line-height: 1.6;
}
.doc-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; color: #acb8a7; }
.docs-page .doc-sidebar nav a:hover { background: #303030; color: #e3e2d4; }
.docs-page .doc-sidebar nav a[aria-current] { color: #e3e2d4; background: #3b3b3b; font-weight: 600; }
.docs-page .doc-sidebar nav a:active { background: #3b3b3b; }
.drag-handle { pointer-events: none; user-select: none; color: #acb8a7; font-size: 13px; letter-spacing: -3px; line-height: 1; opacity: 0; transition: opacity 150ms linear; }
.doc-nav-item .drag-handle { position: absolute; left: 7px; }
.group:hover > .drag-handle, .group:focus-visible > .drag-handle { opacity: 1; }
.docs-page .doc-sidebar .doc-repository {
  display: flex; align-items: center; gap: 9px; margin: auto 0 0; padding: 9px 12px;
  color: #b9c2b4; font-size: 13px; line-height: 1.5; border-radius: 5px;
}
.doc-repository svg { width: 17px; height: 17px; }
.doc-repository span:last-child { margin-left: auto; }
.docs-page .doc-repository:hover { background: #303030; }
.doc-main { min-width: 0; background: #262626; }
.docs-page .doc-meta {
  display: flex; align-items: center; gap: 10px; min-height: 56px; margin: 0;
  padding: 16px 32px; border: 0; color: #b9c2b4; font-size: 13px; line-height: 1.6; flex-wrap: wrap;
}
.doc-meta > svg { width: 15px; height: 15px; }
.doc-meta .breadcrumb-divider { color: #879582; }
#doc-breadcrumb { color: #e3e2d4; }
.doc-reading-area { width: min(100%, 850px); padding: 48px 64px 120px; margin: 0 auto; }
.doc-page-icon { width: 48px; height: 54px; margin: 0 0 18px; color: #acb8a7; }
.doc-page-icon svg { width: 100%; height: 100%; stroke-width: 1.1; }
.docs-page .markdown { max-width: 72ch; min-height: 430px; font-size: 16px; line-height: 1.8; color: #e3e2d4; }
.docs-page .markdown > :first-child { margin-top: 0; }
.docs-page .markdown h1 { margin: 0 0 32px; color: #e3e2d4; font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.docs-page .markdown h2 { margin: 40px 0 14px; font-size: 26px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.docs-page .markdown h3 { margin: 28px 0 10px; font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.docs-page .markdown h4, .docs-page .markdown h5, .docs-page .markdown h6 { margin: 24px 0 10px; font-size: 17px; line-height: 1.6; font-weight: 600; }
.docs-page .markdown p, .docs-page .markdown ul, .docs-page .markdown ol { margin: 12px 0; color: #e3e2d4; line-height: 1.8; }
.docs-page .markdown ul, .docs-page .markdown ol { padding-left: 25px; }
.docs-page .markdown li { margin: 5px 0; padding-left: 3px; }
.docs-page .markdown li::marker { color: #b9c2b4; }
.docs-page .markdown strong { color: #e3e2d4; font-weight: 600; }
.docs-page .markdown a { color: #e4c797; text-decoration-color: #8c7e5d; text-underline-offset: 3px; }
.docs-page .markdown a:hover { background: #303030; color: #e4c797; }
.docs-page .markdown code { padding: 2px 5px; border-radius: 4px; background: #303030; color: #e4c797; font: .86em/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.docs-page .markdown pre { margin: 20px 0; padding: 20px 24px; border: 1px solid #404040; border-radius: 6px; background: #202020; color: #e3e2d4; overflow: auto; font-size: 13px; }
.docs-page .markdown pre code { padding: 0; background: transparent; color: inherit; white-space: pre; }
.docs-page .markdown blockquote { margin: 20px 0; padding: 14px 20px; background: #202020; border: 1px solid #404040; border-radius: 6px; color: #b9c2b4; }
.docs-page .markdown blockquote p { margin: 0; color: #b9c2b4; }
.docs-page .markdown table { margin: 20px 0; border-collapse: collapse; width: max-content; max-width: 100%; overflow-x: auto; font-size: 14px; }
.docs-page .markdown th, .docs-page .markdown td { padding: 10px 14px; border: 1px solid #404040; color: #e3e2d4; }
.docs-page .markdown th { background: #202020; font-weight: 600; }
.docs-page .markdown hr { margin: 28px 0; border: 0; border-top: 1px solid #404040; }
.docs-page .markdown img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.doc-block { position: relative; }
.doc-block > .drag-handle { position: absolute; left: -24px; top: .6em; }
.docs-page .toast { left: 0; right: 0; width: fit-content; margin-inline: auto; background: #202020; border: 1px solid #404040; color: #e3e2d4; transform: none; transition: opacity 150ms linear; }
.docs-page .toast.visible { transform: none; }
.docs-page.page-exit { opacity: 1; transform: none; }
@media (max-width: 1000px) {
  .docs-page .docs-layout { grid-template-columns: 218px minmax(0, 1fr); }
  .doc-reading-area { padding: 40px 40px 80px; }
}
@media (max-width: 760px) {
  .docs-page .site-header { padding: 16px 20px 8px; min-height: 108px; flex-wrap: wrap; gap: 8px; }
  .docs-page .site-nav { width: 100%; gap: 2px; justify-content: flex-start; overflow: auto; }
  .docs-page .site-nav a { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
  .docs-page .docs-layout { grid-template-columns: minmax(0, 1fr); min-height: calc(100svh - 108px); }
  .docs-page .doc-sidebar { position: relative; height: auto; max-height: none; padding: 18px 20px 12px; border: 0; border-bottom: 1px solid #404040; }
  .doc-workspace { padding: 0 0 14px; }
  .workspace-icon { width: 29px; height: 31px; }
  .doc-workspace div { display: flex; align-items: baseline; gap: 10px; }
  .doc-section-label { display: none; }
  .docs-page .doc-sidebar .doc-repository { position: absolute; top: 18px; right: 20px; margin: 0; padding: 7px 9px; }
  .docs-page .doc-sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .docs-page .doc-sidebar nav .doc-nav-item { min-height: 38px; padding: 7px 9px; gap: 6px; font-size: 13px; }
  .doc-nav-item .drag-handle { display: none; }
  .doc-nav-item svg { display: none; }
  .docs-page .doc-meta { min-height: 48px; padding: 14px 24px; gap: 8px; font-size: 12px; }
  .doc-reading-area { padding: 26px 28px 72px; }
  .doc-page-icon { width: 38px; height: 43px; margin-bottom: 15px; }
  .docs-page .markdown { font-size: 15px; min-height: 340px; }
  .docs-page .markdown h1 { font-size: 32px; margin-bottom: 24px; }
  .docs-page .markdown h2 { font-size: 23px; margin-top: 32px; }
  .docs-page .markdown pre { padding: 16px; }
  .doc-block > .drag-handle { left: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-page *, .docs-page *:before, .docs-page *:after { animation: none !important; transition-duration: 0ms !important; }
}
