/* ==============================================================================
   MACRO INTELLIGENCE PAGE STYLES (ISOLATED SECTION)
   ============================================================================== */

/* Page Container & Layout Scope */
.page-container {
    background-color: #f8fafc;
}

/* Macro Indicator Tiles & Grid */
.macro-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 18px;
}

.macro-tile {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.macro-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.macro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.macro-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    width: 70%;
}

.macro-value {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    color: #0a47d6;
    text-align: right;
}

/* Direction Status Indicators */
.macro-status-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
}

.macro-direction {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.macro-direction.improving {
    color: #16a34a;
}

.macro-direction.deteriorating {
    color: #dc2626;
}

.macro-chart {
    height: 120px;
    margin-top: 12px;
    position: relative;
}

/* Narrative & Macro Regime Cards Grid */
.macro-overview-grid {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    gap: 24px !important;
    margin-top: 20px;
}

.regime-card,
.summary-card,
.driver-card,
.risk-card {
    background: #fafcff;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    padding: 22px;
}

.section-label {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0.4px;
}

/* Regime Status Pills */
.regime-pill {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.regime-strong-positive {
    background: #166534;
    color: #ffffff;
}

.regime-positive {
    background: #16a34a;
    color: #ffffff;
}

.regime-neutral {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.regime-negative {
    background: #ea580c;
    color: #ffffff;
}

.regime-strong-negative {
    background: #dc2626;
    color: #ffffff;
}

.regime-outlook {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.summary-text {
    font-size: 16px;
    line-height: 1.6;
    color: #475569
}

/* Key Drivers & Key Risks Grid */
.macro-driver-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    line-height: 1.6;
    margin-top: 24px;
}

.driver-list,
.risk-list {
    margin: 0;
    padding-left: 20px;
}

.driver-list li {
    margin-bottom: 12px;
    line-height: 1.0;
    color: #151515f6;
}

.risk-list li {
    margin-bottom: 12px;
    line-height: 1.0;
    color: #151515f6;
}

/* Responsive Viewport Overrides for Macro Page */
@media (max-width: 900px) {
    .macro-overview-grid,
    .macro-driver-grid {
        grid-template-columns: 1fr !important;
    }
}