/**
 * TREv2 Frontend Stylesheet
 *
 * Adapted from original "Timelesss Updates" dark theme.
 * Rebranded for finance/trading review site with:
 *   - Disclaimer banners (CLAUDE.md: every page, top + bottom)
 *   - Author bio section ("Alex Rivera, CFA")
 *   - Lead magnet CTA cards (checklist, spreadsheet, quiz, risk template)
 *   - Affiliate CTA buttons (Zephyr AI)
 *   - Markdown content rendering (tables, blockquotes, h2-h4)
 *   - FAQ accordion sections
 *   - Quality score badges
 *
 * Fonts: Inter (system-compatible, self-hosted via Google Fonts CDN woff2)
 */

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYAZ9hiA.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYAZ9hiA.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fAZ9hiA.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-header: #1a1a2e;
    --bg-footer: #1a1a2e;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --text-on-dark: #f0f0f5;

    /* Borders */
    --border: #e5e7eb;
    --border-dark: #d1d5db;

    /* Accent */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-dim: #93c5fd;

    /* CTAs */
    --cta-green: #059669;
    --cta-green-hover: #047857;
    --cta-blue: #2563eb;
    --cta-blue-hover: #1d4ed8;
    --warning-amber: #d97706;

    /* Scores */
    --score-high: #059669;
    --score-mid: #d97706;
    --score-low: #dc2626;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

    /* Legacy aliases (so existing references don't break) */
    --black: #ffffff;
    --dark-1: #f8f9fa;
    --dark-2: #f0f2f5;
    --dark-3: #e5e7eb;
    --dark-4: #d1d5db;
    --border-warm: #e5e7eb;
    --disclaimer-bg: #fffbeb;
    --disclaimer-border: #fcd34d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}


/* ═══════════════════════════════════════════
   DISCLAIMER BANNER
   Per CLAUDE.md: "Not financial advice" on EVERY page
   ═══════════════════════════════════════════ */

.disclaimer-banner {
    background: var(--disclaimer-bg);
    border: 1px solid var(--disclaimer-border);
    padding: 12px clamp(16px, 3vw, 24px);
    font-size: clamp(0.7rem, 1.4vw, 0.78rem);
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.disclaimer-banner .disclaimer-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--warning-amber);
    margin-top: 2px;
}

.disclaimer-banner a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.disclaimer-banner--article-top {
    margin-bottom: clamp(24px, 4vw, 40px);
}

.disclaimer-banner--article-bottom {
    margin-top: clamp(32px, 5vw, 48px);
    margin-bottom: clamp(20px, 3vw, 32px);
}


/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */

header {
    background: var(--bg-header);
    color: var(--text-on-dark);
    padding: clamp(20px, 4vw, 36px) 0 0;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(14px, 2.5vw, 24px);
    flex-wrap: wrap;
    gap: 12px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 4vw, 34px);
    height: clamp(26px, 4vw, 34px);
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
}

.logo-icon svg { width: 100%; height: 100%; }
.logo-icon svg path { stroke: var(--accent-dim); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

header h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-on-dark);
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    flex-wrap: wrap;
}

.header-date {
    font-size: clamp(0.688rem, 1.5vw, 0.8rem);
    color: var(--text-on-dark);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}


/* ═══════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════ */

.search-wrapper {
    position: relative;
}

.search-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    padding: 9px 38px 9px 14px;
    width: clamp(160px, 22vw, 260px);
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.search-input:focus {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 1px var(--accent-dim);
}

.search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-style: italic;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
}


/* ═══════════════════════════════════════════
   HEADER RULE
   ═══════════════════════════════════════════ */

.header-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.header-rule::before,
.header-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.header-rule-text {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-on-dark);
    opacity: 0.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */

.hero-section {
    padding: clamp(40px, 7vw, 80px) 0 clamp(30px, 5vw, 60px);
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(40px, 6vw, 70px);
    display: none;
}

.hero-section.visible {
    display: block;
}

.hero-label {
    font-size: 0.65rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: clamp(14px, 2.5vw, 22px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-label::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: end;
}

.hero-main-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hero-main-title:hover {
    color: var(--accent);
}

.hero-summary {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.75;
    margin-bottom: clamp(18px, 3vw, 28px);
    max-width: 480px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-read-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.hero-read-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.hero-read-btn:hover svg {
    transform: translateX(3px);
}

.hero-secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--border);
    padding-left: clamp(20px, 4vw, 48px);
}

.hero-secondary-item {
    padding: clamp(16px, 2.5vw, 24px) 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.hero-secondary-item:last-child { border-bottom: none; }

.hero-secondary-item::before {
    content: '';
    position: absolute;
    left: calc(-1px - clamp(20px, 4vw, 48px));
    top: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.hero-secondary-item:hover::before { height: 100%; }

.hero-secondary-item:hover .hero-sec-title {
    color: var(--accent);
}

.hero-sec-num {
    font-size: 0.6rem;
    color: var(--accent-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 500;
}

.hero-sec-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.25s ease;
    margin-bottom: 8px;
}

.hero-sec-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Quality score badge on hero — hidden per spec */
.quality-score, .card-score, .hero-score { display: none; }

.hero-score--high { color: var(--score-high); border-color: var(--score-high); }
.hero-score--mid { color: var(--score-mid); border-color: var(--score-mid); }


/* ═══════════════════════════════════════════
   SECTION HEADING
   ═══════════════════════════════════════════ */

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-heading h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
    white-space: nowrap;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* ═══════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════ */

main {
    padding: clamp(30px, 5vw, 50px) 0 clamp(50px, 8vw, 90px);
}


/* ═══════════════════════════════════════════
   ARTICLE CARDS (Homepage grid)
   ═══════════════════════════════════════════ */

.article-card {
    background: var(--bg-card);
    padding: clamp(24px, 4vw, 38px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(37, 99, 235, 0.03) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover::after { opacity: 1; }

.article-card:hover {
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.card-index {
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-dim);
    margin-bottom: clamp(12px, 2vw, 18px);
    font-weight: 500;
}

.article-card h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    margin-bottom: clamp(10px, 1.5vw, 14px);
    color: var(--text-primary);
    line-height: 1.35;
    font-weight: 700;
    transition: color 0.25s ease;
}

.article-card:hover h2 {
    color: var(--accent);
}

.article-card .summary {
    color: var(--text-secondary);
    margin-bottom: clamp(18px, 3vw, 26px);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.75;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
    color: var(--text-muted);
    padding-top: clamp(14px, 2vw, 20px);
    border-top: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-wrap: wrap;
}

.meta-divider { color: var(--border-dark); }

/* Quality score badge on cards — hidden per spec (see .quality-score above) */
.card-score--high { color: var(--score-high); border-color: var(--score-high); }
.card-score--mid { color: var(--score-mid); border-color: var(--score-mid); }

/* Lead magnet tag on cards */
.card-magnet-tag {
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cta-blue);
    border: 1px solid var(--cta-blue);
    padding: 2px 6px;
}


/* ═══════════════════════════════════════════
   SKELETONS
   ═══════════════════════════════════════════ */

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: clamp(30px, 6vw, 60px);
}

.skeleton-card {
    background: var(--bg-secondary);
    padding: clamp(24px, 4vw, 38px);
}

.skeleton-title {
    height: clamp(22px, 3vw, 28px);
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-bottom: clamp(10px, 2vw, 14px);
    animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-text {
    height: clamp(14px, 1.8vw, 17px);
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-bottom: clamp(7px, 1.2vw, 10px);
    animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-text:last-of-type { width: 65%; }

/* Footer base — dark background for all footer children */
footer {
    background: var(--bg-footer);
    color: var(--text-on-dark);
    padding: 48px 0 24px;
    margin-top: 0;
}

.skeleton-footer {
    background: var(--bg-footer);
    color: var(--text-on-dark);
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.footer-col-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    line-height: 1.6;
}

.footer-col-link:hover {
    color: #ffffff;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-disclaimer strong {
    color: rgba(255,255,255,0.65);
}

.footer-disclaimer a {
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
}

.footer-disclaimer a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}


/* ═══════════════════════════════════════════
   ERROR / LOADING
   ═══════════════════════════════════════════ */

#loading, #error {
    text-align: center;
    padding: clamp(50px, 10vw, 100px) clamp(20px, 4vw, 40px);
    color: var(--text-secondary);
}

.loader {
    width: clamp(32px, 5vw, 44px);
    height: clamp(32px, 5vw, 44px);
    margin: 0 auto clamp(18px, 3vw, 28px);
    border: 1.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#loading p, #error p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
}

/* =============================================
   DATE SEPARATORS (Homepage grid)
   ============================================= */

.date-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 28px);
}

