/**
 * Beriox-HUB — Page article documentation
 */
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #ffffff;
    color: #2d2d41;
}
.docs-container {
    max-width: var(--site-content-max, 1300px);
    margin: 0 auto;
    padding: 2rem var(--site-gutter, clamp(1.25rem, 4vw, 2rem));
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 2rem;
}
.docs-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}
.docs-sidebar h2 {
    color: #5a5fca;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}
.docs-section {
    margin-bottom: 2rem;
}
.docs-section-title {
    color: #2d2d41;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(90, 95, 202, 0.2);
}
.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.docs-nav-link:hover {
    background: rgba(90, 95, 202, 0.08);
    color: #5a5fca;
}
.docs-nav-link.active {
    background: rgba(90, 95, 202, 0.15);
    color: #5a5fca;
    font-weight: 600;
}
body.docs-hide-superadmin-blocks .docs-superadmin-only {
    display: none !important;
}
.docs-content {
    min-width: 0;
}
.docs-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}
.docs-breadcrumb a {
    color: #5a5fca;
    text-decoration: none;
}
.docs-breadcrumb a:hover {
    text-decoration: underline;
}
.docs-article {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(90, 95, 202, 0.2);
}
.docs-article h1 {
    color: #5a5fca;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
}
.docs-article h2 {
    color: #2d2d41;
    font-size: 1.75rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid rgba(90, 95, 202, 0.2);
}
.docs-article h3 {
    color: #2d2d41;
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}
.docs-article h4 {
    color: #2d2d41;
    font-size: 1.25rem;
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
}
.docs-article p {
    line-height: 1.7;
    margin: 1rem 0;
    color: #374151;
}
.docs-article ul, .docs-article ol {
    margin: 1rem 0;
    padding-left: 2rem;
    line-height: 1.7;
}
.docs-article li {
    margin: 0.5rem 0;
    color: #374151;
}
.docs-article code {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    color: #e83e8c;
}
.docs-article pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.docs-article pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}
.docs-article blockquote {
    border-left: 4px solid #5a5fca;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}
.docs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.docs-article table th,
.docs-article table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}
.docs-article table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2d2d41;
}
.docs-article a {
    color: #5a5fca;
    text-decoration: none;
}
.docs-article a:hover {
    text-decoration: underline;
}
.docs-toc {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}
.docs-toc h3 {
    color: #5a5fca;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}
.docs-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.docs-toc li {
    margin: 0.25rem 0;
}
.docs-toc a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.docs-toc a:hover {
    background: rgba(90, 95, 202, 0.08);
    color: #5a5fca;
}
.docs-toc a.active {
    background: rgba(90, 95, 202, 0.15);
    color: #5a5fca;
    font-weight: 600;
}
.docs-toc .toc-level-2 {
    padding-left: 0;
}
.docs-toc .toc-level-3 {
    padding-left: 1rem;
}
.docs-toc .toc-level-4 {
    padding-left: 2rem;
}
.docs-content-locked {
    text-align: center;
    padding: 2rem 1rem;
}
.docs-content-locked .docs-cta-login {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: #5a5fca;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: background 0.2s, transform 0.2s;
}
.docs-content-locked .docs-cta-login:hover {
    background: #484cb8;
    transform: translateY(-1px);
}
.docs-content-locked .docs-placeholder {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 1.5rem;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    line-height: 1.7;
    color: #6b7280;
}
.docs-toc-fab {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 997;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #5a5fca;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(90, 95, 202, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.docs-toc-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(90, 95, 202, 0.5);
}
.docs-toc-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    z-index: 999;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow: hidden;
    flex-direction: column;
}
.docs-toc-drawer.open {
    transform: translateY(0);
    visibility: visible;
}
.docs-toc-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(90, 95, 202, 0.15);
    flex-shrink: 0;
}
.docs-toc-drawer-header h3 {
    margin: 0;
    color: #5a5fca;
    font-size: 1.1rem;
    font-weight: 700;
}
.docs-toc-drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}
.docs-toc-drawer-body {
    overflow-y: auto;
    padding: 1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}
.docs-toc-drawer-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.docs-toc-drawer-body li {
    margin: 0.25rem 0;
}
.docs-toc-drawer-body a {
    display: block;
    padding: 0.6rem 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.docs-toc-drawer-body a:hover,
.docs-toc-drawer-body a.active {
    background: rgba(90, 95, 202, 0.12);
    color: #5a5fca;
}
.docs-toc-drawer-body .toc-level-2 { padding-left: 0; }
.docs-toc-drawer-body .toc-level-3 { padding-left: 1rem; }
.docs-toc-drawer-body .toc-level-4 { padding-left: 1.5rem; }
.docs-toc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.docs-toc-backdrop.visible {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    .docs-sidebar,
    .docs-toc {
        position: static;
    }
    .docs-toc-fab {
        display: flex;
    }
    .docs-toc-drawer,
    .docs-toc-backdrop {
        display: block;
    }
    .docs-container .docs-toc {
        display: none;
    }
}
