/* NordVader Markdown Docs */
.nvdocs {
    --nv-bg: #121214;
    --nv-panel: #18181b;
    --nv-panel-2: #202024;
    --nv-border: rgba(255,255,255,0.10);
    --nv-text: #f2f2f4;
    --nv-muted: #a7a7ad;
    --nv-link: #ff3b3b;
    --nv-link-hover: #ff7070;
    --nv-code-bg: #0d0d0f;
    --nv-accent: #e82020;
    display: grid;
    grid-template-columns: var(--nvdocs-sidebar-width, 320px) minmax(0, 1fr) var(--nvdocs-toc-width, 240px);
    min-height: var(--nvdocs-min-height, 72vh);
    background: rgba(18, 18, 20, var(--nvdocs-bg-opacity, 1));
    backdrop-filter: blur(var(--nvdocs-bg-blur, 0px));
    -webkit-backdrop-filter: blur(var(--nvdocs-bg-blur, 0px));
    color: var(--nv-text);
    border: 1px solid var(--nv-border);
    font-size: 16px;
    line-height: 1.72;
}

.nvdocs * {
    box-sizing: border-box;
}

.nvdocs a {
    color: var(--nv-link);
    text-decoration: none;
}

.nvdocs a:hover {
    color: var(--nv-link-hover);
    text-decoration: underline;
}

.nvdocs-sidebar,
.nvdocs-toc {
    position: sticky;
    top: 0;
    align-self: start;
    height: var(--nvdocs-sticky-height, 100vh);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(24, 24, 27, var(--nvdocs-panel-opacity, 1));
}

.nvdocs-sidebar {
    border-right: 1px solid var(--nv-border);
    padding: 22px 0;
}

.nvdocs-toc {
    border-left: 1px solid var(--nv-border);
    padding: 22px 18px;
}

.nvdocs-sidebar-title,
.nvdocs-toc-title,
.nvdocs-mobile-title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nvdocs-sidebar-title {
    padding: 0 22px 16px;
    font-size: 18px;
}

.nvdocs-mobile-title {
    display: none;
}

.nvdocs-nav,
.nvdocs-nav ul,
.nvdocs-toc-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nvdocs-nav li,
.nvdocs-toc-list li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.nvdocs-nav li::marker,
.nvdocs-toc-list li::marker {
    content: "";
}

.nvdocs-nav a {
    display: block;
    color: var(--nv-muted);
    padding: 7px 18px;
    border-left: 3px solid transparent;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.nvdocs-nav .nvdocs-nav a {
    padding-left: 32px;
}

.nvdocs-nav .nvdocs-nav .nvdocs-nav a {
    padding-left: 46px;
}

.nvdocs-nav .nvdocs-nav .nvdocs-nav .nvdocs-nav a {
    padding-left: 58px;
}

.nvdocs-nav-item.is-active > a {
    color: #ffffff;
    background: rgba(232,32,32,0.14);
    border-left-color: var(--nv-accent);
}

.nvdocs-nav-item.has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.75;
}

.nvdocs-content {
    min-width: 0;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 72px 46px 92px;
    background: rgba(18, 18, 20, var(--nvdocs-content-opacity, 0));
}

.nvdocs-content h1,
.nvdocs-content h2,
.nvdocs-content h3,
.nvdocs-content h4,
.nvdocs-content h5,
.nvdocs-content h6 {
    color: #ffffff;
    line-height: 1.2;
    margin: 1.8em 0 0.65em;
    font-weight: 800;
    scroll-margin-top: 24px;
}

.nvdocs-content h1:first-child,
.nvdocs-content h2:first-child,
.nvdocs-content h3:first-child {
    margin-top: 0;
}

.nvdocs-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.04em;
}

.nvdocs-content h2 {
    font-size: clamp(28px, 3vw, 40px);
    border-top: 1px solid var(--nv-border);
    padding-top: 30px;
}

.nvdocs-content h3 {
    font-size: 24px;
}

.nvdocs-content p,
.nvdocs-content li {
    color: var(--nv-text);
}

.nvdocs-content p {
    margin: 0 0 1.15em;
}

.nvdocs-content ul,
.nvdocs-content ol {
    padding-left: 1.4em;
    margin: 0 0 1.3em;
}

.nvdocs-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--nv-border);
    margin: 24px 0;
}

.nvdocs-content code {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    padding: 0.1em 0.35em;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.92em;
}

.nvdocs-code {
    position: relative;
    margin: 24px 0;
}

.nvdocs-code pre {
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--nv-code-bg);
    color: #f7f7f7;
    border: 1px solid var(--nv-border);
    border-radius: 12px;
    padding: 20px;
    margin: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nvdocs-code pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.65;
}

