* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: #252a31;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 56px;
    display: grid;
    grid-template-columns: 260px minmax(240px, 520px) 260px;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    border-bottom: 1px solid #eef0f3;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.docs-brand,
.docs-search-wrap,
.docs-actions {
    display: flex;
    align-items: center;
}

.docs-brand {
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    color: #20242a;
}

.docs-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docs-brand img {
    width: 24px;
    height: 24px;
}

.docs-action-link {
    font-size: 14px;
    font-weight: 600;
    color: #3a424d;
    text-decoration: none;
    padding: 8px 12px;
}

.docs-action-link:hover { color: #1683e8; }

.docs-action-btn {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    transition: opacity 0.15s;
}

.docs-action-btn:hover { opacity: 0.88; }

.docs-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #3a424d;
    border-radius: 8px;
    margin-left: auto;
}

.docs-hamburger:hover { background: #f0f2f5; }

.docs-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex-direction: column;
    padding: 12px 20px 16px;
    z-index: 50;
}

.docs-mobile-nav a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: #3a424d;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
}

.docs-mobile-nav a:last-of-type { border-bottom: 0; }
.docs-mobile-nav a:hover { color: #1683e8; }

.docs-mobile-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
}

.docs-mobile-auth .docs-action-btn {
    color: #fff;
    padding: 8px 20px;
}

.docs-search-wrap {
    justify-content: center;
}

.docs-actions {
    justify-content: flex-end;
}

.docs-search {
    width: min(100%, 360px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7a838f;
    background: #f6f7f9;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: text;
}

.docs-search:focus-within {
    border-color: #d5e4f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 135, 232, 0.08);
}

.docs-search input {
    width: 1px;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #252a31;
    font: inherit;
    min-width: 0;
}

.docs-search input::-webkit-search-cancel-button {
    display: none;
}

.docs-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 56px);
}

.docs-sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    border-right: 1px solid #eef0f3;
    padding: 26px 24px 60px;
}

.docs-sidebar-group {
    margin-bottom: 30px;
}

.docs-sidebar-group h2 {
    margin: 0 0 10px;
    color: #303741;
    font-size: 12px;
    font-weight: 800;
}

.docs-sidebar-group a,
.docs-empty-link {
    display: block;
    padding: 7px 0;
    color: #5b6470;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
}

.docs-sidebar-group a:hover,
.docs-sidebar-group a.active {
    color: #1683e8;
    font-weight: 700;
}

.docs-main {
    padding: 34px clamp(24px, 8vw, 140px) 80px;
}

.docs-article {
    max-width: 760px;
}

.docs-kicker {
    color: #1683e8;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.docs-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.docs-title-row h1,
.docs-article > h1 {
    margin: 0 0 28px;
    color: #20242a;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

.docs-contact {
    flex: none;
    border: 1px solid #dde2e8;
    border-radius: 12px;
    padding: 9px 14px;
    color: #3a424d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}

.docs-intro {
    margin: -12px 0 24px;
    color: #59616c;
    font-size: 18px;
    line-height: 1.7;
}

.docs-hero-panel {
    margin: 14px 0 28px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #fafbfc;
    overflow: hidden;
}

.docs-hero-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    object-position: top center;
}

.docs-content {
    color: #4e5662;
    font-size: 17px;
    line-height: 1.75;
}

.docs-content h2 {
    margin: 38px 0 12px;
    color: #252a31;
    font-size: 24px;
    line-height: 1.25;
}

.docs-content h3 {
    margin: 28px 0 10px;
    color: #252a31;
    font-size: 19px;
}

.docs-content p,
.docs-content ul,
.docs-content ol {
    margin: 0 0 18px;
}

.docs-content a {
    color: #1683e8;
    font-weight: 700;
}

.docs-content code {
    border: 1px solid #e4e8ee;
    border-radius: 5px;
    background: #f7f8fa;
    padding: 2px 5px;
    font-size: 0.9em;
}

.docs-content pre {
    overflow-x: auto;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    background: #111827;
    color: #f9fafb;
    padding: 16px;
}

.docs-guides {
    margin-top: 58px;
}

.docs-guides h2 {
    color: #59616c;
    font-size: 17px;
    font-weight: 650;
    margin: 0 0 22px;
}

.docs-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.docs-guide-card {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e9ee;
    border-radius: 8px;
    padding: 18px 22px;
    color: #303741;
    text-decoration: none;
    transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}

.docs-guide-card:hover {
    border-color: #b8d8f7;
    box-shadow: 0 12px 30px rgba(20, 43, 70, 0.08);
    transform: translateY(-1px);
}

.docs-guide-icon {
    color: #1683e8;
    font-size: 20px;
    font-weight: 800;
}

.docs-guide-card strong,
.docs-guide-card small {
    display: block;
}

.docs-guide-card small {
    margin-top: 3px;
    color: #6d7682;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .docs-topbar {
        grid-template-columns: auto 1fr auto;
        height: auto;
        min-height: 60px;
        padding: 10px 16px;
        position: relative;
    }

    .docs-brand { display: flex; }

    .docs-search-wrap,
    .docs-actions {
        display: none;
    }

    .docs-hamburger {
        display: flex;
    }

    .docs-shell {
        display: block;
    }

    .docs-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #eef0f3;
        padding: 18px 20px;
    }

    .docs-sidebar-group {
        margin-bottom: 16px;
    }

    .docs-main {
        padding: 28px 20px 60px;
    }

    .docs-title-row {
        display: block;
    }

    .docs-contact {
        display: inline-flex;
        margin-bottom: 22px;
    }

    .docs-guide-grid {
        grid-template-columns: 1fr;
    }
}
