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

:root {
  font-size: var(--root-font-size);
}

@media (prefers-reduced-motion: no-preference) {

:root {
    scroll-behavior: smooth
}
  }

body {
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  line-height: var(--body-line-height);
  color: var(--body-color);
  text-align: var(--body-text-align);
  background-color: var(--body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(var(--color-black), 0);
}

hr {
  margin: var(--hr-margin-y) 0;
  color: var(hr-color);
  border: 0;
  border-top: var(--hr-border-width) solid var(--hr-border-color);
  opacity: var(--hr-opacity);
}

/* Reset margins on paragraphs */

p {
  margin-top: 0;
  margin-bottom: var(--spacer);
}

/* Abbreviations */

abbr[title] {
  text-decoration: underline;
  -webkit-text-decoration: underline dotted currentColor;
  text-decoration: underline dotted currentColor;
  cursor: help;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}

/* Address */

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

/* Lists */

:where(ol, ul) {
  padding-left: 2rem;
}

:where(ol, ul, dl) {
  margin-top: 0;
  margin-bottom: 1rem;
}

:where(ol ol, ul ul, ol ul, ul ol) {
  margin-bottom: 0;
}

dt {
  font-weight: var(--dt-font-weight, 500);
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

/* Blockquote */

blockquote {
  margin: 0 0 1rem;
}

/* Strong */

:where(b, strong) {
  font-weight: var(--font-weight-bolder);
}

:where(small, .small) {
  font-size: var(--small-font-size);
}

:where(mark, .mark) {
  padding: var(--mark-padding, 0.1875em);
  background-color: var(--highlight-bg, --color-gray-200);
}

:where(sub, sup) {
  position: relative;
  font-size: var(--sub-sup-font-size, 0.75em);
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Links */

a {
  color: var(--link-color);
  -webkit-text-decoration: var(--link-decoration);
  text-decoration: var(--link-decoration);
}

a:hover {
    color: var(--link-hover-color);
    -webkit-text-decoration: var(--link-decoration);
    text-decoration: var(--link-decoration);
  }

a:not([href]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):hover {
    color: inherit;
    text-decoration: none;
  }

/* Code */

pre,
code,
kbd,
samp {
  font-family: var(--font-family-code);
  font-size: 1em;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: var(--font-family-code);
  color: var(--pre-color, currentColor);
}

pre code {
    font-size: inherit;
    color: inherit;
    word-break: normal;
  }

code {
  font-size: var(--code-font-size, 1rem);
  color: var(--code-color, inherit);
  word-wrap: break-word;
}

kbd {
  padding: var(--kbd-padding-y, 0.1875rem) var(--kbd-padding-x, 0.375rem);
  font-size: var(--kbd-font-size, --small-font-size);
  color: var(--kbd-color, currentColor);
  background-color: var(--kbd-bg, --body-bg);
  border-radius: var(--border-radius-sm);
}

kbd kbd {
    padding: 0;
    font-size: 1em;
    font-weight: var(--nested-kbd-font-weight, inherit);
  }

/* Figures */

figure {
  margin: 0 0 1rem;
}

/* Images and content */

img,
svg {
  vertical-align: middle;
}

/* Tables */

table {
  caption-side: bottom;
  border-collapse: collapse;
}

caption {
  padding-top: var(--table-cell-padding-y, 0.5rem);
  padding-bottom: var(--table-cell-padding-y, 0.5rem);
  color: var(--table-caption-color, currentColor);
  text-align: left;
}

th {
  font-weight: var(--table-th-font-weight, --font-weight-semibold);
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

/* Forms */

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}

select:disabled {
    opacity: 1;
  }

[list]
  :not([type="date"])
  :not([type="datetime-local"])
  :not([type="month"])
  :not([type="week"])
  :not([type="time"])
  ::-webkit-calendar-picker-indicator {
  display: none !important;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled) {
    cursor: pointer;
  }

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: var(--legend-margin-bottom, 0.5rem);
  font-size: var(--legend-font-size, 1.5rem);
  font-weight: var(--legend-font-weight, bold);
  line-height: inherit;
}

legend + * {
    clear: left;
  }

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

[type="search"] {
  outline-offset: -2px;
  -webkit-appearance: textfield;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::file-selector-button {
  font: inherit;
  -webkit-appearance: button;
}

output {
  display: inline-block;
}

iframe {
  border: 0;
}

/* Summary */

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

/* Progress */

progress {
  vertical-align: baseline;
}

/* Hidden attribute */

[hidden] {
  display: none !important;
}