.date-separator-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.date-separator-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.articles-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    margin-bottom: clamp(28px, 5vw, 48px);
}


/* =============================================
   MAIN NAVIGATION
   ============================================= */

.main-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    animation: none;
}

.nav-brand {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 2.5vw, 28px);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover { color: var(--accent); }

.nav-hamburger {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.nav-mobile-menu.nav-mobile-menu--open { display: flex; }

.nav-mobile-link {
    padding: 12px clamp(16px, 4vw, 48px);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 767px) {
    .nav-links { display: none; }
    .nav-hamburger { display: inline-flex; }
}


/* =============================================
   BREADCRUMBS
   ============================================= */

.breadcrumbs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--border-dark);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}


/* =============================================
   TRUST BAR
   ============================================= */

.trust-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 4vw, 40px);
    align-items: center;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent);
    flex-shrink: 0;
}


/* =============================================
   COMPACT DISCLAIMER (article + foundation pages)
   ============================================= */

.disclaimer-banner--compact {
    background: transparent;
    border: 1px solid var(--disclaimer-border);
    padding: 10px clamp(14px, 2.5vw, 18px);
    font-size: 0.72rem;
}

.disclaimer-banner--compact .disclaimer-icon {
    width: 14px;
    height: 14px;
}


/* =============================================
   ARTICLE PAGE LAYOUT
   ============================================= */

.article-page {
    padding-top: clamp(20px, 3vw, 32px);
    padding-bottom: clamp(40px, 6vw, 80px);
    max-width: 1200px;
}

.article-page h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: clamp(12px, 2vw, 18px);
    color: var(--text-primary);
}

.article-page .article-meta {
    margin-bottom: 14px;
    border-top: none;
    padding-top: 0;
}

.author-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 clamp(24px, 4vw, 36px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.author-byline-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.author-byline-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.author-byline-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.author-byline-name:hover { color: var(--accent); }

.author-byline-title {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.article-divider {
    height: 1px;
    background: var(--border);
    margin: clamp(18px, 3vw, 24px) 0;
    display: none;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

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

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

#article-body {
    font-size: clamp(0.98rem, 1.8vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

#article-body h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(28px, 4vw, 40px) 0 clamp(12px, 2vw, 18px);
    line-height: 1.3;
    letter-spacing: -0.3px;
    scroll-margin-top: 80px;
}

#article-body h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(20px, 3vw, 28px) 0 clamp(8px, 1.5vw, 12px);
    line-height: 1.35;
}

#article-body p { margin-bottom: clamp(14px, 2vw, 18px); }

#article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#article-body ul, #article-body ol {
    margin: 0 0 clamp(14px, 2vw, 18px) 22px;
    padding-left: 6px;
}

#article-body li { margin-bottom: 6px; }
#article-body strong { color: var(--text-primary); font-weight: 600; }

#article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: clamp(20px, 3vw, 32px) 0;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

#article-body thead { background: var(--bg-secondary); }

#article-body th, #article-body td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

#article-body th:last-child, #article-body td:last-child { border-right: none; }
#article-body tbody tr:last-child td { border-bottom: none; }
#article-body tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

#article-body th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

#article-body blockquote {
    margin: clamp(16px, 2.5vw, 22px) 0;
    padding: 12px clamp(16px, 2.5vw, 22px);
    border-left: 3px solid var(--accent);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 640px) {
    #article-body table, #article-body thead, #article-body tbody,
    #article-body th, #article-body td, #article-body tr {
        display: block;
    }
    #article-body thead { display: none; }
    #article-body tr {
        margin-bottom: 14px;
        border: 1px solid var(--border);
        padding: 8px;
        background: var(--bg-card);
    }
    #article-body td {
        border: none;
        padding: 6px 4px;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-size: 0.85rem;
    }
    #article-body td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.8px;
        flex-shrink: 0;
    }
}

.article-end-mark {
    text-align: center;
    color: var(--border-dark);
    margin: clamp(32px, 5vw, 48px) 0;
    font-size: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(24px, 4vw, 36px);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
}

.back-link:hover { text-decoration: underline; }


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

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

@media (max-width: 900px) {
    .article-sidebar { position: static; }
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 6px;
}

.sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-item { margin-bottom: 8px; counter-increment: toc; }

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0 4px 22px;
    position: relative;
    line-height: 1.4;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.toc-link::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.toc-link:hover { color: var(--accent); }

.toc-link.toc-link--active {
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 22px;
    font-weight: 600;
}

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

.quick-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.quick-fact:last-child { border-bottom: none; }

.quick-fact-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.quick-fact-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}


/* =============================================
   ZEPHYR AI CTAs (hero, banner, sidebar, inline, sticky)
   ============================================= */

.hero-zephyr-cta {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: #ffffff;
    padding: clamp(22px, 4vw, 30px);
    border-radius: 10px;
    grid-column: 1 / -1;
    margin-top: 20px;
}

.hero-zephyr-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 12px;
}

.hero-zephyr-title {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.hero-zephyr-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 14px;
    max-width: 540px;
}

.hero-zephyr-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 6px;
    transition: transform 0.15s ease;
}

.hero-zephyr-btn:hover { transform: translateY(-1px); }

.hero-zephyr-aff {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
    opacity: 0.65;
    font-style: italic;
}

.zephyr-banner {
    background: var(--blue-deep);
    color: #ffffff;
    padding: clamp(28px, 5vw, 56px) 0;
    margin: clamp(40px, 6vw, 64px) 0 0;
}

.zephyr-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
}

@media (max-width: 767px) {
    .zephyr-banner-inner { grid-template-columns: 1fr; text-align: center; }
}

