/* Sunday Market Prep · the colour tokens (SMP2 phase 1 · L1 · X117). Fixed before phase 2: every Sunday builder uses ONLY these.
   The five colours come from the Sunday logo (Owner L1), plus gold for priority (shimmering gold only on the site, V1).
   Prefix --sun- (FOUTEN #153: never --ink/--mute/--panel, the site already uses those). Classes start with sun- (FOUTEN #41).
   No hex value anywhere else in sunday*.css: tests/test_web_smp1_core.py checks it, and measures every pair below (FOUTEN #164).

   Text on a token (WCAG ratio, measured):           As text on the page (--sun-bg / --sun-card):
     cyan  + ink 12.4                                  cyan 12.6 / 9.8 · mint 14.3 / 11.1 · green 11.7 / 9.1
     mint  + ink 14.0                                  gold 14.1 / 10.9 · amber 12.0 / 9.3 · red 7.7 / 5.9
     green + ink 11.5                                  blue 5.8 on --sun-bg only (4.5 on a card: use --sun-sky there)
     blue  + ink 5.7  (never white: 3.2)               sky 10.2 / 7.9 · text 18.4 / 14.3 · mute 10.9 / 8.5
     deep  + text 9.3 (a background only, never text)
     gold  + ink 13.9 · amber + ink 11.8 · red + ink 7.5 */
