/*
 * ABM Diagnostics — base reset.
 *
 * The Figma prototype was rendered on top of Tailwind's preflight. The theme
 * does not use Tailwind, but styles.css still assumes that baseline (zeroed
 * margins, unstyled lists, block images, inherited heading sizes), so the
 * relevant parts are reproduced here in plain CSS. Loaded before styles.css.
 */

*,
::before,
::after,
::backdrop {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
}

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

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

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

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

img,
svg,
video,
canvas,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

/* height: auto is mandatory — WordPress prints width/height attributes. */
img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
optgroup,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
  background-color: transparent;
  border-radius: 0;
}

button,
input:where([type="button"], [type="reset"], [type="submit"]) {
  appearance: button;
}

textarea {
  resize: vertical;
}

::placeholder {
  opacity: 1;
  color: color-mix(in oklab, currentcolor 50%, transparent);
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none !important;
}