.zephyr-banner-title {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.zephyr-banner-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 540px;
}

.zephyr-banner-btn {
    display: inline-block;
    background: #ffffff;
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.15s ease;
}

.zephyr-banner-btn:hover { transform: translateY(-1px); }

.about-section {
    background: var(--bg-secondary);
    padding: clamp(36px, 6vw, 64px) 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.section-title {
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.about-text {
    max-width: 720px;
    margin: 0 auto 18px;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.about-link:hover { text-decoration: underline; }

.sidebar-zephyr-cta {
    background: var(--blue-deep);
    color: #ffffff;
    border-color: var(--blue-deep);
}

.sidebar-zephyr-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-zephyr-desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.sidebar-zephyr-btn {
    display: block;
    text-align: center;
    background: #ffffff;
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.sidebar-zephyr-aff {
    display: block;
    margin-top: 8px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    text-align: center;
}

.inline-cta {
    margin: 16px 0 24px;
    padding: 14px 18px;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 4px;
}

.inline-cta-text {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    flex: 1 1 240px;
}

.inline-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 4px;
    white-space: nowrap;
}

.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue-deep);
    color: #ffffff;
    padding: 10px 14px;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

.sticky-cta-text {
    font-size: 0.82rem;
    line-height: 1.4;
    flex: 1;
}

.sticky-cta-btn {
    background: #ffffff;
    color: var(--blue-deep);
    font-weight: 700;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .sticky-mobile-cta { display: flex; }
    .article-page { padding-bottom: 80px; }
}


/* =============================================
   AUTHOR BIO (article footer + author page)
   ============================================= */

.author-bio {
    display: flex;
    gap: 16px;
    padding: clamp(18px, 3vw, 24px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: clamp(24px, 4vw, 36px);
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-bio-content { flex: 1; }

.author-bio-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-bio-title {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 10px;
}

.author-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.author-bio-link:hover { text-decoration: underline; }


/* =============================================
   LEAD MAGNET CTA + AFFILIATE CTA
   ============================================= */

.lead-magnet-cta {
    margin: clamp(24px, 4vw, 36px) 0;
    padding: clamp(20px, 3vw, 28px);
    background: linear-gradient(135deg, var(--accent-light), #ffffff);
    border: 1px solid var(--accent-dim);
    border-radius: 8px;
}

.lead-magnet-label {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lead-magnet-title {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lead-magnet-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.lead-form-row { display: flex; gap: 8px; flex-wrap: wrap; }

.lead-form-input {
    flex: 1 1 220px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.92rem;
    font-family: inherit;
}

.lead-form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lead-magnet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cta-green);
    color: #ffffff;
    border: 0;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.lead-magnet-btn:hover { background: var(--cta-green-hover); }

.lead-form-privacy {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 8px;
    font-style: italic;
}

.lead-form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cta-green);
    font-weight: 600;
    font-size: 0.95rem;
}

.affiliate-cta {
    margin: clamp(24px, 4vw, 36px) 0;
    padding: clamp(20px, 3vw, 28px);
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: 8px;
}

.affiliate-cta-label {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 700;
    margin-bottom: 10px;
}

.affiliate-cta-title {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.affiliate-cta-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.affiliate-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 5px;
    font-size: 0.95rem;
}

.affiliate-cta-btn:hover { background: var(--accent-hover); }

.affiliate-cta-disclosure {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-style: italic;
}


/* =============================================
   SKELETONS (hero + article placeholders)
   ============================================= */

.skeleton-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: clamp(30px, 5vw, 60px) 0;
}

.skeleton-hero-title {
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-bottom: 12px;
    animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-hero-title.narrow { width: 70%; }

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

.skeleton-article { padding: clamp(20px, 3vw, 40px) 0; }

.skeleton-article-title {
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-bottom: 16px;
    width: 80%;
    animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-article-meta {
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-bottom: 30px;
    width: 50%;
    animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.skeleton-article-text {
    height: 14px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-bottom: 10px;
    animation: shimmer 1.8s ease-in-out infinite;
}


/* =============================================
   FOUNDATION PAGES (About, Methodology, Editorial, Authors)
   ============================================= */

.foundation-page {
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(40px, 6vw, 80px);
    max-width: 920px;
}

.foundation-hero {
    margin-bottom: clamp(28px, 4vw, 40px);
    padding-bottom: clamp(20px, 3vw, 28px);
    border-bottom: 1px solid var(--border);
}

.foundation-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.foundation-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.foundation-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 14px;
}

.foundation-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.foundation-content {
    font-size: clamp(0.98rem, 1.8vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

.foundation-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(28px, 4vw, 40px) 0 clamp(12px, 2vw, 18px);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.foundation-content h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(20px, 3vw, 28px) 0 clamp(8px, 1.5vw, 12px);
    line-height: 1.35;
}

.foundation-content p { margin-bottom: clamp(14px, 2vw, 18px); }

.foundation-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.foundation-content ul, .foundation-content ol {
    margin: 0 0 clamp(14px, 2vw, 18px) 22px;
    padding-left: 6px;
}

.foundation-content li { margin-bottom: 8px; }
.foundation-content strong { color: var(--text-primary); font-weight: 600; }

.foundation-content table {
    width: 100%;
    border-collapse: collapse;
    margin: clamp(20px, 3vw, 32px) 0;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.foundation-content thead { background: var(--bg-secondary); }

.foundation-content th, .foundation-content td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.foundation-content th:last-child, .foundation-content td:last-child { border-right: none; }
.foundation-content tbody tr:last-child td { border-bottom: none; }
.foundation-content tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }

.foundation-content th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.foundation-callout {
    margin: clamp(18px, 3vw, 26px) 0;
    padding: clamp(16px, 2.5vw, 22px);
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.foundation-callout-title {
    font-weight: 700;
    color: var(--accent-hover);
    font-size: 0.95rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.foundation-callout p:last-child { margin-bottom: 0; }

.foundation-crosslinks {
    margin-top: clamp(36px, 5vw, 56px);
    padding: clamp(20px, 3vw, 28px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.foundation-crosslinks-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.foundation-crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.foundation-crosslink {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.foundation-crosslink:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.foundation-crosslink-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.foundation-crosslink-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Author "hero card" on /authors/alex-rivera */
.author-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: clamp(20px, 4vw, 32px);
    padding: clamp(24px, 4vw, 36px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: clamp(28px, 4vw, 40px);
    align-items: center;
}

@media (max-width: 640px) {
    .author-card { grid-template-columns: 1fr; text-align: center; }
}

.author-card-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.6rem;
    flex-shrink: 0;
    margin: 0 auto;
}

.author-card-name {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.4px;
}

.author-card-title {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-card-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 640px) {
    .author-card-credentials { justify-content: center; }
}

.credential-chip {
    display: inline-block;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-radius: 999px;
}

/* Team grid on /authors index */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin: clamp(24px, 4vw, 36px) 0;
}

.team-card {
    display: flex;
    gap: 16px;
    padding: clamp(18px, 3vw, 24px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.team-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.team-card-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 2px;
}

.team-card-title {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.team-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
}


/* =============================================
   FOUNDATION PAGE POLISH PASS (2026-05-12 v2)
   Overrides earlier definitions with more refined visuals:
     - Decorative accent line on the foundation hero
     - Larger lead paragraph + drop-cap-style first line
     - Author card: bigger avatar, subtle shadow, better hierarchy
     - Credential chips with leading dot mark
     - Cross-links with chevron + lift on hover
     - Callout: icon + accent ring
   ============================================= */

.foundation-page {
    max-width: 880px;
    padding-top: clamp(28px, 5vw, 56px);
    padding-bottom: clamp(56px, 8vw, 96px);
}

.foundation-hero {
    position: relative;
    padding-left: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(36px, 5vw, 56px);
    padding-bottom: clamp(28px, 4vw, 40px);
    border-bottom: 1px solid var(--border);
}

/* Vertical accent rail on the hero — matches the article-tested visual language */
.foundation-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dim));
    border-radius: 3px;
}

.foundation-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
}

.foundation-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
    display: inline-block;
}

.foundation-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.foundation-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 18px;
    font-weight: 400;
}

.foundation-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.foundation-content {
    font-size: clamp(1rem, 1.8vw, 1.08rem);
    line-height: 1.8;
    color: var(--text-secondary);
}

.foundation-content > p:first-of-type::first-line {
    /* Subtle "lead in" styling for the first paragraph of body copy. */
    font-weight: 500;
    color: var(--text-primary);
}

.foundation-content h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(36px, 5vw, 52px) 0 clamp(14px, 2vw, 20px);
    letter-spacing: -0.5px;
    line-height: 1.25;
    position: relative;
    padding-left: 16px;
}

.foundation-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    bottom: 0.35em;
    width: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.foundation-content h3 {
    font-size: clamp(1.1rem, 2.1vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(24px, 3.5vw, 32px) 0 clamp(8px, 1.5vw, 12px);
    line-height: 1.3;
}

.foundation-content ul, .foundation-content ol {
    margin: 0 0 clamp(16px, 2.5vw, 22px) 28px;
    padding-left: 4px;
}

.foundation-content li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.foundation-content li::marker {
    color: var(--accent);
}

.foundation-content table {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* =============================================
   AUTHOR CARD (/authors/alex-rivera) — premium publication feel
   ============================================= */

.author-card {
    grid-template-columns: 160px 1fr;
    padding: clamp(28px, 4.5vw, 40px);
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient corner */
.author-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.author-card-avatar {
    width: 160px;
    height: 160px;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    border: 4px solid #ffffff;
    position: relative;
    z-index: 1;
}

.author-card-name {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.author-card-title {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.author-card-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.credential-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.credential-chip:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.credential-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .author-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: clamp(24px, 5vw, 32px) 20px;
    }
    .author-card-avatar { width: 130px; height: 130px; font-size: 2.4rem; margin: 0 auto; }
    .author-card-credentials { justify-content: center; }
}

/* =============================================
   CALLOUT — icon + cleaner border, less aggressive bg
   ============================================= */

.foundation-callout {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.01));
    border: 1px solid var(--accent-dim);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: clamp(18px, 2.8vw, 24px) clamp(18px, 2.8vw, 26px);
    margin: clamp(20px, 3vw, 28px) 0;
    position: relative;
}

.foundation-callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent-hover);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.foundation-callout-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/><line x1='12' y1='8' x2='12' y2='12' stroke='black' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='16' r='1' fill='black'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/><line x1='12' y1='8' x2='12' y2='12' stroke='black' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='16' r='1' fill='black'/></svg>") no-repeat center / contain;
}

.foundation-callout p { font-size: 0.98rem; color: var(--text-secondary); margin-bottom: 8px; }
.foundation-callout p:last-child { margin-bottom: 0; }

/* =============================================
   CROSS-LINKS — hover lift, chevron arrow, better card spacing
   ============================================= */

.foundation-crosslinks {
    margin-top: clamp(48px, 6vw, 72px);
    padding: clamp(24px, 3.5vw, 32px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.foundation-crosslinks-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.foundation-crosslinks-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-dark);
    opacity: 0.6;
}

.foundation-crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.foundation-crosslink {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
    position: relative;
}

.foundation-crosslink::after {
    content: '\2192';
    position: absolute;
    top: 16px;
    right: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.foundation-crosslink:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.foundation-crosslink:hover::after {
    color: var(--accent);
    transform: translateX(3px);
}

.foundation-crosslink-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-primary);
    padding-right: 24px;
}

.foundation-crosslink-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =============================================
   TEAM GRID (/authors index) — same polish as crosslinks
   ============================================= */

.team-card {
    padding: clamp(20px, 3vw, 26px);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.team-card-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}


/* =============================================
   FIX: foundation-hero background bleed (v=7)
   The HTML uses <header class="foundation-hero">, which means the global
   `header { background: var(--bg-header); color: var(--text-on-dark); }`
   rule from earlier in this file leaks into the foundation pages and
   makes the title block render as a dark navy box with invisible text.
   These overrides force the foundation hero back to a light surface
   with normal text colors.
   ============================================= */

header.foundation-hero,
.foundation-hero {
    background: transparent;
    color: var(--text-primary);
    padding-top: 0;
}

header.foundation-hero h1,
.foundation-hero h1 {
    color: var(--text-primary);
}

.foundation-hero .foundation-lead { color: var(--text-secondary); }
.foundation-hero .foundation-meta { color: var(--text-muted); }
.foundation-hero .foundation-eyebrow { color: var(--accent); }


/* =============================================
   2026-05-13 v=8 — Batch A fixes
   - Hide score badge (kept in MongoDB, never rendered on the page)
   - Fix .inline-cta-btn invisible text (white on blue, not blue on blue)
   - Flatten .affiliate-cta-btn so it never wraps to 3 lines
   - Article body typography: smaller affiliate disclosure, smaller author bio
     paragraph, smaller bottom disclaimer; properly-styled FAQ heading.
   ============================================= */

/* Hide the score badge in the article header — defense-in-depth in case
   the JS hide hook misses it (e.g. due to caching). */
#article-score {
    display: none !important;
}

