/* Professional Documentation Styling - Consistent Typography */

/* Global font settings for consistency */
.md-content {
    font-size: 16px;
    line-height: 1.8;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #212121;
}

[data-md-color-scheme="slate"] .md-content {
    color: #e0e0e0;
}

/* Consistent heading hierarchy - Further reduced sizes */
.md-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #1565C0;
    color: #0D47A1;
    letter-spacing: -0.3px;
}

.md-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #BBDEFB;
    color: #1565C0;
}

.md-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1976D2;
}

.md-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: #424242;
}

.md-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: #616161;
}

/* Consistent paragraph styling */
.md-content p {
    margin: 1rem 0;
    line-height: 1.8;
    text-align: left;
}

/* Professional links */
.md-content a {
    color: #1565C0 !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.md-content a:hover {
    color: #0D47A1 !important;
    border-bottom: 1px solid #1976D2;
}

[data-md-color-scheme="slate"] .md-content a {
    color: #42A5F5 !important;
}

[data-md-color-scheme="slate"] .md-content a:hover {
    color: #90CAF9 !important;
    border-bottom: 1px solid #64B5F6;
}

/* External link indicator */
.md-content a[href^="http"]::after {
    content: " ↗";
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 2px;
}

/* Professional code blocks with consistent fonts */
.md-content pre {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.md-content code {
    padding: 0.2em 0.4em;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #d32f2f;
}

[data-md-color-scheme="slate"] .md-content code {
    background-color: #2d2d2d;
    color: #ff6b6b;
}

/* Professional tables with consistent styling */
.md-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
}

.md-content table thead {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    color: white;
}

.md-content table th {
    padding: 14px 18px;
    font-weight: 600;
    text-align: left;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.md-content table td {
    padding: 12px 18px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.md-content table tbody tr:hover {
    background-color: #E3F2FD;
}

[data-md-color-scheme="slate"] .md-content table tbody tr:hover {
    background-color: #263238;
}

/* Alternating row colors for better readability */
.md-content table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

[data-md-color-scheme="slate"] .md-content table tbody tr:nth-child(even) {
    background-color: #1e2428;
}

/* Professional images */
.md-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.md-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

[data-md-color-scheme="slate"] .md-content img {
    border-color: #424242;
}

/* Better list styling with consistent spacing */
.md-content ul, .md-content ol {
    margin: 1.2rem 0;
    padding-left: 2rem;
}

.md-content li {
    margin: 0.6rem 0;
    line-height: 1.7;
}

.md-content ul ul, .md-content ol ol {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

/* Table of Contents styling */
.md-content h2 + ol,
.md-content h2 + ul {
    margin-top: 1.5rem;
}

.md-content ol > li {
    font-weight: 500;
    color: #424242;
}

[data-md-color-scheme="slate"] .md-content ol > li {
    color: #bdbdbd;
}

/* Feature boxes for home page */
.md-content .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-box {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #E3F2FD;
    border-left: 4px solid #1565C0;
    transition: transform 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

[data-md-color-scheme="slate"] .feature-box {
    background-color: #1e2428;
}

/* Blockquotes */
.md-content blockquote {
    border-left: 4px solid #1565C0;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #E3F2FD;
    border-radius: 4px;
    font-style: italic;
}

[data-md-color-scheme="slate"] .md-content blockquote {
    background-color: #1a2332;
}

/* Horizontal rules */
.md-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 3rem 0;
}

/* Strong/Bold text consistency */
.md-content strong {
    font-weight: 600;
    color: #0D47A1;
}

[data-md-color-scheme="slate"] .md-content strong {
    color: #42A5F5;
}

/* Emphasis/Italic consistency */
.md-content em {
    font-style: italic;
    color: #616161;
}

/* Resource cards */
.resource-card {
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.15);
    border-color: #1565C0;
}

[data-md-color-scheme="slate"] .resource-card {
    background: #1e2428;
    border-color: #424242;
}

/* Print optimization */
@media print {
    .md-content {
        font-size: 12pt;
    }
    
    .md-content a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    .md-content img {
        page-break-inside: avoid;
    }
    
    .md-content table {
        page-break-inside: avoid;
    }
}

/* Footer styling */
.md-footer-meta {
    background-color: #0D47A1;
}

.md-footer-copyright {
    font-size: 0.9rem;
}

/* Home page hero section - Simplified */
.md-content > h1:first-child {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #0D47A1;
}

.md-content > h1:first-child + h2 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: #616161;
    border: none;
    margin-top: 0;
    padding-bottom: 1rem;
}

/* Enhance centered content on home page */
.md-content div[style*="text-align: center"] {
    padding: 2rem 0;
}



