/* CSS Reset from EDS/Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

ul,
ol {
  padding-left: 0;
  margin: 0;
  list-style-position: inside;
}

/* Body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
}

/* Images */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Anchor tags */
a {
  text-decoration: none;
  color: inherit;
}

/* Buttons */
button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Inputs and form controls */
input,
textarea,
select,
button {
  font: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  border-radius: 0;
}


/* Remove built-in input styles */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  margin: 0;
}

/* Remove focus outlines only when using mouse */
:focus-visible {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 2px;
}

/* Disable default quotes on blockquotes */
blockquote,
q {
  quotes: none;
}

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

/* hr clean style */
hr {
  border: none;
  border-top: 1px solid var(--neutral-200);
  margin: 20px 0;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Remove iframe border */
iframe {
  border: 0;
}

/* Selection highlight */
::selection {
  background: var(--color-brand-500);
  color: #fff;
}

/* Ensure videos, canvas scale properly */
canvas,
video {
  max-width: 100%;
}

/* Prevent text overflow */
p,
li,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul li > p:first-child,
ol li > p:first-child {
  display: inline;
}

/* Remove default padding from fieldset and legend */
fieldset {
  padding: 0;
  border: none;
}

/* Common utility */
.hidden {
  display: none !important;
}