/* ACCESSIBILITY UTILITIES
   ==========================================================================

   Joomla 6's own markup - com_content, com_finder, the modules, the system
   message container - emits <span class="visually-hidden"> to label things
   for screen readers without showing the text. In Cassiopeia those classes
   come from Bootstrap, which this template does not load, so without these
   rules the labels render as stray words: "Info" above an alert, "Search"
   next to a search box, and so on.

   Taken verbatim from the Bootstrap build Joomla ships in
   media/vendor/bootstrap/css/, so the behaviour matches what core markup is
   written against. Keep it that way if Bootstrap changes.

   sr-only is the Bootstrap 3/4 spelling. No Joomla 6 core markup uses it,
   but older third-party extensions still emit it, so it is aliased here. */

.visually-hidden,
.sr-only,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.visually-hidden:not(caption),
.sr-only:not(caption),
.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption) {
    position: absolute !important;
}

.visually-hidden *,
.sr-only *,
.visually-hidden-focusable:not(:focus):not(:focus-within) * {
    overflow: hidden !important;
}
