/*
 * VK Design System · base
 * Page roots: .vk-site (public pages) and .vk-app (VE portal, document center).
 * Element defaults are wrapped in :where() so they carry no specificity: any single class
 * (.vk-btn, an app's .logout-button …) overrides them without needing a parent selector.
 */
html { scroll-behavior: smooth; }

.vk-site, .vk-app {
  margin: 0;
  min-height: 100%;
  background: var(--vk-gray-0);
  color: var(--vk-gray-90);
  font-family: var(--vk-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  word-break: keep-all;
}

.vk-app { background: var(--vk-gray-5); }

:where(.vk-site, .vk-app) * { box-sizing: border-box; }
:where(.vk-site, .vk-app) :where(a) { color: inherit; }
:where(.vk-app) :where(a) { text-decoration: none; }
.vk-site :focus-visible, .vk-app :focus-visible {
  outline: 3px solid var(--vk-focus) !important;
  outline-offset: 3px;
}
:where(.vk-site, .vk-app) :where(button, input, select, textarea) { font: inherit; }

:where(.vk-site, .vk-app) :where(a, button) { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
:where(.vk-site, .vk-app) :where(a, button):active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vk-site *, .vk-app * { scroll-behavior: auto !important; }
}

@media (max-width: 767px) {
  .vk-site, .vk-app { font-size: 16px; }
}

/* Accessibility helpers */
.vk-skip {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 0 0 var(--vk-radius-md) var(--vk-radius-md);
  background: var(--vk-gray-90);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}
.vk-skip:focus { top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
