/* ============================================================
   RESET.CSS
   eIAWS — Enterprise Integrated Aviation Weather System
   I.M. Systems Group
   Modern minimal reset — replaces Tailwind's base/preflight
   ============================================================ */

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

/* Document */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  font-feature-settings: normal;
  scroll-behavior: smooth;
}

body {
  line-height: inherit;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

img, video {
  height: auto;
}

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

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

button, select {
  text-transform: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: var(--text-muted);
}

/* Remove default outline — components define their own focus styles */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Misc */
hr {
  height: 0;
  color: inherit;
  border-top: 1px solid var(--border-color);
}

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

b, strong {
  font-weight: bolder;
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
  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; }

summary {
  display: list-item;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}
