/* ============================================================================
   CDX Tech Blog Article Stylesheet (Shared across KO & EN Technical Articles)
   ============================================================================ */
.blog-article {
    max-width: 940px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem 1.5rem;
    color: var(--text-primary);
    line-height: 1.85;
    font-size: 1.05rem;
}
.blog-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.blog-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.7px;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}
.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.table-card {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    margin: 2.2rem 0;
    position: relative;
}
.table-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 50%, #06B6D4 100%);
    width: 100%;
}
.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #FFFFFF;
    table-layout: fixed;
}
.benchmark-table th {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 14px 16px;
    font-weight: 800;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.82rem;
    color: #475569;
    letter-spacing: 0.3px;
}
.benchmark-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    line-height: 1.5;
}
.benchmark-table tbody tr {
    transition: background 0.15s ease;
}
.benchmark-table tbody tr:hover {
    background: #F8FAFC;
}
.benchmark-table tbody tr:last-child td {
    border-bottom: none;
}
.col-cdx-head {
    background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%) !important;
    color: #166534 !important;
    border-bottom: 1px solid #BBF7D0 !important;
}
.col-cdx-cell {
    background: rgba(240, 253, 244, 0.45);
}
.benchmark-table tbody tr:hover .col-cdx-cell {
    background: rgba(236, 253, 245, 0.8);
}
.turn-chip {
    display: inline-block;
    font-family: 'Outfit', 'Fira Code', monospace;
    font-weight: 800;
    font-size: 0.82rem;
    background: #F1F5F9;
    color: #1E293B;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    margin-bottom: 3px;
}
.turn-sub {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}
.metric-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.96rem;
    color: #0F172A;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.metric-main.cdx-val {
    color: #047857;
}
.metric-cost {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    color: #64748B;
}
.metric-main.cdx-val .metric-cost {
    color: #059669;
    font-weight: 600;
}
.metric-sub {
    font-size: 0.78rem;
    color: #64748B;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.badge-warmup { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.badge-miss { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-hit { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.pill-saved {
    display: inline-block;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 20px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.12);
}
.pill-warmup {
    display: inline-block;
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 0.8rem;
    font-weight: 600;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 2.2rem 0;
}
.kpi-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.kpi-card.kpi-green::before { background: linear-gradient(90deg, #10B981, #059669); }
.kpi-card.kpi-blue::before { background: linear-gradient(90deg, #3B82F6, #2563EB); }
.kpi-card.kpi-purple::before { background: linear-gradient(90deg, #8B5CF6, #7C3AED); }
.kpi-label {
    font-size: 0.84rem;
    color: #64748B;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kpi-val {
    font-size: 2.1rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    margin-bottom: 6px;
}
.kpi-green .kpi-val { color: #059669; }
.kpi-blue .kpi-val { color: #2563EB; }
.kpi-purple .kpi-val { color: #7C3AED; }
.kpi-sub {
    font-size: 0.82rem;
    color: #64748B;
    font-family: 'Fira Code', monospace;
}
.mechanism-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin: 2rem 0;
}
.mechanism-header {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mechanism-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
@media (max-width: 768px) {
    .mechanism-grid { grid-template-columns: 1fr; }
}
.mechanism-item {
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    font-size: 0.9rem;
    line-height: 1.7;
}
.mechanism-raw {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #742A2A;
}
.mechanism-cdx {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #14532D;
}
.mechanism-synergy {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #334155;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    font-size: 0.88rem;
    line-height: 1.7;
}
.callout-box {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--primary);
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.code-snippet {
    background: #0F172A;
    color: #E2E8F0;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
    .blog-article {
        padding: 1.5rem 1rem 3.5rem 1rem;
        font-size: 0.96rem;
        line-height: 1.72;
    }
    .blog-header {
        margin-bottom: 1.8rem;
        padding-bottom: 1.3rem;
    }
    .blog-meta {
        gap: 0.6rem;
        font-size: 0.82rem;
    }
    .blog-title {
        font-size: 1.55rem;
        line-height: 1.32;
    }
    .blog-subtitle {
        font-size: 0.98rem;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin: 1.4rem 0;
    }
    .kpi-card {
        padding: 1.1rem 1.15rem;
    }
    .kpi-val {
        font-size: 1.75rem;
    }
    .table-card {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 1.5rem 0;
    }
    .benchmark-table {
        display: table !important;
        width: 100% !important;
        min-width: 560px !important;
        table-layout: auto !important;
    }
}
