/* ============================================================
   Bourse Prep appearance: V1 ships Light only
   ------------------------------------------------------------
   Dark and System are switched off for launch. The complete dark
   implementation is parked, unchanged, in
   assets/_parked-dark-theme.css.txt, together with a note on the
   unexplained cascade problem that stopped it shipping.

   This file now contains only what Light mode needs: the semantic
   token aliases, the status colour pairs, and the rule that keeps
   text readable on brand-dark surfaces such as the hero.

   There is deliberately no prefers-color-scheme block. A visitor
   whose operating system is in dark mode gets the Light Bourse
   Prep appearance, which is the one that has been designed and
   checked.
   ============================================================ */


:root{
  /* Semantic names for new work. These follow the theme. */
  --bg:            var(--paper);
  --surface:       var(--white);
  --surface-2:     var(--paper-2);
  --surface-raised:var(--white);
  --text:          var(--ink);
  --text-soft:     var(--ink-soft);
  --text-muted:    var(--ink-faint);
  --border-subtle: var(--line);
  --border-strong: var(--line);
  --brand:         var(--navy-700);
  --accent:        var(--gold-500);
  --accent-strong: var(--gold-600);
  --focus:         var(--gold-500);

  --success:#12603C; --success-bg:#F1FAF5; --success-line:#A6D9BF;
  --warning:#8A5A00; --warning-bg:#FFF7EC; --warning-line:#E8C48A;
  --danger:#8C1D18;  --danger-bg:#FDF3F2;  --danger-line:#E9B7B3;

  color-scheme: light;
}
/* Status blocks read the semantic pairs rather than hard coded values,
   so a change to the palette reaches all of them at once. */
.err{background:var(--danger-bg);border-color:var(--danger-line);color:var(--danger)}
.ok{background:var(--success-bg);border-color:var(--success-line);color:var(--success)}
.opt.right{border-color:var(--success-line);background:var(--success-bg)}
.opt.wrong{border-color:var(--danger-line);background:var(--danger-bg)}
:root{ --on-accent:#ffffff; }
/* Text that sits on a brand-dark surface must stay light in BOTH
   themes. These were reading --white, which is correct now that
   --white is white again, but naming them makes the intent explicit
   and survives the next person editing the palette. */
.hero h1,.page-hero h1,.band-navy h2,.band-navy .card h3,
footer.site h4,.price-card.featured h3,.price-card.featured .price-amount{
  color:var(--on-brand,#fff);
}
