/* Layout documentação — tema escuro fixo + tipografia Inter */

html:has(body.np-docs-site) {
    color-scheme: dark;
    background: #0a0a0a;
}

html:has(body.np-docs-site) body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.np-docs-site {
    font-family: inherit;
    background: #0a0a0a;
    color: #e4e4e7;
    min-height: 100vh;
}

.np-docs-shell {
    display: flex;
    min-height: 100vh;
}

.np-docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 17.5rem;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0c0c;
    z-index: 40;
    padding: 1.25rem 0 2rem;
    scrollbar-width: thin;
}

.np-docs-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
}

.np-docs-sidebar-brand a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.np-docs-sidebar-brand span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #5eead4;
    background: rgba(45, 212, 191, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.np-docs-nav-group {
    margin-bottom: 1.25rem;
}

.np-docs-nav-label {
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.np-docs-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.np-docs-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.np-docs-nav-link.is-active {
    color: #5eead4;
    border-left-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
}

.np-docs-main-wrap {
    flex: 1;
    margin-left: 17.5rem;
    min-width: 0;
}

.np-docs-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: space-between;
}

.np-docs-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.np-docs-page {
    max-width: 46rem;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.np-docs-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.np-docs-page > .np-docs-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
}

.np-docs-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
}

.np-docs-page h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.75rem;
}

.np-docs-page p,
.np-docs-page li {
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.85rem;
}

.np-docs-page ul,
.np-docs-page ol {
    padding-left: 1.35rem;
    margin-bottom: 1rem;
}

.np-docs-page a {
    color: #5eead4;
}

.np-docs-page hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
}

.np-docs-tip {
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(45, 212, 191, 0.35);
    background: rgba(45, 212, 191, 0.08);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

.np-docs-info {
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.08);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.np-docs-warning {
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.np-docs-card {
    display: block;
    padding: 1.15rem 1.25rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    margin: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

a.np-docs-card:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.06);
}

.np-docs-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.np-docs-card p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

.np-docs-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.np-docs-code {
    display: block;
    padding: 1.1rem 1.25rem;
    border-radius: 0.75rem;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #d1fae5;
    overflow-x: auto;
    margin: 1rem 0;
    white-space: pre-wrap;
}

.np-docs-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
}

.np-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.np-docs-table th,
.np-docs-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.np-docs-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 700;
}

.np-docs-steps {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.np-docs-steps li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.75rem;
}

.np-docs-steps li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #2dd4bf;
    color: #042f2e;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-docs-index-banner {
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.np-docs-index-banner a {
    color: #5eead4;
}

.np-docs-update {
    border-left: 3px solid #2dd4bf;
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 2rem 0;
}

.np-docs-update-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5eead4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.np-docs-lead-banner {
    text-align: center;
    padding: 1.35rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.np-docs-mcp-block {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.np-docs-mcp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.np-docs-mcp-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.np-docs-mcp-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.np-docs-mcp-tab.is-active {
    background: #2dd4bf;
    border-color: #2dd4bf;
    color: #042f2e;
}

.np-docs-mcp-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.np-docs-mcp-code {
    display: block;
    padding: 1rem 1.15rem;
    border-radius: 0.65rem;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #d1fae5;
    overflow-x: auto;
    max-height: 20rem;
    white-space: pre-wrap;
    margin: 0;
}

.np-docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 35;
}

@media (max-width: 900px) {
    .np-docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .np-docs-sidebar.is-open {
        transform: translateX(0);
    }

    .np-docs-overlay.is-open {
        display: block;
    }

    .np-docs-main-wrap {
        margin-left: 0;
    }

    .np-docs-topbar {
        display: flex;
    }

    .np-docs-page {
        padding: 2rem 1.25rem 4rem;
    }
}

/* Welcome hub dentro do layout docs */
.np-docs-site .np-docs-hub {
    max-width: none;
}

.np-docs-site .np-docs-content {
    background: #0a0a0a !important;
    color: #e4e4e7 !important;
}

.np-docs-page--wide,
#np-docs-root[data-docs-wide="true"] {
    max-width: none;
    padding: 0;
}
