/* ============================================================
   Aurora — Base / reset
   Minimal, opinionated base so specimens & components inherit
   the brand type and rendering defaults.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background: var(--surface-app);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  margin: 0;
}

button { font-family: inherit; }

/* Tabular figures for money & account numbers */
.aurora-numeric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ============================================================
   Component interaction states
   Bundled React components can't carry :hover inline, so the
   shared states live here in the global closure.
   ============================================================ */

/* Buttons */
.aurora-btn:not(:disabled):active { transform: scale(0.97); }
.aurora-btn:not(:disabled):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.aurora-btn[data-variant="primary"]:not(:disabled):hover {
  background: var(--interactive-primary-hover) !important;
}
.aurora-btn[data-variant="secondary"]:not(:disabled):hover,
.aurora-btn[data-variant="tertiary"]:not(:disabled):hover {
  background: var(--color-glow-blue) !important;
}

/* Icon buttons / chips */
.aurora-icon-btn:not(:disabled):active { transform: scale(0.94); }
.aurora-icon-btn:not(:disabled):hover { filter: brightness(1.18); }
.aurora-icon-btn:not(:disabled):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Tappable rows & cards */
.aurora-pressable { transition: background-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.aurora-pressable:hover { background: rgba(255,255,255,0.03); }
.aurora-pressable:active { transform: scale(0.995); }

/* Quick actions */
.aurora-quick-action:active .aurora-quick-action__chip { transform: scale(0.92); }
.aurora-quick-action:hover .aurora-quick-action__chip { filter: brightness(1.18); }

/* Tab segments */
.aurora-tab { transition: color var(--duration-base) var(--ease-standard); }
.aurora-tab:hover { color: var(--text-primary); }
