/* SettleWise Custom Styles */

.article-body,
.article-content,
.resource-body {
    font-size: 1.05rem;
    line-height: 1.6;
}

.article-body p,
.article-content p,
.resource-body p {
    margin-bottom: 1.5rem;
}
.article-body p:has(+ ul),
.article-body p:has(+ ol),
.article-content p:has(+ ul),
.article-content p:has(+ ol),
.resource-body p:has(+ ul),
.resource-body p:has(+ ol) {
    margin-bottom: 0.5rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.resource-body h1,
.resource-body h2,
.resource-body h3,
.resource-body h4,
.resource-body h5,
.resource-body h6,
.article-content,
.article-content ul,
.article-content ol,
.article-content li {
    text-align: left;
}

.article-body h2,
.article-content h2,
.resource-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3,
.article-content h3,
.resource-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.article-body ul,
.article-body ol,
.article-content ul,
.article-content ol,
.resource-body ul,
.resource-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li,
.article-content li {
    margin-bottom: 0.2rem;
}

.resource-body li {
    margin-bottom: 0.2rem;
}

.article-body blockquote,
.article-content blockquote,
.resource-body blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.article-body code,
.article-content code,
.resource-body code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.article-body pre,
.article-content pre,
.resource-body pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.summary-checklist {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #0056b3;
    margin: 0.75rem 0 2rem;
}


hr + .summary-checklist {
    margin-top: 0.25rem;
}

.summary-checklist h3,
.summary-checklist__title {
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.summary-checklist__icon {
    color: #2e8b57;
    flex: 0 0 auto;
    font-weight: 700;
}

.summary-checklist ul,
.summary-checklist ol {
    margin-bottom: 0;
}

.summary-checklist li {
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Brand accent color — matches style.css accent (#3498db) */
.bg-brand-blue {
    background-color: #3498db !important;
}

/* Card divider */
.sw-card-divider {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 0.75rem 0;
    opacity: 1;
}

/* Enhanced typography */

h1, h2 { font-weight: 600;  letter-spacing: -0.5px;}
h3, h4, h5, h6 { font-weight: 500; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .article-body {
        font-size: 1rem;
    }

    .article-content,
    .resource-body {
        font-size: 1rem;
    }

    .summary-checklist {
        padding: 1rem;
    }

    .summary-checklist__title {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
