/* Knowledge Base Article Content Styling */
/* This stylesheet provides consistent formatting for dynamically rendered HTML content from TinyMCE */

.kb-article-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.2;
}

.kb-article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.2;
}

.kb-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    line-height: 1.2;
}

.kb-article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.2;
}

.kb-article-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.2;
}

.kb-article-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.2;
}

.kb-article-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.kb-article-content ul,
.kb-article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.kb-article-content ul {
    list-style-type: disc;
}

.kb-article-content ol {
    list-style-type: decimal;
}

.kb-article-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.kb-article-content strong,
.kb-article-content b {
    font-weight: 600;
}

.kb-article-content em,
.kb-article-content i {
    font-style: italic;
}

.kb-article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #ccc;
    background-color: #f5f5f5;
    font-style: italic;
}

.kb-article-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
}

.kb-article-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.kb-article-content pre code {
    background: none;
    padding: 0;
}

.kb-article-content a {
    color: #1976d2;
    text-decoration: none;
}

.kb-article-content a:hover {
    text-decoration: underline;
}

.kb-article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.kb-article-content th,
.kb-article-content td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.kb-article-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.kb-article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.kb-article-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Additional styles for KB components */
.success-icon {
    color: var(--mud-palette-success);
}
