/* Reset and Base Styles */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Site Layout */
.site-main {
    flex: 1;
    padding-top: 0;
}

/* Header Styles */
.site-header {
    background-color: #1a1a1a;
    color: #fff;
    border-bottom: 2px solid #dc2626;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-branding {
    flex: 1;
    min-width: 200px;
}

.site-logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.site-navigation {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 36px;
    height: 36px;
}

.search-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #d1d5db;
    margin-top: 0; /* Removed margin completely */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    padding: 2rem 0 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #d1d5db;
    transition: color 0.2s ease;
    cursor: pointer;
}

.social-icon:hover {
    color: #f87171;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    padding: 0.5rem 0 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: #2a2a2a;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 0 0 1rem 0;
}

/* Homepage Styles */
.homepage-header {
    margin-bottom: 1.5rem;
}

.homepage-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2a2a2a;
}

.homepage-intro {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

.section-label {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

/* Homepage Layout */
.homepage-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.homepage-main {
    flex: 1;
    min-width: 0;
}

.homepage-sidebar {
    width: 400px;
    flex-shrink: 0;
}

/* Featured Story Section */
.featured-story-section {
    margin-bottom: 2.5rem;
}

.featured-story {
    margin-bottom: 0;
}

.featured-story-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.featured-story-link:hover {
    opacity: 0.95;
    text-decoration: none;
}

.featured-story-image {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 8px;
    max-height: 400px;
}

.featured-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.featured-story-content {
    padding: 0;
}

.featured-story-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #2a2a2a;
}

.featured-story-link:hover .featured-story-title {
    color: #dc2626;
}

.featured-story-blurb {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.featured-story-meta {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Top Stories Sidebar */
.top-stories-section {
    margin-bottom: 0;
}

.top-stories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-story-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.top-story-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Fix the flex container and alignment */
.top-story-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start; /* Aligns text to the top of the image */
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.top-story-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Adjust image container to be square and smaller */
.top-story-image {
    flex-shrink: 0;
    width: 85px;  /* Adjusted for a tighter sidebar look */
    height: 85px;
    overflow: hidden;
    border-radius: 8px; /* Slightly more rounded like the mockup */
}

.top-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Refine the content and meta text */
/* Remove the width restriction to prevent premature wrapping */
.top-story-content {
    flex: 1;
    min-width: 0;
    max-width: none; /* Removed the calc() restriction */
}

.top-story-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: #2a2a2a;
}

.top-story-link:hover .top-story-title {
    color: #dc2626;
}

/* Ensure meta-data displays date and author on separate lines */
.top-story-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.4;
    font-size: 0.85rem;
    color: #6b7280;
}

.top-story-meta .article-date {
    order: -1;
}

.top-story-meta .comma-separator {
    display: none;
}

.comma-separator {
    color: #6b7280;
}

.meta-separator {
    color: #d1d5db;
    font-weight: 300;
}

/* Most Recent Section */
.most-recent-section {
    margin-top: 2.5rem;
}

.most-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-recent-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.most-recent-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.most-recent-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.most-recent-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.most-recent-content {
    padding: 0;
}

.most-recent-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    color: #2a2a2a;
}

.most-recent-link:hover .most-recent-title {
    color: #dc2626;
}

.most-recent-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Article List Styles */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    margin-bottom: 3.5rem;
}

