/* GREENBOX portal readability overrides · loaded after gbx-ui.css. Function before fashion:
   clear type hierarchy (title > subtitle > body), readable light mode, positive facts read positive. */

/* ---------- 1 · TYPE HIERARCHY · titles LARGEST, subtitles MEDIUM, body NORMAL ---------- */
/* Some pages inline-force card <h3> down to body size; lift every heading back above body. */
h1, .gbx-h1, .gbx-display{ font-weight:800 !important; }
h2, .gbx-h2{ font-weight:700 !important; }
h3, .gbx-h3{ font-weight:650 !important; }
/* card / section titles that were pinned to --t-base or smaller: force a real step above body */
.gbx-card h3, .gbx-cardhead h3, .gbx-card h4{ font-size:var(--t-lg) !important; font-weight:650 !important; line-height:1.25 !important; }
/* the subtitle band sits clearly between title and body */
.gbx-lead{ font-size:var(--t-lg) !important; font-weight:400 !important; line-height:1.6 !important; }
.gbx-lead b, .gbx-lead strong{ font-weight:650 !important; }

/* ---------- 2 · ALL-CAPS OVERLINES · larger + higher-contrast (were too faint/small) ---------- */
.gbx-kicker, .gbx-kicker.plain{
  font-size:.8rem !important; letter-spacing:.11em !important; font-weight:650 !important;
  color:var(--text-soft) !important; line-height:1.5 !important;
}
.eyebrow{ font-size:.8rem !important; letter-spacing:.11em !important; font-weight:650 !important; }
[data-theme="dark"] .eyebrow{ color:#8fe6b0 !important; }
[data-theme="paper"] .eyebrow{ color:var(--signal-type) !important; }
.m-label, .gnf-ctx, .agr-toc a, .steps a{ color:var(--text-soft) !important; }

/* ---------- 3 · LIGHT (paper) THEME · text was too pale to read ---------- */
[data-theme="paper"]{
  --text-soft:#3d4734 !important;   /* leads, overlines, soft copy · was #586150 */
  --text-faint:#5a6450 !important;  /* micro-labels, muted · was #8b9280 */
}
[data-theme="paper"] .gbx-lead{ color:#2a3122 !important; }
[data-theme="paper"] .muted{ color:#4a5340 !important; }

/* ---------- 4 · POSITIVE FACTS read positive (not a warning) ---------- */
.gbx-chip.good{
  background:var(--signal-ghost) !important; color:var(--signal-type) !important;
  border-color:color-mix(in srgb, var(--signal-type) 45%, transparent) !important;
}
.gbx-chip.good::before{ content:"✓"; font-weight:800; margin-right:1px; }

/* ---------- 5 · buttons: crisp, high-contrast ink ---------- */
.cta.pri, .gen, .go, .pbtn.pri, button.cr-btn:not(.ghost){ color:#031009 !important; font-weight:700 !important; }
.cta.sec, .pbtn.sec, button.cr-btn.ghost{ color:var(--text) !important; }
