/* ========================================
   ATK Builder - Base Styles (Optimized)
   ======================================== */

/* Global reset */
body,
html {
    max-width: 100%;
    margin: 0;
    scroll-behavior: smooth;
    line-height: inherit;
}

/* ATK Container */
.atk {
    box-sizing: border-box;
}

/* Universal reset */
.atk * {
    box-sizing: inherit;
    font-family: inherit;
    margin: 0;
    padding: 0;
}

.atk *:focus-visible {
    outline: none;
    outline-offset: 0;
}

/* Typography elements */
.atk h1,
.atk h2,
.atk h3,
.atk h4,
.atk h5,
.atk h6,
.atk p,
.atk blockquote,
.atk dd,
.atk dl,
.atk figure,
.atk hr,
.atk pre {
    color: inherit;
    vertical-align: baseline;
    white-space: pre-wrap;
    font-weight: inherit;
    font-size: inherit;
    font-style: inherit;
    line-height: inherit;
    font-family: inherit;
    letter-spacing: inherit;
}

/* List elements */
.atk ul,
.atk ol,
.atk li {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-block-start: 0;
    margin-block-end: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    vertical-align: baseline;
}

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

/* Form elements */
.atk button,
.atk input,
.atk textarea,
.atk select,
.atk optgroup {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    text-transform: none;
}

.atk [type="button"],
.atk [type="reset"],
.atk [type="submit"],
.atk button {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

.atk [role="button"] {
    cursor: pointer;
}

.atk :disabled {
    cursor: default;
}

.atk textarea {
    resize: vertical;
}

.atk fieldset {
    margin: 0;
    padding: 0;
}

.atk legend {
    padding: 0;
}

/* Placeholder styles */
.atk input::placeholder,
.atk textarea::placeholder,
.atk input::-moz-placeholder,
.atk textarea::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Media elements */
.atk img,
.atk video,
.atk audio,
.atk canvas,
.atk embed,
.atk iframe,
.atk object,
.atk svg {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
    border: none;
}

/* Table elements */
.atk table {
    border-collapse: collapse;
    border-color: inherit;
    text-indent: 0;
}

/* Browser-specific resets */
.atk :-moz-focusring {
    outline: auto;
}

.atk :-moz-ui-invalid {
    box-shadow: none;
}

.atk progress {
    vertical-align: baseline;
}

.atk ::-webkit-inner-spin-button,
.atk ::-webkit-outer-spin-button {
    height: auto;
}

.atk [type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

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

.atk ::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

.atk summary {
    display: list-item;
}

.atk [hidden] {
    display: none;
}
