/* =========================================================
   USER APP — RESET CSS
   File: /user_app/assets/css/reset.css
   Purpose: Normalize browser defaults
   ========================================================= */

/* ---------------------------------------------------------
   1. Box Sizing
   --------------------------------------------------------- */

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


/* ---------------------------------------------------------
   2. Document
   --------------------------------------------------------- */

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}


/* ---------------------------------------------------------
   3. Typography
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}


/* ---------------------------------------------------------
   4. Lists
   --------------------------------------------------------- */

ul,
ol,
menu {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ---------------------------------------------------------
   5. Links
   --------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
}

a:focus {
  outline: none;
}


/* ---------------------------------------------------------
   6. Buttons & Form Controls
   --------------------------------------------------------- */

button,
input,
textarea,
select,
optgroup {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

button,
input,
select,
textarea {
  border: 0;
}

button {
  background: none;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

select {
  background-color: transparent;
}

input,
button,
textarea,
select {
  font-family: inherit;
}


/* ---------------------------------------------------------
   7. Search / Number Inputs
   --------------------------------------------------------- */

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 {
  -webkit-appearance: none;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}


/* ---------------------------------------------------------
   8. Checkboxes & Radios
   --------------------------------------------------------- */

input[type="checkbox"],
input[type="radio"] {
  margin: 0;
  padding: 0;
  accent-color: var(--color-primary);
}


/* ---------------------------------------------------------
   9. File Inputs
   --------------------------------------------------------- */

input[type="file"] {
  font: inherit;
}

input[type="file"]::file-selector-button {
  font: inherit;
}


/* ---------------------------------------------------------
   10. Media
   --------------------------------------------------------- */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  overflow: hidden;
}


/* ---------------------------------------------------------
   11. Tables
   --------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0;
  text-align: inherit;
}


/* ---------------------------------------------------------
   12. Code
   --------------------------------------------------------- */

pre,
code,
kbd,
samp {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
}

pre {
  overflow: auto;
}


/* ---------------------------------------------------------
   13. Quotes
   --------------------------------------------------------- */

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}


/* ---------------------------------------------------------
   14. Horizontal Rule
   --------------------------------------------------------- */

hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}


/* ---------------------------------------------------------
   15. Details / Summary
   --------------------------------------------------------- */

details {
  display: block;
}

summary {
  display: list-item;
  cursor: pointer;
}


/* ---------------------------------------------------------
   16. Hidden Elements
   --------------------------------------------------------- */

[hidden] {
  display: none !important;
}


/* ---------------------------------------------------------
   17. Focus Accessibility
   --------------------------------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}


/* ---------------------------------------------------------
   18. Selection
   --------------------------------------------------------- */

::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}


/* ---------------------------------------------------------
   19. Placeholder
   --------------------------------------------------------- */

::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}


/* ---------------------------------------------------------
   20. Autofill
   --------------------------------------------------------- */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  font: inherit;
}


/* ---------------------------------------------------------
   21. App Root
   --------------------------------------------------------- */

#app,
[data-app] {
  min-height: 100vh;
}


/* ---------------------------------------------------------
   22. Iframe
   --------------------------------------------------------- */

iframe {
  display: block;
  max-width: 100%;
  border: 0;
}


/* ---------------------------------------------------------
   23. Accessibility
   --------------------------------------------------------- */

[aria-hidden="true"] {
  pointer-events: none;
}


/* ---------------------------------------------------------
   24. Motion Preferences
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------------------------------------------------
   25. Print Reset
   --------------------------------------------------------- */

@media print {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }
}