/* ============================================================
   REFORCE CHIPS — Modern CSS Reset
   ============================================================ */

/* 1. Box-sizing for everything */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margins and paddings */
* {
  margin: 0;
  padding: 0;
}

/* 3. Root defaults */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
}

/* 4. Body baseline */
html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 5. Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Form element inheritance */
input,
button,
textarea,
select,
optgroup {
  font: inherit;
  color: inherit;
}

/* 7. Remove default button styles */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: inherit;
}

/* 8. Remove list styles when lists have role="list" */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* 9. Anchor defaults */
a {
  color: inherit;
  text-decoration: none;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* 10. Heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: var(--line-height-tight, 1.25);
}

/* 11. Paragraph & text */
p, li, blockquote, figcaption {
  overflow-wrap: break-word;
}

/* 12. Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 13. HR */
hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.15;
}

/* 14. Hidden utility */
[hidden] {
  display: none !important;
}

/* 15. Focus-visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary, #0693E3);
  outline-offset: 2px;
}

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

/* 16. Disabled pointer events */
[disabled],
[aria-disabled="true"] {
  cursor: not-allowed;
}

/* 17. Selection color */
::selection {
  background: rgba(6, 147, 227, 0.2);
  color: inherit;
}

/* 18. Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300, #d1d5db);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400, #9ca3af);
}

/* 19. Placeholder color */
::placeholder {
  color: var(--color-gray-400, #9ca3af);
  opacity: 1;
}

/* 20. Remove number input spinners */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type='number'] {
  -moz-appearance: textfield;
}

/* 21. Remove search input clear button */
input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* 22. SVG color inheritance */
svg {
  fill: currentColor;
}

svg[stroke] {
  fill: none;
}
