/* ========================================
   ARTICLE ENHANCED STYLES FOR www.onl
   ======================================== */

/* CSS Variables - Article Specific */
:root {
    --article-max-width: 800px;
    --article-toc-width: 280px;
    --article-gap: 40px;
    --progress-height: 4px;
    --article-h1: 2.5rem;
    --article-h2: 1.75rem;
    --article-h3: 1.5rem;
    --article-body: 1.125rem;
    --article-caption: 0.875rem;
    --article-line-height: 1.8;
    --article-measure: 70ch;
    --toc-indent: 1.5em;
    --sidebar-width: 320px;
}

[data-theme="dark"] {
    --article-max-width: 800px;
}

/* ========================================
   ARTICLE LAYOUT GRID
   ======================================== */

.article-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--article-gap);
    max-width: 1400px;
    margin: 120px auto 0;
    padding: 0 20px;
    align-items: start;
}

/* ========================================
   GHOST THEME LAYOUT (gh-main, gh-sidebar, gh-article)
   ======================================== */

/* Grid container for article with sidebar */
.gh-article-with-sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--article-gap);
    max-width: 1400px;
    margin: 120px auto 0;
    padding: 0 20px;
    align-items: start;
}

/* Sidebar styling */
.gh-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: fit-content;
}

/* Article content styling */
.gh-article {
    max-width: 800px;
    width: 100%;
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */

.article-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--progress-height);
    background: var(--bg-secondary);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-progress-bar .progress-fill {
    height: 100%;
    background: var(--primary-gold);
    width: 0%;
    transition: width 0.1s linear;
}

.article-progress-bar .progress-meta {
    position: absolute;
    right: 20px;
    top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: none;
    gap: 15px;
    font-weight: 500;
}

/* ========================================
   ARTICLE HERO SECTION
   ======================================== */

