﻿/* EPS Details page — EW2027.
   Token-driven (ew-theme.css): no hardcoded prefers-color-scheme blocks.
   Expected tokens (fallbacks provided so the page degrades gracefully):
     --pos / --neg / --gold  status colors
     --text --text-muted --border
     --surface-1 (card) --surface-2 (panel) --surface-3 (track)
     --on-accent (text on a filled status puck) */

.eps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 0;
}

@media (min-width: 900px) {
    .eps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Summary column ---- */
.eps-summary {
    background: var(--surface-alt, #EEF1F6);
    color: var(--text, #050505);
    border: 1px solid var(--border, #323232);
    border-radius: 12px;
    padding: 28px;
}

.eps-subject {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0 0 8px;
}

.eps-date {
    font-size: .8rem;
    color: var(--text-muted, #9a9a9a);
    margin-bottom: 18px;
}

.eps-prose {
    line-height: 1.6;
    margin: 0;
}

/* ---- Key data column ---- */
.eps-data {
    background: var(--surface, #FFFFFF);
    color: var(--text, #050505);
    border: 1px solid var(--border, #323232);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.eps-gauges-top {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.eps-metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    border-top: 1px solid var(--border, #e1e1e1);
    padding-top: 18px;
}

.eps-metric-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted, #777);
    margin-top: 10px;
}

.eps-result {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.1;
}

.eps-whisper {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
}

.eps-estimate {
    font-size: 1rem;
    font-weight: 900;
}

.eps-result.is-pos {
    color: var(--positive, #0F8A3B);
}

.eps-result.is-neg {
    color: var(--negative, #e13232);
}

.eps-result.is-flat {
    color: var(--ew-gold, #DDB785);
}

.eps-metric-gauges {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Shared surprise graphic (drawn by ew-surprise.js). The component hardcodes
   an 84px svg; scale it up here to match the 120px Growth donut beside it.
   SVG scales cleanly via its viewBox, so overriding width/height is safe. */
.eps-surp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    /* Bank case: no surprise data -> ew-surprise.js leaves the host empty.
   Show a muted dash placeholder sized to match the drawn gauge. */
    .eps-surp:empty::before {
        content: "\2014";
        font-size: 1.6rem;
        color: var(--text-muted, #8a8a8a);
        width: 96px;
        height: 96px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.eps-footnote {
    font-size: .7rem;
    line-height: 1.4;
    color: var(--text-muted, #5B6472);
    margin: 8px 0 0;
    max-width: 34ch;
}

.eps-surp .tn-surp-svg {
    width: 96px;
    height: 96px;
    overflow: visible;
}

.tn-surp-pct {
    font-family: sans-serif;
    font-weight: 700;
    font-size: 15px;
}

/* ---- Gauges (shared visual language) ---- */
.gauge,
.gauge-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.gauge-svg {
    width: 96px;
    height: auto;
    overflow: visible;
}

.grade-svg {
    width: 104px;
}

.pwr-svg {
    width: 90px;
}

.gauge-lbl {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted, #777);
    text-align: center;
}

.gauge-center {
    font-family: sans-serif;
    font-weight: 700;
    font-size: 18px;
    fill: var(--ew-light, #F7F7F7);
}

.grade-letter {
    font-family: "Arial Black", "Arial-BoldMT", sans-serif;
    font-size: 50px;
}

.pwr-val {
    font-family: sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    fill: var(--text-inverse, #F8FAFC);
}

.gauge-empty .gauge-dash {
    font-size: 1.5rem;
    color: var(--text-muted, #999);
}

.gauge-lock {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted, #999);
}

.gauge-lock-icon {
    width: 40px;
    height: 40px;
    fill: var(--border, #D6DCE6);
}

.gauge-link {
    cursor: pointer;
}

    .gauge-link:hover .gauge-lbl {
        color: var(--text, #050505);
    }

/* ---- Conference call / AI analysis ---- */
.eps-cc {
    margin: 32px auto;
    max-width: 900px;
}

.cc-summary {
    background: var(--ew-color, #DDB785);
    color: var(--ew-dark, #050505);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.cc-signup {
    color: inherit;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Non-subscriber teaser: one short blurred line + the subscribe prompt.
   The blurred text is a generic placeholder — the real summary is never sent. */
.cc-locked {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-blur {
    margin: 0;
    max-width: 46ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    filter: blur(5px);
    opacity: .7;
    user-select: none;
    pointer-events: none;
}

.cc-locked .cc-signup {
    text-decoration: underline;
}


/* ---- Inline press release (shared _NewsArticle partial) ---- */
.eps-news {
    max-width: 900px;
    margin: 24px auto;
}

.d-none {
    display: none !important;
}
