/**
 * @file
 * Skip link
 *
 * Allows keyboard users to quickly skip to the main content of the page.
 */

:root {
  --skip-link-bg-color: var(--color-gray-800);
  --skip-link-color: var(--color-white);
  --skip-link-active-bg-color: var(--color-gray);
}

.skip-link {
  z-index: 50;
  left: 50%;
  padding: 1px 10px 2px;
  transform: translateX(-50%);
  color: var(--skip-link-color);
  border-radius: 0 0 10px 10px;
  background: var(--skip-link-bg-color);
  font-size: 0.94em;
  &:hover,
  &:active {
    color: var(--skip-link-color);
    background-color: var(--skip-link-active-bg-color);
  }
  &:focus {
    text-decoration: none;
  }
  &.visually-hidden.focusable:focus {
    position: absolute !important;
  }
}
