/* NOTE (2026-10-28): the values below are now the POLARIS UI kit palette and type (assets/polaris-ui.css, --pu-*), so every
   page still built on --vi-* names renders in the same colours and faces as the landing; new work should use the kit directly.
   POLARIS public identity — "violet orbit" (owner reference: dark violet portfolio, glowing purple, glass cards, thin orbit rings).
   Single source of truth for every public page (landing, register, program, verify, resources, portals, forms, maintenance).
   Pages map their own variable names onto these tokens in their :root and use the recipes below; nothing here depends on a page.
   Dark is the default ground; [data-theme="light"] swaps to a lilac-tinted light set (portals/resources/verify keep a theme toggle). */
:root{
  /* ground */
  --vi-bg:#0B0716; --vi-bg-2:#100A1F; --vi-surface:#151026; --vi-card:#1C1532; --vi-card-2:#251C40;
  --vi-line:rgba(189,166,255,.14); --vi-line-2:rgba(189,166,255,.26);
  /* ink (all AA on --vi-bg and --vi-card: white 17:1, muted 8.9:1, faint 5.9:1) */
  --vi-text:#F7F5FC; --vi-muted:#C2BAD8; --vi-faint:#978FB2;
  /* signature */
  --vi-purple:#6C3CE0;        /* fills (white text on it = 5.5:1) */
  --vi-purple-deep:#5A2EC4;   /* pressed / gradient end (white text 7:1) */
  --vi-lilac:#BDA6FF;         /* accent TEXT / icons / borders on dark (7.2:1 on --vi-bg) */
  --vi-lilac-soft:#D9CBFF;    /* hover, highlights, small caps labels (10:1) */
  --vi-ink:#140A2C;           /* text ON lilac fills */
  --vi-glow:rgba(132,89,242,.45); --vi-glow-soft:rgba(132,89,242,.16);
  /* status (kept recognisable, tuned for AA on violet) */
  --vi-ok:#5EE0A0; --vi-warn:#FFC857; --vi-danger:#FF8F8F; --vi-wa:#25D366; --vi-wa-ink:#04210F;
  --vi-radius:20px; --vi-radius-sm:12px;
  /* faces: Polaris Sans (IBM Plex Sans Arabic + Plus Jakarta Sans) for headlines and text, see fonts-polaris.css */
  --vi-font-display:'Polaris Sans',system-ui,'Segoe UI',Tahoma,sans-serif;
  --vi-font-body:'Polaris Sans',system-ui,'Segoe UI',Tahoma,sans-serif;
  /* page ground: near-black violet with two soft radial glows */
  --vi-ground:radial-gradient(900px 560px at 88% -8%,rgba(108,60,224,.26),transparent 62%),radial-gradient(760px 520px at -4% 34%,rgba(189,166,255,.08),transparent 62%),#0B0716;
  color-scheme:dark;
}
:root[data-theme="light"]{
  --vi-bg:#F8F6FD; --vi-bg-2:#F1ECFB; --vi-surface:#FFFFFF; --vi-card:#FFFFFF; --vi-card-2:#F6F2FF;
  --vi-line:rgba(91,33,182,.14); --vi-line-2:rgba(91,33,182,.28);
  --vi-text:#160F2B; --vi-muted:#4A4263; --vi-faint:#6A6285;
  --vi-purple:#5A2EC4; --vi-purple-deep:#4C24AD;
  --vi-lilac:#5A2EC4; --vi-lilac-soft:#3E1E8C;   /* on light surfaces the "lilac" role is a deep violet (8:1 on white) */
  --vi-ink:#FFFFFF;
  --vi-glow:rgba(109,47,216,.22); --vi-glow-soft:rgba(109,47,216,.08);
  --vi-ok:#14683F; --vi-warn:#8A5A00; --vi-danger:#B3261E;
  --vi-ground:radial-gradient(900px 520px at 88% -8%,rgba(167,139,250,.30),transparent 62%),radial-gradient(700px 480px at -4% 30%,rgba(123,63,242,.10),transparent 62%),#F6F2FF;
  color-scheme:light;
}

/* ---- recipes (opt-in classes; pages may also copy the declarations into their own selectors) ---- */
/* glass card with a hair-thin gradient border */
.vi-glass{position:relative;border-radius:var(--vi-radius);background:linear-gradient(150deg,rgba(255,255,255,.075),rgba(255,255,255,.02)) ,rgba(37,20,63,.55);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.vi-glass::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(150deg,rgba(196,181,253,.6),rgba(123,63,242,.10) 42%,rgba(196,181,253,.28));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
:root[data-theme="light"] .vi-glass{background:rgba(255,255,255,.78)}
/* primary action: solid purple, white text, soft glow */
.vi-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 28px;border:0;border-radius:999px;font-family:var(--vi-font-display);font-weight:700;font-size:16px;color:#fff;background:linear-gradient(135deg,var(--vi-purple-deep),var(--vi-purple));box-shadow:0 18px 40px -16px var(--vi-glow),inset 0 1px 0 rgba(255,255,255,.28);cursor:pointer;text-decoration:none;transition:transform .18s,box-shadow .18s,filter .18s}
.vi-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
.vi-btn:active{transform:none}
.vi-btn.ghost{background:transparent;color:var(--vi-text);border:1px solid var(--vi-line-2);box-shadow:none}
.vi-btn.ghost:hover{border-color:var(--vi-lilac);background:var(--vi-glow-soft)}
:focus-visible{outline-color:var(--vi-lilac)}
/* the brand's signature graphic: thin orbit rings around the Polaris compass-star. Use as a background layer; rotate slowly when motion is allowed. */
.vi-orbit{position:absolute;pointer-events:none;aspect-ratio:1;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23C4B5FD'/%3E%3Cstop offset='1' stop-color='%237B3FF2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='200' cy='200' r='194' stroke='url(%23g)' stroke-opacity='.55' stroke-width='1'/%3E%3Cellipse cx='200' cy='200' rx='194' ry='74' transform='rotate(-24 200 200)' stroke='url(%23g)' stroke-opacity='.45' stroke-width='1'/%3E%3Ccircle cx='200' cy='200' r='132' stroke='%23A78BFA' stroke-opacity='.22' stroke-width='1' stroke-dasharray='2 7'/%3E%3Cpath d='M200 128l9 63 63 9-63 9-9 63-9-63-63-9 63-9z' fill='%23C4B5FD' fill-opacity='.16' stroke='%23C4B5FD' stroke-opacity='.5'/%3E%3Ccircle cx='356' cy='132' r='4' fill='%23C4B5FD'/%3E%3Ccircle cx='58' cy='262' r='3' fill='%23A78BFA'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion: no-preference){ .vi-orbit.spin{animation:viSpin 120s linear infinite} }
@keyframes viSpin{to{transform:rotate(360deg)}}
