/* ==========================================================================
   ARTICLE LAYOUT STYLES (Pantone Inspired Breathing Grid)
   ========================================================================== */

/* Grander canvas width matching homepage grids */
.article-container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 3.5rem 24px 80px; /* Reduced top padding since header is now a full-width black section */
}

/* 
   Grander Typography for header (Full-width dark hero section)
   Matches the home page header style.
*/
.article-header { 
    background: #0a0a0a; /* Matches home page var(--bg-dark) */
    width: 100%;
    padding: 10rem 24px 4.5rem; /* Large top padding to avoid floating transparent navbar */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-header-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.article-header h1 { 
    font-size: 3rem; 
    line-height: 1.25; 
    margin: 0 auto 1.2rem; 
    color: #f5f5f7; /* High contrast white-gray */
    letter-spacing: -0.02em;
    font-weight: 700;
    max-width: 1400px;
}

.article-meta { 
    color: #86868b; 
    font-size: 0.95rem; 
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hero image banner */
.article-hero-image {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 4.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    aspect-ratio: 16 / 9;
    background: #f5f5f7;
}

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

.article-content {
    color: #1d1d1f;
}

/* 
   Core Grid Strategy:
   Keep paragraph-level structures at 760px golden reading width.
   This avoids text line lengths being too wide and causes zero fatigue.
*/
.article-content > p,
.article-content > h2,
.article-content > h3,
.article-content > ul,
.article-content > ol {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Pantone elegant subheaders */
.article-content h2 { 
    font-size: 2rem; 
    font-weight: 700;
    color: #1d1d1f;
    margin: 4.5rem auto 1.5rem; 
    letter-spacing: -0.015em;
    line-height: 1.35;
    border-bottom: 1.5px solid #eae8e4; /* Pantone warm gray fine partition border */
    padding-bottom: 0.8rem;
}

.article-content h3 { 
    font-size: 1.4rem; 
    font-weight: 600;
    color: #1d1d1f;
    margin: 2.5rem auto 1rem; 
}

/* Refined Typography for body text */
.article-content p { 
    font-size: 1.15rem; 
    line-height: 1.85; 
    margin-bottom: 1.8rem; 
    color: #333336; 
}

.article-content ul, 
.article-content ol { 
    font-size: 1.15rem; 
    line-height: 1.85; 
    margin-bottom: 1.8rem; 
    color: #333336; 
    padding-left: 1.5rem; 
}

.article-content li { 
    margin-bottom: 0.6rem; 
}

.article-content ol li::marker {
    color: #1d1d1f;
    font-weight: 700;
}

.article-content ul li::marker {
    color: var(--accent-blue);
}

.article-content strong {
    font-weight: 700;
    color: #000000;
}

/* Callout Box Refactoring (Cloud Dancer warm background) */
.cta-box { 
    background: #f6f5f2; 
    padding: 3.5rem 3rem; 
    border-radius: 24px; 
    text-align: center; 
    margin-top: 5.5rem; 
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.cta-box h3 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #1d1d1f;
}

.cta-box p {
    color: #6e6e73;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Primary CTA button override */
.cta-box a.hero-link-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: #1d1d1f;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-box a.hero-link-primary:hover {
    background: #333336;
}

/* Mobile Responsiveness */
@media (max-width: 800px) {
    .article-container { 
        padding: 2.5rem 16px 60px; /* Reduced top padding on mobile since header is now full-width dark */
    }
    .article-header {
        padding: 7rem 16px 3.5rem; /* Adjusted for mobile view spacing */
    }
    .article-header h1 { 
        font-size: 2.1rem; 
    }
    .article-hero-image {
        border-radius: 16px;
        margin-bottom: 3rem;
    }
    .article-content h2 { 
        font-size: 1.6rem; 
        margin: 3rem auto 1.2rem; 
    }
    .cta-box {
        padding: 2.5rem 1.5rem;
        margin-top: 4rem;
    }
}
