/* article page styles — extracted from templates/article.html */
/* FOUT guard — revealed after CSS loads */
.article-page { visibility: visible; }

/* ============================================================
       PAGE — Article
       ============================================================ */

    /* --- Article Layout --- */
    .news-article {
        max-width: 860px;
    }

    .news-article-title {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: clamp(2.2rem, 5vw, 3.8rem);
        line-height: 1.06;
        letter-spacing: -0.02em;
        color: var(--white);
        margin-bottom: 1.5rem;
        transition: color 0.3s ease, text-shadow 0.3s ease;
        display: inline-block;
    }

    .news-article-title:hover {
        color: var(--white);
        text-shadow: 0 0 12px rgba(224, 35, 135, 0.5);
    }

    .news-meta {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        color: var(--light-blue);
        margin-bottom: 1.5rem;
    }

    .meta-divider {
        opacity: 0.4;
    }

    .meta-category {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease, text-shadow 0.3s ease;
    }

    .meta-category:hover {
        color: var(--pink);
        text-shadow: 0 0 8px rgba(224, 35, 135, 0.4);
    }

    .meta-link {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease, text-shadow 0.3s ease;
    }

    .meta-link:hover {
        color: var(--pink);
        text-shadow: 0 0 8px rgba(224, 35, 135, 0.4);
    }

    .news-excerpt {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: var(--body-size);
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.7;
        margin-bottom: 1.5rem;
        max-width: 620px;
    }

    /* Read-more link hover — consistent pink + glow */
    .news-article .text-link:hover {
        color: var(--pink);
        background: none;
        -webkit-text-fill-color: var(--pink);
        text-shadow: 0 0 8px rgba(224, 35, 135, 0.4);
    }

    .news-accent-line {
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--pink), var(--bright-blue));
        margin-bottom: 2rem;
        transition: width 1s ease 0.3s;
    }

    .section.in-view .news-accent-line {
        width: 120px;
    }

    /* --- Article Body Typography --- */
    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body h5,
    .article-body h6 {
        font-family: var(--font-body);
        font-weight: 500;
        color: var(--white);
        margin: 2.5rem 0 1rem;
        letter-spacing: -0.01em;
    }
    .article-body h1 { font-size: 2.2rem; }
    .article-body h2 { font-size: 1.8rem; }
    .article-body h3 { font-size: 1.5rem; }
    .article-body h4 { font-size: 1.3rem; }

    .article-body p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 1.25rem;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 1.75rem;
    }

    .article-body strong {
        color: var(--white);
        font-weight: 500;
    }

    .article-body em {
        color: rgba(255, 255, 255, 0.72);
    }

    .article-body a {
        color: var(--light-blue);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.3s ease;
    }

    .article-body a:hover {
        color: var(--pink);
    }

    .article-body ul,
    .article-body ol {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 1.25rem;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 1.75rem;
        padding-left: 1.5rem;
    }

    .article-body ul li,
    .article-body ol li {
        margin-bottom: 0.5rem;
    }

    .article-body blockquote {
        margin: 3rem 0;
        padding: 2.5rem 0 2.5rem 2.5rem;
        border-left: 4px solid var(--pink);
    }

    .article-body blockquote p {
        font-family: var(--font-body);
        font-weight: 400;
        font-size: 1.65rem;
        line-height: 1.4;
        color: var(--white);
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }

    .article-body cite {
        font-family: var(--font-mono);
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--light-blue);
        font-style: normal;
    }

    .article-blockquote {
        margin: 3rem 0;
        padding: 2.5rem 0 2.5rem 2.5rem;
        border-left: 4px solid var(--pink);
    }
    .article-blockquote p {
        font-family: var(--font-body);
        font-weight: 400;
        font-size: 1.65rem;
        line-height: 1.4;
        color: var(--white);
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }
    .article-blockquote cite {
        font-family: var(--font-mono);
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--light-blue);
        font-style: normal;
    }

    /* --- Code blocks --- */
    .article-body pre {
        font-family: var(--font-mono);
        font-size: 0.78rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.75);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 3px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.75rem;
        overflow-x: auto;
        white-space: pre;
    }

    /* --- Inline code --- */
    .article-body code:not(pre code) {
        font-family: var(--font-mono);
        font-size: 0.82rem;
        color: var(--bright-blue);
        background: rgba(101, 162, 210, 0.08);
        padding: 0.15rem 0.4rem;
        border-radius: 2px;
    }

    /* ============================================================
       RESPONSIVE EMBEDS — fixed aspect ratio, fluid width
       Usage in source view:
         <div class="article-embed article-embed-16x9">
           <iframe src="..." ...></iframe>
         </div>
       Modifiers: article-embed-16x9 (default), article-embed-4x3,
                  article-embed-1x1, article-embed-21x9, article-embed-spotify
       ============================================================ */
    .article-embed {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 default */
        margin: 2rem 0;
        overflow: hidden;
    }
    .article-embed iframe,
    .article-embed object,
    .article-embed embed,
    .article-embed video {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
    .article-embed-4x3   { padding-bottom: 75%; }     /* 4:3 classic video */
    .article-embed-1x1   { padding-bottom: 100%; }    /* square (Instagram) */
    .article-embed-21x9  { padding-bottom: 42.85%; }  /* ultra-widescreen */
    .article-embed-spotify { padding-bottom: 152px; }  /* Spotify podcast player (fixed height) */
    @media (max-width: 500px) {
        .article-embed-spotify { padding-bottom: 232px; } /* taller on mobile */
    }

    p.lead {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 2rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.78);
        margin-bottom: 2rem;
    }

    /* --- Back Link --- */
    .article-back {
        font-family: var(--font-mono);
        font-size: 0.8rem;
    }

    /* ============================================================
       CTA GLOW — Animated ambient corner-drift gradient
       Uses @property-registered custom properties for smooth interpolation
       ============================================================ */
    @property --cta-a1 { syntax: '<number>'; inherits: false; initial-value: 0.60; }
    @property --cta-a2 { syntax: '<number>'; inherits: false; initial-value: 0.40; }
    @property --cta-a3 { syntax: '<number>'; inherits: false; initial-value: 0.40; }
    @property --cta-a4 { syntax: '<number>'; inherits: false; initial-value: 0.25; }
    @property --cta-x1 { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
    @property --cta-y1 { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
    @property --cta-x3 { syntax: '<percentage>'; inherits: false; initial-value: 85%; }
    @property --cta-y3 { syntax: '<percentage>'; inherits: false; initial-value: 85%; }
    @property --cta-da { syntax: '<number>'; inherits: false; initial-value: 0.15; }
    @property --cta-ds { syntax: '<number>'; inherits: false; initial-value: 1.0; }

    .cta-glow {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        --cta-a1:0.60; --cta-a2:0.40; --cta-a3:0.55; --cta-a4:0.35;
        --cta-x1:15%; --cta-y1:15%; --cta-x3:85%; --cta-y3:85%;
        --cta-da:0.20; --cta-ds:1.0;
    }

    .cta-glow::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at var(--cta-x1) var(--cta-y1), rgba(224,35,135,var(--cta-a1)) 0%, transparent 75%),
            radial-gradient(circle at 85% 15%, rgba(101,162,210,var(--cta-a2)) 0%, transparent 75%),
            radial-gradient(circle at var(--cta-x3) var(--cta-y3), rgba(56,87,173,var(--cta-a3)) 0%, transparent 75%),
            radial-gradient(circle at 15% 85%, rgba(49,158,199,var(--cta-a4)) 0%, transparent 75%);
        animation: ctaPulse 14s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes ctaPulse {
        0%   { --cta-a1:0.60; --cta-a2:0.40; --cta-a3:0.55; --cta-a4:0.35; --cta-x1:15%; --cta-y1:15%; --cta-x3:85%; --cta-y3:85%; }
        20%  { --cta-a1:0.75; --cta-a2:0.25; --cta-a3:0.40; --cta-a4:0.50; --cta-x1:22%; --cta-y1:10%; --cta-x3:78%; --cta-y3:90%; }
        40%  { --cta-a1:0.45; --cta-a2:0.55; --cta-a3:0.70; --cta-a4:0.25; --cta-x1:10%; --cta-y1:20%; --cta-x3:90%; --cta-y3:78%; }
        60%  { --cta-a1:0.65; --cta-a2:0.35; --cta-a3:0.50; --cta-a4:0.48; --cta-x1:18%; --cta-y1:18%; --cta-x3:82%; --cta-y3:82%; }
        80%  { --cta-a1:0.40; --cta-a2:0.65; --cta-a3:0.75; --cta-a4:0.40; --cta-x1:12%; --cta-y1:8%; --cta-x3:88%; --cta-y3:92%; }
        100% { --cta-a1:0.60; --cta-a2:0.40; --cta-a3:0.55; --cta-a4:0.35; --cta-x1:15%; --cta-y1:15%; --cta-x3:85%; --cta-y3:85%; }
    }

    /* Depth layer — dark center anchor, grounds the corner colors */
    .cta-glow::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 50%, rgba(0,0,0,var(--cta-da)) 0%, transparent 50%);
        transform: scale(var(--cta-ds));
        animation: ctaDepth 11s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes ctaDepth {
        0%   { --cta-da:0.20; --cta-ds:1.0; }
        50%  { --cta-da:0.12; --cta-ds:1.2; }
        100% { --cta-da:0.20; --cta-ds:1.0; }
    }

    .cta-glow > * {
        position: relative;
        z-index: 1;
    }

    /* --- CTA Button Primary --- */
    .cta-btn-primary {
        font-family: var(--font-mono);
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--white);
        background: transparent;
        border: 1.5px solid rgba(255,255,255,0.3);
        padding: 0.85rem 2.25rem;
        text-decoration: none;
        transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
        cursor: pointer;
        display: inline-block;
    }

    .cta-btn-primary:hover {
        background: linear-gradient(135deg, var(--pink), var(--mid-blue));
        border-color: rgba(224,35,135,0.8);
        box-shadow: 0 0 30px rgba(224,35,135,0.4), 0 0 60px rgba(101,162,210,0.2);
    }

    /* --- Hero Image --- */
    .article-hero-image {
        width: 100%;
        margin-bottom: clamp(2.5rem, 6vw, 4rem);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .article-hero-image svg {
        width: 100%;
        max-height: 55vh;
        display: block;
        border-radius: 2px;
    }

    .article-hero-badge {
        position: absolute;
        bottom: clamp(1.5rem, 3vw, 2.5rem);
        left: clamp(2rem, 6vw, 5rem);
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .article-hero-badge-inner {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--white);
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 1.25rem;
        border: 1px solid rgba(255,255,255,0.15);
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .article-hero-badge-inner .sep {
        color: rgba(255,255,255,0.25);
    }

    /* --- Featured cards --- */
    .featured-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.06);
        padding: 1.75rem;
        transition: border-color 0.35s ease, background 0.35s ease;
        text-decoration: none;
        display: block;
    }
    .featured-card svg {
        width: 28px;
        height: 28px;
        margin-bottom: 1rem;
        stroke-width: 1.5;
        fill: none;
    }
    .featured-card h4 {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 1.05rem;
        color: var(--white);
        margin-bottom: 0.5rem;
        letter-spacing: -0.01em;
    }
    .featured-card p {
        font-family: var(--font-body);
        font-weight: 300;
        font-size: 0.8rem;
        line-height: 1.55;
        color: rgba(255,255,255,0.5);
        margin-bottom: 1rem;
    }
    .featured-card .featured-link {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .featured-card .featured-link:hover {
        color: var(--pink) !important;
    }

    /* --- Article-specific responsive --- */
    @media (max-width: 1024px) {
        .news-article-title {
            font-size: clamp(1.5rem, 6vw, 2.5rem);
        }
    }

/* ============================================================
   EXTRACTED FROM TEMPLATE — Batch 5
   ============================================================ */

/* Article section — layout overrides for #news when used as article page */
#news {
    justify-content: flex-start;
    padding-top: 6rem;
    gap: 0;
    min-height: auto;
}

