/* Market Intelligence + Decision Lifecycle (site-wide) */

.mi-wrap {
    margin: 0 20px 16px;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background: #fafbfc;
    overflow: hidden;
}

.mi-section {
    padding: 14px 16px;
    border-bottom: 1px solid #e8ecf0;
}
.mi-section:last-child {
    border-bottom: none;
}

.mi-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6a7a;
    margin: 0 0 10px;
}

.mi-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px 16px;
    margin: 0;
}
.mi-ov-item dt {
    font-size: 0.72rem;
    color: #8899a8;
    margin: 0 0 2px;
    font-weight: 600;
}
.mi-ov-item dd {
    margin: 0;
    font-size: 0.88rem;
    color: #2c3e50;
}

.mi-table-wrap {
    overflow-x: auto;
}
.mi-edge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.mi-edge-table th,
.mi-edge-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef1f4;
}
.mi-edge-table th.num,
.mi-edge-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.mi-edge-table tr.is-hero {
    background: #fff8e6;
}
.mi-edge-table tr.is-hero td {
    font-weight: 600;
}
.mi-edge-cell {
    color: #1a6b3c;
}

.mi-hero-gap {
    margin: 10px 0 4px;
    font-size: 0.86rem;
    color: #2c3e50;
}
.mi-edge-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e8f0fe;
    color: #1a4a8a;
    font-size: 0.75rem;
    font-weight: 600;
}
.mi-status-line {
    margin: 4px 0;
    font-size: 0.84rem;
}
.mi-status--potential_value { color: #1a6b3c; font-weight: 600; }
.mi-status--mild_value { color: #2d7a4f; font-weight: 600; }
.mi-status--market_efficient { color: #6b7280; }
.mi-status--market_ahead { color: #b45309; font-weight: 600; }
.mi-status--strong_market_ahead { color: #c2410c; font-weight: 700; }
.mi-status--repriced { color: #9ca3af; }

.mi-interpretation {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0f4f8;
    border-left: 3px solid #1a4a8a;
}
.mi-interpretation-title {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5a6a7a;
}
.mi-interpretation-lead {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #2c3e50;
    line-height: 1.45;
}
.mi-interpretation-follow {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #3d5166;
    line-height: 1.45;
}
.mi-narrative {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e6ed;
}
.mi-narrative-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a4a8a;
}
.mi-narrative-para {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #2c3e50;
    line-height: 1.5;
}
.mi-narrative-para:last-child {
    margin-bottom: 0;
}
.mi-interpretation-list {
    margin: 0;
    padding-left: 1.2em;
    font-size: 0.78rem;
    color: #5a6a7a;
    line-height: 1.5;
}
.mi-lc-current {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: #2c3e50;
}
.mi-lc-current-label {
    color: #1a4a8a;
    font-weight: 600;
}

.mi-steam-note,
.mi-fair-note,
.mi-pending-note,
.mi-unavailable-note,
.mi-degraded-note,
.mi-comparison-ok,
.mi-fair-confidence {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.45;
}
.mi-degraded-note {
    color: #b45309;
}
.mi-comparison-ok {
    color: #1a6b3c;
}
.mi-sanity {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.45;
}
.mi-sanity--strong {
    background: #fff8e1;
    border: 1px solid #ffe082;
}
.mi-sanity--extreme {
    background: #fff3e0;
    border: 1px solid #ffb74d;
}
.mi-sanity-title {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: #e65100;
}
.mi-sanity-body {
    margin: 0;
    font-size: 0.78rem;
    color: #5d4037;
}

/* Decision Lifecycle */
.mi-lifecycle {
    padding: 0;
}
.mi-lc-steps {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.mi-lc-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6b7280;
}
.mi-lc-step--done,
.mi-lc-step--won {
    color: #1a6b3c;
    font-weight: 600;
}
.mi-lc-step--active {
    color: #1a4a8a;
    font-weight: 600;
}
.mi-lc-step--lost {
    color: #b91c1c;
}
.mi-lc-icon {
    font-size: 0.9rem;
    width: 1.1em;
    text-align: center;
}
.mi-lc-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}
.mi-lc-fact dt {
    font-size: 0.72rem;
    color: #8899a8;
    margin: 0;
}
.mi-lc-fact dd {
    margin: 2px 0 0;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}
.mi-clv-val.pos { color: #1a6b3c; font-weight: 700; }
.mi-clv-val.neg { color: #b91c1c; font-weight: 700; }

@media (max-width: 576px) {
    .mi-lc-facts {
        grid-template-columns: 1fr;
    }
}
