:root {
  color: #172033;
  background: #f6f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: #6044df; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; padding: .75rem 1rem; border-radius: .5rem; background: #172033; color: #fff; }
.skip-link:focus { top: 1rem; }
.docs-shell { min-height: 100vh; }
.docs-nav { position: fixed; inset: 0 auto 0 0; width: 18rem; overflow-y: auto; border-right: 1px solid #e2e5ee; background: #fff; }
.docs-brand { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 1.35rem 1.25rem; border-bottom: 1px solid #eceef4; background: rgba(255, 255, 255, .96); }
.docs-brand > a { display: flex; align-items: center; gap: .65rem; color: #172033; font-weight: 800; text-decoration: none; }
.docs-brand img { width: 2rem; height: 2rem; object-fit: contain; }
.docs-brand button, .docs-topbar button { display: none; }
.docs-menu { padding: 1rem .8rem 2rem; }
.docs-menu p { margin: 1.25rem .7rem .45rem; color: #8a91a3; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.docs-menu a { display: block; margin: .12rem 0; padding: .6rem .7rem; border-radius: .55rem; color: #4a5265; font-size: .9rem; line-height: 1.25; text-decoration: none; }
.docs-menu a:hover { background: #f4f1ff; color: #5035d0; }
.docs-menu a[aria-current='page'] { background: #eeeaff; color: #5035d0; font-weight: 700; }
.docs-content { margin-left: 18rem; }
.docs-topbar { display: flex; min-height: 4.7rem; align-items: center; justify-content: flex-end; padding: 0 clamp(1.2rem, 4vw, 4rem); border-bottom: 1px solid #e6e8ef; background: rgba(246, 247, 251, .9); }
.docs-topbar a { color: #5b6375; font-size: .9rem; font-weight: 650; text-decoration: none; }
.docs-content article { width: min(100% - 2.5rem, 52rem); margin: 0 auto; padding: 4rem 0 6rem; }
.docs-content h1 { margin: 0 0 1.5rem; color: #11182a; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.docs-content h2 { margin: 3.1rem 0 1rem; padding-top: .5rem; color: #182034; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.docs-content h3 { margin: 2rem 0 .8rem; color: #252d42; font-size: 1.25rem; }
.docs-content h4 { margin: 1.6rem 0 .7rem; font-size: 1.05rem; }
.docs-content p, .docs-content li { color: #4c5569; font-size: 1rem; line-height: 1.78; }
.docs-content p { margin: 0 0 1rem; }
.docs-content ul, .docs-content ol { margin: .8rem 0 1.4rem; padding-left: 1.5rem; }
.docs-content li { margin: .35rem 0; padding-left: .25rem; }
.docs-content strong { color: #252d42; }
.docs-content code { padding: .15rem .35rem; border-radius: .3rem; background: #ebe8fa; color: #4931bc; font-size: .9em; }
.docs-content figure { margin: 2rem 0; padding: 1rem; border: 1px solid #e1e4ec; border-radius: 1rem; background: #fff; box-shadow: 0 18px 45px rgba(34, 40, 68, .08); }
.docs-content figure img { display: block; width: 100%; height: auto; border-radius: .55rem; }
.docs-content hr { height: 1px; margin: 2.5rem 0; border: 0; background: #dde1ea; }
.admonition { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 1.5rem 0; padding: 1.1rem 1.2rem; border: 1px solid #dcd6ff; border-left: .3rem solid #6a48f0; border-radius: .7rem; background: #f3f0ff; }
.admonition > strong { color: #5035d0; }
.admonition > div { grid-column: 1 / -1; }
.admonition p:last-child { margin-bottom: 0; }
.admonition-important, .admonition-warning { border-color: #ffd9a2; border-left-color: #e68a00; background: #fff8ed; }
.admonition-important > strong, .admonition-warning > strong { color: #a45e00; }
.docs-content footer { display: flex; justify-content: space-between; gap: 1rem; width: min(100% - 2.5rem, 52rem); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid #dfe2ea; color: #747c8e; font-size: .85rem; }
.docs-content footer span { font-weight: 800; }
.docs-content footer a { color: inherit; }

@media (max-width: 820px) {
  .docs-nav { position: sticky; z-index: 10; width: 100%; height: auto; overflow: visible; }
  .docs-brand { padding: .9rem 1rem; }
  .docs-brand button, .docs-topbar button { display: inline-flex; padding: .45rem .7rem; border: 1px solid #d9dce6; border-radius: .45rem; background: #fff; color: #4f5668; font: inherit; }
  .docs-menu { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 4rem); overflow: auto; border-top: 1px solid #e4e6ed; background: #fff; box-shadow: 0 18px 35px rgba(30, 36, 60, .13); }
  .docs-menu.is-open { display: block; }
  .docs-content { margin-left: 0; }
  .docs-topbar { display: none; }
  .docs-content article { padding-top: 2.5rem; }
  .docs-content footer { flex-direction: column; }
}