/* Full-width article wrapper */
.article-content { width: 100%; }

/* Hero featured image */
.article-featured-img {
    width: 100%;
    max-height: 55vh;
    display: block;
    object-fit: contain;
    object-position: left center;
    background: #000;
    border-radius: 2px;
}

/* Hero badge author link row */
.article-author-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
}

/* Author avatar — shared for img and SVG placeholder */
.article-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
    display: block;
    vertical-align: middle;
}

svg.article-author-avatar {
    border: none;
    cursor: default;
}

/* Two-column magazine layout */
.article-columns {
    display: flex;
    gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap;
    padding: 0 0 clamp(3rem, 6vh, 5rem) 0;
}

/* Left column — article body */
.article-body-col { flex: 1 1 500px; min-width: 0; }

/* Right column — key statistics sidebar */
.article-stats-col { flex: 0 0 320px; min-width: 280px; }

/* Sticky wrapper for stats panel */
.article-stats-wrap { position: sticky; top: 120px; }

/* Stats panel heading */
.stats-heading {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}

/* Stat card label */
.stats-label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.6);
}

/* Horizontal rule — gradient bar between article body and featured/CTA */
.article-rule {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--pink), var(--bright-blue));
    margin: 0 0 1.5rem;
    opacity: 0.7;
}

/* Featured / Related section wrapper */
.article-featured-wrap { margin-bottom: 2rem; }

/* Featured heading */
.featured-heading {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}

/* Featured items grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* CTA Glow block — shared component (also in service-detail.css) */
.cta-glow {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 4rem);
}

.cta-glow h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-glow p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.cta-glow-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Article back-to-news link */
.article-back { font-size: 0.8rem; }
