﻿/* grade.css — /about-grade. Chart + stat blocks; article typography comes from
   library-article.css. */

/* ---- headline ---- */
.grade-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    margin: 22px 0 26px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.grade-headline-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--positive, #0F8A3B);
    font-variant-numeric: tabular-nums;
}

.grade-headline-label {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 42ch;
    line-height: 1.45;
}

/* (Chart styles live inline in Views/Shared/_GradeChart.cshtml — the chart is
   shared with the home-page promo rotation and must be self-contained.) */

/* ---- paired stat boxes ---- */
.grade-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 6px;
}

@media (max-width: 560px) {
    .grade-pair {
        grid-template-columns: 1fr;
    }
}

.grade-pair-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 16px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-align: center;
}

.grade-pair-cap {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.grade-pair-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

    .grade-pair-value.is-pos {
        color: var(--positive, #0F8A3B);
    }

.grade-pair-label {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ---- CTA ---- */
.grade-cta-wrap {
    text-align: center;
    margin: 26px 0;
}

.grade-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--ew-gold, #DDB785);
    color: #050505;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
}

    .grade-cta:hover {
        filter: brightness(1.05);
    }

.grade-cta-mark {
    flex: 0 0 auto;
}

/* ---- live A+ record variant of the headline block ---- */
.grade-live .grade-headline-value {
    color: var(--ew-gold, #DDB785);
}

/* ---- slot for the separately-built A+ performance chart ---- */
.grade-aplus-fig {
    margin: 22px 0;
}

.grade-aplus-chart {
    min-height: 320px;
    border: 1px dashed var(--border);
    border-radius: 10px;
}
