
/* --- FINAL AND COMPLETE ACCESSIBLE MENU CSS OVERRIDE --- */
/* 1. This rule is optional but good for consistency. The theme also hides the menu. */
#primary-menu .sub-menu-container, #primary-menu .mega-menu-content {
display: none;
}
/* 2. This is the ultimate "show" rule. It overrides everything the theme uses to hide the menu. */
#primary-menu .menu-item > a[aria-expanded="true"] + .sub-menu-container, #primary-menu .menu-item > a[aria-expanded="true"] + .mega-menu-content {
display: block !important;       /* Makes it take up space */
visibility: visible !important;  /* Makes it visible */
opacity: 1 !important;           /* Makes it NOT transparent */
z-index: 399 !important;         /* Brings it to the top layer */
pointer-events: auto !important; /* Makes it clickable */
margin-top: 0 !important;        /* Corrects its vertical position */
}
/* 3. Visual indicator for keyboard focus. */
.menu-link:focus-visible {
outline: 2px solid blue;
outline-offset: 2px;
}
.skip-link {
position: absolute;
top: auto;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -999; /* Keeps it out of the way */
}

.skip-link a {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link a:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 3px;
  background: #ffc;
  border: 1px solid #000;
  z-index: 1000;
}
/*
 * 2. Make the link visible when it has focus.
 * This happens when a user presses the Tab key on page load.
 */
.skip-link:focus {
position: absolute;
top: 10px;      /* Position it 10px from the top */
left: 10px;     /* Position it 10px from the left */
width: auto;
height: auto;
padding: 10px 15px; /* Give it some space */
background-color: #000000; /* A solid black background */
color: #ffffff;           /* Contrasting white text */
font-size: 1rem;
font-weight: bold;
text-decoration: none;
clip: auto;
overflow: visible;
z-index: 9999; /* Ensure it appears on top of all other content */
}


/*
 * 1. Hide the "Skip to Main Content" link by default.
 * - position: absolute; takes it out of the normal flow of the page.
 * - left: -9999px; moves it thousands of pixels to the left, far off-screen.
 */
