/* Shared keyboard entry point; loaded on every corporate template. */
.skip-to-content {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  max-width: calc(100vw - 24px);
  padding: 12px 18px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #0c3392;
  color: #fff;
  font: 600 16px/1.5 sans-serif;
  text-decoration: underline;
  transform: translateY(calc(-100% - 24px));
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  transform: none;
  color: #fff;
  outline: 3px solid #e7c152 !important;
  outline-offset: 2px;
}
main[tabindex="-1"] { scroll-margin-top: 115px; }

/* Navigation and carousel accessibility corrections, 2026-09-21. */
.mobile-menu .upper-box { gap: 12px; }
.mobile-menu .nav-logo { min-width: 0; width: auto; flex: 1 1 auto; }
.mobile-menu .nav-logo img { max-width: 100%; }
.mobile-menu .close-btn,
.mobile-menu-visible .mobile-menu .close-btn {
  display: inline-flex;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  top: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0b1f3f;
  color: #fff;
  opacity: 1;
  transform: none;
  transition: background-color .2s ease, color .2s ease;
}
/* Resolve visibility directly: an ancestor may still be completing a legacy
   inherited visibility transition when focus moves into the open drawer. */
.mobile-menu-visible .mobile-menu .close-btn { visibility: visible; }
/* Draw the cross without depending on an optional icon font. */
.mobile-menu .close-btn .icon { display: none; }
.mobile-menu .close-btn::before,
.mobile-menu .close-btn::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.mobile-menu .close-btn::after { transform: rotate(-45deg); }
.mobile-menu .close-btn:hover { opacity: 1; background: #0c3392; }
.mobile-menu .close-btn:focus-visible { outline: 3px solid #ffcf6d !important; outline-offset: 4px; }
.mobile-menu .menu-box { overscroll-behavior: contain; }
.mobile-menu-visible .mobile-menu .menu-box { transition: transform .25s ease, opacity .25s ease; }

.mobile-menu-visible .mobile-menu .close-btn { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .mobile-menu .menu-box, .mobile-menu .menu-backdrop { transition: none !important; } }


/* Explicit button styling prevents pale native backgrounds in mobile menus. */
.mobile-menu .close-btn,
.mobile-menu .navigation li.dropdown .dropdown-btn {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  padding: 0;
  box-shadow: none;
}
.mobile-menu .navigation li.dropdown .dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: background-color .2s ease;
}
/* Keep the arrow visible even when the optional icon font is unavailable. */
.mobile-menu .navigation li.dropdown .dropdown-btn > i {
  display: none;
}
.mobile-menu .navigation li.dropdown .dropdown-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
}
.mobile-menu .navigation li.dropdown .dropdown-btn[aria-expanded="true"]::before {
  transform: translate(-50%, -35%) rotate(225deg);
}
.mobile-menu .navigation li.dropdown .dropdown-btn:hover,
.mobile-menu .navigation li.dropdown .dropdown-btn:active,
.mobile-menu .navigation li.dropdown .dropdown-btn:focus-visible {
  background: #0b1f3f;
  color: #fff;
}
.mobile-menu .navigation li.dropdown .dropdown-btn:focus-visible {
  outline: 3px solid #ffcf6d !important;
  outline-offset: -3px;
}

/* Keep Expertise labels inside the desktop dropdown, including sticky headers. */
.main-menu .navigation > li.expertise-dropdown > ul {
  width: 360px;
  max-width: calc(100vw - 32px);
  white-space: normal;
}
.main-menu .navigation > li.expertise-dropdown > ul > li > a {
  margin: 0;
  padding: 10px 20px;
  min-height: 44px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
