/**
 * CheckPoint Developer Docs — global theme chrome (Pipeline / futuristic).
 * Colors follow --cp-* tokens so Look & Feel (futuristic | exspeedite) flips the page.
 * SME [2026-07-14] Pipeline black/red docs shell + method badges
 */

html[data-theme="futuristic"] body.cp-docs,
body.cp-docs.cp-theme-futuristic {
    background: var(--cp-auth-bg, var(--cp-portal-bg, #04060c)) !important;
    color: var(--cp-text, #e8eef7);
    font-family: var(--cp-font, "Outfit", "Inter", system-ui, sans-serif);
}

body.cp-docs .docs-topbar,
body.cp-docs .topbar {
    background: rgba(4, 6, 12, 0.92) !important;
    border-bottom: 1px solid rgba(219, 17, 31, 0.30) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px) saturate(1.35);
}

body.cp-docs .brand-mark {
    background: linear-gradient(135deg, rgba(219, 17, 31, 0.35), rgba(181, 14, 25, 0.22)) !important;
    border-color: rgba(219, 17, 31, 0.55) !important;
    color: #ff4d5a !important;
    box-shadow: 0 0 22px rgba(219, 17, 31, 0.28) !important;
}

body.cp-docs .nav a.is-active,
body.cp-docs .nav a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #db111f 0%, #c4101c 100%) !important;
    box-shadow: 0 4px 16px rgba(219, 17, 31, 0.40);
}

body.cp-docs .export-json,
body.cp-docs a.export-json {
    background: linear-gradient(135deg, #db111f 0%, #ff3d4d 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(219, 17, 31, 0.40) !important;
}

body.cp-docs .shell,
body.cp-docs main.shell {
    background: transparent !important;
    max-width: 1480px;
}

body.cp-docs .layout,
body.cp-docs .content,
body.cp-docs .hero {
    background: transparent !important;
}

body.cp-docs .path-card,
body.cp-docs .quick-card,
body.cp-docs .role-card,
body.cp-docs .flow-step,
body.cp-docs .code-panel {
    background: linear-gradient(160deg, rgba(8, 12, 22, 0.94), rgba(4, 6, 12, 0.92)) !important;
    border-color: rgba(219, 17, 31, 0.22) !important;
    color: var(--cp-text, #e8eef7) !important;
}

body.cp-docs .hero-card,
body.cp-docs .panel,
body.cp-docs .endpoint-card,
body.cp-docs .sidebar-block,
body.cp-docs .page-toc,
body.cp-docs .intro-feature,
body.cp-docs .endpoint-index-card,
body.cp-docs .stat {
    background: linear-gradient(160deg, rgba(8, 12, 22, 0.94), rgba(4, 6, 12, 0.92)) !important;
    border-color: rgba(219, 17, 31, 0.24) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 24px rgba(219, 17, 31, 0.06);
}

body.cp-docs .kicker,
body.cp-docs .api-ref-label,
body.cp-docs .sidebar-block > strong,
body.cp-docs .page-toc > strong,
body.cp-docs .toc strong {
    color: #ff4d5a !important;
}

body.cp-docs h1 span,
body.cp-docs .brand span,
body.cp-docs a:hover {
    color: inherit;
}

body.cp-docs h1 span {
    color: #ff4d5a !important;
}

body.cp-docs .method,
body.cp-docs .http-post {
    background: rgba(219, 17, 31, 0.22) !important;
    color: #fecaca !important;
    border: 1px solid rgba(219, 17, 31, 0.40);
}

body.cp-docs .http-get {
    background: rgba(219, 17, 31, 0.12) !important;
    color: #ff4d5a !important;
    border: 1px solid rgba(219, 17, 31, 0.28);
}

body.cp-docs .http-patch {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fde68a !important;
    border: 1px solid rgba(245, 158, 11, 0.30);
}

body.cp-docs .http-delete {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.30);
}

body.cp-docs .url,
body.cp-docs .endpoint-path,
body.cp-docs code.url,
body.cp-docs pre,
body.cp-docs .code-block,
body.cp-docs .code {
    background: #06080f !important;
    border-color: rgba(219, 17, 31, 0.22) !important;
    color: #fecaca !important;
}

body.cp-docs .intro-callout,
body.cp-docs .callout,
body.cp-docs .note,
body.cp-docs .warn-box {
    background: linear-gradient(135deg, rgba(219, 17, 31, 0.12), rgba(4, 6, 12, 0.80)) !important;
    border-color: rgba(219, 17, 31, 0.34) !important;
    color: #e2e8f0 !important;
}

body.cp-docs table th {
    color: #ff4d5a !important;
    background: rgba(4, 6, 12, 0.88) !important;
    border-color: rgba(219, 17, 31, 0.22) !important;
}

body.cp-docs table td {
    background: rgba(8, 12, 22, 0.55) !important;
    border-color: rgba(148, 163, 184, 0.10) !important;
    color: #e2e8f0 !important;
}

body.cp-docs table tr:nth-child(even) td {
    background: rgba(219, 17, 31, 0.05) !important;
}

body.cp-docs .btn.primary,
body.cp-docs a.btn.primary,
body.cp-docs .btn-primary {
    background: linear-gradient(135deg, #db111f 0%, #ff3d4d 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(219, 17, 31, 0.35) !important;
}

body.cp-docs .btn:not(.primary) {
    background: rgba(4, 6, 12, 0.75) !important;
    border: 1px solid rgba(219, 17, 31, 0.35) !important;
    color: #fecaca !important;
}

body.cp-docs .api-ref-link:hover,
body.cp-docs .toc a:hover,
body.cp-docs .page-toc a:hover {
    color: #ff4d5a !important;
    background: rgba(219, 17, 31, 0.10) !important;
}

body.cp-docs .check {
    color: #e2e8f0 !important;
    background: rgba(4, 6, 12, 0.70) !important;
    border-color: rgba(219, 17, 31, 0.20) !important;
}

/* EXSPEEDITE alternate — ready for Look & Feel toggle */
html[data-theme="exspeedite"] body.cp-docs,
body.cp-docs.cp-theme-exspeedite {
    background: var(--cp-portal-bg, #eef2f5) !important;
    color: var(--cp-text, #27313c);
}

html[data-theme="exspeedite"] body.cp-docs .docs-topbar,
html[data-theme="exspeedite"] body.cp-docs .topbar {
    background: rgba(247, 249, 250, 0.94) !important;
    border-bottom-color: rgba(77, 142, 49, 0.28) !important;
    box-shadow: 0 8px 24px rgba(39, 49, 60, 0.08);
}

html[data-theme="exspeedite"] body.cp-docs .hero-card,
html[data-theme="exspeedite"] body.cp-docs .panel,
html[data-theme="exspeedite"] body.cp-docs .endpoint-card,
html[data-theme="exspeedite"] body.cp-docs .sidebar-block,
html[data-theme="exspeedite"] body.cp-docs .page-toc {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(77, 142, 49, 0.22) !important;
    box-shadow: 0 12px 32px rgba(39, 49, 60, 0.08);
}

html[data-theme="exspeedite"] body.cp-docs .kicker,
html[data-theme="exspeedite"] body.cp-docs .api-ref-label,
html[data-theme="exspeedite"] body.cp-docs h1 span,
html[data-theme="exspeedite"] body.cp-docs table th {
    color: #4d8e31 !important;
}

html[data-theme="exspeedite"] body.cp-docs .method,
html[data-theme="exspeedite"] body.cp-docs .http-post,
html[data-theme="exspeedite"] body.cp-docs .http-get {
    background: rgba(77, 142, 49, 0.14) !important;
    color: #2d5016 !important;
    border-color: rgba(77, 142, 49, 0.35);
}

html[data-theme="exspeedite"] body.cp-docs .url,
html[data-theme="exspeedite"] body.cp-docs .endpoint-path,
html[data-theme="exspeedite"] body.cp-docs pre,
html[data-theme="exspeedite"] body.cp-docs .code-block {
    background: #f4f9f1 !important;
    border-color: rgba(77, 142, 49, 0.22) !important;
    color: #1f3d16 !important;
}
