/* ============================================
   ARMAGEDON TACTICAL — CSS RESET
   Modern normalize + box-sizing reset
   ============================================ */

/* 1. Use a more intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* 3. Allow percentage-based heights in the application */
html,
body {
  height: 100%;
}

/* 4. Improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* 6. Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Remove list styles */
ul,
ol {
  list-style: none;
}

/* 9. Remove default anchor styles */
a {
  text-decoration: none;
  color: inherit;
}

/* 10. Improve table styles */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 11. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* 12. Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/* 13. Button cursor */
button,
[role="button"],
label[for] {
  cursor: pointer;
}

/* 14. Remove fieldset border */
fieldset {
  border: none;
}

/* 15. Set sensible defaults for hr */
hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.2;
}

/* 16. Inherit font for form controls */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 17. Remove spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* 18. Remove search input default styling */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* 19. Set focus-visible for accessibility */
:focus-visible {
  outline: 2px solid #fe5014;
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* 20. Normalize hidden attribute */
[hidden] {
  display: none !important;
}

/* 21. Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* 22. Placeholder color reset */
::placeholder {
  opacity: 0.5;
}

/* 23. Selection color */
::selection {
  background-color: #fe5014;
  color: #fff;
}
