﻿/* ============================================================
   stock-whisperings.css — the Whisperings section on a stock page.
   ============================================================ */

.cw-section {
    --cw-pos: var(--ew-green, #0F8A3B);
    --cw-neg: var(--ew-red, #e13232);
    --cw-flat: var(--ew-color, #ddb785);
    --cw-rule: var(--border, rgba(128, 128, 128, .3));
    margin: 2rem 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--cw-rule);
    border-radius: 12px;
    background: var(--surface, transparent);
}

.cw-pos {
    color: var(--cw-pos);
}

.cw-neg {
    color: var(--cw-neg);
}

.cw-flat {
    color: var(--cw-flat);
}

/* ---- Head ----
   The mark and title were a d3-drawn SVG scaled to fill the container width, which is
   why they rendered ~80px tall. Now a normal heading with an inline icon: 30px mark,
   1.15rem title, sized like every other section heading on the page. */

.cw-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--cw-rule);
}

.cw-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--ew-color, #ddb785);
}

.cw-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

/* ---- Briefs ---- */

.cw-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.cw-brief {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.cw-arrow {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: -.05rem;
}

.cw-brief-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--text);
}

/* ---- Locked ----
   NO direction arrow. A neutral dot instead.

   The direction is itself the signal — "three analysts, all positive" is most of what a
   reader would pay for. Showing it and charging for the prose around it would be selling
   the wrapper, not the content. The API doesn't send it to a locked caller either, so
   there's nothing to recover from DevTools.

   What a locked reader DOES get: the count, and the shape of the thing. Enough to know
   something's here — which is more than EW2023 gave them (nothing at all). */

.cw-lock-dot {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cw-lock-dot::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--text-muted);
        opacity: .35;
    }

.cw-locked {
    color: var(--text-muted);
    opacity: .55;
    filter: blur(3.5px);
    user-select: none;
    pointer-events: none;
    /* The blurred content is block characters, never the real brief. The real text is
       never sent to a locked browser, so there is nothing to recover from DevTools. */
}

.cw-gate {
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--cw-rule);
    text-align: center;
}

.cw-gate-lead {
    margin: 0 0 .7rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
}

.cw-gate-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0;
    font-size: .88rem;
}

.cw-gate-cta {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 6px;
    background: var(--ew-color, #ddb785);
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
}

    .cw-gate-cta:hover {
        filter: brightness(1.06);
    }

.cw-gate-or {
    color: var(--text-muted);
}

.cw-gate-link {
    color: var(--ew-color, #ddb785);
    font-weight: 600;
}