.article-item:last-child {
    margin-bottom: 0;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-link:hover {
    text-decoration: none;
}

.article-title {
    margin-bottom: 0.5rem;
    color: #2a2a2a;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.article-link:hover .article-title {
    color: #dc2626;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto; /* Pushes button to the right */
}

.share-button:hover {
    color: #dc2626;
    border-color: #dc2626;
    background-color: #fef2f2;
}

.share-button svg {
    width: 14px;
    height: 14px;
}

.article-date {
    font-weight: 500;
}

.article-author {
    font-weight: 500;
}

.article-image {
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 6px;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.article-intro {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    margin-top: 0;
}


/* Article Page Styles */
.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px 20px;
}

.article-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.article-main {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.article-header {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.article-header .article-author {
    font-weight: 400;
    font-style: italic;
}

.article-header .article-publish-date {
    font-style: italic;
}

.article-featured-image {
    margin: 0.5rem 0 1rem 0;
    overflow: hidden;
    border-radius: 6px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures no inline spacing issues */
    border-radius: 6px; /* Matches other images for consistency */
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body a {
    color: #dc2626;
    text-decoration: underline;
}

.article-body a:hover {
    color: #b91c1c;
}

/* Article Author Section (Bottom of Article) */
.article-authors-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.article-author-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.article-author-card:last-child {
    margin-bottom: 0;
}

.article-author-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.article-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-author-image a {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.article-author-image a:hover {
    opacity: 0.8;
}

.article-author-details {
    flex: 1;
    min-width: 0;
}

.article-author-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.article-author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a2a2a;
    text-decoration: none;
}

a.article-author-name:hover {
    color: #dc2626;
    text-decoration: none;
}

.article-author-blurb {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
}

.article-author-blurb p {
    margin-bottom: 0.5rem;
}

.article-author-blurb p:last-child {
    margin-bottom: 0;
}

.author-image-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.author-profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.author-social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* REMOVED DUPLICATE BLOCK */


.author-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.author-header {
    margin-bottom: 3rem;
    text-align: left;
    padding-top: 0;
}

.author-header-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.author-info {
    flex: 1;
}

.author-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #2a2a2a;
}

.author-image-container {
    width: 150px;
    height: 150px;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: none;
    flex-shrink: 0;
}

.author-social-links {
    margin-bottom: 0;
    justify-content: flex-start;
}

.author-blurb {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
    max-width: 800px;
    margin: 0;
}


.author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #000000; /* Black */
    transition: color 0.2s ease;
    background: none !important; /* Force transparent background */
    border: none;
}

.author-social-link:hover,
.author-social-link:active,
.author-social-link:focus {
    color: #dc2626 !important; /* Theme Red on interaction */
    background: none !important; /* Ensure background stays transparent */
    text-decoration: none;
    transform: none;
}

.author-social-link svg {
    width: 24px;
    height: 24px;
}

/* Search Page Styles */
.template-searchresults .content-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2a2a2a;
}

.search-page-form {
    margin-top: 1.5rem;
}

.search-form-wrapper {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
}

.search-page-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    color: #2a2a2a;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-page-input:focus {
    outline: none;
    border-color: #dc2626;
}

.search-page-input::placeholder {
    color: #9ca3af;
}

