/**
 * MKM Bix - CSS Reset
 * Modern CSS reset for consistent cross-browser styling
 * @package MKM_Bix
 */

/* ==================== BOX SIZING ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==================== RESET MARGINS ==================== */
* {
    margin: 0;
    padding: 0;
}

/* ==================== HTML & BODY ==================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: var(--mkm-lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==================== IMAGES & MEDIA ==================== */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    border-style: none;
}

/* ==================== FORM ELEMENTS ==================== */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

textarea {
    resize: vertical;
}

/* ==================== LINKS ==================== */
a {
    color: inherit;
    text-decoration: none;
}

/* ==================== LISTS ==================== */
ol,
ul {
    list-style: none;
}

/* ==================== TABLES ==================== */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==================== HEADINGS ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* ==================== MISC ==================== */
abbr[title] {
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family: var(--mkm-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;
}

/* ==================== HIDDEN ELEMENTS ==================== */
[hidden] {
    display: none !important;
}

/* ==================== FOCUS STYLES ==================== */
:focus {
    outline: 2px solid var(--mkm-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--mkm-primary);
    outline-offset: 2px;
}

/* ==================== SELECTION ==================== */
::selection {
    background-color: var(--mkm-primary);
    color: var(--mkm-white);
}

::-moz-selection {
    background-color: var(--mkm-primary);
    color: var(--mkm-white);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--mkm-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--mkm-gray-400);
    border-radius: var(--mkm-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mkm-gray-500);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--mkm-gray-400) var(--mkm-gray-100);
}