﻿/* Market Sentiment page */
.sent-page {
    max-width: 100%;
}

.sent-head {
    margin-bottom: 18px;
}

    .sent-head h1 {
        font-size: 24px;
        font-weight: 800;
        color: var(--text);
        margin: 0 0 10px;
    }

.sent-head-figures {
    display: flex;
    gap: 40px;
    margin-bottom: 4px;
}

.sent-figure-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sent-figure-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.sent-up {
    color: var(--ew-green, #0F8A3B);
}

.sent-down {
    color: var(--ew-red, #e13232);
}

.sent-flat {
    color: var(--ew-gold, #c9a24b);
}

.sent-asof {
    font-size: 13px;
    color: var(--text-muted);
}

.sent-desc {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 900px;
}

/* SPY line color: near-black in light mode, near-white in dark mode */
:root {
    --sent-spy-line: #050505;
}

[data-theme="dark"] {
    --sent-spy-line: #f7f7f7;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --sent-spy-line: #f7f7f7;
    }
}

/* Statistics table */
.sent-stats-wrap {
    margin: 24px 0 16px;
    overflow-x: auto;
}

.sent-stats {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

    .sent-stats thead th {
        font-weight: 600;
        color: var(--text-muted);
        text-align: right;
        padding: 8px 14px;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

        .sent-stats thead th:first-child {
            text-align: left;
        }

    .sent-stats tbody td {
        text-align: right;
        padding: 8px 14px;
        color: var(--text);
        font-variant-numeric: tabular-nums;
        border-bottom: 1px solid var(--border);
    }

    .sent-stats .sent-stats-label {
        text-align: left;
        font-weight: 600;
    }

.sent-stats-combined td {
    font-weight: 700;
}

.sent-stats-best {
    background: rgba(15,138,59,0.18);
    font-weight: 700;
}

.sent-discussion {
    margin: 8px 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

/* bullish/bearish message under the sentiment number */
.sent-figure-msg {
    font-size: 15px;
    font-weight: 700;
    margin-top: 2px;
}

/* Bottom-up sentiment heat map */
.sent-heat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 12px;
}

    .sent-heat-head .sent-section-title {
        margin: 0;
    }

.sent-heat-tools {
    display: flex;
    gap: 6px;
}

.sent-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 28px 0 12px;
}

.sent-heat {
    width: 100%;
}

    .sent-heat a {
        text-decoration: none;
    }

        .sent-heat a rect {
            transition: opacity 120ms ease;
        }

        .sent-heat a:hover rect {
            opacity: 0.85;
        }

.sent-heat-empty {
    color: var(--text-muted);
    padding: 16px;
    text-align: center;
}