/* The score-badge tile in cards (already hidden by .quality-score rule above
   but the JS-generated `card-score` span sneaks through on some renders). */
.card-score,
.card-score--high,
.card-score--mid {
    display: none !important;
}

/* Inline CTA (the "Not sure which AI trading bot fits your strategy?" bar
   that appears after every table). Buttons were blue-on-blue and invisible. */
.inline-cta-btn {
    background: var(--accent);
    color: #ffffff !important;   /* defeats any cascade that re-coloured this */
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 6px;
    border: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.inline-cta-btn:hover {
    background: var(--accent-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.inline-cta-btn:visited,
.inline-cta-btn:active {
    color: #ffffff !important;
}

/* Affiliate recommended-box button — make it a single flat row, not a
   3-line "Find / Your / AI / Trading / Bot" stack. */
.affiliate-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
    transition: background 0.15s ease, transform 0.15s ease;
}

.affiliate-cta-btn:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.affiliate-cta-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Article-body affiliate disclosure / disclaimers — smaller font.
   When the writer puts "This site contains affiliate links..." inline in
   the article body, render it visibly subordinate to the main copy. */
#article-body p em,
#article-body p i {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85em;
}

/* The "Frequently Asked Questions" line — the writer outputs it as a plain
   paragraph in some drafts. Promote any <strong>Frequently Asked
   Questions</strong> to look like a section header. */
#article-body p strong:only-child {
    /* Only when the entire paragraph is one <strong>, treat as pseudo-h3. */
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-primary);
    margin-top: clamp(28px, 4vw, 36px);
    margin-bottom: clamp(6px, 1vw, 10px);
    padding-top: clamp(12px, 2vw, 16px);
    border-top: 1px solid var(--border);
}

