/* webfair's own addition to site.css: below 40rem the top nav folds into a menu button. */
.menu { display: none; }
@media (max-width: 40rem) {
  .top { flex-wrap: wrap; }
  .menu {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid #3a3b48; border-radius: 999px; background: none; color: inherit; cursor: pointer;
  }
  .menu i, .menu i::before, .menu i::after {
    display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s, background-color .2s;
  }
  .menu i { position: relative; }
  .menu i::before, .menu i::after { content: ""; position: absolute; left: 0; }
  .menu i::before { top: -6px; }
  .menu i::after { top: 6px; }
  .top.open .menu i { background: transparent; }
  .top.open .menu i::before { transform: translateY(6px) rotate(45deg); }
  .top.open .menu i::after { transform: translateY(-6px) rotate(-45deg); }
  .top nav {
    display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: .9rem;
    background: var(--obsidian); border: 1px solid #2a2b38; border-radius: 1rem; padding: .4rem 0;
  }
  .top.open nav { display: flex; }
  .top nav a { padding: .8rem 1.1rem; opacity: 1; }
  .top nav a + a { border-top: 1px solid #2a2b38; }
  .top nav a.login { border: 0; border-radius: 0; padding: .8rem 1.1rem; border-top: 1px solid #2a2b38; color: var(--cyan); }
}
