/* 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; }
.array-button :is(.array-prev,.array-next) { min-width: 48px; min-height: 48px; font-size: 26px; }
/* A compact visual dot retains a full-size touch target. */
.swiper-dot button.swiper-pagination-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 2px !important;
  padding: 0;
  background: transparent;
  opacity: 1;
  border: 0;
  border-radius: 50%;
}
.swiper-dot button.swiper-pagination-bullet::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #65758d; }
.swiper-dot button.swiper-pagination-bullet.swiper-pagination-bullet-active { background: transparent; }
.swiper-dot button.swiper-pagination-bullet-active::before { background: #0c3392; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0c3392; }
/* Card copy and links are also available to keyboard users. */
.project-box-items-2:focus-within .project-content,
.team-box-items:focus-within .team-content { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu .menu-box, .mobile-menu .menu-backdrop { transition: none !important; }
}
