/* DeltaCortex Docs — shared stylesheet
   Palette and type mirror deltacortex-customer.html so the docs site reads
   as the same product, not a bolted-on afterthought. Dark theme only for
   now (matches the app's default) — a light-mode toggle can be added later
   by reintroducing the app's [data-theme="light"] override pattern. */

:root {
    --clarity-blue: #1E4E8C;
    --accent-gold: #D4A037;
    --signal-teal: #2AA6A1;
    --signal-blue: #3a86ff;
    --success-color: #10b981;
    --danger-color: #ef4444;

    --slate-black: #1A1A1A;
    --dark-surface: #242424;
    --darker-surface: #0d0d0d;
    --border-color: #333333;
    --card-bg: #1F1F1F;
    --bg-tertiary: #2a2a2a;

    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #888888;

    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manrope', -apple-system, system-ui, sans-serif;
    background: var(--slate-black);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--signal-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────── */

.docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1c1c1c 0%, #141414 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-brand-name {
    font-weight: 600;
    font-family: 'Prompt', 'Manrope', sans-serif;
    font-size: 1.25em;
    line-height: 1;
    color: var(--text-primary);
}

.docs-brand-sub {
    font-size: 0.68em;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-top: 3px;
}

.docs-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--signal-teal);
    color: #fff !important;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none !important;
    white-space: nowrap;
}
.docs-header-cta:hover { background: #23918d; }

/* ── Layout ───────────────────────────────────────────────────────── */

.docs-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    gap: 48px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

@media (max-width: 860px) {
    .docs-shell { grid-template-columns: 1fr; }
    .docs-nav { display: none; }
}

/* ── Sidebar nav ──────────────────────────────────────────────────── */

.docs-nav {
    position: sticky;
    top: 76px;
    align-self: start;
}

.docs-nav-group {
    margin-bottom: 22px;
}

.docs-nav-label {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.docs-nav-link {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}
.docs-nav-link:hover { background: var(--bg-tertiary); text-decoration: none; }
.docs-nav-link.active {
    background: rgba(42, 166, 161, 0.14);
    color: var(--signal-teal);
}

.docs-nav-soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--text-muted);
}

.docs-nav-soon-badge {
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: 4px;
    padding: 2px 6px;
}

/* ── Content ──────────────────────────────────────────────────────── */

.docs-content h1 {
    font-size: 1.9em;
    margin-bottom: 8px;
}

.docs-content .docs-lede {
    color: var(--text-secondary);
    font-size: 1.02em;
    margin-bottom: 28px;
}

.docs-content section {
    margin-bottom: 40px;
}

.docs-content h2 {
    font-size: 1.25em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.docs-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--signal-teal);
    color: #06201f;
    font-size: 0.7em;
    font-weight: 800;
    flex: 0 0 auto;
}

.docs-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.docs-content ul, .docs-content ol {
    color: var(--text-secondary);
    margin: 0 0 12px 20px;
}
.docs-content li { margin-bottom: 6px; }

.docs-content strong { color: var(--text-primary); }

.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.docs-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
}

.docs-card-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.92em;
    margin-bottom: 4px;
}

.docs-card-body {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.docs-callout {
    background: var(--card-bg);
    border-left: 4px solid var(--signal-teal);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 0.92em;
    color: var(--text-secondary);
}
.docs-callout strong { color: var(--text-primary); }

.docs-callout.warn { border-left-color: var(--accent-gold); }

code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: var(--text-primary);
}

.docs-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.docs-next-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
}

.docs-next-card .docs-nav-soon-badge { margin-bottom: 8px; display: inline-block; }

.docs-next-card h3 {
    font-size: 0.95em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.docs-next-card p {
    font-size: 0.85em;
    margin-bottom: 0;
}

.docs-next-card a {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: 600;
}

.docs-footer {
    text-align: center;
    padding: 30px 24px 50px;
    color: var(--text-muted);
    font-size: 0.8em;
}
