:root {
    --v88-navy: #143f74;
    --v88-orange: #b4571f;
    --v88-ink: #18263a;
    --v88-muted: #526179;
    --v88-line: #d9e1e9;
    --v88-paper: #fff;
    --v88-tint: #f5f8fa;
    --v88-font: Gotham, "Trebuchet MS", sans-serif;
}

body, button, input, select, textarea, .brand h1,
.chart-card h3, .section-header h2, .hero h2,
.decision-question-guide h2, .decision-question-card strong {
    font-family: var(--v88-font);
}

.brand h1 {
    color: var(--v88-navy);
    font-size: clamp(2rem, 3.2vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    max-width: 23ch;
}

.tab-content .chart-card,
.tab-content .demo-chart-card,
.tab-content .edu-chart-wrap {
    background: var(--v88-paper);
    border: 1px solid var(--v88-line);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(20, 63, 116, .055);
}

.tab-content .chart-card::before { background: linear-gradient(90deg, var(--v88-orange), var(--v88-navy)); }

.tab-content .chart-card h3,
.tab-content .edu-chart-title {
    color: var(--v88-ink);
    font-size: clamp(1.15rem, 1.7vw, 1.42rem);
    line-height: 1.3;
    text-wrap: balance;
}

.v88-figure-brief {
    margin: 14px 0 18px;
    padding: 14px 18px;
    border-left: 4px solid var(--v88-orange);
    border-radius: 0 9px 9px 0;
    background: var(--v88-tint);
    color: var(--v88-ink);
}

.v88-brief-label {
    display: block;
    color: #96501f;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.v88-figure-brief p { margin: 5px 0 0; line-height: 1.48; }
.v88-figure-brief .v88-reading { font-weight: 700; }
.v88-figure-brief .v88-guidance { color: var(--v88-muted); }

/* Keep the full machine-generated chart description for assistive technology, without repeating it visually. */
.v88-has-brief .chart-accessibility-summary {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.v88-table-brief {
    margin: 12px 0 16px;
    padding: 12px 15px;
    border-left: 4px solid var(--v88-orange);
    border-radius: 0 8px 8px 0;
    background: var(--v88-tint);
    color: var(--v88-ink);
    line-height: 1.5;
}

.v88-source-notes {
    margin-top: 18px;
    padding-top: 2px;
    border-top: 1px solid var(--v88-line);
    color: var(--v88-muted);
}

.v88-source-notes summary {
    min-height: 44px;
    padding: 10px 0;
    color: var(--v88-navy);
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
}

.v88-source-notes > p {
    margin: 0 0 12px;
    font-size: .94rem;
    line-height: 1.55;
}

.v88-section-sources { margin-top: 22px; }
.v88-source-notes a { color: var(--v88-navy); text-underline-offset: 2px; }

.v87-view .v87-frame { background: #fff; }
.v87-view .v87-frame canvas { max-width: 100%; }

@media (max-width: 600px) {
    .brand h1 { max-width: none; font-size: clamp(1.85rem, 8vw, 2.35rem); }
    .v88-figure-brief { padding: 12px 14px; }
    .tab-content .chart-card h3 { font-size: 1.15rem; }
}

@media (prefers-contrast: more) {
    .v88-figure-brief { border-left-color: #88400f; background: #fff; outline: 1px solid var(--v88-line); }
    .tab-content .chart-card { border-color: #67788d; }
}
