@media (max-width: 860px) {
  header {
    position: relative;
    z-index: 40;
  }

  .nav {
    flex-wrap: wrap;
    gap: .65rem;
    position: relative;
  }

  .mobile-toggle {
    align-items: center;
    border: 1px solid var(--line);
    display: inline-flex;
    height: 2.8rem;
    justify-content: center;
    margin-left: auto;
    order: 2;
    width: 2.8rem;
  }

  .nav > .button {
    font-size: .76rem;
    min-height: 2.8rem;
    order: 3;
    padding: 0 .8rem;
  }

  .links.is-open {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 25px rgba(11, 53, 94, .13);
    display: flex;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: .55rem 1.1rem;
    position: absolute;
    right: 0;
    top: calc(100% + .7rem);
    z-index: 50;
  }

  .links.is-open > a,
  .links.is-open summary {
    border-bottom: 1px solid var(--line);
    padding: .8rem 0;
  }

  .links.is-open > :last-child > summary,
  .links.is-open > a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 440px) {
  .brand-name { font-size: 1rem; }
  .brand img { height: 2.75rem; width: 2.75rem; }
  .nav > .button { font-size: .7rem; padding: 0 .6rem; }
}
