/* marketing-plan.css — Unique sidebar layout styles for integrity-studio-marketing-plan.html
 * This page uses a fixed sidebar + scrolling main content layout that doesn't match any base template.
 * Variables: --primary, --primary-dark, --bg, --bg-white, --text, --text-muted, --border, --code-bg
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --code-bg: #f1f5f9;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.sidebar h1 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.sidebar .subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.toc-section {
    margin-bottom: 16px;
}
.toc-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.toc-section ul {
    list-style: none;
}
.toc-section li {
    margin-bottom: 4px;
}
.toc-section a {
    display: block;
    padding: 6px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.toc-section a:hover {
    background: var(--primary);
    color: white;
}

/* Main Content */
.main {
    flex: 1;
    margin-left: 320px;
    padding: 48px;
    max-width: 960px;
}
.section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}
.section h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.section .filepath {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: 'SF Mono', Consolas, monospace;
}
.content h1 { font-size: 1.75rem; margin: 24px 0 16px; color: var(--text); }
.content h2 { font-size: 1.375rem; margin: 20px 0 12px; color: var(--text); border: none; padding: 0; }
.content h3 { font-size: 1.125rem; margin: 16px 0 8px; color: var(--text); }
.content h4 { font-size: 1rem; margin: 12px 0 8px; color: var(--text); }
.content p { margin-bottom: 12px; }
.content ul, .content ol { margin: 12px 0 12px 24px; }
.content li { margin-bottom: 6px; }
.content code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.875em;
}
.content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.875rem;
}
.content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.875rem;
}
.content th, .content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}
.content th {
    background: var(--code-bg);
    font-weight: 600;
}
.content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-muted);
    font-style: italic;
}
.content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}
.content strong { font-weight: 600; }
.content a { color: var(--primary); }
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 260px; }
    .main { margin-left: 260px; padding: 32px; }
}
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .main { margin-left: 0; padding: 24px; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --bg-white: #1e293b;
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --border: #334155;
        --code-bg: #1e293b;
    }
    .section { background: #1e293b; }
    .sidebar a { color: #93c5fd; }
    .sidebar a:hover { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
    code { background: #334155; color: #e2e8f0; }
    table th { background: #1e293b; }
    table td { border-color: #334155; }
    table tr:hover { background: #1e293b; }
}
