.header_spacer {
  height: 132px;
}

.ticker ~ .header_spacer {
  height: 166px;
}

@media (max-width: 1200px) {
  .header_spacer {
    height: 80px;
  }
  .ticker ~ .header_spacer {
    height: 114px;
  }
}

@media (max-width: 1200px) {
  .menu_open .header_spacer {
    display: none;
  }
}

.search_open .header_spacer {
  display: none;
}

.search_open .search_cont .header_spacer {
  display: block;
}


.header {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--light-blue);
  color: #fff;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 0 5px rgba(0,0,0,0.25);
}

.ticker ~ .header {
  top: 34px;
}

.ticker ~ .search_cont .header {
  top: 34px;
}

.ticker ~ .search_cont .header_spacer {
  height: 166px;
}

@media (max-width: 1200px) {
  .ticker ~ .search_cont .header_spacer {
    height: 114px;
  }
}

.search_open .header {
  display: none;
}

.search_open .search_cont .header {
  display: block;
}


.header:after {
  clear: both;
  content: " ";
  height: 0;
  display: block;
}

.at_top > .header {
  box-shadow: none;
}


/* search element is about 5px off the edge, so margin-right of 50px compensated to 45px */
.header .icon_menu {
  margin-top: 20px;
  margin-right: 45px;
  float: right;
  text-align: right;
  height: 100%;
}

@media (max-width: 1200px) {
  .header .icon_menu {
    display: none;
  }
}


.header .social_menu {
  margin-top: 20px;
  margin-left: 15px;
  float: left;
  height: 100%;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .header .social_menu {
    display: none;
  }
}

.header .social_link {
  background: center/contain no-repeat;
  width: 17px;
  height: 17px;
  margin: 15px 10px 0;
  display: inline-block;
  vertical-align: baseline;
}

.header .social_link.youtube {
  width: 20px;
}



.header .button {
  background: var(--aqua-blue);
  color: #000;
  font-size: 0.9em;
  text-transform: uppercase;
  padding: 12px 10px 10px;
  font-weight: 900;
  display: inline-block;
  min-width: 200px;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms;
  margin-top: 22px;
  margin-right: 30px;
  float: right;
}

.header .button:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .header .button {
    display: none;
  }
}




.header .desktop_menu {
  position: relative;
  padding: 10px;
  text-align: center;
  clear: left;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
  .header .desktop_menu {
    display: none;
  }
}

.header .desktop_icon_close {
  position: absolute;
  top: 7px;
  right: 45px;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  background: url('/static/avalon/images/close_white.png') center/22px no-repeat;
  display: none;
}

.header .desktop_icon_close.active {
  display: block;
}

.header .menu_item_cont {
  display: inline-block;
  vertical-align: baseline;
  text-transform: uppercase;
  user-select: none;
}

.header .dropdown .menu_item_cont {
  display: block;
}

.header .menu_item {
  font-size: 16px;
  padding: 5px 25px;
  text-decoration: none;
  color: #fff;
  display: inline-block;
}

.header .menu_item.expandable:after {
  content: " ";
  margin-left: 10px;
  vertical-align: 4px;
  display: inline-block;
  width: 10px;
  height: 5px;
  background: url('/static/avalon/images/triangle_down.svg') center/contain no-repeat;
}

.header .menu_item.selected {
  color: var(--orange);
}

.header .menu_item.open {
  color: var(--orange);
}

.header .dropdown .menu_item {
  padding: 5px 25px;
  white-space: nowrap;
}

.header .menu_item:hover {
  opacity: 1;
}

.header .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light-blue);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  text-align: left;
  width: 100%;
}

.header .menu_item_cont.active .dropdown {
  opacity: 1;
  pointer-events: all;
}

.header .dropdown_wrap {
  margin: 15px auto 50px;
  max-width: 90%;
  overflow: hidden;
}

.header .submenu_item {
  text-decoration: none;
  color: #fff;
  cursor: default;
}

.header .submenu_item.submenu_link {
  font-weight: 500;
  text-transform: none;
  cursor: pointer;
}

.header .submenu_item.submenu_link.selected {
  color: var(--orange);
}

.header .submenu_item_cont {
  float: left;
  /* 50 * 5 / 6 = 41.666 first menu dropdown */
  width: calc(16.666% - 41.666px);
  margin-left: 50px;
}

.header .submenu_item_cont:first-of-type {
  margin-left: 0;
}

.header .subsubmenu_item_cont {
  margin-top: 20px;
}

.header .subsubmenu_item {
  text-decoration: none;
  font-weight: 500;
  text-transform: none;
  color: #fff;
}

.header .subsubmenu_item.selected {
  color: var(--orange);
}

.mobile_menu .menu_item {
  font-weight: bold;
}

.mobile_menu .menu_item.expandable:after {
  content: " ";
  margin-left: 10px;
  vertical-align: 4px;
  display: inline-block;
  width: 10px;
  height: 5px;
  background: url('/static/avalon/images/triangle_down.svg') center/contain no-repeat;
}

.mobile_menu .subsubmenu_item {
  text-transform: none;
  font-weight: 500;
}


.header .subsubmenu_item:hover {
  opacity: 1;
}

/*
 * desktop generic margin of 50px
 * margin in logo: 42px
 * logo display height to actual height: 80 / 226 = 35%
 * display margin: 42px * 35% ~= 15px
 * compensated margin: 50 - 15 = 35px
 * */

.header .logo {
  height: 55px;
  width: auto;
  display: block;
  float: left;
  margin: 15px 0 15px 50px;
}

