.horizontal-nav {
  margin: $spacer-small 0 $spacer-medium-plus;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  ul {
    display: flex;
    flex-wrap: wrap;
  }
  li {
    margin-top: $spacer-tiny;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  }
  li:not(:first-child) {
    margin-left: $spacer-tiny;
  }
  a,
  button {
    padding: $spacer-small $spacer-small-plus;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    &:hover {
      background: rgba(75, 75, 165, 0.1);
    }
  }
  .router-link-exact-active,
  .router-link-active,
  a.active {
    color: $accent-color !important;
    border-bottom: $accent-color 4px solid;
  }
}
.additionalHorizontalNav {
  position: relative;
  ul {
    position: absolute;
    right: 0;
    z-index: 2;
    width: 170px;
    max-height: 0;
    transition: max-height 0.2s ease;
    padding: $spacer-tiny 0;
    li {
      flex-grow: 1;
      margin: 0;
    }
    a {
      display: block;
    }
    &:not(.opened) {
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      height: 1px;
      overflow: hidden;
      position: absolute;
      white-space: nowrap;
      width: 1px;
    }
    &.opened {
      max-height: 1000px;
    }
  }
  .icon-chevron-down {
    margin-right: 0;
    &::before {
      font-size: 1.2rem;
      margin-left: $spacer-small;
    }
  }
}

.side-nav {
  width: 100%;
  margin: $spacer-medium 0;
  @media screen and (min-width: 768px) {
    margin: -2rem 0 $spacer-medium -2rem;
    max-width: 180px;
    margin: 0 $spacer-medium 0 0;
  }
  a {
    text-decoration: none;
    padding: $spacer-tiny $spacer-tiny-plus;
    border-radius: 5px;
    display: inline-block;
    width: 100%;
    line-height: 1.2;
    border: 2px solid $color-gray-1;
    transition: border-color 0.2s ease-in;
    &:hover {
      border-color: $color-gray-3;
    }
  }
  li a.router-link-exact-active {
    border-color: $accent-color;
    font-weight: 600;
  }
}
.side-nav + div {
  flex-basis: calc(100% - 200px);
}
.organiser {
  font-size: 1.4rem;
  padding: 0.5rem;
  span.icon-two-way {
    line-height: 1rem;
  }
  span {
    vertical-align: middle;
  }
  button {
    transition: color ease-in 0.2s, font-weight ease-in 0.2s;
    &:hover {
      cursor: pointer;
      color: $accent-color;
      font-weight: 600;
    }
    &.active {
      color: $accent-color;
      font-weight: 600;
    }
  }
}
