/* =========================================================
   Minimal Reboot (Lightning-friendly)
   ========================================================= */

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

/* Reset margin */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Body base */
body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* Lists */
ul,
ol {
  padding: 0;
  list-style: none;
}

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

/* Media */
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Forms */
input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Links */
a {
  text-decoration-skip-ink: auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--vk-color-primary, #2d6cdf);
  outline-offset: 2px;
}

/* Smooth scroll */
html:focus-within {
  scroll-behavior: smooth;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0s;
    animation-iteration-count: 1;
    transition-duration: 0s;
  }

}