.search-page-button {
    padding: 0.75rem 2rem;
    background-color: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-page-button:hover {
    background-color: #b91c1c;
}

.search-results-header {
    margin-bottom: 1rem;
}

.search-results-count {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.search-result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.search-result-link {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.search-result-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.search-result-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.search-result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    color: #2a2a2a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-link:hover .search-result-title {
    color: #dc2626;
}

.search-result-description {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    color: #dc2626;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination-link:hover {
    background-color: #fef2f2;
    text-decoration: none;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9375rem;
}

.search-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-message {
    font-size: 1.5rem;
    color: #2a2a2a;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.no-results-suggestion {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.search-empty-state p {
    font-size: 1.125rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

.empty-state p {
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0;
        gap: 0;
    }

    .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
        position: sticky;
        top: 0;
        background-color: #1a1a1a;
        z-index: 100;
        padding: 0.25rem 0 0.5rem 0;
    }

    .site-navigation {
        width: 100%;
        justify-content: center;
    }

    .site-title {
        font-size: 1.75rem;
    }

    .nav-menu {
        gap: 2.5rem; /* Increased from 1.5rem to spread items out more */
        flex-wrap: wrap;
    }

    .footer-content {
        padding: 1rem 0;
    }

    .social-icons {
        gap: 1rem;
    }

    .footer-bottom {
        padding: 0 0 1rem 0;
    }

    .content-container {
        padding: 30px 15px;
    }

    .homepage-header h1 {
        font-size: 2.25rem;
    }

    .homepage-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .homepage-sidebar {
        width: 100%;
    }

    .featured-story-title {
        font-size: 2rem;
    }

    .featured-story-blurb {
        font-size: 1.125rem;
    }

    .most-recent-section {
        margin-top: 2rem;
    }

    .article-page {
        padding: 20px 15px 0 15px;
    }
    
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        margin-top: 1rem;
    }

    .article-featured-image {
        margin-bottom: 0.9rem;
    }

    .article-authors-section {
        margin-top: 2rem;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .site-footer {
        margin-top: 0; /* Removed margin completely */
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .article-title a {
        font-size: 1.25rem;
    }

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

    .search-form-wrapper {
        flex-direction: column;
    }

    .search-page-button {
        width: 100%;
    }

    .search-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .search-result-title a {
        font-size: 1.25rem;
    }

    .article-meta,
    .most-recent-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* .featured-story-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.3;
    } */
    
    .article-header .article-meta {
        text-align: left;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        font-size: 0.85rem; /* Reduced text size */
        row-gap: 0; /* Reduce spacing between date and author lines */
    }

    .article-header .share-button {
        flex-shrink: 0;
        padding: 0.15rem 0.6rem; /* Reduced vertical size */
        font-size: 0.7rem;
    }
    
    /* Specific adjustment for Author Page article lists if that's what was meant */
    .template-authorpage .article-meta {
        font-size: 0.85rem;
    }

    .article-header .article-publish-date {
        width: 100%;
        margin-bottom: 0;
    }

    .article-header .article-author {
        flex: 1;
        min-width: 0;
    }

    .author-by {
        text-transform: capitalize;
    }

    .article-header .share-button {
        flex-shrink: 0;
    }

    .top-story-meta {
        /* On mobile, stack them similarly or adjust as preferred */
        flex-direction: column !important; 
        gap: 0;
    }
    
    .top-story-link {
        align-items: center; /* Better vertical alignment for smaller images */
    }
    .article-body img {
        max-width: 100%;
        height: auto;
    }
    
    .template-searchresults .content-container {
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1.75rem; /* Increased from 1rem to 1.75rem */
    }

    .nav-menu a {
        font-size: 0.9375rem;
    }

    .homepage-header h1 {
        font-size: 1.875rem;
    }

    .featured-story-title {
        font-size: 1.75rem;
    }

    .featured-story-blurb {
        font-size: 1rem;
    }

    .most-recent-title {
        font-size: 1.125rem;
    }

    .top-story-title {
        font-size: 1rem;
    }

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

    .article-intro {
        font-size: 1rem;
        line-height: 1.25;
    }
    
    /* Mobile Author Page Overrides */
    .author-header {
        text-align: center;
    }

    .author-header-top {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .author-image-container {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .author-social-links {
        justify-content: center;
    }

    .author-blurb {
        font-size: 1rem;
    }

    /* Mobile Article Author Section */
    .article-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .article-author-header {
        justify-content: center;
    }

    .article-authors-section {
        margin-top: 2rem;
    }
}

/* Image Credits */
.image-credit {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
    text-align: left;
    line-height: 1.2; /* Tighter line spacing for wrapped text */
}

/* RichText Captions (repurposed as credits) */
.article-body figcaption {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
    text-align: left;
    line-height: 1.2; /* Tighter line spacing for wrapped text */
}

/* Fix spacing for in-article images with credits */
.article-body figure.richtext-image img {
    margin-bottom: 0;
}

.article-body figure.richtext-image {
    margin-bottom: 1rem;
    margin-top: 1rem;
}
