﻿/* ============================================================
   home-whisper.css — home-page Earnings Whisper Number promo.
   Companion to _HomeWhisper.cshtml, one of the rotating promos.
   Follows the same head/title/all/sub structure as the other home
   sections (.tn-home et al) so the page reads consistently.
   ============================================================ */

.hw-home {
    margin: 2.5rem 0;
}

/* ---- Head ---- */

.hw-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.hw-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.hw-all {
    flex: 0 0 auto;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ew-color);
    text-decoration: none;
}

    .hw-all:hover {
        text-decoration: underline;
    }

.hw-sub {
    font-size: .95rem;
    color: var(--text-muted);
    margin: .2rem 0 1.1rem;
}

/* ---- Body: meme beside the copy ---- */

.hw-body {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
}

.hw-copy {
    flex: 1;
    min-width: 0;
    max-width: 62ch; /* readable measure — the home column is very wide */
}

    .hw-copy p {
        font-size: .95rem;
        line-height: 1.6;
        color: var(--text);
        margin: 0 0 1rem;
    }

.hw-kicker {
    font-size: .9rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* ---- Meme image ----
   The memes are LANDSCAPE (~16:9), not square, and the sources are 4K — the browser
   downscales. The <img> carries width/height attributes so the intrinsic ratio
   reserves the correct box before load and the copy doesn't jump.

   Sized as a real column (not a thumbnail): it takes ~38% of the row, so the copy
   beside it lands at a readable measure instead of stretching the full page width. */

.hw-meme {
    flex: 0 0 38%;
    max-width: 460px;
    margin: 0;
}

    .hw-meme img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

/* ---- Reaction chart ----
   Capped, and centered in the copy column. Without a max-width the SVG stretches to
   the full column and scales its internal padding with it, stranding the bars in a
   large empty box. */

.hw-chart {
    margin: 0 auto 1rem;
    max-width: 520px;
}

    .hw-chart svg {
        width: 100%;
        height: auto;
        display: block;
    }

.hw-chart-cap {
    font-size: .75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: .25rem;
}

/* ---- Responsive ---- */

@media (max-width: 800px) {
    .hw-body {
        flex-direction: column;
        align-items: center;
    }

    .hw-meme {
        flex: 0 0 auto;
        width: 100%;
        max-width: 480px;
    }

    .hw-copy {
        width: 100%;
        max-width: none;
    }

    .hw-chart {
        max-width: none;
    }
}
