/**
 * NA-Kit UI — CSS Reset
 * Modern CSS reset for consistent cross-browser rendering.
 * Based on modern-normalize + Tailwind Preflight.
 */

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

/* Remove default margins */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
figure,
figcaption,
dl, dd,
ol, ul {
  margin: 0;
  padding: 0;
}

/* Document */
html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  line-height: 1.5;
  font-family: var(--ui-font-family, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
}

body {
  margin: 0;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Links */
a {
  color: inherit;
  text-decoration: inherit;
}

/* Lists */
ol, ul, menu {
  list-style: none;
}

/* Media */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  text-indent: 0;
  border-color: inherit;
}

/* Forms */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: var(--ui-text-placeholder, #9ca3af);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--ui-focus-ring-color, #6366f1);
  outline-offset: 2px;
}

/* Misc */
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr[title] {
  text-decoration: underline dotted;
}

b, strong {
  font-weight: 700;
}

code, kbd, samp, pre {
  font-family: var(--ui-font-mono, ui-monospace, SFMono-Regular, 'Cascadia Code', 'Consolas', monospace);
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* Remove inner padding and border in Firefox */
::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* Remove the additional :invalid styles in Firefox */
:-moz-ui-invalid {
  box-shadow: none;
}

/* Remove the padding in IE 10 */
[type='checkbox'],
[type='radio'] {
  padding: 0;
}

/* Search input appearance */
[type='search'] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* File input button */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Summary */
summary {
  display: list-item;
}

/* Hidden attribute */
[hidden] {
  display: none !important;
}
