:root {
  --docs-ink: #151510;
  --docs-muted: #67665f;
  --docs-paper: #fbfbf7;
  --docs-surface: #f2f1e9;
  --docs-line: rgba(21, 21, 16, .14);
  --docs-navy: #0c0a92;
  --docs-amber: #c97f08;
  --docs-shell: 1480px;
  --docs-sidebar: 272px;
  --docs-toc: 218px;
}

body:has(.maia-docs) {
  background: var(--docs-paper);
  color: var(--docs-ink);
}

body.docs-lock-scroll { overflow: hidden; }
.sr-only { 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; }

.maia-docs { min-height: calc(100vh - 76px); background: var(--docs-paper); letter-spacing: -.01em; }
.docs-toolbar { position: sticky; top: 76px; z-index: 18; height: 62px; border-bottom: 1px solid var(--docs-line); background: rgba(251, 251, 247, .94); backdrop-filter: blur(16px); }
.docs-toolbar-inner { width: min(var(--docs-shell), 100%); height: 100%; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: var(--docs-sidebar) 1fr; align-items: center; }
.docs-wordmark { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: var(--docs-ink); font-size: .86rem; text-decoration: none; text-transform: uppercase; letter-spacing: .055em; }
.docs-wordmark strong { color: var(--docs-navy); }
.docs-mark { display: grid; place-items: center; width: 29px; height: 29px; background: var(--docs-ink); color: #ffd33d; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.docs-toolbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.docs-toolbar-actions > a { color: #3d3c36; font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .045em; }
.docs-toolbar-actions > a:hover { color: var(--docs-navy); }
.docs-search-open { border: 1px solid var(--docs-line); background: #fff; color: var(--docs-muted); min-width: 330px; padding: 10px 12px; display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: .82rem; text-align: left; cursor: pointer; }
.docs-search-open span { flex: 1; }
.docs-search-open kbd, .docs-search-hint kbd { border: 1px solid var(--docs-line); background: var(--docs-surface); padding: 2px 5px; font: 600 .7rem/1.3 Inter, sans-serif; }
.docs-nav-toggle { display: none; }

.docs-layout { width: 100%; min-height: calc(100vh - 138px); display: grid; grid-template-columns: max(var(--docs-sidebar), calc((100% - var(--docs-shell)) / 2 + var(--docs-sidebar))) minmax(0, 1fr) max(var(--docs-toc), calc((100% - var(--docs-shell)) / 2 + var(--docs-toc))); }
.docs-sidebar { border-right: 1px solid var(--docs-line); background: #f5f4ed; }
.docs-sidebar-scroll { position: sticky; top: 138px; width: var(--docs-sidebar); max-height: calc(100vh - 138px); margin-left: auto; overflow-y: auto; padding: 30px 25px 42px 28px; box-sizing: border-box; scrollbar-width: thin; overscroll-behavior: contain; }
.docs-overview-link { display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin: 0 0 18px -12px; color: #393832; font-size: .88rem; font-weight: 700; text-decoration: none; }
.docs-overview-link.is-active, .docs-overview-link:hover { color: var(--docs-navy); background: rgba(12, 10, 146, .07); }
.docs-nav-group { margin: 0; padding: 0; }
.docs-nav-group + .docs-nav-group { margin-top: 18px; }
.docs-nav-heading { margin: 0 0 6px; color: #87847a; font-size: .68rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .11em; }
.docs-nav-group ul { margin: 0; padding: 0; list-style: none; }
.docs-nav-group li + li { margin-top: 1px; }
.docs-nav-group a { display: block; position: relative; padding: 5px 8px 5px 14px; color: #4b4942; font-size: .83rem; line-height: 1.4; text-decoration: none; }
.docs-nav-group a::before { content: ""; position: absolute; left: 0; top: 7px; width: 2px; height: 15px; background: transparent; }
.docs-nav-group a:hover { color: var(--docs-navy); }
.docs-nav-group a.is-active { color: var(--docs-navy); font-weight: 700; }
.docs-nav-group a.is-active::before { background: var(--docs-navy); }
.docs-sidebar-help { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--docs-line); display: grid; gap: 6px; font-size: .77rem; }
.docs-sidebar-help span { color: var(--docs-muted); }
.docs-sidebar-help a { color: var(--docs-navy); font-weight: 700; text-decoration: none; }

.docs-main { min-width: 0; padding: 54px clamp(34px, 5vw, 78px) 80px; }
.docs-article { width: min(780px, 100%); margin: 0 auto; }
.docs-breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; color: #858278; font-size: .75rem; }
.docs-breadcrumbs a { color: var(--docs-navy); text-decoration: none; }
.docs-breadcrumbs i { font-size: .55rem; }
.docs-kicker { color: var(--docs-amber); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.docs-article-header { padding-bottom: 36px; border-bottom: 1px solid var(--docs-line); }
.docs-article-header h1, .docs-home-hero h1 { margin: 15px 0 18px; max-width: 760px; font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: .96; letter-spacing: -.075em; }
.docs-article-header > p, .docs-home-hero > p { max-width: 680px; margin: 0; color: #55534c; font-size: 1.08rem; line-height: 1.72; }

.docs-prose { padding-top: 16px; color: #37362f; font-size: .98rem; line-height: 1.75; }
.docs-prose h2 { margin: 52px 0 15px; padding-top: 8px; color: var(--docs-ink); font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -.045em; scroll-margin-top: 165px; }
.docs-prose h3 { margin: 34px 0 11px; color: var(--docs-ink); font-size: 1.16rem; line-height: 1.35; letter-spacing: -.02em; scroll-margin-top: 165px; }
.docs-prose p { margin: 0 0 18px; }
.docs-prose a { color: var(--docs-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.docs-prose ul, .docs-prose ol { margin: 12px 0 24px; padding-left: 24px; }
.docs-prose li { padding-left: 5px; margin: 7px 0; }
.docs-prose ol li::marker { color: var(--docs-navy); font-weight: 800; }
.docs-prose code { border: 1px solid rgba(12, 10, 146, .12); background: rgba(12, 10, 146, .055); padding: 2px 5px; color: #24216a; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.docs-prose pre { position: relative; overflow: auto; margin: 22px 0 26px; padding: 22px 90px 22px 22px; border: 1px solid #23231e; background: #11110f; color: #f8f3df; font: .88rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.docs-prose pre code { border: 0; background: transparent; padding: 0; color: inherit; font: inherit; }
.docs-copy { position: absolute; top: 10px; right: 10px; border: 1px solid rgba(255, 255, 255, .2); background: #1c1c18; color: #d8d5ca; padding: 7px 9px; display: inline-flex; gap: 6px; align-items: center; font: 600 .7rem Inter, sans-serif; cursor: pointer; }
.docs-copy:hover, .docs-copy.is-copied { color: #ffd33d; border-color: rgba(255, 211, 61, .5); }
.docs-prose table { width: 100%; margin: 22px 0 30px; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
.docs-prose th, .docs-prose td { border-bottom: 1px solid var(--docs-line); padding: 12px 13px; text-align: left; vertical-align: top; }
.docs-prose th { border-top: 1px solid var(--docs-ink); color: var(--docs-ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .065em; }
.docs-prose td:first-child { color: var(--docs-ink); font-weight: 600; }
.docs-note, .docs-caution { margin: 26px 0; padding: 18px 20px; border-left: 3px solid var(--docs-navy); background: rgba(12, 10, 146, .055); }
.docs-caution { border-left-color: var(--docs-amber); background: rgba(201, 127, 8, .08); }
.docs-note strong, .docs-caution strong { display: block; margin-bottom: 5px; color: var(--docs-ink); }
.docs-note p:last-child, .docs-caution p:last-child { margin-bottom: 0; }
.docs-steps { counter-reset: docs-step; padding: 0 !important; list-style: none; }
.docs-steps > li { position: relative; min-height: 44px; padding: 0 0 24px 52px !important; margin: 0 !important; }
.docs-steps > li::before { counter-increment: docs-step; content: counter(docs-step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--docs-line); color: var(--docs-navy); font-weight: 800; font-size: .78rem; }
.docs-steps > li + li::after { content: ""; position: absolute; left: 15px; top: -22px; width: 1px; height: 20px; background: var(--docs-line); }
.docs-result { margin: 28px 0; padding: 18px 20px; border: 1px solid rgba(42, 115, 72, .24); background: rgba(42, 115, 72, .06); }
.docs-result strong { color: #1f6b3b; }

.docs-toc { padding: 54px 24px 50px 0; }
.docs-toc-sticky { position: sticky; top: 174px; padding-left: 22px; border-left: 1px solid var(--docs-line); }
.docs-toc h2 { margin: 0 0 13px; color: #858278; font-size: .68rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .1em; }
.docs-toc nav { display: grid; gap: 1px; }
.docs-toc a { padding: 5px 0; color: #77746b; font-size: .75rem; line-height: 1.42; text-decoration: none; }
.docs-toc a.is-subsection { padding-left: 12px; font-size: .71rem; }
.docs-toc a:hover, .docs-toc a.is-active { color: var(--docs-navy); }
.docs-toc.is-empty { visibility: hidden; }
.docs-nav-backdrop { display: none; }

.docs-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--docs-line); }
.docs-pagination a { display: grid; gap: 6px; color: var(--docs-ink); text-decoration: none; }
.docs-pagination a > span { color: #8a877d; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.docs-pagination strong { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.docs-pagination-next { text-align: right; }
.docs-pagination-next strong { justify-content: flex-end; }
.docs-pagination a:hover strong { color: var(--docs-navy); }

.docs-home { width: min(940px, 100%); }
.docs-home-hero { padding: 16px 0 62px; border-bottom: 1px solid var(--docs-line); }
.docs-home-hero h1 { max-width: 900px; font-size: clamp(3.45rem, 7vw, 6.65rem); }
.docs-home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.docs-primary-action, .docs-inline-search { min-height: 47px; padding: 0 17px; display: inline-flex; align-items: center; gap: 11px; border: 1px solid var(--docs-ink); font: 700 .77rem Inter, sans-serif; text-decoration: none; text-transform: uppercase; letter-spacing: .045em; cursor: pointer; }
.docs-primary-action { background: var(--docs-ink); color: #fff; }
.docs-primary-action:hover { background: var(--docs-navy); border-color: var(--docs-navy); }
.docs-inline-search { min-width: 0; background: transparent; color: var(--docs-ink); }
.docs-inline-search:hover { border-color: var(--docs-navy); color: var(--docs-navy); }
.docs-paths { padding: 58px 0; border-bottom: 1px solid var(--docs-line); }
.docs-section-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 34px; }
.docs-section-heading > span { padding-top: 8px; color: var(--docs-amber); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.docs-section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.03; letter-spacing: -.055em; }
.docs-path-list { border-top: 1px solid var(--docs-ink); }
.docs-path-list > a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 16px; align-items: center; min-height: 96px; border-bottom: 1px solid var(--docs-line); color: var(--docs-ink); text-decoration: none; transition: padding .18s ease, color .18s ease; }
.docs-path-list > a:hover { padding-left: 10px; color: var(--docs-navy); }
.docs-path-number { color: #aaa79e; font: 600 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-path-list strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.docs-path-list small { display: block; color: var(--docs-muted); font-size: .84rem; line-height: 1.5; }

.docs-search { width: min(680px, calc(100% - 28px)); max-height: min(680px, calc(100vh - 40px)); padding: 0; border: 1px solid rgba(255, 255, 255, .2); background: var(--docs-paper); color: var(--docs-ink); box-shadow: 0 28px 80px rgba(0, 0, 0, .32); }
.docs-search::backdrop { background: rgba(12, 12, 10, .6); backdrop-filter: blur(3px); }
.docs-search-head { min-height: 66px; padding: 0 17px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 36px; align-items: center; gap: 10px; border-bottom: 1px solid var(--docs-line); }
.docs-search-head input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--docs-ink); font: 500 1rem Inter, sans-serif; }
.docs-search-close { width: 34px; height: 34px; border: 0; background: transparent; color: var(--docs-muted); cursor: pointer; }
.docs-search-results { min-height: 220px; max-height: 470px; overflow: auto; padding: 10px; }
.docs-search-results a { display: grid; gap: 3px; padding: 13px 14px; color: var(--docs-ink); text-decoration: none; }
.docs-search-results a.is-active, .docs-search-results a:hover { background: rgba(12, 10, 146, .07); }
.docs-search-results span { color: var(--docs-amber); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.docs-search-results strong { font-size: .9rem; }
.docs-search-results small { color: var(--docs-muted); font-size: .78rem; line-height: 1.45; }
.docs-search-empty { padding: 28px; color: var(--docs-muted); text-align: center; }
.docs-search-hint { min-height: 43px; padding: 0 16px; border-top: 1px solid var(--docs-line); display: flex; align-items: center; justify-content: space-between; color: var(--docs-muted); font-size: .7rem; }

@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: var(--docs-sidebar) minmax(0, 1fr); }
  .docs-toc { display: none; }
}

@media (max-width: 900px) {
  .docs-toolbar { top: 68px; }
  .docs-toolbar-inner { grid-template-columns: auto 1fr auto; padding: 0 20px; gap: 12px; }
  .docs-nav-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--docs-ink); padding: 8px 0; font: 700 .76rem Inter, sans-serif; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
  .docs-wordmark { justify-self: center; }
  .docs-toolbar-actions > a, .docs-search-open span, .docs-search-open kbd { display: none; }
  .docs-toolbar-actions { gap: 0; }
  .docs-search-open { min-width: 40px; width: 40px; height: 40px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .docs-layout { display: block; }
  .docs-sidebar { position: fixed; inset: 130px auto 0 0; z-index: 32; width: min(340px, 88vw); overflow: hidden; border-right: 1px solid var(--docs-line); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 24px 0 60px rgba(0, 0, 0, .12); }
  .docs-sidebar-scroll { position: static; width: 100%; height: 100%; max-height: none; margin-left: 0; padding: 25px 24px max(40px, env(safe-area-inset-bottom)); }
  .docs-overview-link { min-height: 44px; margin-bottom: 18px; box-sizing: border-box; }
  .docs-nav-group + .docs-nav-group { margin-top: 20px; }
  .docs-nav-group a { min-height: 44px; padding-top: 11px; padding-bottom: 11px; box-sizing: border-box; }
  .docs-nav-group a::before { top: 14px; }
  .docs-navigation-open .docs-sidebar { transform: translateX(0); }
  .docs-nav-backdrop { position: fixed; inset: 130px 0 0; z-index: 31; border: 0; background: rgba(14, 14, 11, .42); }
  .docs-navigation-open .docs-nav-backdrop { display: block; }
  .docs-main { padding: 45px 24px 68px; }
}

@media (max-width: 640px) {
  .docs-toolbar-inner { padding: 0 16px; }
  .docs-nav-toggle span { display: none; }
  .docs-wordmark { font-size: .77rem; }
  .docs-mark { width: 27px; height: 27px; }
  .docs-main { padding: 36px 20px 58px; }
  .docs-article-header h1, .docs-home-hero h1 { font-size: clamp(2.65rem, 13vw, 4.15rem); }
  .docs-article-header > p, .docs-home-hero > p { font-size: .98rem; line-height: 1.62; }
  .docs-breadcrumbs { margin-bottom: 26px; }
  .docs-prose { font-size: .94rem; }
  .docs-prose h2 { margin-top: 44px; font-size: 1.8rem; }
  .docs-prose pre { margin-left: -20px; margin-right: -20px; padding: 20px 80px 20px 20px; border-left: 0; border-right: 0; font-size: .8rem; }
  .docs-prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .docs-pagination { grid-template-columns: 1fr; }
  .docs-pagination-next { text-align: left; }
  .docs-pagination-next strong { justify-content: flex-start; }
  .docs-home-hero { padding-bottom: 46px; }
  .docs-home-actions { display: grid; }
  .docs-primary-action, .docs-inline-search { justify-content: center; width: 100%; }
  .docs-section-heading { grid-template-columns: 1fr; gap: 10px; }
  .docs-section-heading > span { padding-top: 0; }
  .docs-path-list > a { grid-template-columns: 34px minmax(0, 1fr) 18px; min-height: 108px; }
  .docs-search-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .docs-sidebar, .docs-path-list > a { transition: none; }
}
