/* ══════════════════════════════════════════════════════════════════════════
   NRMA WIZARD CHROME

   Deliberately NOT in styles/acts/act-tab.css.tmpl, and this file exists to
   say so. The act templates are shared: everything in them is emitted twice,
   once for NRMA and once for WUAR, with @KEY@ substituted. These selectors are
   literal `nrma-` — the 22 wizards are an NRMA surface with no WUAR twin — so
   templating them would put dead NRMA selectors into wuar-tab.css forever.

   They lived in styles/modules/nrma-tab.css for a while, which was worse: that
   file is GENERATED, so the next `npm run build:act-styles` deleted them. That
   is how they came to be here — the pre-commit hook caught the generated
   sheets drifting from their templates and the hand-edits were the drift.
   ══════════════════════════════════════════════════════════════════════════ */

/* The wizards build their inputs with inline style objects and never set a
   background on <select>/<input>/<textarea>. In light mode that is invisible:
   the UA default is white and inherited text is near-black. In DARK the control
   keeps the UA's light surface while `color` inherits the theme's near-white —
   white on white, measured at 1.00:1 on /nrma/NR-18, where the three <select>s
   a reader has to fill in and the Back button were literally invisible.

   One rule rather than ~400 inline edits, and with no importance override: an
   inline style already outranks a stylesheet rule, so every wizard that DOES
   set its own background (the brand-coloured action buttons) keeps it. This
   reaches only the controls that were never given one — exactly the broken set. */
[class^="nrma-"] select,
[class^="nrma-"] input:not([type="checkbox"]):not([type="radio"]),
[class^="nrma-"] textarea {
  background: var(--guide-color-surface);
  color: var(--guide-color-text-primary);
  border-color: var(--guide-color-border-default);
}
[class^="nrma-"] select option {
  background: var(--guide-color-surface);
  color: var(--guide-color-text-primary);
}

/* A panel that sets its own background must set the paired text colour. It
   never did, and the surface it mounts into paints text rgba(255,255,255,0.92)
   for the dark atlas chrome — so a cream panel inherited near-white type at
   1.15:1 in LIGHT mode, the default theme, on all 23 panels. Pairing the two on
   the element that owns the background is the fix; both values flip together. */
.nrma-tool-panel {
  color: var(--guide-color-text-primary);
}
