/*
 * TAG Legal Desk v2.1, J150 (29 Sep 2026): many more colours and the patterns (js\v21_colours_more.js holds the data).
 * The Director: "ofcourse add alot more colours for them to buy too and even patterns army camo and hearts and denimn
 * and pinsrtipe and stuff and that is also their mouse colour aswell".
 *   1. The eleven new effect colours: only their colours here (--fx1 deep, --fx2 middle, --fx3 bright, --fx4 highlight,
 *      --fxg glow, --fxs spark); the moving parts are their family's own in styles\v21_colours_fx.css. Sunset (a
 *      special) has a slow flow of its own, built on the same layers and keyframes.
 *   2. The patterns. js\v21_colours_more.js puts each pattern's tile on the root through the CSSOM as a data: image
 *      (--v21ptimg-<key>) with its size (--v21pts-<key>); each pattern's class maps them to --v21pt and --v21pt-s, and
 *      --v21pt-c is its plain colour. A pattern is worn on the same effect layers as any effect colour (family
 *      .v21-fxf-pattern, put on by js\v21_colours_fx.js): the band (l1) is the pattern, a little wider than an effect's
 *      band so the pattern reads, and l2 is a soft glow of its colour. Words never sit on a pattern: an avatar keeps its
 *      plain disc under the initials, a chip and a name tag keep their solid fill, a card keeps its words clear of the
 *      edge; only a Settings swatch (no words in it) is filled with the pattern whole. Nothing about a pattern moves.
 *   3. The Canteen's samples: a plain colour's sample holds still with no sparkles; a pattern's sample shows the
 *      pattern in the disc and the band round the sample card (the real layers, js\v21_canteen.js hostReal).
 *   4. The live pointer (J122, js\v21_cursors.js): a pattern fills the arrow (an SVG pattern of the same tile, on every
 *      seat), the click ring is a ring of the pattern and the name tag has a patterned edge round its solid fill.
 * Still and plain: like every effect, a pattern shows its plain colour with Calm, the quiet states (a welfare message,
 * the quiet period, the nobody band), a day that matters, High contrast, forced colours and print (the rules in
 * styles\v21_colours_fx.css hide every layer). With reduced motion alone a pattern stays (it never moves); the moving
 * effects still go plain. Never inside a job screen, the email paper, a welfare message or the Leaving card.
 * No inline styles: classes and custom properties only (the page's policy). Every class here is an existing effect or
 * pointer class, or starts .v21pt- (new).
 */

/* ======================================================================= 1. the new effect colours */

