/* ============================================================
   Elinom Design Language (EDL) — Brand Consistency Layer
   Applied globally across ALL Elinom modules.

   PHILOSOPHY:
   • Only touches properties that are safe to override globally.
   • Never changes layout, positioning, colours, or module-specific classes.
   • Every rule here references an EDL token variable so modules
     automatically track the design system when tokens change.
   • Scoped to additive / normalising rules only.
   File: public/elinom-design-system/css/elinom-brand.css
   ============================================================ */

/* ── Font smoothing ────────────────────────────────────── */
*,
*::before,
*::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Text selection ────────────────────────────────────── */
::-moz-selection {
  background: rgba(14, 165, 255, 0.28);
  color: inherit;
}
::selection {
  background: rgba(14, 165, 255, 0.28);
  color: inherit;
}

/* ── Scrollbar (Chromium) ──────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.30);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.55);
}

/* ── Focus ring — uniform brand focus across every module ─
   Overrides browser default only when the user is keyboard
   navigating (focus-visible), so mouse clicks are unaffected.
   ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--elinom-primary-glow, #00d4ff);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Smooth internal anchor scroll across all modules ───── */
html {
  scroll-behavior: smooth;
}

/* ── Box-sizing reset (idempotent) ─────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Consistent image handling ─────────────────────────── */
img,
svg,
video {
  max-width: 100%;
  display: block;
}

/* ── Transition utility: applied to interactive elements
   only when they don't already have a transition set.
   Uses the EDL duration/easing tokens.
   ────────────────────────────────────────────────────────── */
a,
button {
  transition-duration: var(--elinom-dur-base, 250ms);
  transition-timing-function: var(--elinom-ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
  transition-property: color, background-color, border-color, box-shadow, opacity;
}

/* ── Reduced motion: global override respecting OS setting ─ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
