/* Autocenter Hinkel: header, mobile navigation and content safeguards */
body.header-fixed #body-wrapper {
  padding-top: 7.8rem;
}

#header.hinkel-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  height: 7.8rem;
  border: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  background: #fff !important;
  color: #051641 !important;
  font-size: 1rem;
  font-weight: 400;
}

body.header-dark #header.hinkel-header,
body.header-transparent #header.hinkel-header,
body.header-dark.header-transparent #header.hinkel-header {
  background: #fff !important;
  color: #051641 !important;
}

body.header-dark #header.hinkel-header a,
body.header-transparent #header.hinkel-header a {
  color: #051641 !important;
}

#header.hinkel-header a {
  color: #051641 !important;
}

/* This header has its own two-row layout. Do not let Quark shrink it while
   scrolling: that would make the navigation overlap or disappear on images. */
body.header-fixed.header-animated #header.hinkel-header.scrolled {
  height: 7.8rem;
}

body.header-fixed.header-animated #header.hinkel-header.scrolled .hinkel-branding {
  height: 5rem;
}

body.header-fixed.header-animated #header.hinkel-header.scrolled .hinkel-navigation {
  height: 2.8rem;
}

.hinkel-branding {
  position: relative;
  height: 5rem;
  overflow: hidden;
  background: #fff;
}

.hinkel-branding-rule {
  position: absolute;
  inset: 0;
  min-height: 5rem;
  border-bottom: 5px solid #4d9ed6;
}

.hinkel-brand-logo {
  position: relative;
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}

.hinkel-brand-logo-mobile {
  display: none;
}

.hinkel-brand-copy {
  position: absolute;
  top: .65rem;
  left: 6rem;
  z-index: 1;
  right: 1rem;
  text-align: left !important;
}

.hinkel-brand-copy h1,
.hinkel-brand-copy p {
  margin: 0;
  color: #051641;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.hinkel-brand-copy h1 {
  font-size: 1.8rem;
  text-align: left;
}

.hinkel-brand-copy p {
  font-size: 1.17rem;
}

.hinkel-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 2.8rem;
}

.hinkel-desktop-menu > ul {
  margin: 0;
}

.hinkel-desktop-menu a {
  padding: .6rem .8rem;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.2;
}

.hinkel-desktop-menu > ul > li > a::after {
  bottom: 0;
}

.hinkel-footer {
  padding: .7rem 1rem .6rem;
  background: #051641;
  color: #ccc;
  text-align: center;
}

.hinkel-footer p {
  margin: .1em 0;
  font-size: .9em;
  line-height: 1.2;
}

.hinkel-footer a {
  color: #ccc;
}

.hinkel-footer a:hover,
.hinkel-footer a:focus {
  color: #fff;
}

.hinkel-menu-toggle {
  display: none;
}

/* User-managed content must never force a horizontal page scroll. */
#body-wrapper img,
#body-wrapper picture,
#body-wrapper video,
#body-wrapper iframe,
#body-wrapper embed,
#body-wrapper object {
  max-width: 100%;
}

#body-wrapper iframe,
#body-wrapper embed,
#body-wrapper object,
#body-wrapper video {
  display: block;
  width: 100%;
}

#body-wrapper table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

#body-wrapper pre,
#body-wrapper code,
#body-wrapper a,
.feature-content-text {
  overflow-wrap: anywhere;
}

.feature-content-text > :first-child {
  margin-top: 0;
}

.feature-content-text > :last-child {
  margin-bottom: 0;
}

.mobile-container {
  position: static;
}

.overlay {
  /* Keep the fixed header and its close button above the menu layer. */
  z-index: 999;
  padding: 5.5rem 1rem 1rem;
  background: #051641;
}

.overlay.open {
  height: 100dvh;
  opacity: 1;
}

.overlay-menu {
  height: calc(100dvh - 6.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay .mobile-logo {
  display: none;
}

.overlay .treemenu {
  margin: 0;
  padding: 0;
}

.overlay .treemenu li {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.overlay .treemenu li a,
.overlay .treemenu li a.active,
.overlay .treemenu li a:hover,
.overlay .treemenu li a:focus,
.overlay .treemenu .toggler {
  color: #fff !important;
}

/* A touch device can keep a desktop-sized CSS viewport in embedded viewers. */
@media (max-width: 960px), (hover: none) and (pointer: coarse) {
  body.header-fixed #body-wrapper {
    padding-top: 4.5rem;
  }

  #header.hinkel-header {
    height: 4.5rem;
  }

  body.header-fixed.header-animated #header.hinkel-header.scrolled {
    height: 4.5rem;
  }

  .hinkel-branding {
    height: 4.5rem;
  }

  body.header-fixed.header-animated #header.hinkel-header.scrolled .hinkel-branding {
    height: 4.5rem;
  }

  .hinkel-branding-rule {
    min-height: 4.5rem;
    border-bottom-width: 4px;
  }

  .hinkel-brand-logo {
    width: 4.5rem;
    height: 4.5rem;
  }

  .hinkel-brand-copy {
    top: 1.1rem;
    right: 4.25rem;
    left: 5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hinkel-brand-copy h1 {
    font-size: 1.3rem;
    line-height: 1.15;
  }

  .hinkel-brand-copy p {
    display: none;
  }

  #header.hinkel-header .hinkel-navigation {
    display: none !important;
  }

  #header.hinkel-header .hinkel-menu-toggle {
    position: fixed;
    top: .85rem;
    right: .85rem;
    z-index: 1002;
    display: flex !important;
    width: 2.6rem;
    height: 2.6rem;
    padding: .5rem;
    border: 0;
    border-radius: .25rem;
    background: #051641;
    cursor: pointer;
  }

  .hinkel-menu-toggle span {
    display: block;
    position: absolute;
    right: .5rem;
    left: .5rem;
    width: auto;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: top .25s ease, transform .25s ease, opacity .25s ease;
  }

  .hinkel-menu-toggle .top {
    top: calc(50% - .5rem);
  }

  .hinkel-menu-toggle .middle {
    top: calc(50% - 1.5px);
  }

  .hinkel-menu-toggle .bottom {
    top: calc(50% + .5rem - 3px);
  }

  .hinkel-menu-toggle.active .top {
    top: calc(50% - 1.5px);
    transform: rotate(45deg);
  }

  .hinkel-menu-toggle.active .middle {
    opacity: 0;
  }

  .hinkel-menu-toggle.active .bottom {
    top: calc(50% - 1.5px);
    transform: rotate(-45deg);
  }
}

@media (max-width: 380px) {
  .hinkel-brand-logo {
    display: block;
  }

  .hinkel-brand-logo-mobile {
    display: none;
  }

  .hinkel-brand-copy {
    right: 4rem;
    left: 5rem;
  }

  .hinkel-brand-copy h1 {
    font-size: 1.12rem;
  }
}