/* Author-bio paragraph in the article body — slightly smaller + muted, so
   it reads as supporting copy rather than primary content. */
#article-body p:has(a[href="/methodology"]),
#article-body p:has(a[href="/editorial-policy"]) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-dim);
    border-radius: 4px;
    margin-top: clamp(20px, 3vw, 28px);
}

/* The trailing disclaimer paragraph that some drafts put inline at the
   end of the article body (separate from the .disclaimer-banner below).
   Detected by length + lowercase keywords. We can't selector-match content
   so we add a generic shrink to the LAST direct <p> inside #article-body. */
#article-body > p:last-of-type {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: clamp(16px, 2.5vw, 22px);
}


/* =============================================
   2026-05-13 v=8 — Lead form 3-field layout
   Stack name + phone + email vertically, then the button on its own row.
   ============================================= */

.lead-form-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.lead-form-fields .lead-form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #ffffff;
}

.lead-form-fields .lead-form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Submit button — full-width row below the inputs */
.lead-magnet-form > .lead-magnet-btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 600px) {
    /* On larger screens, lay name+phone side-by-side, email full-width */
    .lead-form-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .lead-form-fields .lead-form-input[name="email"] {
        grid-column: 1 / -1;
    }
}


/* =============================================
   2026-05-13 v=9 — Article-body design pass

   Decisions and the reasoning behind them:

   1. Modular scale 1.25 (major third). Body 1.05rem; h3 1.20rem;
      h2 1.50rem; h1 already set at the page level.
      Why: tight-but-clear hierarchy that reads well at long-form length.
   2. Body line-height 1.7. Standard for ~70ch line widths.
   3. Disclaimers, bio, affiliate disclosure rendered at 0.82rem with
      reduced contrast (var(--text-muted)).
      Why: legally required, must be present, but should not dominate
      the visual weight of the article. WCAG AA contrast still preserved.
   4. FAQ items styled as flat cards with clear Q/A separation.
   5. Inline CTA paragraph (Zephyr) treated as a callout, not body copy.
   ============================================= */

/* --- Article body base type scale --- */
#article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

#article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin: 2.25rem 0 1rem;
    padding-left: 14px;
    position: relative;
    scroll-margin-top: 80px;
}

#article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    bottom: 0.35em;
    width: 3px;
    background: var(--accent);
    border-radius: 3px;
}

#article-body h3,
#article-body .inline-section-h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 1.75rem 0 0.6rem;
    display: block;
}

#article-body p { margin-bottom: 1rem; }

#article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#article-body strong { color: var(--text-primary); font-weight: 600; }

#article-body ul, #article-body ol {
    margin: 0 0 1rem 1.4rem;
    padding-left: 0.25rem;
}

#article-body li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}


/* --- FAQ section: heading + items styled as flat cards --- */
#article-body .faq-heading {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

#article-body .faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.85rem;
}

#article-body .faq-q {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.55rem;
}

#article-body .faq-a {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

#article-body .faq-a p { margin-bottom: 0.5rem; }
#article-body .faq-a p:last-child { margin-bottom: 0; }


/* --- Reviewed by Alex Rivera, CFA — inline bio paragraph --- */
/* Reads as a sidenote, not as body content. */
#article-body .article-author-bio-inline {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--accent-dim);
    border-radius: 4px;
    margin: 1.75rem 0;
}

#article-body .article-author-bio-inline a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* --- Inline affiliate disclosure — small, italic, quiet --- */
#article-body .article-disclosure-inline {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-style: italic;
    margin: 0.5rem 0 1.25rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
}


/* --- Inline risk note ("Not financial advice...") --- */
#article-body .article-risk-note-inline {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
    background: rgba(217, 119, 6, 0.04);
    border-left: 2px solid var(--warning-amber);
    padding: 0.6rem 0.9rem;
    margin: 1rem 0;
    border-radius: 3px;
}


/* --- Inline Zephyr CTA paragraph (writer drops it mid-article) --- */
#article-body .article-cta-inline {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: #ffffff;
    padding: 1.1rem 1.3rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

#article-body .article-cta-inline a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

#article-body .article-cta-inline a:hover {
    background: rgba(255, 255, 255, 0.28);
}

#article-body .article-cta-inline strong { color: #ffffff; }


/* --- Tables (already styled — refine spacing) --- */
#article-body table {
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#article-body th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.65rem 0.85rem;
}

#article-body td {
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
}