.v21-fx-bronze_age { --fx1: #3F2A10; --fx2: #9C7443; --fx3: #CFA56B; --fx4: #F6E2BE; --fxg: #C9975A; --fxs: #F3D9A8; }
.v21-fx-copper_patina { --fx1: #1B3F34; --fx2: #3F8570; --fx3: #7FC2AA; --fx4: #D9F5EA; --fxg: #6CC0A4; --fxs: #C8F0DF; }
.v21-fx-titanium { --fx1: #2E353E; --fx2: #6E7985; --fx3: #B4BDC7; --fx4: #F2F5F8; --fxg: #A9B6C4; --fxs: #E6EDF4; }
.v21-fx-pewter { --fx1: #3E4044; --fx2: #7F8287; --fx3: #B9BCC0; --fx4: #ECEEF0; --fxg: #A7AAB0; --fxs: #E1E3E6; }
.v21-fx-antique_brass { --fx1: #4E3A12; --fx2: #A2814A; --fx3: #D4B47A; --fx4: #FBEFD0; --fxg: #D0AE6E; --fxs: #F5E3B5; }
.v21-fx-neon_green { --fx1: #0B7A00; --fx2: #2FD80F; --fx3: #D2FFC2; --fx4: #FFFFFF; --fxg: #2FD80F; --fxs: #D2FFC2; }
.v21-fx-aurora_teal { --fx1: #00735F; --fx2: #00BFA0; --fx3: #BFFFF0; --fx4: #FFFFFF; --fxg: #00BFA0; --fxs: #BFFFF0; }
.v21-fx-electric_blue { --fx1: #0A3C8C; --fx2: #2E8BFF; --fx3: #E2F0FF; --fx4: #FFFFFF; --fxg: #3D95FF; --fxs: #CFE4FF; }
.v21-fx-lava { --fx1: #5A0C00; --fx2: #E83A00; --fx3: #FF8A1F; --fx4: #FFE08A; --fxg: #FF4F12; --fxs: #FFC24D; }
.v21-fx-sunset { --fx1: #7B2D8B; --fx2: #FF6B3D; --fx3: #FFD166; --fx4: #FFF1CF; --fxg: #FF8A4C; --fxs: #FFD166; }
.v21-fx-fairy_lights { --fx1: #8A6A1E; --fx2: #E8B85A; --fx3: #FFF2CC; --fx4: #FFFFFF; --fxg: #FFD27F; --fxs: #FFB84D; }

/* Sunset: purple, orange and gold drifting slowly round the band, with a warm glow that breathes. */
.v21-fx-sunset > .v21-fx-l1 { background-image: linear-gradient(90deg, var(--fx1), var(--fx2) 30%, var(--fx3) 50%, var(--fx2) 70%, var(--fx1)); background-size: 200% 100%; animation: v21fx-flow 7s linear infinite; }
.v21-fxs-round.v21-fx-sunset > .v21-fx-l1 { background-image: conic-gradient(var(--fx1), var(--fx2), var(--fx3), var(--fx2), var(--fx1)); background-size: auto; animation: v21fx-spin 9s linear infinite; }
.v21-fxs-strip.v21-fx-sunset > .v21-fx-l1 { background-image: linear-gradient(180deg, var(--fx1), var(--fx2), var(--fx3), var(--fx2), var(--fx1)); background-size: 100% 200%; animation: v21fx-flowy 7s linear infinite; }
.v21-fx-sunset > .v21-fx-l2::before { opacity: .6; animation: v21fx-breathe 5s ease-in-out infinite; }

/* ======================================================================= 2. the patterns */

/* Each pattern: its image and size (put on the root by js\v21_colours_more.js), its plain colour and its glow. */
.v21-fx-pattern_camo, .v21cur-e-pattern_camo { --v21pt: var(--v21ptimg-camo); --v21pt-s: var(--v21pts-camo); --v21pt-c: #4B5320; --fxg: #9CA56A; --fxs: #9CA56A; }
.v21-fx-pattern_desert_camo, .v21cur-e-pattern_desert_camo { --v21pt: var(--v21ptimg-desert_camo); --v21pt-s: var(--v21pts-desert_camo); --v21pt-c: #6E5634; --fxg: #C2A67A; --fxs: #C2A67A; }
.v21-fx-pattern_hearts, .v21cur-e-pattern_hearts { --v21pt: var(--v21ptimg-hearts); --v21pt-s: var(--v21pts-hearts); --v21pt-c: #CE2965; --fxg: #FF5C8D; --fxs: #FF5C8D; }
.v21-fx-pattern_denim, .v21cur-e-pattern_denim { --v21pt: var(--v21ptimg-denim); --v21pt-s: var(--v21pts-denim); --v21pt-c: #3B5B8C; --fxg: #7C98CD; --fxs: #7C98CD; }
.v21-fx-pattern_pinstripe, .v21cur-e-pattern_pinstripe { --v21pt: var(--v21ptimg-pinstripe); --v21pt-s: var(--v21pts-pinstripe); --v21pt-c: #2A3654; --fxg: #8D96B7; --fxs: #8D96B7; }
.v21-fx-pattern_tartan, .v21cur-e-pattern_tartan { --v21pt: var(--v21ptimg-tartan); --v21pt-s: var(--v21pts-tartan); --v21pt-c: #1D5C3A; --fxg: #65A47D; --fxs: #65A47D; }
.v21-fx-pattern_polka, .v21cur-e-pattern_polka { --v21pt: var(--v21ptimg-polka); --v21pt-s: var(--v21pts-polka); --v21pt-c: #D22848; --fxg: #FF5B6D; --fxs: #FF5B6D; }
.v21-fx-pattern_leopard, .v21cur-e-pattern_leopard { --v21pt: var(--v21ptimg-leopard); --v21pt-s: var(--v21pts-leopard); --v21pt-c: #8A5A1E; --fxg: #C18C4C; --fxs: #C18C4C; }
.v21-fx-pattern_zebra, .v21cur-e-pattern_zebra { --v21pt: var(--v21ptimg-zebra); --v21pt-s: var(--v21pts-zebra); --v21pt-c: #2B2B2B; --fxg: #B4B4B4; --fxs: #B4B4B4; }
.v21-fx-pattern_checker, .v21cur-e-pattern_checker { --v21pt: var(--v21ptimg-checker); --v21pt-s: var(--v21pts-checker); --v21pt-c: #3A3A3A; --fxg: #A6A6A6; --fxs: #A6A6A6; }
.v21-fx-pattern_gingham, .v21cur-e-pattern_gingham { --v21pt: var(--v21ptimg-gingham); --v21pt-s: var(--v21pts-gingham); --v21pt-c: #2671B9; --fxg: #5E99E6; --fxs: #5E99E6; }
.v21-fx-pattern_houndstooth, .v21cur-e-pattern_houndstooth { --v21pt: var(--v21ptimg-houndstooth); --v21pt-s: var(--v21pts-houndstooth); --v21pt-c: #4A433D; --fxg: #A39C96; --fxs: #A39C96; }
.v21-fx-pattern_paisley, .v21cur-e-pattern_paisley { --v21pt: var(--v21ptimg-paisley); --v21pt-s: var(--v21pts-paisley); --v21pt-c: #7A1F3D; --fxg: #E08AA3; --fxs: #E08AA3; }
.v21-fx-pattern_galaxy, .v21cur-e-pattern_galaxy { --v21pt: var(--v21ptimg-galaxy); --v21pt-s: var(--v21pts-galaxy); --v21pt-c: #5A45B0; --fxg: #A185F4; --fxs: #A185F4; }
.v21-fx-pattern_woodgrain, .v21cur-e-pattern_woodgrain { --v21pt: var(--v21ptimg-woodgrain); --v21pt-s: var(--v21pts-woodgrain); --v21pt-c: #7A4F26; --fxg: #C28C5D; --fxs: #C28C5D; }
.v21-fx-pattern_zigzag, .v21cur-e-pattern_zigzag { --v21pt: var(--v21ptimg-zigzag); --v21pt-s: var(--v21pts-zigzag); --v21pt-c: #1F3A5F; --fxg: #8297C3; --fxs: #8297C3; }
.v21-fx-pattern_waves, .v21cur-e-pattern_waves { --v21pt: var(--v21ptimg-waves); --v21pt-s: var(--v21pts-waves); --v21pt-c: #1474AC; --fxg: #529DD8; --fxs: #529DD8; }
.v21-fx-pattern_honeycomb, .v21cur-e-pattern_honeycomb { --v21pt: var(--v21ptimg-honeycomb); --v21pt-s: var(--v21pts-honeycomb); --v21pt-c: #996200; --fxg: #C98A00; --fxs: #C98A00; }
.v21-fx-pattern_rainbow, .v21cur-e-pattern_rainbow { --v21pt: var(--v21ptimg-rainbow); --v21pt-s: var(--v21pts-rainbow); --v21pt-c: #7A4FC9; --fxg: #AD7DFD; --fxs: #AD7DFD; }

/* The band is the pattern (a solid colour under it while the image loads), wider than an effect's band so it reads. */
.v21-fxf-pattern > .v21-fx-l1 {
  background-color: var(--v21pt-c, #505768);
  background-image: var(--v21pt, none);
  background-size: var(--v21pt-s, 12px 12px);
  background-repeat: repeat;
  animation: none;
}
.v21-fxf-pattern > .v21-fx-l1::before, .v21-fxf-pattern > .v21-fx-l1::after { display: none; }
.v21-fxf-pattern > .v21-fx-l2::before { opacity: .5; }
.v21-fxf-pattern.v21-fxs-round { --fx-ob: 4px; --fx-hb: 6px; }
.av-sm.v21-fxf-pattern.v21-fxs-round, .peer-b.v21-fxf-pattern.v21-fxs-round { --fx-ob: 3px; --fx-hb: 4px; }
.av-lg.v21-fxf-pattern.v21-fxs-round { --fx-ob: 6px; --fx-hb: 8px; }
.v21-fxf-pattern.v21-fxs-box { --fx-bw: 4px; }
.v21-fxf-pattern.v21-fxs-pill { --fx-o: 3px; --fx-bw: 3px; --fx-halo: 5px; }
.v21-fxs-strip.v21-fxf-pattern > .v21-fx-l1 { width: 7px; }
.card.closer.v21-fxs-strip.v21-fxf-pattern > .v21-fx-l1 { left: 3px; }
/* A Settings swatch has no words in it: the whole disc is the pattern (the tick sits on top of it). */
.v21-fxw-dot.v21-fxf-pattern > .v21-fx-l1 { inset: 0; border: 0; -webkit-mask: none; mask: none; }
/* Its tick stays readable on a light tile (gingham, chequerboard, zebra, houndstooth): white with a dark shadow. */
.v21-dc-dot.v21-fxf-pattern > svg { position: relative; z-index: 3; color: #FFFFFF; filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
/* A line of words (the sending card's "Sent by" line): a patterned underline, no spark. */
.v21-fxn.v21-fxf-pattern::after { height: 4px; bottom: -5px; background-color: var(--v21pt-c, #505768); background-image: var(--v21pt, none); background-size: var(--v21pt-s, 12px 12px); animation: none; }
.v21-fxn.v21-fxf-pattern::before { display: none; }

/* Reduced motion alone: a pattern never moves, so it stays (only the moving effects go plain). Everything else that
   makes the desk still or quiet (Calm, a welfare message, the quiet period, the nobody band, a day that matters, High
   contrast) keeps the plain colour, as do forced colours and print (this rule is for the screen in normal colours). */
@media screen and (forced-colors: none) {
  :root[data-motion="reduced"]:not([data-calm="on"]):not([data-quiet="on"]):not([data-v21-welfare="on"]):not([data-day-matters]):not([data-theme="high_contrast"]) .v21-fxf-pattern > .v21-fx-l1 { display: block !important; }
}
@media screen and (forced-colors: none) and (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]):not([data-calm="on"]):not([data-quiet="on"]):not([data-v21-welfare="on"]):not([data-day-matters]):not([data-theme="high_contrast"]) .v21-fxf-pattern > .v21-fx-l1 { display: block !important; }
}
/* Never here, whatever put the class there (the rule above must not bring a pattern back inside these). Each selector
   starts :root:not(#v21pt-never), an id's weight (no element has that id), so it outranks the reduced motion rule. */
:root:not(#v21pt-never) #job-layer .v21-fxf-pattern > .v21-fx-l1, :root:not(#v21pt-never) .job-layer .v21-fxf-pattern > .v21-fx-l1,
:root:not(#v21pt-never) .paper .v21-fxf-pattern > .v21-fx-l1, :root:not(#v21pt-never) .v21t-paper .v21-fxf-pattern > .v21-fx-l1,
:root:not(#v21pt-never) .v21h-paper .v21-fxf-pattern > .v21-fx-l1, :root:not(#v21pt-never) .tq-paper .v21-fxf-pattern > .v21-fx-l1,
:root:not(#v21pt-never) #wf-layer .v21-fxf-pattern > .v21-fx-l1, :root:not(#v21pt-never) #wf-slot .v21-fxf-pattern > .v21-fx-l1,
:root:not(#v21pt-never) .wf-over .v21-fxf-pattern > .v21-fx-l1, :root:not(#v21pt-never) .wf-band .v21-fxf-pattern > .v21-fx-l1,
:root:not(#v21pt-never) .band-welfare .v21-fxf-pattern > .v21-fx-l1,
:root:not(#v21pt-never) #leave-root .v21-fxf-pattern > .v21-fx-l1, :root:not(#v21pt-never) .leaving .v21-fxf-pattern > .v21-fx-l1 { display: none !important; }

/* ======================================================================= 3. the Canteen's samples */

/* A plain colour: the sample holds still, in its plain colour, with no sparkles round it. */
.v21cs-stage[data-fam="plain"] .v21cs-fx, .v21cs-stage[data-fam="plain"] .v21cs-aura, .v21cs-stage[data-fam="plain"] .v21cs-sheen,
.v21cs-stage[data-fam="pattern"] .v21cs-fx, .v21cs-stage[data-fam="pattern"] .v21cs-aura, .v21cs-stage[data-fam="pattern"] .v21cs-sheen { display: none; }
.v21cs-stage[data-fam="plain"] .v21cs-orb-in { background: var(--cs-plain, var(--cs-c2)); }
.v21cs-stage[data-fam="plain"] .v21cs-card-in { box-shadow: inset 0 0 0 3px var(--cs-c); }
/* A pattern: the sample's disc is the pattern (its band and the card's band come from the real layers). */
.v21cs-orb.v21-fxf-pattern .v21cs-orb-in { background-color: var(--v21pt-c, var(--cs-c2)); background-image: var(--v21pt, none); background-size: var(--v21pt-s, 12px 12px); }
:root[data-theme="high_contrast"] .v21cs-orb.v21-fxf-pattern .v21cs-orb-in, :root[data-calm="on"] .v21cs-orb.v21-fxf-pattern .v21cs-orb-in,
:root[data-day-matters] .v21cs-orb.v21-fxf-pattern .v21cs-orb-in, :root[data-quiet="on"] .v21cs-orb.v21-fxf-pattern .v21cs-orb-in { background-image: none; }
@media (forced-colors: active) { .v21cs-orb.v21-fxf-pattern .v21cs-orb-in { background-image: none; } }
@media print { .v21cs-orb.v21-fxf-pattern .v21cs-orb-in { background-image: none; } }

/* ======================================================================= 4. the live pointer (J122 with J150) */

/* The arrow's second fill: the pattern (js\v21_cursors.js sets its fill to the pointer's own SVG pattern). The plain
   fill and the edge under it stay, so the arrow reads on a light board and a dark one. */
.v21cur-pfill { display: none; }
.v21cur-pat .v21cur-pfill { display: inline; }
.v21cur-pat.v21cur-patoff .v21cur-pfill { display: none; }
/* The click ring: a ring of the pattern. */
.v21cur-pat:not(.v21cur-patoff) .v21cur-pulse {
  border: 3px solid transparent; box-shadow: none;
  background-color: var(--v21cur-c); background-image: var(--v21pt, none); background-size: var(--v21pt-s, 8px 8px);
  background-origin: border-box; background-clip: border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
/* The name tag: its words stay on the solid plain colour; the pattern is its edge. */
.v21cur-pat:not(.v21cur-patoff) .v21cur-tag {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--v21cur-c), var(--v21cur-c)), var(--v21pt, none);
  background-origin: padding-box, border-box; background-clip: padding-box, border-box;
  background-size: 100% 100%, var(--v21pt-s, 8px 8px); background-repeat: no-repeat, repeat;
}
/* High contrast and forced colours: the plain colour only (js\v21_cursors.js marks .v21cur-patoff there too, and over
   the email paper). */
:root[data-theme="high_contrast"] .v21cur-pfill { display: none !important; }
/* and the click ring goes plain at once, without waiting for the pointer's next frame to mark .v21cur-patoff */
:root[data-theme="high_contrast"] .v21cur-pat .v21cur-pulse { background-image: none !important; }
@media (forced-colors: active) { .v21cur-pfill { display: none !important; } }
@media print { .v21cur-pfill { display: none !important; } }