.article-hero {
    margin-bottom: 50px;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumbs a:hover {
    color: var(--primary-gold);
}

.article-breadcrumbs .separator {
    color: var(--text-muted);
}

.hero-image {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image figcaption {
    padding: 15px 20px;
    background: var(--bg-secondary);
    font-size: var(--article-caption);
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.hero-content {
    text-align: center;
}

.article-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-gold);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-decoration: none;
}

[data-theme="dark"] .article-tag {
    color: #000000;
}

.article-title {
    font-size: var(--article-h1);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.article-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-name a {
    color: var(--primary-gold);
    text-decoration: none;
}

.author-name a:hover {
    text-decoration: underline;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reading-time::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ========================================
   SIDEBAR
   ======================================== */

.article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */

.article-toc {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 20px;
}

.article-toc h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item a {
    display: block;
    padding: 8px 12px;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

[data-theme="dark"] .toc-item a {
    color: #ffffff;
}

.toc-item a:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-left-color: var(--primary-gold);
}

.toc-item a.active {
    background: color-mix(in srgb, var(--primary-gold), transparent 90%);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
    font-weight: 600;
}

.toc-level-3 {
    padding-left: var(--toc-indent);
}

/* ========================================
   AUTHOR CARD
   ======================================== */

.author-card {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 25px;
    text-align: center;
}

.author-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.author-card .author-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
}

.author-card .author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.author-card .author-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.author-card .author-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.author-card .author-social a:hover {
    background: var(--primary-gold);
    color: #fff;
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

.article-content {
    max-width: var(--article-max-width);
}

.gh-content {
    font-size: var(--article-body);
    line-height: var(--article-line-height);
    color: var(--text-primary);
    max-width: var(--article-measure);
}

.gh-content h2 {
    font-size: var(--article-h2);
    font-weight: 700;
    margin: 2.5em 0 1em;
    color: var(--text-primary);
    scroll-margin-top: 100px;
}

.gh-content h3 {
    font-size: var(--article-h3);
    font-weight: 600;
    margin: 2em 0 1em;
    color: var(--text-primary);
    scroll-margin-top: 100px;
}

.gh-content p {
    margin-bottom: 1.5em;
}

.gh-content a {
    color: var(--primary-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.gh-content a:hover {
    border-bottom-color: var(--primary-gold);
}

/* All links within article area */
.article-content a,
.article-sidebar a,
.article-share a,
.article-footer a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover,
.article-sidebar a:hover,
.article-share a:hover,
.article-footer a:hover {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
    opacity: 0.8;
}

/* Drop Cap */
.gh-content p:first-of-type::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    padding-right: 0.1em;
    color: var(--primary-gold);
    font-weight: 700;
}

/* Pull Quotes */
.gh-content blockquote {
    border-left: 4px solid var(--primary-gold);
    padding: 1.5em 2em;
    margin: 2em 0;
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.gh-content blockquote p {
    margin: 0;
}

/* Figures */
.gh-content figure {
    margin: 2em 0;
}

.gh-content figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.gh-content figure figcaption {
    font-size: var(--article-caption);
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Code Blocks */
.gh-content code {
    background: color-mix(in srgb, var(--primary-gold), transparent 90%);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.gh-content pre {
    background: var(--bg-secondary);
    padding: 1.5em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid var(--glass-border);
}

.gh-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875em;
}

/* Lists */
.gh-content ul,
.gh-content ol {
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.gh-content li {
    margin-bottom: 0.5em;
}

/* Tables */
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gh-content table th,
.gh-content table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.gh-content table th {
    background: var(--primary-gold);
    color: #fff;
    font-weight: 600;
}

.gh-content table tr:last-child td {
    border-bottom: none;
}

.gh-content table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ========================================
   ARTICLE FOOTER
   ======================================== */

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.article-tags .tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.article-nav a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-nav a:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.article-nav-prev {
    text-align: left;
}

.article-nav-next {
    text-align: right;
}

.article-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.article-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   SOCIAL SHARING
   ======================================== */

.article-share {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 21px;
    margin-bottom: 30px;
}

.article-share h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.article-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.action-btn.active {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   ECHARTS INTEGRATION
   ======================================== */

.chart-placeholder {
    margin: 2em 0;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.chart-error {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 12px;
}

/* ECharts title styling overrides */
div[id^="chart-"] .echarts-title {
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Force inline chart text colors - CRITICAL FIX for inline charts */
div[id^="chart-"] {
    color: var(--text-primary) !important;
}

/* Dark theme chart fixes */
[data-theme="dark"] div[id^="chart-"] {
    color: #ffffff !important;
}

[data-theme="dark"] div[id^="chart-"] text,
[data-theme="dark"] div[id^="chart-"] tspan,
[data-theme="dark"] div[id^="chart-"] .echarts-title,
[data-theme="dark"] div[id^="chart-"] path[fill="inherit"] {
    fill: #ffffff !important;
}

[data-theme="dark"] div[id^="chart-"] path[stroke="inherit"] {
    stroke: #ffffff !important;
}

/* Light theme chart fixes */
[data-theme="light"] div[id^="chart-"] {
    color: #0a0a0a !important;
}

[data-theme="light"] div[id^="chart-"] text,
[data-theme="light"] div[id^="chart-"] tspan,
[data-theme="light"] div[id^="chart-"] .echarts-title,
[data-theme="light"] div[id^="chart-"] path[fill="inherit"] {
    fill: #0a0a0a !important;
}

[data-theme="light"] div[id^="chart-"] path[stroke="inherit"] {
    stroke: #0a0a0a !important;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* ========================================
   MOBILE SIDEBAR FIX - Override Ghost Theme
   ======================================== */

/* Tablet/Mobile: Override Ghost theme's display: none for sidebar */
@media (max-width: 1199px) {
    /* Override Ghost theme's display: none and show sidebar at bottom */
    .gh-article-with-sidebar .gh-sidebar {
        display: flex !important;
        grid-column: 1 / -1;
        order: 2; /* Move to bottom */
        position: relative !important;
        top: 0 !important;
        margin-top: 60px;
        height: auto !important;
    }

    .gh-article-with-sidebar .gh-article {
        grid-column: 1 / -1;
        order: 1; /* Keep at top */
    }

    /* Hide TOC by default on mobile, show other sidebar content */
    .article-toc {
        display: none;
    }

    /* Show TOC toggle button */
    .toc-toggle {
        display: flex;
    }

    /* TOC drawer when open */
    .article-toc.mobile-open {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1000;
        animation: slideUp 0.3s ease;
        border-radius: 16px 16px 0 0;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Author card and newsletter visible at bottom */
    .author-card {
        display: block;
    }
}

/* Tablet and below */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: relative;
        top: 0;
    }

    .article-toc {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --article-h1: 1.75rem;
        --article-h2: 1.5rem;
        --article-h3: 1.25rem;
        --article-body: 1rem;
    }

    .article-progress-bar {
        top: 0;
        height: 3px;
    }

    .article-layout {
        margin: 90px auto 0;
        padding: 0 15px;
    }

    /* Mobile sidebar spacing */
    .article-sidebar {
        gap: 20px;
    }

    .article-title {
        font-size: var(--article-h1);
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .meta-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

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

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide TOC on mobile by default */
    .article-toc {
        display: none;
    }

    /* TOC Toggle Button for Mobile */
    .toc-toggle {
        display: flex;
    }

    /* TOC Drawer for Mobile */
    .article-toc.mobile-open {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
        z-index: 1000;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

/* Mobile TOC Toggle Button */
.toc-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(153, 114, 38, 0.4);
    transition: transform 0.3s ease;
}

.toc-toggle:hover {
    transform: scale(1.1);
}

.toc-toggle.active {
    background: #fff;
    color: var(--primary-gold);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .article-sidebar,
    .article-progress-bar,
    .article-share,
    .article-nav,
    .toc-toggle {
        display: none !important;
    }

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

    .article-content {
        max-width: 100%;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus visible for keyboard navigation */
.share-btn:focus-visible,
.action-btn:focus-visible,
.toc-toggle:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .share-btn,
    .action-btn,
    .toc-toggle,
    .toast {
        transition: none;
    }

    .article-toc.mobile-open {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .share-btn,
    .action-btn {
        border-width: 2px;
    }

    .toc-item a {
        border-left-width: 4px;
    }
}

/* ========================================
   HIDE NEWSLETTER SUBSCRIPTION ON ARTICLES
   ======================================== */

/* Hide newsletter subscription card on article pages */
.author-card.newsletter-card {
    display: none !important;
}

/* Also target any variations Ghost might inject */
.gh-article-footer .author-card.newsletter-card,
.post-full-footer .author-card.newsletter-card {
    display: none !important;
}

/* Ensure it's hidden on all screen sizes */
@media (max-width: 1199px) {
    .author-card.newsletter-card {
        display: none !important;
    }
}

/* ========================================
   SIDEBAR CTA CARDS - GLASS DESIGN
   ======================================== */

/* Sidebar CTA cards container - single column stack */
.article-sidebar .cta-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: transparent;  /* Glass design - no background */
    border: 1px solid var(--glass-border);  /* 1px glass border */
    border-radius: 0;  /* Sharp corners */
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

/* Hover effects - glass design */
.article-sidebar .cta-card:hover {
    border-color: var(--primary-gold);
    background: var(--glass-bg);  /* Subtle glass background on hover */
}

/* Icon styling */
.article-sidebar .cta-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    color: #ffffff;
}

.article-sidebar .cta-card-icon svg {
    width: 20px;
    height: 20px;
}

/* Icon color themes */
.article-sidebar .cta-card-brand .cta-card-icon {
    background: #cc9933;
}

.article-sidebar .cta-card-generic .cta-card-icon {
    background: #CC8800;
}

.article-sidebar .cta-card-calculator .cta-card-icon {
    background: #2E7D32;
}

.article-sidebar .cta-card-types .cta-card-icon {
    background: #E65100;
}

/* Card content */
.article-sidebar .cta-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Badge styling */
.article-sidebar .cta-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Card title */
.article-sidebar .cta-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Card description */
.article-sidebar .cta-card-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   SIDEBAR CTA CARDS - RESPONSIVE
   ======================================== */

/* Mobile - stacked at bottom of page */
@media (max-width: 1199px) {
    .article-sidebar .cta-card {
        margin-bottom: 14px;
        padding: 16px;
    }

    .article-sidebar .cta-card-icon {
        width: 38px;
        height: 38px;
    }

    .article-sidebar .cta-card-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   CTA CARDS WRAPPER - MOBILE GRID
   ======================================== */

/* Mobile - 2x2 grid when sidebar moves to bottom */
@media (max-width: 1199px) {
    .cta-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* Override single-column styles for grid */
    .article-sidebar .cta-card {
        width: 100%;
        margin-bottom: 0;
    }
}

/* Ultra-tiny screens - 1 per row */
@media (max-width: 479px) {
    .cta-cards-wrapper {
        grid-template-columns: 1fr;
    }
}
