/* ===== NEWS POST STYLES ===== */

/* Post metadata line (category, tags, date) */
.post-meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-meta time {
    color: #999;
}

.post-category a {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.post-category a:hover {
    background: var(--primary-light);
    color: #fff;
}

.post-tag a {
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    text-decoration: none;
}

.post-tag a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.post-meta .separator {
    color: #ccc;
}

/* Post title */
.news-post h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

/* Attribution line */
.post-attribution {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Post body */
.post-body {
    margin-bottom: 2.5rem;
}

.post-body h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.post-body h3 {
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    color: var(--primary);
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body em {
    font-style: italic;
}

/* Footnote references in body text */
.post-body sup a {
    color: var(--accent);
    font-size: 0.75rem;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.post-body sup a:hover {
    text-decoration: underline;
}

/* Footnotes section */
.post-footnotes {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.post-footnotes h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.post-footnotes ol {
    padding-left: 1.5rem;
    font-size: 0.82rem;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
}

.post-footnotes ol li {
    margin-bottom: 0.5rem;
}

.post-footnotes ol li a {
    color: var(--accent);
    word-break: break-all;
}

/* Post disclaimer */
.post-disclaimer {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.post-disclaimer p {
    font-size: 0.78rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #999;
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.5;
}

/* Previous/Next navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.post-nav a {
    color: var(--text-light);
    text-decoration: none;
    max-width: 45%;
}

.post-nav a:hover {
    color: var(--accent);
}

.post-nav .nav-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin-bottom: 0.25rem;
}

.post-nav .nav-next {
    text-align: right;
}

/* Related posts in sidebar */
.sidebar .related-posts li {
    margin-bottom: 0.4rem;
}

.sidebar .related-posts li a {
    font-size: 0.8rem;
    line-height: 1.4;
}

.sidebar .related-posts .related-date {
    display: block;
    font-size: 0.7rem;
    color: #999;
}

/* ===== NEWS INDEX PAGE STYLES ===== */

/* News listing */
.news-listing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
}

.news-list {
    list-style: none;
}

.news-list-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item h2 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    padding: 0;
    border: none;
}

.news-list-item h2 a {
    color: var(--primary);
    text-decoration: none;
}

.news-list-item h2 a:hover {
    color: var(--accent);
}

.news-list-item .post-meta {
    margin-bottom: 0.75rem;
}

.news-list-item .post-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.65;
}

.news-list-item .read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.news-list-item .read-more:hover {
    color: var(--accent-light);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    color: var(--text-light);
    text-decoration: none;
}

.news-pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.news-pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Category filter active state */
.sidebar ul li a.filter-active {
    color: var(--accent);
    font-weight: bold;
    border-left: 3px solid var(--accent);
    padding-left: 0.5rem;
}

/* ===== NEWS MOBILE ===== */
@media (max-width: 768px) {
    .news-listing {
        grid-template-columns: 1fr;
    }

    .news-post h1 {
        font-size: 1.5rem;
    }

    .post-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .post-nav a {
        max-width: 100%;
    }

    .post-nav .nav-next {
        text-align: left;
    }
}
