/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

/* Header and Navigation */
header {
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
}

.nav-logo {
    flex-shrink: 0;
    padding: 4px 0;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0056b3;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 5;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }
}

/* Main content */
main {
    min-height: calc(100vh - 120px);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #0056b3;
}

.copyright {
    color: #1a1a1a;
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
}

/* Blog container and header */
.blog-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header .logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    cursor: pointer;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.blog-description {
    color: #1a1a1a;
    font-size: 1.1rem;
}

/* Blog index styles */
.blog-post-preview {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.blog-post-preview h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.blog-post-preview h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.blog-post-preview h2 a:hover {
    color: #0056b3;
}

/* Article page styles */
.back-to-blog {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.back-to-blog:hover {
    color: #0056b3;
}

.blog-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 3rem;
}

.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-weight: 700;
}

.post-meta {
    color: #1a1a1a;
    font-size: 0.95rem;
}

.post-meta a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-content {
    color: #2c3e50;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.post-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid #3498db;
    margin: 2rem 0;
    padding: 1rem 0 1rem 2rem;
    color: #4a5568;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Tags */
.post-tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.tag:hover {
    background: #e9ecef;
    color: #333;
    border-color: #cbd5e0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.pagination a {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #3498db;
    color: white;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 1.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Target split highlight box */
.target-split-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.target-split-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.target-split-value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.target-split-unit {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
    margin-top: 0.5rem;
}

/* Center align page titles */
.post-content h1 {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .nav-logo-img {
        height: 25px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .blog-container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .target-split-highlight {
        padding: 2rem 1.5rem;
    }

    .target-split-label {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .target-split-value {
        font-size: 3rem;
    }

    .target-split-unit {
        font-size: 1rem;
    }

    .btn {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        box-sizing: border-box;
    }

    .post-content {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-content h1 {
        font-size: 1.5rem;
    }

    .blog-post {
        padding: 1rem;
    }

    .target-split-highlight {
        padding: 1.75rem 1rem;
    }

    .target-split-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .target-split-value {
        font-size: 2.5rem;
    }

    .target-split-unit {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}

/* Category and tag styles */
.category a, .tag {
    color: #1a1a1a;
    background-color: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category a:hover, .tag:hover {
    background-color: #dee2e6;
    color: #0056b3;
}

/* Search Styles */
.search-container {
    position: relative;
    margin-left: 1rem;
}

#search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0.5rem;
}

.search-result {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background-color: #f5f5f5;
}

.search-result h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.search-result p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.search-result small {
    font-size: 0.8rem;
    color: #999;
}

/* Mobile Responsive Search */
@media (max-width: 768px) {
    .search-container {
        margin: 1rem 0;
        width: 100%;
    }
    
    #search-input {
        width: 100%;
    }
    
    .search-results {
        width: 100%;
        left: 0;
    }
} 
/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.breadcrumbs a {
    color: #0056b3;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .crumb-sep {
    margin: 0 0.4rem;
    color: #adb5bd;
}

.breadcrumbs [aria-current="page"] {
    color: #1a1a1a;
}

/* Byline */
.post-meta .byline {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.post-meta .byline:hover {
    text-decoration: underline;
}

/* Author box */
.author-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.author-box h2 {
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.author-box p {
    margin-bottom: 0;
}

/* Lede paragraph on hub pages */
.lede {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #2c3e50;
}

/* Content tables (split tables, pace charts) */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-variant-numeric: tabular-nums;
}

.post-content th,
.post-content td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.post-content thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.post-content tbody tr:hover {
    background: #f8f9fa;
}

/* Wide tables scroll inside their own container, never the page */
.post-content .table-scroll {
    overflow-x: auto;
}

/* Definition-style callouts */
.post-content .note {
    background: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
