nav.greedy {
    position: relative;
    height: 80px;
    display: flex;
    align-items: inherit;
    background: inherit;
    padding: 0;
    margin: 0;
}

nav.greedy h1 {
  display: flex;
  align-self: stretch;
  align-items: center;
  background: #d8d8d8;
  color: #404040;
  padding: 0 1.5rem;
  font-weight: bold;
}

nav.greedy button {
    /* align-self: stretch; */
    transition: all .4s ease-out;
    padding: 0;
    outline: 0;
    border: 0;
    font-size: 1.2rem;
    font-weight: 600;
    background: #fff;
    color: #404040;
    text-align: left;
    margin-left: 0;
    /*margin-top: -3rem;*/
    width:5rem;
}
nav.greedy button:hover {
    color:#CA1237;
    font-weight:700;
    border-bottom: 5px solid #CA1237;
}
nav.greedy button:focus {
        border: 2px solid black;
    }
nav.greedy button.hidden {
  transition: none;
  border-right: 0.5rem solid #b6b6b6;
  width: 0;
  padding: 0;
  overflow: hidden;
}

nav.greedy button::after {
  /* content: attr(count); */
  display: inline-flex;
  width: 30px;
  height: 10px;
  align-items: center;
  justify-content: center;
  background: #9f9f9f;
  color: #f2f2f2;
  box-shadow: 0 0 1px 0 rgba(0,0,0,0.8);
  border-radius: 50%;
  font-size: 14px;
  line-height: 14px;
  margin-left: 1rem;
  margin-right: calc(-1rem + -8px);
}

.subnav {
    position: relative;
    height: 40px !important;
    display: flex;
    align-items: inherit;
    background: #fff;
    padding: 0;
    margin: 0;
}

.subnav h1 {
    display: flex;
    align-self: stretch;
    align-items: center;
    background: #d8d8d8;
    color: #404040;
    padding: 0 1.5rem;
    font-weight: bold;
}

.subnav button {
    /* align-self: stretch; */
    transition: all .4s ease-out;
    padding: 0;
    outline: 0;
    border: 0;
    font-size: 1.2rem;
    font-weight: 600;
    background: #fff;
    color: #404040;
    text-align: left;
    margin-left: 0;
    /*margin-top: -3rem;*/
    width: 5rem;
}

.subnav button:hover {
    color: #CA1237;
    font-weight: 700;
    border-bottom: 5px solid #CA1237;
}

.subnav button:focus {
    border: 2px solid black;
}

.subnav button.hidden {
    transition: none;
    border-right: 0.5rem solid #b6b6b6;
    width: 0;
    padding: 0;
    overflow: hidden;
}

.subnav button::after {
    /* content: attr(count); */
    display: inline-flex;
    width: 30px;
    height: 10px;
    align-items: center;
    justify-content: center;
    background: #9f9f9f;
    color: #f2f2f2;
    box-shadow: 0 0 1px 0 rgba(0,0,0,0.8);
    border-radius: 50%;
    font-size: 14px;
    line-height: 14px;
    margin-left: 1rem;
    margin-right: calc(-1rem + -8px);
}

#mainNav {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  /*overflow: hidden; */
  padding-top: 1.5rem;
}

#mainNav li {
  flex: none;
  padding: 0 1rem;
}

#mainNav li a {
  color: #404040;
  padding-top:.5rem;
}

#mainNav > li.foundationMenuItem.is-dropdown-submenu-parent.opens-right {
    padding-top:0;
}



#mainNav > li.foundationMenuItem.is-dropdown-submenu-parent.opens-right > ul > li a {
    margin-top:.5rem;
}

#subNav {
  display: flex;
  justify-content: flex-start;
  flex: 1;
}

#subNav li {
  flex: none;
  padding: 0 1rem;
}

#subNav li a {
  color: #404040;
  padding-top:.5rem;
}
/*
#subNav > li.foundationMenuItem.is-dropdown-submenu-parent.opens-right {
    padding-top:.25rem;
}*/
#subNav > li.foundationMenuItem.is-dropdown-submenu-parent.opens-right > ul > li a {
    margin-top:.5rem;
}

ul.main-hidden-links {
    position: absolute;
    background: #f7f7f7;
    border-radius: .5rem;
    right: 0;
    top: 100%;
    z-index: auto;
}

ul.main-hidden-links li a {
    color: #404040;
    padding-right: 1rem;
}

ul.main-hidden-links.hidden {
    display: none;
}

ul.hidden-links li {
  /* padding: .5rem; */
}

ul.sub-hidden-links {
    position: absolute;
    background: #f7f7f7;
    border-radius: .5rem;
    right: 0;
    top: 100%;
    z-index: 100;
}

ul.sub-hidden-links li a {
    color: #404040;
    padding-right: 1rem;
}

ul.sub-hidden-links.hidden {
    display: none;
}

.is-dropdown-submenu-parent.opens-right a ul{
    display:none;
}

.foundationMenuItem.is-dropdown-submenu-parent.opens-right > ul.js-dropdown-active, .foundationMenuItem.is-submenu-item.is-dropdown-submenu-item.opens-right > ul.js-dropdown-active
 {
    display:block!important;
}
/*added this to stop subnav items from having bottom border*/
.active > a {
    color: #080808 !important;
    border-bottom: 0 solid #CA1237;
    background-color:inherit;
}
