@use 'variables' as v;

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  direction: ltr;
}

// Prevent PrimeVue or any third-party library from flipping link layout
a {
  direction: ltr;
  unicode-bidi: normal;
}

body {
  font-family: v.$font-family;
  font-size: v.$font-size-base;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 150ms ease, color 150ms ease;
}

a {
  color: v.$primary-medium;
  text-decoration: none;

  &:hover { color: v.$primary; text-decoration: none; }
}

img { max-width: 100%; display: block; }

button { cursor: pointer; font-family: inherit; }

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

// Utility helpers
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.text-muted      { color: v.$gray-500; }
.text-sm         { font-size: v.$font-size-sm; }
.text-xs         { font-size: v.$font-size-xs; }
.font-medium     { font-weight: 500; }
.font-semibold   { font-weight: 600; }
.font-bold       { font-weight: 700; }
