.site-header {
  margin: 0;
}

.main-header-content {
  max-width: min(calc(var(--layout-width) + 40px), 100%);
}

.site-header .link-box-link {
  line-height: var(--header-top-height);
}

.mainmenu-section:empty {
  display: initial;
}

.mainmenu-section-left {
  border-top: 0;
}

.mainmenu {
  margin: 0;
  width: auto;
}
.mainmenu .searchform {
  display: none;
}

.magic-line {
  display: none;
  pointer-events: none;
}

.site-header p.main-header-msg {
  display: block;
  position: relative;
  top: 10px;
  margin: 0;
  color: #ccc;
  font-weight: 400;
  font-size: 1.25em;
}

@keyframes header-show {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: none;
  }
}
body {
  overflow: visible;
}

.site-header.mobile-sticky {
  top: 0;
  position: relative;
  overflow-y: visible;
}
.site-header.sticky-static {
  position: sticky;
  top: max(var(--sticky-header-pos), 0px);
}
.site-header.sticky-animate-scroll-up, .site-header.sticky-animate-scroll-down {
  position: relative;
  transition: none;
}
.site-header.sticky-animate-scroll-up.header-transparent, .site-header.sticky-animate-scroll-down.header-transparent {
  margin-bottom: var(--header-height-negative);
}
.site-header.sticky-animate-scroll-up.sticky, .site-header.sticky-animate-scroll-down.sticky {
  position: sticky;
  top: var(--sticky-header-pos);
  animation: header-show forwards 0.5s;
}
.site-header.sticky-animate-scroll-up.sticky.header-transparent.sticky-enabled, .site-header.sticky-animate-scroll-down.sticky.header-transparent.sticky-enabled {
  position: fixed;
  top: var(--sticky-header-pos);
  margin-bottom: calc(0px - var(--header-top-height) - var(--topbar-height));
}
.site-header.sticky .main-header {
  background-color: var(--sticky-header-background-color);
}
.site-header.sticky .title > span {
  display: none;
}
.site-header.sticky .logo img {
  width: auto;
  max-height: var(--max-logo-height-sticky);
}
.site-header.sticky .menu-toggle {
  height: var(--sticky-header-top-height);
  line-height: var(--sticky-header-top-height);
}
.site-header.sticky .site-title .link-box-link {
  line-height: var(--sticky-header-top-height);
}

.site-header a.logo img {
  height: auto;
  max-height: var(--max-logo-height);
}

.site-title {
  flex-shrink: 0;
  margin-left: 0;
  position: relative;
  height: var(--header-top-height);
}
.site-title.mobile {
  display: none;
}
.site-title.desktop {
  display: flex;
}
.site-title:before, .site-title:after {
  display: block;
  width: calc((var(--body-width) - var(--layout-width) - 40px) / 2);
  height: var(--header-top-height);
  position: absolute;
  top: 0;
  background-color: var(--header-background-color);
  content: "";
  transition: all 0.3s;
}
.site-title:before {
  right: 100%;
}
.site-title:after {
  left: 100%;
}
.site-title .logo {
  padding: 0 20px;
}
.site-title .logo.offset-up {
  margin-top: var(--logo-v-offset);
}
.site-title .logo.offset-down {
  margin-bottom: var(--logo-v-offset);
}
.site-title .menu-toggle {
  line-height: var(--header-top-height);
}
.site-title .menu-toggle:not(.expanded):hover .site-title .menu-toggle:not(.expanded):focus {
  color: var(--hamburger-icon-hover-color);
  background: var(--hamburger-icon-background-hover-color);
}
.site-title .menu-toggle:not(.expanded):hover .site-title .menu-toggle:not(.expanded):focus .menu-icon, .site-title .menu-toggle:not(.expanded):hover .site-title .menu-toggle:not(.expanded):focus .menu-icon:before, .site-title .menu-toggle:not(.expanded):hover .site-title .menu-toggle:not(.expanded):focus .menu-icon:after {
  background-color: var(--hamburger-icon-hover-color);
}
.site-title .search-item {
  display: block;
}

header.full-width .site-title {
  padding: 0 20px 0 0;
}

.site-header.sticky .site-title {
  height: var(--sticky-header-top-height);
}
.site-header.sticky .site-title .logo img {
  height: var(--max-logo-height-sticky);
}
.site-header.sticky .site-title .menu-toggle {
  line-height: var(--sticky-header-top-height);
}
.site-header.sticky .site-title:before, .site-header.sticky .site-title:after {
  height: 100%;
  background-color: inherit;
}

.show-menus .site-title {
  display: none;
}

.root .site-header.header-transparent {
  position: absolute;
  top: 0;
  width: 100%;
  border: 0;
}
.root .site-header.header-transparent .main-header {
  background: transparent;
  box-shadow: none;
}
.root .site-header.header-transparent.sticky .main-header {
  background-color: var(--sticky-header-background-color);
}
.root .site-header.header-transparent.with-bg .main-header {
  background-color: var(--header-transparent-background-color);
}
.root .site-header.header-transparent.with-bg.sticky .main-header {
  background-color: var(--sticky-header-background-color);
}
.root .site-header.header-transparent.with-shadow:before {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #01232c 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}
.root .site-header.header-transparent.with-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.root .site-header.header-transparent.sticky-static {
  position: fixed;
  width: 100%;
}
.root .site-header.header-transparent .site-title, .root .site-header.header-transparent .site-title:before, .root .site-header.header-transparent .site-title:after {
  background-color: transparent;
}
.root .site-header.header-transparent.sticky-animate-scroll-up.sticky-enabled.sticky, .root .site-header.header-transparent.sticky-animate-scroll-down.sticky-enabled.sticky {
  position: fixed;
}

.site-header.header-transparent-mobile:not(.sticky-enabled) {
  position: absolute;
  top: 0;
}

.boxed .site-header.header-transparent.sticky-static {
  max-width: var(--layout-width);
}
