/* ========================================
   CORRECTIVE FIXES - MARKET MOMENTUM SECTION
   Institutional | Minimal | Investment-Grade
   No Oversized Graphics | Clean Grid Layout
   ======================================== */

/* Reduce section padding for better balance */
.market-momentum-section {
    padding: 5rem 0 !important;
}

/* Reduce header size for institutional feel */
.momentum-header h2 {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.momentum-header .section-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

/* Reduce card padding for cleaner look */
.momentum-card {
    padding: 2rem !important;
    margin-bottom: 0 !important;
}

.momentum-card h3 {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

.momentum-card p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

/* Reduce grid gap for tighter layout */
.momentum-grid {
    gap: 2rem !important;
    margin-bottom: 3rem !important;
}

/* FIX: Significantly reduce chart sizes */
.charts-container {
    gap: 2rem !important;
    margin-bottom: 2.5rem !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.chart-wrapper {
    padding: 1.5rem !important;
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
}

.chart-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

/* CRITICAL FIX: Reduce chart canvas height significantly */
.chart-canvas {
    height: 220px !important;
    max-height: 220px !important;
}

/* Data source styling */
.data-source {
    font-size: 0.8rem !important;
    margin-top: 1.5rem !important;
    opacity: 0.75;
}

/* Remove implication box if it's oversized */
.implication-box {
    padding: 2rem !important;
    margin-top: 2.5rem !important;
}

.implication-box h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

.implication-box p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* Desktop-specific fixes for alignment */
@media (min-width: 992px) {
    .market-momentum-section .container {
        max-width: 1140px !important;
    }
    
    .momentum-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .charts-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large desktop fixes */
@media (min-width: 1400px) {
    .market-momentum-section .container {
        max-width: 1200px !important;
    }
    
    /* Keep charts constrained */
    .chart-canvas {
        height: 240px !important;
        max-height: 240px !important;
    }
}

/* Tablet fixes */
@media (max-width: 991px) {
    .momentum-grid,
    .charts-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .momentum-header h2 {
        font-size: 2rem !important;
    }
    
    .chart-canvas {
        height: 200px !important;
    }
}

/* Mobile fixes */
@media (max-width: 767px) {
    .market-momentum-section {
        padding: 3.5rem 0 !important;
    }
    
    .momentum-header h2 {
        font-size: 1.75rem !important;
    }
    
    .momentum-card,
    .chart-wrapper {
        padding: 1.5rem !important;
    }
    
    .chart-canvas {
        height: 180px !important;
    }
    
    .implication-box {
        padding: 1.5rem !important;
    }
}
