@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    background-attachment: initial !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
    animation-duration: 1ms !important;
    animation-delay: -1ms !important;
    animation-iteration-count: 1 !important;

    scroll-behavior: auto !important;
  }
}

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

html {
  font-size: 16px;
  line-height: 1.4;

  scroll-padding-top: 0;
}

@media (min-width: 960px) {
  html {
    scroll-padding-top: 80px;
  }

  html.layout-home {
    scroll-padding-top: var(--vp-nav-height, 80px);
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: style weight;
  text-rendering: optimizelegibility;
  -webkit-text-size-adjust: 100%;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: var(--vp-font-family-base);
  font-weight: 400;
  line-height: 24px;
  background-color: var(--vp-c-bg);

  direction: ltr;
}

html,
body {
  color: var(--vp-c-text-1);
  transition: var(--vp-t-color);
  transition-property: color, background-color;

  scrollbar-width: thin;
}

html.bg-gray body {
  background-color: var(--vp-c-bg-alt);
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

p {
  margin: 0;
}

strong,
b {
  font-weight: 600;
}

/**
 * Avoid 300ms click delay on touch devices that support the `touch-action`
 * CSS property.
 *
 * In particular, unlike most other browsers, IE11+Edge on Windows 10 on
 * touch devices and IE Mobile 10-11 DON'T remove the click delay when
 * `<meta name="viewport" content="width=device-width">` is present.
 * However, they DO support removing the click delay via
 * `touch-action: manipulation`.
 *
 * See:
 * - http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
 * - http://caniuse.com/#feat=css-touch-action
 * - http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
 */
a,
area,
button,
[role="button"],
input,
label,
select,
summary,
textarea {
  touch-action: manipulation;
}

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

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

blockquote {
  margin: 0;
}

pre,
code,
kbd,
samp {
  font-family: var(--vp-font-family-mono);
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
}

figure {
  margin: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
optgroup,
select,
textarea {
  padding: 0;
  line-height: inherit;
  color: inherit;
  border: 0;
}

textarea {
  resize: vertical;
}

select {
  -webkit-appearance: none;
  appearance: none;
}

input {
  background-color: transparent;
}

button {
  padding: 0;
  font-family: inherit;
  background-color: transparent;
  background-image: none;
}

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

button:focus,
button:focus-visible {
  outline: 1px dotted;
  outline: 4px auto -webkit-focus-ring-color;
}

button:focus:not(:focus-visible) {
  outline: none !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

table {
  border-collapse: collapse;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: var(--vp-c-text-3);
  transition: color var(--vp-t-color);
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: var(--vp-c-text-3);
  transition: color var(--vp-t-color);
}

input::placeholder,
textarea::placeholder {
  color: var(--vp-c-text-3);
  transition: color var(--vp-t-color);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

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

fieldset {
  padding: 0;
  margin: 0;
}

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

vite-error-overlay {
  z-index: 9999;
}

mjx-container {
  display: inline-block;
  margin: auto 2px;
  vertical-align: middle;
}

mjx-container > svg {
  display: inline-block;
  margin: auto;
}
