/* Accessibility overrides for the Google Translate widget.

   Translate injects a decorative loading spinner at the end of body:
   div.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, holding an svg with no role, no accessible name, no title
   element and no aria-hidden. The container computes position: fixed; top: -1000px; left: -1000px,
   so it is invisible - but off-screen is not hidden, and measuring it on the deployed site
   confirmed nothing removed it from the accessibility tree. That is the unlabeled "graphic" near
   the copyright line a JAWS user reported: NOVA-5912, counsel workbook row 13, WCAG 1.1.1
   Non-text Content (Level A).

   It is decorative, so removal from the tree is the correct remedy rather than alt text, and
   counsel's recommendation explicitly allows either.

   display: none is used in preference to a scripted aria-hidden because a CSS rule applies
   whether the node exists yet or not and survives Google re-creating it, with no observer to
   mis-fire. The element was already parked off-screen, so nothing changes visually and the
   language picker is unaffected.

   This lives in its own file rather than in Site.css on purpose. Site.css is served under the
   site-wide 7-day static max-age, and Azure Front Door can ignore the ?v= cache key - the same
   reason the ClaimForm scripts are served by versioned filename. A new file has no cached copy to
   serve stale, so the fix reaches returning claimants immediately.

   ViewScripts/translate-a11y.js is the structural fallback for Google renaming this obfuscated
   class, which they have done before. */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}

/* The closed language list is taken out of the accessibility tree by translate-a11y.js.
   This button carries the same words in that spot so Narrator can right-arrow through
   them. It sits on the native select, which stays visible for its border and arrow. */
#google_translate_element .gt-lang-host {
  position: relative;
}

#google_translate_element select.goog-te-combo.gt-lang-parked {
  color: transparent;
  pointer-events: none;
}

#google_translate_element .gt-lang-proxy {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0 18px 0 4px;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23212529' d='M0 0h8L4 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 8px 5px;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13.3333px;
  line-height: normal;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

#google_translate_element .gt-lang-proxy:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 1px;
}