/* --- Affiliate "Recommended" box: tighter, flatter, single-line button --- */
.affiliate-cta {
    border-width: 1px;
    background: linear-gradient(135deg, #ffffff, var(--accent-light));
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.affiliate-cta-label {
    background: var(--accent);
    color: #ffffff;
    font-size: 0.65rem;
    letter-spacing: 1.4px;
    font-weight: 700;
}

.affiliate-cta-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.affiliate-cta-desc {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.affiliate-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.affiliate-cta-disclosure {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}


/* --- Bottom article disclaimer (the .disclaimer-banner--article-bottom) --- */
.disclaimer-banner--article-bottom {
    background: rgba(217, 119, 6, 0.04);
    border-color: rgba(217, 119, 6, 0.3);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 0.65rem 0.85rem;
}

.disclaimer-banner--article-bottom strong { color: var(--text-secondary); }


/* --- Author bio block at the article bottom (.author-bio) --- */
.author-bio {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem 1.6rem;
}

.author-bio-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.author-bio-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.author-bio-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}

.author-bio-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.author-bio-link:hover { text-decoration: underline; }


/* --- Article meta row: tighten, remove the empty | gaps --- */
.article-page .article-meta {
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.article-page .article-meta .meta-divider {
    margin: 0 0.45rem;
}


/* --- Inline post-table CTA (the blue bar) --- */
.inline-cta {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin: 1.25rem 0 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-cta-text {
    flex: 1 1 220px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.inline-cta-btn {
    background: var(--accent) !important;
    color: #ffffff !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 1rem !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.inline-cta-btn:hover { background: var(--accent-hover) !important; color: #ffffff !important; }


/* --- Score badge: belt-and-brace hide --- */
#article-score,
.card-score,
.card-score--high,
.card-score--mid {
    display: none !important;
}


/* =============================================
   2026-05-13 v=10 — Real-render fixes after Chrome MCP audit
   Each rule below has a specific observed problem it solves.
   ============================================= */

/* OBSERVED: dark navy bar (~24px) shows below the top disclaimer on article
   pages because the empty <header class="article-header"> inherits the
   global `header { background: var(--bg-header) }` rule. Override it. */
header.article-header,
header.article-header .header-divider {
    background: transparent !important;
}

header.article-header {
    padding: 0 !important;
    min-height: 0;
}

header.article-header .container { padding: 0; }

/* OBSERVED: the homepage dark navy "header" element (with date + search)
   takes ~130px vertical for low-value content. Trim its padding. */
body > header:not(.article-header) {
    padding: clamp(14px, 2vw, 22px) 0 0 !important;
}

body > header:not(.article-header) .header-top {
    margin-bottom: clamp(8px, 1.5vw, 14px);
}


/* OBSERVED: "All Reviews" heading on homepage renders as tiny italic gray
   text — looks like a footnote, not a heading. Restore visual weight. */
.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: clamp(28px, 4vw, 40px) 0 clamp(18px, 3vw, 26px);
}

.section-heading h2 {
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    white-space: nowrap;
}


/* OBSERVED: Zephyr banner on homepage has 2-col grid but right column is
   empty — the banner-btn lives in the right grid cell. Restructure: keep
   the right cell, but constrain max-width and align contents so the visual
   doesn't feel hollow. */
.zephyr-banner-inner {
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .zephyr-banner-inner {
        grid-template-columns: 1fr auto;
        gap: clamp(24px, 4vw, 56px);
    }
}


/* OBSERVED: massive vertical whitespace between Zephyr banner and article
   grid. The `.about-section` + `main` padding both stack. Tighten. */
.zephyr-banner {
    margin-bottom: 0 !important;
    padding: clamp(20px, 4vw, 36px) 0 !important;
}

main {
    padding: clamp(20px, 3vw, 36px) 0 clamp(36px, 6vw, 60px) !important;
}


/* OBSERVED: article page renders two h1s — the page h1 from #article-title
   PLUS the writer's opening h1 inside #article-body. Hide the in-body one
   when it matches the page title; otherwise demote it to h2. */
#article-body > h1:first-child {
    display: none;
}


/* OBSERVED: article-meta row shows ALL-CAPS keyword that duplicates the
   article title. Hide it. The date alone is enough. */
.article-page .article-meta #article-keyword,
.article-page .article-meta #article-keyword + .meta-divider {
    display: none !important;
}

/* Also keep the divider just before #article-keyword from being a dangler. */
.article-page .article-meta .meta-divider:has(+ #article-keyword) {
    display: none !important;
}


/* OBSERVED: hero card "Latest Review" + the second/third/etc items are
   stacked tightly with no separator. Add a quiet rule between the hero
   block and the secondary list for breathing room. */
.hero-grid {
    align-items: flex-start;
    gap: clamp(28px, 5vw, 56px);
}

.hero-secondary-stack {
    border-left: 1px solid var(--border);
    padding-left: clamp(20px, 3vw, 40px);
}


/* OBSERVED: the inline article-disclosure used in the markdown sometimes
   has a `<strong>Disclaimer:</strong>` prefix at the very start of the
   first article paragraph. That paragraph reads at body weight when it
   should read quietly. Detect by the strong-then-text pattern via a
   class added by polishArticleBody, but ALSO catch the case where the
   first paragraph of the article body starts with bold "Disclaimer:". */
#article-body > p:first-child {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    background: rgba(217, 119, 6, 0.04);
    border-left: 3px solid var(--warning-amber);
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

#article-body > p:first-child strong {
    color: var(--warning-amber);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.78rem;
}


/* OBSERVED: hero "READ REVIEW →" button looks tiny next to the giant hero
   title. Boost slightly. */
.hero-read-btn {
    padding: 13px 30px;
    font-size: 0.85rem;
}


/* OBSERVED: the "INDEPENDENT REVIEWS SINCE 2026" gold tagline at the
   bottom of the dark header strip looks orphaned. Make it visually
   integrated — accent dim with bolder letter-spacing. */
.header-rule-text {
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 4px;
    font-size: 0.62rem;
}


/* =============================================
   v=11 — second-pass tweaks after the user's full-page screenshot
   ============================================= */

/* Tighter first-paragraph disclaimer — reads as a small note, not body. */
#article-body > p:first-child {
    font-size: 0.78rem;
    line-height: 1.6;
    padding: 0.55rem 0.85rem;
    margin-bottom: 1.2rem;
}

#article-body > p:first-child strong {
    font-size: 0.72rem;
}

/* The writer-injected "Try Zephyr AI — ..." paragraph that polishArticleBody
   promotes to <h3> sometimes contains a link. Keep the link styled like a
   real heading, not a body link. */
#article-body .inline-section-h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

#article-body .inline-section-h3 a:hover {
    color: var(--accent);
}

/* When the writer drops a paragraph that's JUST a Zephyr link wrapped in
   bold (`**[Try Zephyr AI ...](url)**`), it becomes <h3> from rule #6 — but
   we already have proper CTA boxes elsewhere. Demote these single-link h3s
   to a quieter visual. */
#article-body .inline-section-h3 strong:only-child a {
    background: var(--accent-light);
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    font-size: 0.95rem;
    display: inline-block;
}

/* Quiet down the polishArticleBody-classed inline-Zephyr CTA when it's a
   repeat (writer drops it 2-3 times per article — the third one shouldn't
   feel like another giant gradient block). */
#article-body .article-cta-inline + .article-cta-inline,
#article-body .article-cta-inline ~ .article-cta-inline {
    background: var(--accent-light);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

#article-body .article-cta-inline + .article-cta-inline a,
#article-body .article-cta-inline ~ .article-cta-inline a {
    background: var(--accent);
    color: #ffffff;
}

/* Bottom disclaimer banner inside article — even tighter font for the
   compact variant. */
.disclaimer-banner--article-bottom {
    font-size: 0.72rem;
    padding: 0.55rem 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════
   POLISH PASS — 2026-05-14
   Implements polish.html punch list tasks T01–T07 + A07.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* T02: Font fallback stacks — site-wide reusable variables. */
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system,
            BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
            Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo,
            Consolas, 'Courier New', monospace;

    /* T04: 4-step weight scale — body/meta/title/headline. */
    --w-regular:  400;
    --w-medium:   500;
    --w-semibold: 600;
    --w-bold:     700;

    /* A07: Blue palette — exactly two hues for the entire site.
       --blue is aliased to the existing --accent so legacy
       var(--accent) references continue to resolve to the same colour.
       --blue-deep is the navy used in the Zephyr promo gradient. */
    --blue:      var(--accent);          /* #2563eb */
    --blue-deep: #1e3a8a;
    --ink:       var(--text-primary);    /* #1a1a2e — text-black, not blue */
}

/* T02: Apply --sans to body and headings. Lower specificity than
   the explicit font-family declarations earlier in the file, so
   this only catches selectors that lack their own override. */
body,
.hero-main-title,
.article-page h1,
header h1 {
    font-family: var(--sans);
}
code, kbd, pre, .mono, samp, tt {
    font-family: var(--mono);
}