.nvdocs-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid var(--nv-border);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 12px;
    cursor: pointer;
}

.nvdocs-copy:hover {
    background: rgba(255,255,255,0.16);
}

.nvdocs-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--nv-border);
    border-radius: 12px;
}

.nvdocs table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.nvdocs th,
.nvdocs td {
    border-bottom: 1px solid var(--nv-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.nvdocs th {
    background: var(--nv-panel-2);
    color: #ffffff;
}

.nvdocs tr:last-child td {
    border-bottom: 0;
}

.nvdocs-quote {
    border-left: 4px solid var(--nv-border);
    margin: 24px 0;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border-radius: 0 10px 10px 0;
}

.nvdocs-admonition {
    border-left-color: var(--nv-accent);
}

.nvdocs-admonition-tip {
    border-left-color: #35d07f;
}

.nvdocs-admonition-warning,
.nvdocs-admonition-caution {
    border-left-color: #ffb020;
}

.nvdocs-admonition-label {
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.nvdocs-toc a {
    display: block;
    color: var(--nv-muted);
    font-size: 13px;
    line-height: 1.35;
    padding: 6px 0;
}

.nvdocs-toc .toc-level-3 {
    padding-left: 12px;
}

.nvdocs-toc .toc-level-4,
.nvdocs-toc .toc-level-5,
.nvdocs-toc .toc-level-6 {
    padding-left: 22px;
}

.nvdocs-error,
.nvdocs-empty,
.nvdocs-toc-empty {
    color: var(--nv-muted);
}

@media (max-width: 1180px) {
    .nvdocs {
        grid-template-columns: minmax(260px, var(--nvdocs-sidebar-width, 320px)) minmax(0, 1fr);
    }

    .nvdocs-toc {
        display: none;
    }
}

@media (max-width: 820px) {
    .nvdocs {
        display: block;
    }

    .nvdocs-sidebar {
        position: relative;
        height: auto;
        max-height: 380px;
        border-right: 0;
        border-bottom: 1px solid var(--nv-border);
    }

    .nvdocs-content {
        padding: 36px 22px 64px;
    }

    .nvdocs-mobile-title {
        display: block;
        margin-bottom: 18px;
        color: var(--nv-muted);
    }
}

/* Video-row integration for WordPress/WPBakery pages */
.nv-docs-video-section .nvdocs {
    width: 100%;
}

.nv-docs-video-section .wpb_text_column,
.nv-docs-video-section .wpb_text_column > .wpb_wrapper {
    margin-bottom: 0 !important;
}

.nvdocs.is-loading .nvdocs-content,
.nvdocs.is-loading .nvdocs-toc,
.nvdocs.is-loading .nvdocs-sidebar {
    opacity: 0.72;
    transition: opacity 0.16s ease;
}

.nvdocs-content:focus {
    outline: none;
}


/* Custom documentation scrollbar */
.nvdocs.nvdocs-scrollbar-custom,
.nvdocs.nvdocs-scrollbar-custom * {
    scrollbar-width: thin;
    scrollbar-color: var(--nvdocs-scrollbar-thumb, rgba(255,255,255,0.42)) var(--nvdocs-scrollbar-track, rgba(255,255,255,0.08));
}

.nvdocs.nvdocs-scrollbar-custom::-webkit-scrollbar,
.nvdocs.nvdocs-scrollbar-custom *::-webkit-scrollbar {
    width: var(--nvdocs-scrollbar-width, 10px);
    height: var(--nvdocs-scrollbar-width, 10px);
}

.nvdocs.nvdocs-scrollbar-custom::-webkit-scrollbar-track,
.nvdocs.nvdocs-scrollbar-custom *::-webkit-scrollbar-track {
    background: var(--nvdocs-scrollbar-track, rgba(255,255,255,0.08));
    border-radius: var(--nvdocs-scrollbar-radius, 12px);
}

.nvdocs.nvdocs-scrollbar-custom::-webkit-scrollbar-thumb,
.nvdocs.nvdocs-scrollbar-custom *::-webkit-scrollbar-thumb {
    background: var(--nvdocs-scrollbar-thumb, rgba(255,255,255,0.42));
    border-radius: var(--nvdocs-scrollbar-radius, 12px);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.nvdocs.nvdocs-scrollbar-custom::-webkit-scrollbar-thumb:hover,
.nvdocs.nvdocs-scrollbar-custom *::-webkit-scrollbar-thumb:hover {
    background: var(--nvdocs-scrollbar-thumb-hover, rgba(232,32,32,0.78));
    background-clip: padding-box;
}

.nvdocs.nvdocs-scrollbar-custom::-webkit-scrollbar-corner,
.nvdocs.nvdocs-scrollbar-custom *::-webkit-scrollbar-corner {
    background: transparent;
}
