/* =====================================================
   Zyndhux Base Reset
   Scope: Global CSS reset for all Zyndhux properties
   Philosophy:
   - Neutralize browser inconsistencies
   - Preserve useful defaults
   - Avoid opinionated styling
   - Safe for enterprise-scale systems
   ===================================================== */

/* ===================== BOX MODEL ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===================== DOCUMENT ===================== */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ===================== TYPOGRAPHY ===================== */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
dl,
dd,
figure,
pre {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

b,
strong {
  font-weight: bolder;
}

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;
}

/* ===================== LINKS ===================== */
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

a:active,
a:hover {
  outline: none;
}

/* ===================== LISTS ===================== */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===================== MEDIA ===================== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  border-style: none;
}

svg {
  fill: currentColor;
}

/* ===================== FORMS ===================== */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

:-moz-focusring {
  outline: 1px dotted ButtonText;
}

:-webkit-autofill {
  box-shadow: 0 0 0px 1000px transparent inset;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* ===================== TABLES ===================== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption {
  text-align: left;
}

th {
  font-weight: inherit;
}

/* ===================== INTERACTIVE ===================== */
summary {
  display: list-item;
}

/* ===================== HIDDEN ===================== */
[hidden] {
  display: none !important;
}

/* ===================== ACCESSIBILITY ===================== */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid Highlight;
  outline-offset: 2px;
}

/* ===================== MISC ===================== */
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr[title] {
  text-decoration: underline dotted;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

pre {
  overflow: auto;
}

progress {
  vertical-align: baseline;
}

/* ===================== END RESET ===================== */