/* T03: Tabular numerals — keep numeric columns and counters aligned. */
table,
th, td,
.num, .stat, .metric, .score,
time,
.article-meta,
.hero-sec-date,
.hero-meta,
.header-date,
.card-magnet-tag,
.card-score,
.hero-score,
.card-index,
.date-separator-label,
#article-body table,
.foundation-content table {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* T04: Normalise any remaining font-weight: 800 to var(--w-bold). */
h1, h2, h3,
.hero-main-title, .hero-zephyr-title,
.article-page h1, #article-body h1,
.foundation-content h1, .foundation-content h2,
.author-bio-name, .author-card-name,
.foundation-callout-title,
.author-card-credentials {
    font-weight: var(--w-bold);
}

/* T07: text-wrap: balance on headlines; pretty on body paragraphs. */
h1, h2, h3,
.hero-main-title, .hero-sec-title,
.article-card h2,
.hero-zephyr-title,
.zephyr-banner-title,
.section-title,
.article-page h1,
.feed-header h2,
#article-body h2, #article-body h3 {
    text-wrap: balance;
}

.article-body p, .prose p,
#article-body p,
.foundation-content p,
.about-text,
.hero-summary {
    text-wrap: pretty;
}

/* T06: Eyebrow / pill / date-divider utility classes — the markup
   stays sentence case; CSS does the visual uppercase. */
.eyebrow,
.pill,
.date-divider,
.section-eyebrow,
.card-eyebrow,
.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: var(--w-medium);
}

/* A07: Recolour the Zephyr promo gradient via the two-blue palette. */
.hero-zephyr-cta {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

/* End POLISH PASS — 2026-05-14 */

/* ═══════════════════════════════════════════════════════════════════
   POLISH PASS Phase 2 — Homepage chrome (L01–L05)
   ═══════════════════════════════════════════════════════════════════ */

/* L01: Tighten the yellow disclaimer bar.
   Reduces ~38px tall x 5-line strip to a single, low-profile line at
   desktop. Wraps to multi-line on mobile so the full text remains
   readable on small viewports (legal compliance — full text must be
   visible somewhere, not gated behind ellipsis on a small screen). */
.disclaimer-banner {
    padding: 6px clamp(16px, 3vw, 24px);
    font-size: clamp(0.68rem, 1.2vw, 0.74rem);
    line-height: 1.4;
    align-items: center;
}
.disclaimer-banner > span {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
@media (max-width: 720px) {
    .disclaimer-banner {
        padding: 8px clamp(12px, 3vw, 18px);
        align-items: flex-start;
    }
    .disclaimer-banner > span {
        white-space: normal;
        overflow: visible;
    }
}
.disclaimer-banner--article-top,
.disclaimer-banner--article-bottom {
    align-items: flex-start;
}
.disclaimer-banner--article-top > span,
.disclaimer-banner--article-bottom > span {
    white-space: normal;
    overflow: visible;
}

/* L02: Space out the trust-signal row. */
.trust-bar {
    padding: 12px 0;
}
.trust-bar-inner {
    gap: clamp(20px, 3.5vw, 36px);
}
.trust-item {
    font-weight: var(--w-medium);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    gap: 8px;
}
.trust-item svg {
    color: var(--blue);
    flex-shrink: 0;
}

/* L03: Shrink the dark date/search bar. */
header {
    padding: clamp(14px, 2.5vw, 22px) 0 0;
}
.header-top {
    margin-bottom: clamp(10px, 2vw, 18px);
}
.header-date {
    opacity: 1;
    color: rgba(240, 240, 245, 0.78);
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: var(--w-medium);
}
.header-rule-text {
    opacity: 1;
    color: rgba(240, 240, 245, 0.7);
    font-size: 0.62rem;
    font-weight: var(--w-medium);
}

/* L04: Drop the "Review 02/03/04" eyebrows on the secondary stack. */
.hero-sec-num {
    display: none;
}

/* L05: Pull the blue promo card up to the hero. */
.hero-zephyr-cta {
    margin-top: clamp(8px, 1.5vw, 16px);
    padding: clamp(20px, 3.5vw, 28px);
}

/* End POLISH PASS Phase 2 */

/* ═══════════════════════════════════════════════════════════════════
   POLISH PASS Phase 3 — Homepage card system (L06–L09, L12)
   ═══════════════════════════════════════════════════════════════════ */

/* L06: Promote the "All reviews" section header.
   Was 1rem italic 400-weight gray text — looked like a footer caption.
   Promote to 1.4rem semibold ink with a count + sort control on the
   right; the bottom-rule replaces the previous trailing ::after line. */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(20px, 3vw, 28px);
}
.section-heading::after { content: none; }
.section-heading h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: var(--w-bold);
    color: var(--ink);
    font-style: normal;
    letter-spacing: -0.005em;
    margin: 0;
    flex: 0 0 auto;
}
.section-heading h2 .count {
    font-weight: var(--w-regular);
    font-size: 0.85em;
    color: var(--text-muted);
    margin-left: 8px;
}
.section-heading .sort {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* L07: Don't fall back to title-as-excerpt. Hide the summary line if
   the JS rendered it empty (we guard at the JS level too, but defense
   in depth). */
.article-card .summary:empty {
    display: none;
}

/* L08: De-emphasize the 01/02/03 numbering.
   Was blue (var(--accent-dim) = #93c5fd) — readers parsed it as a
   ranking. Drop to muted gray + mono so it reads as a discreet index
   counter rather than a rank pill. */
.card-index {
    color: #C0C0C0;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: var(--w-regular);
    letter-spacing: 0.04em;
}

/* L09: Align card meta row.
   The existing rule has `align-items: center`, but the
   `.card-magnet-tag` pill is taller than the date text, causing the
   row to bob. Force a consistent baseline + cap pill height. */
.article-meta {
    align-items: center;
    min-height: 22px;
}
.card-magnet-tag {
    line-height: 1.4;
    padding: 2px 8px;
    font-size: 0.62rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--w-medium);
}
.card-score {
    line-height: 1.4;
    padding: 2px 8px;
    font-size: 0.62rem;
    border-radius: 2px;
    font-weight: var(--w-medium);
}
.article-meta .meta-divider {
    color: var(--border);
}

/* L12: Hover affordance + full-card click.
   The card JS wraps each card in <a>, so we need <a>-friendly styles
   alongside the legacy .article-card div rules. The hover lift is
   already in place (box-shadow); add translateY for explicit "moving
   piece" feedback and a focus-visible outline for keyboard users. */
a.article-card,
a.article-card:hover,
a.article-card:focus,
a.article-card:visited {
    color: inherit;
    text-decoration: none;
    display: block;
}
.article-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.article-card:hover {
    transform: translateY(-2px);
}
.article-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    box-shadow: var(--shadow-md);
}

/* End POLISH PASS Phase 3 */

/* ═══════════════════════════════════════════════════════════════════
   POLISH PASS Phase 4 — Homepage data + CTA (L10, L11)
   ═══════════════════════════════════════════════════════════════════ */

/* L10: Fix the Dec 31 1969 epoch divider.
   Frontend guard lives in the buildCards() JS — articles whose
   published_at parses to year < 2020 are filtered out of the grid
   render. This CSS rule is the belt-and-suspenders defence: if any
   stray "1969" or "1970" date-separator label slips through, hide it
   instead of showing a broken epoch divider. */
