#menu-toggler {
  width: 5rem;
}

#navigation ul.menu > li{
  position: relative;
}
#navigation li ul{
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 1rem 0 0 3rem;
}
#navigation li > a.is-active + ul,
#navigation li > ul:has(a.is-active){
  display: flex;
}

#navigation ul.menu ul a{
  border-bottom: 0;
}

/* Show submenu on hover (desktop) */
#navigation ul.menu li:hover > ul {
  display: flex;
}

/* Show submenu on focus-within (mobile/touch) */
#navigation ul.menu li:focus-within > ul {
  display: flex;
}

@media screen and (min-width:768px) {
  #navigation li ul{
    position: absolute;
    background: #fff;
    padding: 1rem 0 0;
    min-width: 25rem;
  }

  #navigation li > a.is-active + ul,
  #navigation li > ul:has(a.is-active){
    display: none;
  }

  #navigation li > ul:has(a.is-active) ~ a{
    color: green;
  }
}


/* .menu li {
  position: relative;
}

.menu > li {
  flex: 1;
} */


/* Submenu hidden by default */
/* .menu ul {
  flex-direction: column;
  z-index: 1000;
} */

/* Submenu displayed on mobile if parent is active */
/* .menu a.is-active + ul{
  display: flex;
  position: relative;
}
@media screen and (min-width:768px) {
  .menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    display: none;
    background: #fff;
  }
} */

/* Show submenu on hover (desktop) */
/* .menu li:hover > ul {
  display: flex;
} */

/* Show submenu on focus-within (mobile/touch) */
/* .menu li:focus-within > ul {
  display: flex;
} */