/* =========================================================
   ZANCK — GLOBAL CSS RESET
   File: assets/css/reset.css

   Purpose:
   Establish a predictable, accessible, cross-browser
   baseline for the entire ZANCK website.

   Load order:
   variables.css
   reset.css
   typography.css
   layout.css
   navigation.css
   components.css
   animations.css
   responsive.css
   page-specific CSS
   ========================================================= */


/* =========================================================
   BOX SIZING
   ========================================================= */

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}


/* =========================================================
   DOCUMENT
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;   /* moved from body — clipping on body breaks position:sticky descendants */
}

body {
    margin: 0;
    padding: 0;
}


/* =========================================================
   MARGINS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
pre {
    margin: 0;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}


/* =========================================================
   LISTS
   ========================================================= */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}


/* =========================================================
   BUTTONS & FORM CONTROLS
   ========================================================= */

button,
input,
textarea,
select {
    margin: 0;
    font: inherit;
}

button,
input,
select,
textarea {
    color: inherit;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
    appearance: none;
    -webkit-appearance: none;
}

button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

textarea {
    resize: vertical;
}


/* =========================================================
   FIELDSET
   ========================================================= */

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}


/* =========================================================
   TABLES
   ========================================================= */

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* =========================================================
   MEDIA
   ========================================================= */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
    border-style: none;
}

svg {
    overflow: hidden;
}


/* =========================================================
   AUDIO / VIDEO
   ========================================================= */

audio,
video {
    vertical-align: middle;
}


/* =========================================================
   IFRAME
   ========================================================= */

iframe {
    max-width: 100%;
    border: 0;
}


/* =========================================================
   FIGURE
   ========================================================= */

figure {
    margin: 0;
}


/* =========================================================
   QUOTES
   ========================================================= */

blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: "";
    content: none;
}


/* =========================================================
   CODE
   ========================================================= */

pre,
code,
kbd,
samp {
    font-family: var(--font-mono, monospace);
    font-size: 1em;
}

pre {
    overflow: auto;
}


/* =========================================================
   HR
   ========================================================= */

hr {
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--color-border, #e6e8ec);
}


/* =========================================================
   FORM ELEMENTS
   ========================================================= */

input,
textarea,
select {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

input::placeholder,
textarea::placeholder {
    color: currentColor;
    opacity: 0.55;
}

select {
    cursor: pointer;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

input[type="search"] {
    appearance: none;
    -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   NUMBER INPUT
   ========================================================= */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   CHECKBOX / RADIO
   ========================================================= */

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    flex: 0 0 auto;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

[hidden] {
    display: none !important;
}

[aria-hidden="true"] {
    pointer-events: none;
}


/* =========================================================
   FOCUS
   ========================================================= */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary, #1e6dbb);
    outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary, #1e6dbb);
    outline-offset: 4px;
}


/* =========================================================
   TOUCH / MOBILE
   ========================================================= */

html {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
select,
label {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: var(--color-primary, #1e6dbb);
    color: #ffffff;
}

::-moz-selection {
    background: var(--color-primary, #1e6dbb);
    color: #ffffff;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}