.date-separator-label[data-year="1969"],
.date-separator-label[data-year="1970"] {
    display: none;
}
.date-separator:has(.date-separator-label[data-year="1969"]),
.date-separator:has(.date-separator-label[data-year="1970"]) {
    display: none;
}

/* L11: Balance the black CTA strip.
   Our equivalent is .zephyr-banner. The previous 1fr/auto grid pushed
   the headline left and the button far right, leaving a large empty
   middle that read as accidental. Switch to a centered flex unit so
   the headline + sub-headline + button read as one composition. */
.zephyr-banner-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    text-align: left;
    max-width: 880px;
    margin: 0 auto;
}
.zephyr-banner-text {
    flex: 0 1 540px;
    min-width: 0;
}
.zephyr-banner-btn {
    flex: 0 0 auto;
}
@media (max-width: 767px) {
    .zephyr-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* End POLISH PASS Phase 4 */

/* ═══════════════════════════════════════════════════════════════════
   POLISH PASS Phase 5 — Article page (A01–A06)
   ═══════════════════════════════════════════════════════════════════ */

/* A05: Style inline prose links visibly.
   Body links now carry a real underline with a soft tint that
   darkens on hover. Citation links and "Read Our Testing Methodology"
   are no longer indistinguishable from plain colored text. */
#article-body a,
.article-body a,
.prose a,
.foundation-content a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(37, 99, 235, 0.4);
    transition: text-decoration-color 0.15s ease;
}
#article-body a:hover,
.article-body a:hover,
.prose a:hover,
.foundation-content a:hover {
    text-decoration-color: currentColor;
}
/* Don't underline buttons-wrapped-in-anchors */
#article-body a.inline-cta-btn,
#article-body a.affiliate-cta-btn,
#article-body a.sticky-cta-btn,
.foundation-content a.author-bio-link,
a.btn, a.btn-primary, a.btn-secondary {
    text-decoration: none;
}

/* A06: Consolidate buttons to 2 visual styles via a shared base.
   The existing button classes (.hero-zephyr-btn, .zephyr-banner-btn,
   .sidebar-zephyr-btn, .inline-cta-btn, .affiliate-cta-btn, etc.) are
   left in place for backward compatibility; the rules below replace
   their visual treatment with the 2-style system.

   Primary = dark fill / white text — used for the high-intent affiliate
   CTAs (Get matched free, Try Zephyr AI, Read Review).
   Secondary = transparent / ink border — used for editorial CTAs
   (Find your AI trading bot, Read Our Testing Methodology, etc.). */
.btn,
.hero-zephyr-btn, .zephyr-banner-btn, .sidebar-zephyr-btn,
.inline-cta-btn, .affiliate-cta-btn, .sticky-cta-btn,
.lead-magnet-btn, .hero-read-btn, .about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: var(--w-semibold);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}
/* Primary variant — apply by default to all action CTAs */
.btn-primary,
.hero-zephyr-btn,
.zephyr-banner-btn,
.sidebar-zephyr-btn,
.inline-cta-btn,
.affiliate-cta-btn,
.sticky-cta-btn,
.lead-magnet-btn {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}
.btn-primary:hover,
.hero-zephyr-btn:hover,
.zephyr-banner-btn:hover,
.sidebar-zephyr-btn:hover,
.inline-cta-btn:hover,
.affiliate-cta-btn:hover,
.sticky-cta-btn:hover,
.lead-magnet-btn:hover {
    background: #2A2823;
    color: #ffffff;
    transform: translateY(-1px);
}
/* Secondary variant — editorial/navigational CTAs */
.btn-secondary,
.hero-read-btn,
.about-link {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover,
.hero-read-btn:hover,
.about-link:hover {
    background: var(--ink);
    color: #ffffff;
}

/* A03: Restyle the article tables.
   The current #article-body table rules (line 1131) use blue header
   tints. Polish replaces with editorial: tabular nums, bold ink
   bottom-rule on the head, light alternating row tint. */
#article-body table,
.foundation-content table,
.prose table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.92rem;
    margin: clamp(20px, 3vw, 32px) 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}
#article-body table th,
.foundation-content table th,
.prose table th {
    text-align: left;
    font-weight: var(--w-semibold);
    padding: 10px 12px;
    border-bottom: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
}
#article-body table td,
.foundation-content table td,
.prose table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    background: transparent;
}
#article-body table tr:nth-child(even) td,
.foundation-content table tr:nth-child(even) td,
.prose table tr:nth-child(even) td {
    background: var(--bg-secondary);
}
#article-body table caption,
.foundation-content table caption,
.prose table caption {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding-bottom: 8px;
    font-weight: var(--w-medium);
}

/* A01: Beef up the article byline.
   The existing .author-byline-avatar is a text "AR" pill — promote to
   a 40px badge, give the name a stronger weight, surface a meta row
   with date + read time + affiliate-disclosure link. */
.author-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 16px 0 24px;
}
.author-byline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: #ffffff;
    font-weight: var(--w-bold);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.author-byline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.author-byline-name {
    font-size: 0.92rem;
    font-weight: var(--w-bold);
    color: var(--ink);
    text-decoration: none;
}
.author-byline-name:hover {
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.5);
}
.author-byline-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: var(--w-medium);
}
.author-byline-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.author-byline-meta a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(138, 138, 154, 0.4);
    text-underline-offset: 2px;
}
.author-byline-meta a:hover {
    color: var(--blue);
}
@media (max-width: 600px) {
    .author-byline { flex-wrap: wrap; }
    .author-byline-meta { margin-left: 0; width: 100%; justify-content: flex-start; }
}

/* A02: Dedupe Try-Zephyr blocks in the article body.
   Strategy: cap inline-CTAs to the first 1 emitted by injectInlineCTAs()
   (which fires after EVERY table — could produce 2-3 per article).
   Plus also hide any duplicate .article-cta-inline beyond the second.
   The JS now also enforces a hard cap of 1 inline CTA + 1 end CTA. */
#article-body .inline-cta ~ .inline-cta {
    display: none;
}
/* Also softens visibility of any extra inline citation-like CTA the
   polishArticleBody pattern matcher picked up after the first. */
#article-body .article-cta-inline ~ .article-cta-inline ~ .article-cta-inline {
    display: none;
}

/* A04: Make the FAQ an accordion via <details>.
   polishArticleBody() now emits <details class="faq-item"> instead of
   div-with-classes. The styles below take care of the chevron, the
   collapsed/expanded states, and keyboard focus. */
#article-body details.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 0;
    margin: 0;
}
#article-body details.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 36px 14px 0;
    font-weight: var(--w-semibold);
    font-size: 1rem;
    color: var(--ink);
    position: relative;
    line-height: 1.4;
}
#article-body details.faq-item summary::-webkit-details-marker { display: none; }
#article-body details.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: var(--w-regular);
    line-height: 1;
    transition: transform 0.2s ease;
}
#article-body details.faq-item[open] summary::after {
    content: "−";
}
#article-body details.faq-item summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 3px;
}
#article-body details.faq-item .faq-a {
    padding: 0 0 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}
#article-body details.faq-item .faq-a p { margin-bottom: 10px; }
#article-body details.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* End POLISH PASS Phase 5 */
