/* V20: final responsive, accessibility and progressive-enhancement corrections */
:focus-visible {
  outline: 3px solid #0878df;
  outline-offset: 3px;
}
.nav-dropdown-menu a:focus-visible,
.navlinks a:focus-visible,
.navlinks button:focus-visible {
  outline: 3px solid #0878df;
  outline-offset: 2px;
}
/* Content must remain available when JavaScript or IntersectionObserver is unavailable. */
.reveal,
.reveal.in {
  opacity: 1 !important;
  transform: none !important;
}
/* Tablet navigation: collapse before the desktop links become cramped. */
@media (min-width: 761px) and (max-width: 960px) {
  .nav { position: relative; }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 12px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #dbe5ee;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 38px rgba(7,30,52,.16);
  }
  .navlinks.open { display: flex; }
  .navlinks > a,
  .navlinks .nav-dropdown-trigger {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
  }
  .navlinks > a::after { display: none; }
  .navlinks .nav-dropdown { display: block; width: 100%; }
  .navlinks.open .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 3px 0 9px;
    padding: 7px;
    border: 0;
    border-radius: 7px;
    background: #f1f6fa;
    box-shadow: none;
  }
  .navlinks.open .nav-dropdown.open .nav-dropdown-menu { display: grid; }
  .navlinks .nav-dropdown-menu a { min-height: 44px; }
  .hamb { display: block; }
  .navtools .wabtn { width: 42px; min-width: 42px; padding: 0; justify-content: center; font-size: 0 !important; }
  .navtools .wabtn svg { width: 20px; height: 20px; }
}
@media (max-width: 760px) {
  .navlinks { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; }
  .navlinks .nav-dropdown-menu a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 420px) {
  .topline .wrap { justify-content: center; }
  .topline .wrap > span:last-child { display: none; }
}
@media (max-width: 360px) {
  .nav { gap: 8px; }
  .logo img { width: 104px; height: 54px; }
  .navtools { gap: 5px; }
  .searchbtn,
  .hamb { width: 38px; min-width: 38px; height: 40px; }
  .navtools .wabtn { width: 38px; min-width: 38px; height: 40px; }
}
@media (max-width: 760px) {
  .nav { position: relative; }
  .navlinks {
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 0 18px 38px rgba(7,30,52,.16);
  }
}
@media (max-width: 760px) {
  .navlinks { display: none; }
  .navlinks.open { display: flex; }
  .hamb { display: block; }
}