@media (max-width: 1200px) {
  /* generic mobile margin right: 20px. compensated margin: 20px - 15px (see above) = 5px */
  .header .logo {
    margin-left: 20px;
  }
}

.header .date {
  float: left;
  margin-top: 29px;
  margin-left: 10px;
  font-size: 16px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 900;
  padding: 5px 0 0 25px;
}

@media (max-width: 1200px) {
  .header .date {
    margin-top: 26px;
    padding-left: 0;
  }
}

@media (max-width: 550px) {
  .header .date {
    display: none;
  }
}


.menu_icon_cont {
  padding: 14px 7px;
  float: right;
  margin: 19px 13px 0 5px;
  display: none;
}

@media (max-width: 1200px) {
  .menu_icon_cont.active {
    display: block;
  }
}



.menu_icon {
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  width: 26px;
  height: 12px;
  box-sizing: border-box;
  display: block;
}


.menu_icon_close {
  float: right;
  margin: 19px 40px 14px 14px;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  background: url('/static/avalon/images/close_white.png') center/18px no-repeat;
  display: none;
}

@media (max-width: 1200px) {
  .menu_icon_close.active {
    display: block;
  }
}


.menu_icon_close:hover {
  opacity: 1;
}

@media (max-width: 1200px) {
  .menu_icon_close {
    margin-right: 10px;
  }
}



.search_icon {
  box-sizing: border-box;
  display: inline-block;
  vertical-align: -12px;
  cursor: pointer;
  padding: 3px;
  width: 47px;
  height: 47px;
}

.search_icon img {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.help_icon {
  box-sizing: border-box;
  display: inline-block;
  vertical-align: -4px;
  cursor: pointer;
  width: 26px;
  height: 26px;
}

.help_icon img {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.mobile_search_icon {
  display: block;
  float: right;
  margin: 19px 0;
  display: none;
  width: 40px;
  height: 40px;
}

@media (max-width: 1200px) {
  .mobile_search_icon {
    display: block;
  }
}

.header.menu_active .mobile_search_icon {
  display: none;
}




.mobile_logout_icon {
  display: block;
  float: right;
  margin: 22px 0 0 10px;
  padding: 5px;
  display: none;
  width: 35px;
  height: 35px;
}

@media (max-width: 1200px) {
  .mobile_logout_icon {
    display: block;
  }
}


.mobile_menu {
  display: none;
  background: var(--light-blue);
  color: #fff;
  overflow: auto;
  margin-top: 110px;
  padding-bottom: 80px;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}


@media (max-width: 1200px) {
  .mobile_menu.active {
    display: block;
  }
}

@media (max-width: 1200px) {
  .search_open .mobile_menu {
    display: none;
  }
}

/*
.mobile_menu .mobile_date {
  font-size: 16px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 900;
  margin-top: 1em;
  padding-left: 20px;
  display: none;
}

@media (max-width: 600px) {
  .mobile_menu .mobile_date {
    display: block;
  }
}
*/

.mobile_menu .social_menu {
  margin-top: 20px;
  margin-left: 10px;
  height: 100%;
  white-space: nowrap;
}

.mobile_menu .social_link {
  background: center/contain no-repeat;
  width: 17px;
  height: 17px;
  margin: 15px 10px 0;
  display: inline-block;
  vertical-align: baseline;
}

.mobile_menu .social_link.youtube {
  width: 20px;
}

.mobile_menu .icon_menu {
  margin-top: 20px;
  margin-right: 20px;
  float: right;
  text-align: right;
  height: 100%;
}

.mobile_menu .button {
  background: var(--aqua-blue);
  color: #000;
  font-size: 0.9em;
  text-transform: uppercase;
  padding: 12px 10px 10px;
  font-weight: 900;
  display: block;
  width: 200px;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms;
  margin-top: 20px;
  margin-left: 20px;
}

.mobile_menu .button:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

.mobile_menu .mobile_menu_inner {
  padding: 20px;
  width: 500px;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile_menu .menu_title {
  font-weight: 900;
  font-size: 18px;
  margin-top: 1em;
  text-underline-position: under;
  text-transform: uppercase;
}

.mobile_menu .menu_title.selected > a {
  color: var(--orange);
}

.mobile_menu .menu_title.expandable > a:after {
  content: " ";
  margin-left: 10px;
  vertical-align: 4px;
  display: inline-block;
  width: 10px;
  height: 5px;
  background: url('/static/avalon/images/triangle_down.svg') center/contain no-repeat;
}

.mobile_menu a.selected {
  color: var(--orange);
}

.mobile_menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.mobile_menu .menu_title.child {
  padding-left: 40px;
  font-weight: normal;
}

.mobile_menu .submenu {
  display: none;
}

.mobile_menu .submenu.open {
  display: block;
}

.mobile_menu .subsubmenu {
  display: none;
}

.mobile_menu .subsubmenu.open {
  display: block;
}




/*
 * ticker
 */

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  font-size: 14px;
  background: var(--orange);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  height: 34px;
}

.ticker a {
  color: inherit;
}

.ticker p {
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.ticker .chunk {
  display: inline-block;
  padding: 9px 0;
}

.ticker.marquee .chunk {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  white-space: nowrap;
  padding-right: 2rem;
}

@keyframes ticker_anim {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker.marquee .chunk {
  animation: ticker_anim infinite forwards 100000ms -90000ms linear;
}

.ticker.marquee .chunk_2 {
  display: block;
  animation: ticker_anim infinite forwards 100000ms -40000ms linear;
}


.ticker .ticker_item {
  display: inline-block;
  padding-left: 20px;
}

.ticker .ticker_item:first-child {
  padding-left: 0;
}
