/* ==========================================
   Knowledge Article Content — PC & Mobile
   ========================================== */

.article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    color: #1e293b;
    line-height: 1.85;
    word-wrap: break-word;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #0f172a;
    line-height: 1.25;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.article-content h1 { font-size: 2.25rem; border-bottom: 3px solid #0f172a; padding-bottom: 0.75rem; }
.article-content h2 { font-size: 1.875rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.6rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }
.article-content h5 { font-size: 1.125rem; }
.article-content h6 { font-size: 1rem; }

.article-content p { margin-bottom: 1.5rem; font-weight: 400; }

.article-content strong,
.article-content b { font-weight: 700; color: #0f172a; }

.article-content em,
.article-content i { font-style: italic; color: #137fec; }

.article-content a {
    color: #137fec;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #bfdbfe;
    transition: border-color 0.2s;
}
.article-content a:hover { border-bottom-color: #137fec; }

.article-content ul,
.article-content ol { margin-bottom: 1.5rem; padding-left: 1.75rem; }
.article-content ul li,
.article-content ol li { margin-bottom: 0.6rem; }
.article-content ul { list-style: disc; }
.article-content ul li::marker { color: #137fec; }
.article-content ol { list-style: decimal; }
.article-content ol li::marker { color: #137fec; font-weight: 600; }

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.article-content figure { margin: 2rem 0; }
.article-content figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-left: 4px solid #137fec;
    border-radius: 0.5rem;
    font-style: italic;
    color: #475569;
    position: relative;
}
.article-content blockquote::before {
    content: "\201C";
    font-size: 4rem;
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    color: rgba(19, 127, 236, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.article-content code {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
    background: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 0.375rem;
    font-size: 0.875em;
    color: #dc2626;
}
.article-content pre {
    margin: 2rem 0;
    padding: 1.25rem;
    overflow-x: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}
.article-content pre code { background: none; color: inherit; padding: 0; }

.article-content .table-wrapper { width: 100%; overflow-x: auto; margin: 2rem 0; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.925rem;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
}
.article-content thead th {
    background: #1e293b;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 18px;
    border: 1px solid #334155;
}
.article-content th,
.article-content td { padding: 12px 18px; border: 1px solid #e2e8f0; text-align: left; }
.article-content tbody tr:nth-child(even) { background: #f8fafc; }
.article-content tbody tr:hover { background: #eff6ff; transition: background 0.15s; }

.article-content hr { border: none; border-top: 2px solid #e2e8f0; margin: 3rem 0; }
.article-content small { font-size: 0.875em; }
.article-content sub,
.article-content sup { font-size: 75%; line-height: 0; }


/* ==========================================
   Table of Contents (PC only)
   ========================================== */
.toc-wrapper { font-size: 0.9375rem; }
.toc-wrapper .toc-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.875rem;
}
.toc-list { list-style: none; padding: 0; margin: 0; border-left: 1px solid #d1d5db; }
.toc-list li { margin: 0; padding: 0; }
.toc-list a {
    display: block;
    padding: 8px 0 8px 16px;
    font-size: 0.9375rem;
    color: #6b7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: all 0.2s;
    line-height: 1.4;
}
.toc-list a:hover { color: #111827; border-left-color: #111827; }
.toc-list a.toc-active {
    color: #000;
    font-weight: 800;
    border-left-color: #000;
    border-left-width: 3px;
}
.toc-list .toc-h2 { padding-left: 28px; font-size: 0.875rem; }
.toc-list .toc-h1 { font-weight: 600; }

@media (min-width: 1024px) {
    .toc-sidebar { position: fixed; left: 0; top: 10rem; width: 260px; padding-left: 12px; }
}


/* ==========================================
   Mobile Overrides
   ========================================== */
@media (max-width: 1023px) {
    .article-content {
        font-size: 0.9375rem;
        color: #334155;
        line-height: 1.8;
    }

    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        margin-top: 2.5rem;
        margin-bottom: 0.75rem;
        letter-spacing: -0.01em;
    }

    .article-content h1 { font-size: 1.75rem; border-bottom: 2px solid #0f172a; padding-bottom: 0.5rem; }
    .article-content h2 { font-size: 1.5rem; padding-bottom: 0.5rem; }
    .article-content h3 { font-size: 1.25rem; }
    .article-content h4 { font-size: 1.125rem; }
    .article-content h5 { font-size: 1rem; }
    .article-content h6 { font-size: 0.9375rem; }

    .article-content p { margin-bottom: 1.25rem; }

    .article-content ul,
    .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
    .article-content ul li,
    .article-content ol li { margin-bottom: 0.5rem; }
    .article-content ol li::marker { font-weight: 400; }

    .article-content img {
        margin: 1.5rem auto;
        border-radius: 0.5rem;
        box-shadow: none;
    }
    .article-content figure { margin: 1.5rem 0; }
    .article-content figcaption { font-size: 0.8125rem; }

    .article-content blockquote {
        margin: 1.5rem 0;
        padding: 1.25rem 1.5rem;
    }

    .article-content code { border-radius: 0.25rem; }
    .article-content pre {
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: 0.5rem;
        font-size: 0.8125rem;
    }

    .article-content .table-wrapper { margin: 1.5rem 0; }
    .article-content table {
        margin: 1.5rem 0;
        font-size: 0.8125rem;
    }
    .article-content thead th {
        font-size: 0.75rem;
        padding: 10px 12px;
    }
    .article-content th,
    .article-content td { padding: 10px 12px; }

    .article-content hr { margin: 2.5rem 0; }
}