:root{
  /* the five Sunday colours (L1) */
  --sun-cyan:#5EE6D8;
  --sun-mint:#7CF5B8;
  --sun-green:#2EE59D;
  --sun-blue:#3D8BFF;
  --sun-deep:#214283;
  /* priority (V1, gold: shimmering on the site only) */
  --sun-gold:#F3DC8C;
  --sun-gold-deep:#A87A22;
  /* the page and its text */
  --sun-bg:#03101A;
  --sun-bg2:#071C2B;
  --sun-card:#0B2A3C;
  --sun-glass:rgba(11,42,60,.62);
  --sun-line:rgba(94,230,216,.24);
  --sun-line2:rgba(94,230,216,.45);
  --sun-text:#E8FFFB;
  --sun-mute:#A9C9CF;
  --sun-ink:#02131B;
  --sun-sky:#8CC0FF;
  /* direction (FOUTEN #43: bullish green, bearish red, wait amber) */
  --sun-long:#2EE59D;
  --sun-short:#FF7A86;
  --sun-wait:#FFC266;
  /* the three gradients every Sunday page uses */
  --sun-grad-title:linear-gradient(100deg,#E8FFFB 0%,#5EE6D8 46%,#7CF5B8 72%,#2EE59D 100%);
  --sun-grad-card:linear-gradient(160deg,rgba(33,66,131,.55) 0%,rgba(11,42,60,.72) 55%,rgba(46,229,157,.10) 100%);
  --sun-grad-gold:linear-gradient(100deg,#BC8E32 0%,#F3DC8C 40%,#FFF3C4 50%,#F3DC8C 62%,#BC8E32 100%);
  --sun-glow:0 0 0 1px rgba(94,230,216,.22),0 18px 60px -24px rgba(94,230,216,.45);
  /* the page background, one layer over the whole Sunday section (end master, lead finding: the site's smoke canvas is one
     screen high, so the page showed a hard line where it ended; m-sun-before has one calm field with a fine grid) */
  --sun-grad-page:radial-gradient(1100px 620px at 88% -8%,rgba(94,230,216,.20),transparent 62%),radial-gradient(900px 700px at -12% 18%,rgba(61,139,255,.22),transparent 60%),radial-gradient(900px 600px at 50% 105%,rgba(46,229,157,.14),transparent 62%),linear-gradient(180deg,#020A13 0%,#020A13 100%);
  --sun-grid:linear-gradient(rgba(94,230,216,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(94,230,216,.05) 1px,transparent 1px);
  --sun-radius:22px;
  /* SMP2 phase 4 · the 1:1 port of the approved mockups (m-sun-before, m-sun-states, m-sun-live, m-sun-countdown,
     m-which-class, the theme kit S/smp2/kit.py). Every value below is the mockup's own; the page CSS only names them. */
  --sun-ink0:#020A13;
  --sun-navy:#0A2440;
  --sun-cyan2:#9FF5EC;
  --sun-ice:#E6FFFB;
  --sun-lead:#C9DDE6;
  --sun-when-c:#CFE9EF;
  --sun-violet:#A77BFF;
  --sun-violet-hi:#D9C8FF;
  --sun-amber:#FFB547;
  --sun-amber-hi:#FFD9A0;
  --sun-red:#FF5C6C;
  --sun-bear:#FFB0B8;
  --sun-bull:#8BFFD0;
  --sun-blue-hi:#B9D5FF;
  --sun-gold-mid:#D6B04A;
  --sun-gold-hi:#FFF3C4;
  --sun-ink-gold:#140F03;
  --sun-ink-go:#022015;
  --sun-ink-cy:#03211F;
  --sun-ink-on-cyan:#03211F;   /* SMP2 phase 9 · X118: text on cyan, mint or green is always this dark ink (12.4:1 on cyan), never white (1.6:1) */
  --sun-ink-bl:#021029;
  --sun-ink-av:#03141C;
  --sun-shadow:#000000;
  --sun-chart:#0B0F17;
  --sun-ring-in:#0A1626;
  --sun-grad-mega-c:linear-gradient(180deg,#E6FFFB 0%,#5EE6D8 46%,#2EE59D 78%,#3D8BFF 100%);
  --sun-grad-mega-g:linear-gradient(180deg,#FFF3C4,#F3DC8C 35%,#D6B04A 70%,#A87A22);
  --sun-mega-3d:0 1px 0 #9FCFD0,0 2px 0 #6AA9B0,0 3px 0 #3F7F8C,0 4px 0 #24566A,0 16px 40px rgba(0,0,0,.6);
  --sun-mega-c-drop:drop-shadow(0 4px 0 #0D4B55) drop-shadow(0 18px 34px rgba(94,230,216,.35));
  --sun-mega-g-drop:drop-shadow(0 4px 0 #5A3D0B) drop-shadow(0 18px 34px rgba(214,176,74,.3));
  --sun-big-drop:drop-shadow(0 8px 0 #0B4650) drop-shadow(0 30px 60px rgba(94,230,216,.4));
  --sun-grad-big:linear-gradient(180deg,#FFFFFF,#9FF5EC 40%,#2EE59D 75%,#3D8BFF);
  --sun-grad-ice:linear-gradient(180deg,#E6FFFB,#5EE6D8);
  --sun-grad-ice-mint:linear-gradient(180deg,#E6FFFB,#2EE59D);
  --sun-grad-ice-blue:linear-gradient(180deg,#E6FFFB,#3D8BFF);
  --sun-grad-ice-gold:linear-gradient(180deg,#FFF3C4,#D6B04A);
  --sun-grad-go:linear-gradient(180deg,#7CF5B8,#2EE59D);
  --sun-grad-cy:linear-gradient(180deg,#9FF5EC,#5EE6D8);
  --sun-grad-bl:linear-gradient(180deg,#7DB2FF,#3D8BFF);
  --sun-grad-gd:linear-gradient(180deg,#F3DC8C,#D6B04A);
  --sun-grad-shim:linear-gradient(100deg,#BC8E32 0%,#F3DC8C 30%,#FFF8DC 45%,#F3DC8C 60%,#BC8E32 100%);
  --sun-card-bg:linear-gradient(180deg,rgba(10,36,64,.62),rgba(4,18,32,.78));
  --sun-card-edge:linear-gradient(140deg,rgba(94,230,216,.55),rgba(61,139,255,.12) 40%,rgba(46,229,157,.38));
  --sun-card-shadow:0 30px 60px -30px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.05);
  --sun-nx-bg:radial-gradient(420px 260px at 85% 0%,rgba(94,230,216,.35),transparent 60%),radial-gradient(380px 300px at 0% 100%,rgba(61,139,255,.35),transparent 60%),linear-gradient(180deg,#0B2A48,#051424);
  --sun-nx-edge:linear-gradient(140deg,#9FF5EC,rgba(61,139,255,.3) 45%,#2EE59D);
  --sun-nx-soon-bg:radial-gradient(420px 260px at 85% 0%,rgba(46,229,157,.45),transparent 60%),radial-gradient(380px 300px at 0% 100%,rgba(94,230,216,.35),transparent 60%),linear-gradient(180deg,#0B3A40,#04201F);
  --sun-nx-soon-edge:linear-gradient(140deg,#7CF5B8,#5EE6D8 45%,#3D8BFF);
  --sun-nx-live-bg:radial-gradient(420px 260px at 85% 0%,rgba(46,229,157,.5),transparent 60%),linear-gradient(180deg,#073A2C,#03190F);
  --sun-nx-live-edge:linear-gradient(140deg,#7CF5B8,#2EE59D 45%,#5EE6D8);
  --sun-nx-end-bg:radial-gradient(420px 260px at 85% 0%,rgba(167,123,255,.35),transparent 60%),linear-gradient(180deg,#120F33,#070618);
  --sun-nx-end-edge:linear-gradient(140deg,#A77BFF,rgba(61,139,255,.3) 45%,#5EE6D8);
  --sun-pulse:radial-gradient(circle,#7CF5B8,#2EE59D 60%,#0A3A2A);
  --sun-pk-bg:linear-gradient(180deg,rgba(214,176,74,.10),rgba(4,18,32,.8));
  --sun-pk-edge:linear-gradient(140deg,rgba(243,220,140,.7),rgba(214,176,74,.1) 50%,rgba(243,220,140,.4));
  --sun-pkv-bg:linear-gradient(180deg,rgba(167,123,255,.12),rgba(4,18,32,.8));
  --sun-pkv-edge:linear-gradient(140deg,rgba(167,123,255,.7),rgba(167,123,255,.1) 50%,rgba(94,230,216,.4));
  --sun-stage-bg:radial-gradient(600px 300px at 50% 0%,rgba(46,229,157,.25),transparent 60%),#04131F;
  --sun-slot-bg:linear-gradient(180deg,rgba(214,176,74,.14),rgba(4,18,32,.8));
  --sun-cdn-glow:conic-gradient(from 200deg at 50% 50%,rgba(94,230,216,0),rgba(94,230,216,.28),rgba(61,139,255,.2),rgba(46,229,157,.25),rgba(94,230,216,0));
  --sun-cc-bg:#05101C;
  --sun-cc-bg2:#040B14;
  --sun-sunart:radial-gradient(300px 200px at 70% 20%,rgba(94,230,216,.4),transparent 60%),#04192B;
  --sun-av0:radial-gradient(circle at 30% 25%,#E3A3FF,#A77BFF 55%,#533D7F);
  --sun-av1:radial-gradient(circle at 30% 25%,#FFA2D0,#FF7AA8 55%,#7F3D54);
  --sun-av2:radial-gradient(circle at 30% 25%,#FFDD6F,#FFB547 55%,#7F5A23);
  --sun-av3:radial-gradient(circle at 30% 25%,#DBFFFF,#9FF5EC 55%,#4F7A76);
  --sun-av4:radial-gradient(circle at 30% 25%,#79B3FF,#3D8BFF 55%,#1E457F);
  --sun-av5:radial-gradient(circle at 30% 25%,#B8FFE0,#7CF5B8 55%,#3E7A5C);
  --sun-av6:radial-gradient(circle at 30% 25%,#9AFFFF,#5EE6D8 55%,#2F736C);
  --sun-tl:linear-gradient(90deg,#3D8BFF,#5EE6D8,#2EE59D,#D6B04A,#A77BFF);
  --sun-rib:linear-gradient(180deg,#7CF5B8,#2EE59D);
  --sun-hat:#0D2B47;
  --sun-hat2:#041222;
  /* SMP2 phase 8: m-sun-stats, m-sun-archive, m-sun-leader, m-promo (the mockup's own values) */
  --sun-fr:#06111D;
  --sun-bronze-hi:#FFD0A0;
  --sun-bronze:#C9803A;
  --sun-silver:linear-gradient(180deg,#E6FFFB,#9DBACB);
  --sun-route:linear-gradient(90deg,#5EE6D8,#D6B04A,#A77BFF,#3D8BFF);
}
/* R4 LD-4: the ambassador who invited you, with their rank (live from the counted friends) */
.sun-amb-rank{display:inline-block;margin-left:10px;padding:4px 10px;border-radius:999px;font:700 11px/1.2 var(--mono,monospace);letter-spacing:.08em;vertical-align:middle;color:var(--sun-gold);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sun-gold-mid) 55%,transparent);background:color-mix(in srgb,var(--sun-gold-mid) 8%,transparent)}
