:root {
    --docs-black: #09090b;
    --docs-heading: #18181b;
    --docs-body: #3f3f46;
    --docs-meta: #71717a;
    --docs-line: #e4e4e7;
    --docs-bg: #fafafa;
    --docs-white: #ffffff;
    --docs-accent: #09090b;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: auto;
    overscroll-behavior-y: none;
}

body.docs-body {
    margin: 0;
    background: var(--docs-white);
    color: var(--docs-body);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
    overflow-x: hidden;
    overflow-anchor: none;
}

.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--docs-line);
}
.docs-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.docs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.docs-brand img { height: 38px; width: auto; }
.docs-brand-name { font-weight: 800; color: var(--docs-black); font-size: 17px; letter-spacing: -0.01em; }
.docs-topbar-links { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.docs-topbar-links a { text-decoration: none; }
.docs-cta {
    display: inline-flex;
    align-items: center;
    background: var(--docs-black);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600 !important;
    cursor: pointer;
}
.docs-menu-btn {
    display: none;
    border: 1px solid var(--docs-line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.docs-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 220px;
    gap: 48px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: thin;
    padding: 32px 0 48px;
}
.docs-search {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    padding: 9px 12px;
    border: 1px solid var(--docs-line);
    border-radius: 8px;
    margin-bottom: 20px;
    outline: none;
}
.docs-search:focus { border-color: var(--docs-black); }
.docs-group { margin-bottom: 22px; }
.docs-group-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--docs-meta);
    margin: 0 0 8px 0;
}
.docs-link {
    display: block;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--docs-body);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    line-height: 1.5;
}
.docs-link:hover { background: #f4f4f5; color: var(--docs-black); }
.docs-link.is-active { background: #f4f4f5; color: var(--docs-black); font-weight: 500; }

.docs-main { padding: 40px 0 80px; min-width: 0; }
.docs-breadcrumb { font-size: 13px; font-weight: 400; color: var(--docs-meta); margin-bottom: 12px; }
.docs-breadcrumb a { color: var(--docs-meta); text-decoration: none; }
.docs-content { max-width: 760px; }

/* Typography: H1 black bold only, H2/H3 weight 500, body regular */
.docs-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 0 12px 0;
}
.docs-lead {
    font-size: 18px;
    font-weight: 400;
    color: var(--docs-meta);
    line-height: 1.65;
    margin: 0 0 28px 0;
}
.docs-content h2 {
    font-size: 23px;
    font-weight: 500;
    color: var(--docs-heading);
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 40px 0 12px 0;
    padding-top: 8px;
}
.docs-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--docs-heading);
    line-height: 1.45;
    margin: 28px 0 8px 0;
}
.docs-content p {
    font-size: 17px;
    font-weight: 400;
    color: var(--docs-body);
    line-height: 1.75;
    margin: 0 0 16px 0;
}
.docs-content ul, .docs-content ol {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--docs-body);
    margin: 0 0 20px 0;
    padding-left: 24px;
}
.docs-content li { margin-bottom: 8px; }
.docs-content li::marker { color: var(--docs-meta); }
.docs-content a { color: var(--docs-black); text-underline-offset: 3px; }
.docs-content strong { font-weight: 600; color: var(--docs-heading); }
.docs-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14.5px;
    background: #f4f4f5;
    border: 1px solid var(--docs-line);
    border-radius: 6px;
    padding: 1px 6px;
}
.docs-content pre {
    background: #09090b;
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 0 0 24px 0;
}
.docs-content pre code {
    background: none;
    border: none;
    color: #e4e4e7;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
}
.docs-content blockquote {
    margin: 0 0 20px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--docs-black);
    background: var(--docs-bg);
    border-radius: 0 10px 10px 0;
    font-weight: 400;
}
.docs-content blockquote p { margin: 0; font-size: 16px; }
.docs-content hr { border: none; border-top: 1px solid var(--docs-line); margin: 36px 0; }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px 0; }
.docs-content th { font-weight: 500; text-align: left; border-bottom: 1px solid var(--docs-line); padding: 10px 12px; color: var(--docs-heading); }
.docs-content td { border-bottom: 1px solid var(--docs-line); padding: 10px 12px; font-weight: 400; }
.docs-anchor { color: var(--docs-meta); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .docs-anchor, h3:hover .docs-anchor { opacity: 1; }

.docs-shot {
    margin: 24px 0;
    border: 1px solid var(--docs-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.docs-shot { overflow-anchor: none; }
.docs-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.docs-shot figcaption {
    font-size: 13px;
    font-weight: 400;
    color: var(--docs-meta);
    padding: 10px 16px;
    border-top: 1px solid var(--docs-line);
    background: var(--docs-bg);
}

.docs-toc { position: sticky; top: 96px; padding: 32px 0; font-size: 13.5px; }
.docs-toc-title { font-weight: 500; color: var(--docs-heading); margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.docs-toc a { display: block; color: var(--docs-meta); text-decoration: none; font-weight: 400; padding: 4px 0 4px 12px; line-height: 1.5; border-left: 2px solid transparent; }
.docs-toc a:hover { color: var(--docs-black); }
.docs-toc a.is-active { color: var(--docs-black); font-weight: 500; border-left-color: var(--docs-black); }
.docs-toc a.lvl-3 { padding-left: 12px; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.docs-pager a { border: 1px solid var(--docs-line); border-radius: 12px; padding: 16px 18px; text-decoration: none; display: block; }
.docs-pager a:hover { border-color: var(--docs-black); }
.docs-pager span { display: block; font-size: 12px; font-weight: 400; color: var(--docs-meta); }
.docs-pager strong { display: block; font-size: 15px; font-weight: 500; color: var(--docs-heading); margin-top: 4px; }

@media (max-width: 1080px) {
    .docs-shell { grid-template-columns: 260px minmax(0, 1fr); }
    .docs-toc { display: none; }
}
@media (max-width: 820px) {
    .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .docs-sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        width: 300px;
        background: #fff;
        border-right: 1px solid var(--docs-line);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 25;
        max-height: none;
    }
    .docs-sidebar.open { transform: none; }
    .docs-menu-btn { display: inline-flex; }
    .docs-main { padding: 28px 0 64px; }
    .docs-content h1 { font-size: 29px; }
}
