:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #17659a;
  outline-offset: 3px;
}

.menu {
  min-width: 44px;
  min-height: 44px;
}

summary {
  min-height: 44px;
  padding-block: 12px;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3,
:lang(zh-Hans) .btn,
:lang(zh-Hans) nav a {
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (width <= 1050px) {
  nav.open {
    z-index: 30;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (width <= 700px) {
  nav.open {
    max-height: calc(100vh - 72px);
  }

  .actions {
    flex-wrap: wrap;
  }

  .btn,
  .footlinks a,
  .footer-wdi a {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  input,
  select,
  textarea {
    min-width: 0;
    width: 100%;
  }

  :lang(zh-Hans) .trust,
  :lang(zh-Hans) .inspector-license,
  :lang(zh-Hans) .mobile-call {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
