/* Shared Blog Styles - Coherent with Homepage Design */

/* Base Typography */
body {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation Bar */
.nav-bar {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: #1772d0;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 16px;
}

.nav-link:hover {
    color: #f09228;
}

/* Header */
header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Headings */
h1 {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #333;
}

h2 {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #333;
}

h3 {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
}

/* Text Elements */
p {
    margin-bottom: 1.25rem;
    color: #333;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 16px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.meta {
    font-size: 15px;
    color: #666;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lead {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Links */
a {
    color: #1772d0;
    text-decoration: none;
}

a:hover {
    color: #f09228;
}

/* Lists */
ul, ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: #333;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 16px;
}

/* Strong/Bold Text */
strong {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-weight: 700;
    color: #333;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2.5rem 0;
}

/* Code Blocks */
code {
    background: #f8f9fa;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #d73a49;
}

pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
}

pre code {
    background: none;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* Math Blocks - Minimal Paper Style */
.math-block {
    margin: 1.25rem 0;
    padding: 0.5rem 0;
    overflow-x: auto;
}

.math-block .katex-display {
    margin: 0;
    font-size: 1rem;
}

/* Inline Math */
.katex {
    font-size: 1em;
}

/* Highlight Box for Important Equations - Subtle emphasis */
.highlight-box {
    margin: 1.5rem 0;
    padding: 0.75rem 0;
    overflow-x: auto;
}

.highlight-box .katex-display {
    font-size: 1.15rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 15px;
}

td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 15px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #fafbfc;
    transition: background 0.15s ease;
}

td:first-child, th:first-child {
    font-weight: 500;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid #1772d0;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 30px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 17px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 0.4rem 0.5rem;
    }
    
    .math-block {
        padding: 0.5rem 0;
        margin: 1rem 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #666;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Print Styles */
@media print {
    .nav-bar {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #333;
        text-decoration: underline;
    }
    
    .math-block {
        page-break-inside: avoid;
    }
}