/* --- VARIABLES --- */
:root {
    --primary: #4F46E5;       /* Indigo for "Corporate/Cadre" feel */
    --primary-dark: #312E81;
    --text-main: #1E293B;
    --text-light: #64748B;
    --bg-page: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --radius: 16px;
}

body.page-article {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

/* --- LAYOUT --- */
.container-narrow { max-width: 800px; margin: 0 auto; text-align: center; }
.main-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.grid-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }

/* --- HERO --- */
.hero-section {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    padding: 3rem 1.5rem 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #C7D2FE;
}

.badge-date {
    background: #4F46E5;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-lead { font-size: 1.15rem; color: var(--text-light); }

/* --- CONTENT --- */
.article-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.article-card h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.cmp-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cmp-row:last-child { border-bottom: none; }

.cmp-row.header {
    background: #F1F5F9;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.val.green { color: var(--success); font-weight: 700; }
.val.red { color: var(--danger); font-weight: 700; }

/* Insight Box */
.insight-box {
    background: #FFF7ED;
    border-left: 4px solid #F97316;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-list { list-style: none; padding: 0; }
.feature-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 8px;
}

/* --- SIDEBAR WIDGET --- */
.sticky-widget { position: sticky; top: 2rem; }

.calculator-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.live-indicator {
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

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

.input-group-modern label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    border: 2px solid var(--bg-page);
    border-radius: 12px;
    background: #F8FAFC;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
}

.input-wrapper .unit {
    position: absolute;
    right: 15px;
    font-weight: 700;
    color: var(--text-light);
}

/* Bars Comparison */
.bar-chart-container { margin: 2rem 0; }
.bar-group { margin-bottom: 1rem; }
.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text-main);
}
.bar-track {
    background: #E2E8F0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.bar-fill { height: 100%; transition: width 0.5s ease; }
.bar-fill.nc { background: var(--success); } /* Non-Cadre gets more net */
.bar-fill.c { background: var(--danger); }   /* Cadre gets less net */

/* Delta Box */
.delta-box {
    background: #F1F5F9;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.delta-box.negative { background: #FEF2F2; border: 1px solid #FCA5A5; }
.delta-box.positive { background: #F0FDF4; border: 1px solid #86EFAC; }

.delta-icon { font-size: 1.5rem; }
.delta-text strong { display: block; font-size: 1.1rem; }
.delta-box.negative .delta-text strong { color: var(--danger); }
.delta-box.positive .delta-text strong { color: var(--success); }
.delta-text small { font-size: 0.8rem; color: var(--text-light); }

.info-footer {
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.info-footer ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }

.btn-primary-full {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}
.btn-primary-full:hover { background: #4338CA; }

/* Mobile */
.d-md-none { display: none; }
@media (max-width: 900px) {
    .grid-layout { grid-template-columns: 1fr; }
    .hero-section { text-align: left; }
    .sidebar-col { order: -1; margin-bottom: 2rem; }
    .d-md-none { display: block; }
    .btn-mobile-calc {
        display: block;
        background: var(--primary-dark);
        color: white;
        padding: 1rem;
        text-align: center;
        border-radius: 12px;
        margin-bottom: 2rem;
        font-weight: 700;
        text-decoration: none;
    }
}