/* ============================================================
   WEAVIVE — Article Page Stylesheet
   ============================================================ */


/* ── Nav active override (shared with blog.css) ── */
.nav-active {
    color: var(--cyan) !important;
    font-weight: 600;
}


/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.article-header {
    background: var(--navy);
    padding: 140px 0 60px;
}

.article-header .container {
    max-width: 800px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    text-decoration: none;
    margin-bottom: 24px;
    transition: gap 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.article-back:hover {
    gap: 10px;
    opacity: 1;
}

.article-back::before {
    content: '←';
    font-size: 14px;
}

.article-cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
    margin-bottom: 20px;
}

.article-cat--regulation {
    background: rgba(51, 81, 229, 0.2);
    color: var(--blue-light);
}

.article-cat--technology {
    background: rgba(35, 220, 225, 0.18);
    color: var(--cyan);
}

.article-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.article-lead {
    font-size: clamp(17px, 1.8vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.article-meta-dot {
    opacity: 0.5;
}


/* ============================================================
   ARTICLE HERO IMAGE
   ============================================================ */
.article-hero-img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    display: block;
}


/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
    background: var(--white);
    padding: 80px 0;
}

.article-body .container {
    max-width: 720px;
}

.article-prose h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: var(--navy);
    margin: 48px 0 16px;
    line-height: 1.2;
}

.article-prose p {
    font-size: 16px;
    color: #3a3a4a;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-prose ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-prose li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: #3a3a4a;
}

.article-prose strong {
    font-weight: 700;
    color: var(--navy);
}

.article-attribution {
    font-style: italic;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 48px;
}


/* ============================================================
   ARTICLE CTA SECTION
   ============================================================ */
.article-cta-section {
    background: var(--cloud);
    padding: 80px 0;
    text-align: center;
}

.article-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.article-cta-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-cta-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Override btn-outline for light background */
.article-cta-section .btn-outline {
    color: var(--navy);
    border-color: rgba(41, 39, 76, 0.3);
}

.article-cta-section .btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .article-header {
        padding: 120px 0 48px;
    }

    .article-hero-img {
        aspect-ratio: 3 / 2;
    }

    .article-body {
        padding: 56px 0;
    }

    .article-prose h2 {
        margin: 36px 0 14px;
    }

    .article-cta-section {
        padding: 56px 0;
    }

    .article-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .article-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   CHINESE (ZH) OVERRIDES
   Chinese characters are each ~1em wide, so fixed max-width
   constraints cause short orphan fragments on the last line.
   text-wrap: balance distributes text evenly across lines.
   ============================================================ */
html[lang="zh"] .article-cta-title {
    text-wrap: balance;
}

html[lang="zh"] .article-cta-sub {
    max-width: 600px;
    text-wrap: balance;
}
