/* Flexnav Base Styles */

.flexnav,
.flexnav ul {
  list-style-type: none;
}

.flexnav {
  position: absolute;
  z-index: 9999;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: center;
  align-content: center;
  overflow: hidden;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  margin: 0 auto;
  padding: 0;
  transition: none;
  transform-style: preserve-3d;
  list-style: none;
  background-color: #00255b;
}

.flexnav > * {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.flexnav.opacity {
  opacity: 0;
}

.flexnav.flexnav-show {
  max-height: 2000px;
  transition: all .5s ease-in-out;
  opacity: 1;
}

.flexnav > li {
  border-bottom: 1px solid #215da7;
}

.flexnav li {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.flexnav li a {
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  z-index: 2;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: left;
  justify-content: left;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
  padding: .5rem;
  -ms-flex-positive: 1;
  flex-grow: 1;
  color: #ffffff;
}

.flexnav li ul {
  width: 100%;
  padding: 0;
  list-style: none;
  margin: 0;
}

.flexnav li ul li {
  font-size: 100%;
  position: relative;
  overflow: hidden;
}

.flexnav li ul li a {
  display: block;
  font-size: .875rem;
  font-weight: normal;
}

.flexnav li ul.flexnav-show li {
  overflow: visible;
}

.flexnav .touch-button {
  text-align: center;
  position: absolute;
  z-index: 999;
  top: 0;
  right: 0;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  width: 50px;
  height: 41px;
  background: transparent;
}

.flexnav .touch-button:hover {
  cursor: pointer;
}

.flexnav .touch-button .navicon {
  font-size: 12px;
  position: relative;
  color: #ffffff;
  font-style: normal;
  top: 2px;
}

.flexnav .touch-button.active {
  transform: rotateX(180deg);
}

/*--- Hamburger Menu Button ---*/

.menu-button {
  font-size: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 100;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  width: 100%;
  height: 45px;
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: white;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.menu-button .touch-button {
  text-align: center;
  position: relative;
  z-index: 1000;
  width: 35px;
  height: 2px;
  margin: 0 .5rem 0 0;
  border-radius: 100%;
  background: transparent;
}

.menu-button .touch-button .navicon {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  height: 3px;
  transition: background .2s;
  transition: background 0s .3s linear;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(5, 31, 50, 0.25);
}

.menu-button .touch-button .navicon:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  transition: top .3s .3s, transform .3s 0s;
  border-radius: 3px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(5, 31, 50, 0.25);
}

.menu-button .touch-button .navicon:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  transition: bottom .3s .3s, transform .3s 0s, background 0s .3s linear;
  border-radius: 3px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(5, 31, 50, 0.25);
}

.menu-button .touch-button.active .navicon {
  background: transparent;
  box-shadow: none;
}

.menu-button .touch-button.active .navicon:before {
  top: 0;
  transition: top .3s 0s, bottom .3s 0s, transform .3s .3s;
  transform: rotate(45deg);
}

.menu-button .touch-button.active .navicon:after {
  bottom: 0;
  transition: top .3s 0s, bottom .3s 0s, transform .3s .3s, background 0s 0s linear;
  transform: rotate(-45deg);
}

/* Flexbox Fallback */

.no-flexbox.no-flexboxlegacy.no-flexboxtweener .flexnav {
  display: inline-block;
}

.no-flexbox.no-flexboxlegacy.no-flexboxtweener .flexnav li {
  width: 100%;
}

.no-flexbox.no-flexboxlegacy.no-flexboxtweener .flexnav li ul li {
  width: 100%;
}

/* Interior Subnav Styles */

.subnav {
  position: relative;
  background-color: #2581dc;
  font-size: .875rem;
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#0c4487+0,2582de+100 */
  background: #0c4487;
  /* Old browsers */
  /* FF3.6-15 */
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #0c4487 0%, #2582de 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0c4487', endColorstr='#2582de',GradientType=0 );
  /* IE6-9 */
}

.subnav a {
  color: currentColor;
  display: block;
  padding: 6px .5rem;
}

.subnav a:hover {
  color: #ffffff;
}

.subnav h2 {
  color: #cbe5ff;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.subnav h2 a {
  padding: 0 .5rem;
}

.subnav__nav {
  list-style-type: none;
  padding: 0;
  margin: 0;
  color: #cbe5ff;
}

.subnav__nav li {
  position: relative;
  transition: all 0.25s ease-in-out;
}

.subnav__nav li:hover {
  background-color: #00255b;
}

.subnav__nav li:not(:last-child) {
  border-bottom: 1px solid #cbe5ff;
}

.subnav__nav ul {
  list-style-type: none;
  margin: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background-color: #00255b;
  transition: all 0.25s ease-in-out;
}

.subnav__nav ul li a {
  color: #ffffff;
  font-weight: normal;
  font-size: .75rem;
  padding: .5rem .5rem 7px;
}

.subnav__nav ul li a:hover {
  background-color: #215da7;
}

.subnav__nav li:hover ul {
  max-height: 1000px;
}

@media only screen and (min-width: 40rem) {
  .subnav__nav ul {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(100%);
    transform: translateX(calc(100% - .25px));
  }
}

@media only screen and (min-width: 64rem) {
  .subnav::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 56px;
    background-image: url(../images/subnav-bottom.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
  }

  .sidebar--interior aside {
    padding-bottom: 66px;
  }
}

@media all and (min-width: 640px) {
  .menu-button {
    height: 70px;
  }
}

@media all and (min-width: 800px) {
  .flexnav {
    -ms-flex-pack: center;
    justify-content: center;
    overflow: visible;
    -ms-flex-direction: row;
    flex-direction: row;
    max-height: none;
    background: transparent;
    position: relative;
    box-shadow: none;
  }

  .flexnav.opacity {
    opacity: 1;
  }

  .flexnav li {
    text-align: center;
    position: relative;
    display: block;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    overflow: visible;
    width: auto;
    margin: 0;
    border: none;
  }

  .flexnav li a {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: visible;
    width: auto;
    margin: 0 auto;
    border-bottom: none;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1;
    padding: .75rem .25rem;
    background-color: transparent;
    font-family: Arial;
    font-weight: bolder;
  }

  .flexnav li:hover {
    background: linear-gradient(to bottom, #0c4da5 0%, #1154a3 24%, #12529d 35%, #104e95 43%, #0e4689 51%, #063471 65%, #012860 78%, #00245b 86%, #00255b 100%);
  }

  .flexnav li:hover > a {
    color: #ffde00;
  }

  .flexnav li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 250px;
    margin: 0 auto;
    padding: 0;
  }

  .flexnav li > ul li {
    text-align: left;
    position: relative;
    width: 100%;
    margin: 0;
  }

  .flexnav li ul.open {
    z-index: 1;
    display: block;
    visibility: visible;
  }

  .flexnav li ul.open li {
    overflow: visible;
  }

  .flexnav li ul li > ul {
    top: 0;
    margin-left: 100%;
  }

  .flexnav li ul li a {
    border-bottom: none;
    background-color: #00255b;
    font-size: .75rem;
  }

  .flexnav li ul li a:hover {
    background-color: #215da7;
  }

  .flexnav li ul li:not(:last-child) {
    border-bottom: 1px solid #215da7;
  }

  .touch .flexnav .touch-button {
    width: 2rem;
  }

  .touch .flexnav .touch-button .navicon {
    top: auto;
  }

  .touch .flexnav > .item-with-ul > a {
    padding-left: 0;
    padding-right: 2rem;
  }

  .menu-button {
    display: none;
  }

  .no-touchevents .flexnav .touch-button,
  .no-touch .flexnav .touch-button {
    display: none;
  }

  .no-flexbox.no-flexboxlegacy.no-flexboxtweener .flexnav li {
    width: 20%;
  }
}

@media all and (min-width: 1024px) {
  .flexnav li a {
    padding: .75rem 1rem;
  }
}