/**
 * Universal CSS Reset
 * 
 * Resets all HTML elements to a neutral state, removing browser defaults
 * and static styles. Maintains functional properties for accessibility.
 * 
 * @package TeeqCore
 * @since 1.0.0
 */

/* ==========================================================================
   Box Sizing & Base Reset
   ========================================================================== */

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

/* ==========================================================================
   HTML & Body Reset
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   Typography Reset
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
address {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* ==========================================================================
   Links Reset
   ========================================================================== */

a {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    text-decoration: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   Lists Reset
   ========================================================================== */

ul,
ol,
li,
dl,
dt,
dd,
menu {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

/* ==========================================================================
   Images & Media Reset
   ========================================================================== */

img,
picture,
video,
canvas,
svg,
iframe,
embed,
object {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

img {
    object-fit: contain;
}

svg:not(:root) {
    overflow: visible;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

/* ==========================================================================
   Form Elements Reset
   ========================================================================== */

button,
input,
textarea,
select,
fieldset,
legend,
label,
datalist,
output,
meter,
progress {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

input[type="button"],
input[type="submit"],
input[type="reset"] {
    cursor: pointer;
}

input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

textarea {
    resize: vertical;
    overflow: auto;
}

select {
    cursor: pointer;
}

fieldset {
    border: none;
}

legend {
    padding: 0;
}

/* ==========================================================================
   Tables Reset
   ========================================================================== */

table {
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    text-align: inherit;
    vertical-align: inherit;
}

/* ==========================================================================
   Interactive Elements Reset
   ========================================================================== */

details,
summary {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

summary {
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

dialog {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

dialog::backdrop {
    background: transparent;
}

/* ==========================================================================
   Code & Pre Reset
   ========================================================================== */

code,
kbd,
samp,
pre {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

pre {
    overflow: auto;
    white-space: pre;
}

/* ==========================================================================
   HR Reset
   ========================================================================== */

hr {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    height: 0;
    width: 100%;
}

/* ==========================================================================
   Text Formatting Reset
   ========================================================================== */

b,
strong {
    font-weight: inherit;
}

i,
em {
    font-style: inherit;
}

u,
s,
strike,
del,
ins {
    text-decoration: none;
    color: inherit;
    background: transparent;
}

small,
sub,
sup {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    vertical-align: baseline;
    position: static;
}

mark {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

abbr[title] {
    text-decoration: none;
    cursor: help;
}

/* ==========================================================================
   Semantic Elements Reset
   ========================================================================== */

article,
section,
nav,
aside,
header,
footer,
main,
figure,
figcaption {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    display: block;
}

div,
span {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

/* ==========================================================================
   Hidden Elements
   ========================================================================== */

[hidden],
template,
script,
style,
param,
track,
source {
    display: none;
}

noscript {
    display: block;
}

/* ==========================================================================
   Accessibility - Focus Styles
   ========================================================================== */

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   Remove Default Spacing & Styling
   ========================================================================== */

area {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
}

map {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    display: inline;
}

time {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}