/**
 * Unified article/show layout — blog, news, solutions, playbooks (v1.5)
 */

.article-shell {
    --article-accent: var(--vt-blue, #1668B2);
}

.article-shell--news {
    --article-accent: #ef4444;
}

.article-shell--playbook {
    --article-accent: #818cf8;
}

.article-shell--solution {
    --article-accent: #1668B2;
}

.article-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(22, 104, 178, 0.1);
    border: 1px solid rgba(22, 104, 178, 0.25);
    color: var(--article-accent);
    margin-bottom: 1.25rem;
}

.article-shell--news .article-category-pill {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.article-shell--playbook .article-category-pill {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.3);
    color: #818cf8;
}

.article-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    overflow: hidden;
}

.article-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(22, 104, 178, 0.08) 0%, transparent 60%);
}

.article-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.article-hero h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.article-excerpt-lead {
    font-size: var(--text-lg, 1.125rem);
    color: var(--color-text-muted, #64748b);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted, #64748b);
}

.article-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-hero-meta .sep {
    opacity: 0.4;
}

.article-cover {
    margin: 0 auto 3rem;
    max-width: 1100px;
    padding: 0 1.25rem;
}

.article-cover-inner {
    border-radius: var(--radius-lg, 1rem);
    overflow: hidden;
    border: 1px solid var(--color-border, #e2e8f0);
    box-shadow: var(--shadow-lg);
}

.article-cover-inner img {
    width: 100%;
    height: auto;
    display: block;
}

.article-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-h, 80px) + 1.5rem);
    align-self: start;
}

.article-body {
    min-width: 0;
}

.article-body .prose {
    max-width: 72ch;
    line-height: 1.75;
}

.article-related {
    padding: 4rem 0;
    background: var(--color-bg-light, #f8fafc);
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.article-related__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.article-related__header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-related__header p {
    color: var(--color-text-muted, #64748b);
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.article-related-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform var(--duration-normal, 0.28s) ease, box-shadow var(--duration-normal, 0.28s) ease;
}

.article-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }

    .article-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-related__grid {
        grid-template-columns: 1fr;
    }
}

/* TOC card + mobile drawer */
.article-toc-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 1rem;
    background: #fff;
}

.article-toc-card__title {
    margin-top: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.article-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.article-toc-list--placeholder {
    color: var(--text-muted, #64748b);
    font-style: italic;
}

.article-toc-link--h3 {
    padding-left: 1rem;
    font-size: 0.8125rem;
}

.article-toc-link:not(.article-toc-link--h3) {
    font-weight: 600;
}

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

.article-toc-link:hover {
    color: var(--article-accent, var(--vt-blue, #1668B2));
}

.article-author-card .btn-full {
    width: 100%;
    border-radius: 10px;
}

.article-shell--news .news-detail-hero {
    background: linear-gradient(135deg, #020617 0%, #0b1528 100%);
    color: #f8fafc;
}

.article-shell--news .news-detail-hero .article-excerpt-lead,
.article-shell--news .news-detail-hero .article-hero-meta {
    color: #94a3b8;
}

.article-category-pill--breaking {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.article-excerpt-blockquote {
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    border-left: 4px solid var(--vt-blue, #1668B2);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted, #64748b);
}

.article-sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.article-sidebar-card--accent {
    background: rgba(16, 104, 178, 0.03);
    border: 1px solid rgba(16, 104, 178, 0.15);
}

.article-source-link {
    font-size: 0.8125rem;
    color: var(--vt-blue, #1668B2);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1e293b, #0f172a);
    font-size: 2rem;
}

.blog-related-read-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--vt-blue, #1668B2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}
