﻿/* ============================================================
   whales.css — /whales/{ticker}. Prefix wh-.
   ============================================================ */

.wh-page {
    width: 100%;
    padding: 1.25rem 0 3rem;
    color: var(--text);
}

.wh-head {
    margin-bottom: 1.5rem;
}

.wh-title {
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    color: var(--text);
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}

.wh-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    max-width: 82ch;
}

/* ---- summary grid ---- */
.wh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.wh-stat {
    background: var(--surface);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.wh-lbl {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wh-val {
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.15;
}

.wh-note {
    font-size: .76rem;
    color: var(--text-muted);
}

/* direction rides alongside the sign, never alone */
.wh-up {
    color: var(--positive, #0F8A3B);
}

.wh-down {
    color: var(--negative, #c62828);
}

.wh-line {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 2rem;
    max-width: 80ch;
}

    .wh-line strong {
        color: var(--text);
        font-variant-numeric: tabular-nums;
    }

/* ---- holders ---- */
.wh-h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 .75rem;
}

.wh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .wh-table th[scope="col"] {
        text-align: left;
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--text-muted);
        padding: 6px 10px;
        border-bottom: 1px solid var(--border);
    }

    .wh-table td,
    .wh-table th[scope="row"] {
        padding: 9px 10px;
        border-bottom: 1px solid var(--border);
    }

.wh-mgr {
    text-align: left;
    font-weight: 600;
    color: var(--text);
}

    .wh-mgr a {
        color: var(--text);
        text-decoration: none;
        border-bottom: 1px solid transparent;
    }

        .wh-mgr a:hover {
            color: var(--ew-gold, #DDB785);
            border-bottom-color: currentColor;
        }

.wh-n {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wh-table th.wh-n {
    text-align: right;
}

/* ---- gate ---- */
.wh-locked {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--surface-alt, var(--surface));
    text-align: center;
}

    .wh-locked p {
        margin: 0 auto .9rem;
        max-width: 58ch;
        font-size: .95rem;
        line-height: 1.6;
        color: var(--text-muted);
    }

.wh-cta {
    display: inline-block;
    padding: .55rem 1.4rem;
    border-radius: 8px;
    background: var(--ew-gold, #DDB785);
    color: #1b1b1b;
    font-weight: 700;
    text-decoration: none;
}

    .wh-cta:hover {
        filter: brightness(1.06);
    }

.wh-empty {
    color: var(--text-muted);
    padding: 2.5rem 0;
}

.wh-note-fine {
    margin: 1.5rem 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 84ch;
}

@media (max-width: 48rem) {
    .wh-val {
        font-size: 1.3rem;
    }

    .wh-table {
        font-size: 13px;
    }
}


/* a quarter with a handful of reporting managers, flagged rather than dressed up */
.wh-thin {
    margin: 0 0 1rem;
    padding: .6rem .9rem;
    border-left: 3px solid var(--ew-gold, #DDB785);
    background: color-mix(in srgb, var(--ew-gold, #DDB785) 8%, transparent);
    font-size: 13px;
    color: var(--text-muted);
}


/* holder detail missing — stated plainly rather than rendered as zeros */
.wh-pending {
    padding: 1rem 1.1rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--surface-alt, var(--surface));
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

    .wh-pending p {
        margin: 0;
    }

.wh-err {
    margin-top: .5rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    color: var(--negative, #c62828);
}


/* ---- action pills on the changes table ---- */
.wh-act {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    white-space: nowrap;
}

/* New and Sold Out are the decisive ones and take the solid colour; adding to or
   trimming an existing position is a smaller statement and reads lighter. */
.wh-act-new {
    color: var(--positive, #0F8A3B);
    background: color-mix(in srgb, var(--positive, #0F8A3B) 14%, transparent);
}

.wh-act-increased {
    color: var(--positive, #0F8A3B);
}

.wh-act-reduced {
    color: var(--negative, #c62828);
}

.wh-act-soldout {
    color: var(--negative, #c62828);
    background: color-mix(in srgb, var(--negative, #c62828) 14%, transparent);
}


/* ---- gate above the manager tables ----
   Horizontal rather than the centred block used at the foot of a page: it sits
   between the summary and the tables, and a tall centred panel there would push
   the data the reader came for below the fold. */
.wh-gate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin: 2rem 0 1rem;
    padding: .9rem 1.1rem;
    border: 1px solid var(--ew-gold, #DDB785);
    border-radius: 10px;
    background: color-mix(in srgb, var(--ew-gold, #DDB785) 9%, transparent);
}

    .wh-gate p {
        margin: 0;
        flex: 1 1 26rem;
        font-size: 13.5px;
        line-height: 1.55;
        color: var(--text-muted);
    }

        .wh-gate p strong {
            color: var(--text);
        }

    .wh-gate .wh-cta {
        flex: 0 0 auto;
    }
