a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ff7b1a;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px;
  background: currentColor;
}

@media (max-width: 840px) {
  .topbar .nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .topbar .links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: #34313d;
    box-shadow: 0 15px 24px rgba(52, 49, 61, 0.2);
  }

  .topbar .links.open {
    display: flex;
  }

  .topbar .links a,
  .topbar .links a:not(.pill) {
    display: block;
    width: 100%;
    padding: 11px 4px;
  }

  .topbar .links .pill {
    margin-top: 6px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}
