/*
 * Accessibility helpers (WCAG 2.1 AA) shared by the marriage web apps.
 * Mostly affects keyboard focus and screen readers. Browsers also show the focus outline when
 * a text box gets focus by mouse click or script, replacing Bootstrap's focus glow.
 * Keep this file identical in MarriageApplicationOnline.Web and MarriageRegister.Web.
 */

/* Skip link: hidden until it receives keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 99999;
}

  .skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    z-index: 99999;
  }

/* Text for screen readers only */
.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;
}

/* Visible keyboard focus */
*:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #005fcc !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* An image used as a button keeps its original look */
.image-button {
  padding: 0;
  border: 0;
  background: none;
}
