﻿/* ============================================================
   home-score.css — home-page Earnings Whisper Score promo.
   Headline + one paragraph + four stats + link. No chart.
   Uses ew-theme.css tokens. Sits below the weekly calendar.
   ============================================================ */

.hs-score {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 2.5rem 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    background: var(--surface, transparent);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

    .hs-score:hover,
    .hs-score:focus-visible {
        border-color: var(--ew-color);
        box-shadow: 0 6px 28px -12px color-mix(in srgb, var(--ew-color) 55%, transparent);
    }

.hs-score-eyebrow {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ew-color);
    font-weight: 700;
    margin: 0 0 .35rem;
}

.hs-score-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.12;
    margin: 0 0 .5rem;
    color: var(--text);
}

.hs-score-body {
    font-size: .95rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 1.1rem;
    max-width: 70ch;
}

/* ---- Stats strip ---- */
.hs-score-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin: 0 0 1rem;
}

.hs-stat {
    display: flex;
    flex-direction: column;
    padding: .6rem .7rem;
    border-radius: 10px;
    background: var(--surface-alt, color-mix(in srgb, var(--text) 4%, transparent));
    border: 1px solid var(--border);
}

.hs-stat-value {
    font-size: 1.2rem;
    font-weight: 750;
    color: var(--text);
    line-height: 1.1;
}

.hs-stat-plus .hs-stat-value {
    color: var(--ew-green);
}

.hs-stat-minus .hs-stat-value {
    color: var(--ew-red);
}

.hs-stat-label {
    font-size: .74rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 3px;
}

.hs-stat-sub {
    font-size: .67rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.hs-score-more {
    display: inline-block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ew-color);
}

.hs-score:hover .hs-score-more {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .hs-score-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Chart + captions ---- */
.hs-score-cap-top {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0 0 .5rem;
}

.hs-score-chart {
    margin: 0 auto 1rem;
    /*max-width: 460px;*/ /* cap so the 720x420 SVG doesn't make the box huge */
}

.hs-score-cap {
    font-size: .74rem;
    color: var(--text-muted);
    margin-top: .5rem;
    text-align: center;
}

/* watermark opacity, theme-aware */
.hs-wm {
    opacity: .06;
}

:root:not([data-theme="light"]) .hs-wm {
    opacity: .12;
}
