/* SentinelWeb tokens (see DESIGN.md). Primary theme colours stay in custom.css (--neon, --page,
   --text, ...); this file adds the supporting palette and the shared motion system. Loaded by the
   site, the admin panel and the Community panel. Every colour is checked >= 4.5:1 on its canvas. */
:root,body{
  --sw-success:#4ade80;--sw-danger:#fb7185;--sw-warning:#fbbf24;--sw-info:#67e8f9;
  --sw-field-bg:rgba(0,0,0,.28);--sw-field-line:color-mix(in oklab,var(--neon) 22%,transparent);
  --sw-accent-soft:color-mix(in oklab,var(--neon) 14%,transparent);
  --sw-glow:0 0 0 4px color-mix(in oklab,var(--neon) 22%,transparent);
  --sw-danger-glow:0 0 0 4px color-mix(in oklab,var(--sw-danger) 24%,transparent);
  --sw-dur-instant:90ms;--sw-dur-fast:160ms;--sw-dur-base:240ms;--sw-dur-slow:420ms;--sw-dur-film:900ms;
  --sw-ease-out:cubic-bezier(.22,1,.36,1);--sw-ease-in-out:cubic-bezier(.65,0,.35,1);--sw-ease-spring:cubic-bezier(.34,1.56,.64,1);
  --sw-shake:4px;--sw-dir:1;
  --sw-r-field:12px;--sw-r-card:18px;--sw-r-otp:14px
}
body[data-theme="neon-purple"]{--sw-info:#7dd3fc}
body[data-theme="simple-dark"]{--sw-info:#7dd3fc}
body[data-theme="simple-light"]{
  --sw-success:#15803d;--sw-danger:#b91c1c;--sw-warning:#a16207;--sw-info:#0369a1;
  --sw-field-bg:#fff;--sw-field-line:rgba(21,128,61,.28)
}
[dir="rtl"],[dir="rtl"] body{--sw-dir:-1} /* body too: the :root,body rule above sets 1 on body */
/* Reduced motion keeps colour/state changes (durations stay) and drops movement: components read
   --sw-move (0 = no transform) and --sw-shake. */
:root,body{--sw-move:1}
@media (prefers-reduced-motion:reduce){
  :root,body{--sw-move:0;--sw-shake:0px}
}
.sw-sr{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Persian is a joined script: letter-spacing (positive or negative) pulls the joins apart, so text
   on Persian pages never has any (DESIGN.md → Type). Inputs keep theirs (LTR digits in the phone and
   code fields), and so does the monospace card number. */
:root[lang="fa"] :is(h1,h2,h3,h4,h5,h6,p,li,a,span,strong,b,small,label,button,div,dt,dd,th,td,figcaption):not(.number):not([dir="ltr"]){letter-spacing:normal}

/* SentinelWeb eye logo (Mahdi, 2026-11-16): the eye whose upper lid draws an S, with the
   shield-W in the pupil. Brand colours stay the same on every theme; only the light theme
   swaps to the dark-ink version so the lime never sits on a pale page. Favicons are unchanged. */
.brand-eye{display:block;height:38px;width:auto;aspect-ratio:760/384;flex:0 0 auto}
.brand-eye--light{display:none}
body[data-theme="simple-light"] .brand-eye--dark{display:none}
body[data-theme="simple-light"] .brand-eye--light{display:block}
.brand-word b{font-weight:inherit;color:#9be714}
body[data-theme="simple-light"] .brand-word b{color:#3f8a0c}
