/* ==========================================================================
   CherryAI EAM Base Styles v1.0
   
   Minimal base typography and focus styles consuming tokens.
   Loaded after tokens.css, before modern.css.
   
   ADR-010: No hard-coded hex values. All colors reference tokens.css.
   ========================================================================== */

/* ==========================================================================
   FOCUS STYLES
   Consistent focus rings across all interactive elements
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Focus ring utility class */
.focus-ring:focus {
  box-shadow: var(--ring-focus);
  border-color: var(--color-focus);
}

.focus-ring:focus-visible {
  box-shadow: var(--ring-focus-visible);
  border-color: var(--color-focus);
}

/* ==========================================================================
   SELECTION STYLES
   ========================================================================== */
::selection {
  background: var(--color-brand-200);
  color: var(--color-brand-800);
}

/* ==========================================================================
   SCROLLBAR STYLES
   Subtle, premium-looking scrollbars
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-2);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-4);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-2) var(--color-surface-2);
}

/* ==========================================================================
   UTILITY: VISUALLY HIDDEN (Accessibility)
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   UTILITY: NO SCROLLBAR (for specific containers)
   ========================================================================== */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
