/*
 * TAG Legal Desk v2.1, J146 (29 Sep 2026): the colours of Wren's new pieces (js\v21_wren_wear.js). The pieces are
 * drawn once in a hidden defs block and shown through Wren's own <use> layers, so these rules colour every copy: the
 * Grove, the Clear panel, the Canteen's card and the close up. Each fill has a soft edge so a dark piece still reads on
 * the Dark theme; High contrast turns every piece white with one black edge (as Wren's own pieces), and forced colours
 * use the system's colours. Nothing here moves.
 */

.v21ww-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

:root {
  --v21ww-edge: rgba(38, 38, 42, .38);
  --v21ww-gold: #D9A520; --v21ww-gold-hi: #F6D66B; --v21ww-gold-lo: #A87912;
  --v21ww-yellow: #F3BF16; --v21ww-yellow-hi: #FFD95A; --v21ww-yellow-lo: #D59E0B;
  --v21ww-steel: #9AA5AF; --v21ww-steel-hi: #C9D1D8;
  --v21ww-army: #5D6E3B; --v21ww-army-lo: #414E27; --v21ww-army-hi: #7C8B52;
  --v21ww-horn: #EFE4C8; --v21ww-white: #FAF8F2; --v21ww-grey: #A9A395;
  --v21ww-pink: #E8699B; --v21ww-blue: #3C78C8; --v21ww-purple: #8C62C4; --v21ww-orange: #F07F2A;
  --v21ww-ruby: #C73B3B; --v21ww-ruby-lo: #8F2626; --v21ww-sapphire: #2E5FB8; --v21ww-navy: #213A66;
  --v21ww-black: #26262A; --v21ww-black-hi: #3A3A40; --v21ww-strap: #3A3A40;
  --v21ww-tan: #C89B63; --v21ww-tan-lo: #A77A45; --v21ww-brown: #6B4527;
  --v21ww-lens: #2C3947; --v21ww-glass: #BFE3F2; --v21ww-shine: #FFFFFF;
  --v21ww-flame: #F28C28; --v21ww-flame-hi: #FFD24A;
}
:root[data-theme="dark"], :root[data-v21-theme="night_shift"] { --v21ww-edge: rgba(255, 255, 255, .42); }

.v21ww-p { stroke: var(--v21ww-edge); stroke-width: .45; stroke-linejoin: round; }
.v21ww-s { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v21ww-p.v21ww-lens { opacity: .94; }
.v21ww-p.v21ww-glass { opacity: .78; }
.v21ww-p.v21ww-shine, .v21ww-s.v21ww-shine { opacity: .85; stroke: none; }
.v21ww-s.v21ww-shine { stroke: var(--v21ww-shine); }

.v21ww-p.v21ww-gold { fill: var(--v21ww-gold); } .v21ww-s.v21ww-gold { stroke: var(--v21ww-gold); }
.v21ww-p.v21ww-gold-hi { fill: var(--v21ww-gold-hi); }
.v21ww-p.v21ww-gold-lo { fill: var(--v21ww-gold-lo); }
.v21ww-p.v21ww-yellow { fill: var(--v21ww-yellow); }
.v21ww-p.v21ww-yellow-hi { fill: var(--v21ww-yellow-hi); }
.v21ww-p.v21ww-yellow-lo { fill: var(--v21ww-yellow-lo); }
.v21ww-p.v21ww-steel { fill: var(--v21ww-steel); }
.v21ww-p.v21ww-steel-hi { fill: var(--v21ww-steel-hi); }
.v21ww-p.v21ww-army { fill: var(--v21ww-army); }
.v21ww-p.v21ww-army-lo { fill: var(--v21ww-army-lo); }
.v21ww-p.v21ww-army-hi { fill: var(--v21ww-army-hi); }
.v21ww-p.v21ww-horn { fill: var(--v21ww-horn); }
.v21ww-p.v21ww-white { fill: var(--v21ww-white); }
.v21ww-s.v21ww-grey { stroke: var(--v21ww-grey); }
.v21ww-p.v21ww-pink { fill: var(--v21ww-pink); }
.v21ww-p.v21ww-blue { fill: var(--v21ww-blue); }
.v21ww-p.v21ww-purple { fill: var(--v21ww-purple); }
.v21ww-p.v21ww-orange { fill: var(--v21ww-orange); } .v21ww-s.v21ww-orange { stroke: var(--v21ww-orange); }
.v21ww-p.v21ww-ruby { fill: var(--v21ww-ruby); }
.v21ww-p.v21ww-ruby-lo { fill: var(--v21ww-ruby-lo); }
.v21ww-p.v21ww-sapphire { fill: var(--v21ww-sapphire); }
.v21ww-p.v21ww-navy { fill: var(--v21ww-navy); }
.v21ww-p.v21ww-black { fill: var(--v21ww-black); } .v21ww-s.v21ww-black { stroke: var(--v21ww-black); }
.v21ww-p.v21ww-black-hi { fill: var(--v21ww-black-hi); }
.v21ww-s.v21ww-strap { stroke: var(--v21ww-strap); }
.v21ww-p.v21ww-tan { fill: var(--v21ww-tan); }
.v21ww-p.v21ww-tan-lo { fill: var(--v21ww-tan-lo); }
.v21ww-p.v21ww-brown { fill: var(--v21ww-brown); }
.v21ww-p.v21ww-lens { fill: var(--v21ww-lens); }
.v21ww-p.v21ww-glass { fill: var(--v21ww-glass); }
.v21ww-p.v21ww-shine { fill: var(--v21ww-shine); }
.v21ww-p.v21ww-flame { fill: var(--v21ww-flame); }
.v21ww-p.v21ww-flame-hi { fill: var(--v21ww-flame-hi); }

/* High contrast: white pieces with one black edge, the lenses and the glass as solid shapes (Wren's own rule). */
:root[data-theme="high_contrast"] .v21ww-p { fill: #FFFFFF; stroke: #000000; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 1; }
:root[data-theme="high_contrast"] .v21ww-p.v21ww-lens, :root[data-theme="high_contrast"] .v21ww-p.v21ww-black { fill: #000000; }
:root[data-theme="high_contrast"] .v21ww-s { stroke: #000000; opacity: 1; }
:root[data-theme="high_contrast"] .v21ww-p.v21ww-shine, :root[data-theme="high_contrast"] .v21ww-s.v21ww-shine { display: none; }

@media (forced-colors: active) {
  .v21ww-p { fill: Canvas; stroke: CanvasText; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 1; forced-color-adjust: none; }
  .v21ww-p.v21ww-lens, .v21ww-p.v21ww-black { fill: CanvasText; }
  .v21ww-s { stroke: CanvasText; forced-color-adjust: none; }
  .v21ww-p.v21ww-shine, .v21ww-s.v21ww-shine { display: none; }
}
