/* Content Layout - Bloomberg-inspired narrower content width
 * Controls the width and alignment of content in posts and pages
 */

/* Default content width for all pages */
.homepage-content {
    width: 100%;
    margin: 0 auto;
}

/* Bloomberg-inspired narrower width for single posts */
.single .site-main .grid-col-span-12 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid rgba(128, 128, 128, 0.25);
    border-right: 1px solid rgba(128, 128, 128, 0.25);
    padding: 0 15px;
}

/* Bloomberg-inspired narrower width for pages */
.page .site-main .grid-col-span-12 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid rgba(128, 128, 128, 0.3);
    border-right: 1px solid rgba(128, 128, 128, 0.3);
    padding: 0 20px;
}

/* Keep full width for components that should span the entire width */
.newsletter-subscription-section,
.premium-benefits-section,
#financial-headlines-standalone,
#hero-section,
#card-cluster,
#video-carousel-section {
    max-width: 100%;
    width: 100%;
}

/* Additional Bloomberg-inspired styling for article layout */
.article-bloomberg-style {
    max-width: 740px;
    margin: 0 auto;
}

.article-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.article-bloomberg-style .article-content {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Make sure images don't overflow their containers */
.entry-content img,
.article-content img {
    max-width: 100%;
    height: auto;
}

/* Bloomberg-style large headlines */
.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Adjust the article meta section */
.article-meta {
    margin: 1.5rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding-bottom: 1.5rem;
}

/* Bloomberg-style category pills */
.article-primary-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(128, 128, 128, 0.1);
    color: inherit;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

/* Improve paragraph spacing */
.article-content p,
.entry-content p {
    margin-bottom: 1.5em;
}

/* Improve the article byline */
.article-byline {
    font-weight: 500;
}

.article-author {
    font-weight: 600;
}

/* Image caption styling similar to Bloomberg */
.article-image-caption {
    padding: 0.75rem 0;
    color: rgba(80, 80, 80, 0.9);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

/* Add a subtle box shadow to featured images */
.article-feature-image img {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .single .site-main .grid-col-span-12 {
        border-color: rgba(128, 128, 128, 0.4);
    }
    
    .page .site-main .grid-col-span-12 {
        border-color: rgba(128, 128, 128, 0.45);
    }
    
    .article-wrapper,
    .article-meta,
    .article-image-caption {
        border-color: rgba(128, 128, 128, 0.3);
    }
    
    .article-primary-category {
        background-color: rgba(128, 128, 128, 0.2);
    }
    
    .article-feature-image img {
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
}

/* Class-based theme support for sites that use .dark-theme class */
.dark-theme .single .site-main .grid-col-span-12 {
    border-color: rgba(128, 128, 128, 0.4);
}

.dark-theme .page .site-main .grid-col-span-12 {
    border-color: rgba(128, 128, 128, 0.45);
}

.dark-theme .article-wrapper,
.dark-theme .article-meta,
.dark-theme .article-image-caption {
    border-color: rgba(128, 128, 128, 0.4);
}

.dark-theme .article-primary-category {
    background-color: rgba(128, 128, 128, 0.2);
}

.dark-theme .article-feature-image img {
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 840px) {
    .single .site-main .grid-col-span-12,
    .page .site-main .grid-col-span-12 {
        max-width: 95%;
    }
    
    .article-title {
        font-size: 2rem;
    }
} 