/* 
   QuantLease — Blog & Article Styles
*/

.page-wrap {
    max-width: var(--container-width);
    margin: calc(var(--nav-height) + 40px) auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}

/* ── TOC Sidebar ─────────────────────────────── */
.toc-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.toc-sidebar h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.toc-sidebar ol {
    list-style: none;
}

.toc-sidebar li {
    margin-bottom: 8px;
}

.toc-sidebar a {
    font-size: 14px;
    color: var(--text-secondary);
}

.toc-sidebar a:hover {
    color: var(--text-primary);
}

/* ── Article Content ─────────────────────────── */
.article-body {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 60px;
}

.article-hero {
    margin-bottom: 40px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-glow);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-body h1 {
    margin-bottom: 16px;
}

.article-body h2 {
    margin: 40px 0 16px;
}

.article-body p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.formula-box {
    background: var(--bg-neutral);
    padding: 24px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    margin: 24px 0;
    font-family: monospace;
}

.callout {
    padding: 20px;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

/* ── Specialized Components ─────────────────── */

/* Mistake List (Common in guides) */
.mistake-list {
    list-style: none;
    padding: 0;
}

.mistake-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.mistake-num {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
}

/* Excel vs System Icons */
.icon-excel {
    color: #ef4444;
    font-size: 2rem;
    font-weight: 800;
}

.icon-system {
    color: #22c55e;
    font-size: 2rem;
    font-weight: 800;
}

.vs-divider {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .page-wrap {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }

    .article-body {
        padding: 40px 24px;
    }
}