/* App-level additions on top of the design system (css/design/*). */

/* Links inside prose must not rely on color alone (WCAG 1.4.1, BP-045): underline any
   anchor sitting in body text. Buttons, nav, logos and card-level links are exempt. */
p > a:not(.bp-btn),
span > a:not(.bp-btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Screen-reader-only text for icon-only cells (BP-047). */
.bp-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;
}

/* Skip link (WCAG 2.4.1): visually hidden until focused. */
.bp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--bp-brand);
  color: var(--bp-on-brand);
  border-radius: 0 0 var(--bp-r-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.bp-skip:focus {
  left: 0;
}
