/**
 * @file
 * Core's system/css/components/hidden.module.css, without its `.hidden` rule.
 *
 * Swapped in by libraries-override in ncmfd.info.yml. Core's `.hidden` is
 * unlayered, and an unlayered rule beats any rule inside a cascade layer -
 * which is where Tailwind v4 puts its utilities - so core's `display: none`
 * won over `lg:flex` and kept "hidden lg:flex" elements (the desktop menu, the
 * language switch, the header button) hidden at every width. Tailwind's own
 * `.hidden` does the same job for core's markup, inside the layer.
 *
 * Everything else is core's, unchanged.
 */

/**
 * Hide elements visually, but keep them available for screen readers.
 *
 * Used for information required for screen reader users to understand and use
 * the site where visual display is undesirable. Information provided in this
 * manner should be kept concise, to avoid unnecessary burden on the user.
 * "!important" is used to prevent unintentional overrides.
 */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

/**
 * The .focusable class extends the .visually-hidden class to allow
 * the element to be focusable when navigated to via the keyboard.
 */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus-within {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

/**
 * Hide visually and from screen readers, but maintain layout.
 */
.invisible {
  visibility: hidden;
}
