.journey-blog-header {
  position: relative;
  z-index: 1000;
  font-family: Montserrat, Arial, sans-serif;
  background: linear-gradient(90deg, #e82a2a 0%, #f48542 54.04%, #fbc051 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .24);
}

/* WordPress plugins include broad SVG rules. Keep their styles out of this header. */
.journey-blog-header svg {
  box-sizing: border-box;
  display: block !important;
  flex: 0 0 auto !important;
  max-width: none !important;
  max-height: none !important;
}

.journey-blog-header__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, 100%);
  min-height: 90px;
  margin: 0 auto;
  padding: 10px 28px 7px;
}

.journey-blog-header__brand {
  flex: 0 0 auto;
}

.journey-blog-header__brand img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.journey-blog-header__content {
  flex: 1 1 auto;
  min-width: 0;
}

.journey-blog-header__search {
  position: relative;
  display: flex;
  max-width: 500px;
  height: 40px;
  margin: 0 auto 12px;
  /* Results sit below this control; clipping here hid the Algolia menu. */
  overflow: visible;
  background: #fff;
  border-radius: 12px;
}

.journey-blog-header__search input {
  flex: 1;
  box-sizing: border-box;
  height: 40px !important;
  min-width: 0;
  padding: 0 14px;
  color: #444;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.journey-blog-header__search button {
  width: 54px;
  margin-top: 1px;
  color: #333;
  background: #fff;
  border: 0;
  border-left: 1px solid #ddd;
  cursor: pointer;
}

.journey-blog-header__search button svg {
  width: 20px !important;
  height: 20px !important;
  margin-top: -3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.journey-blog-header__results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 1001;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
}

.journey-blog-header__results[hidden] {
  display: none !important;
}

.journey-blog-header__result {
  display: block;
  padding: 11px 14px;
  overflow: hidden;
  color: #333;
  font: 14px/1.35 Montserrat, Arial, sans-serif;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.journey-blog-header__result:hover,
.journey-blog-header__result:focus {
  color: #333;
  background: #f7f7f7;
}

.journey-blog-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 0;
}

.journey-blog-header__nav a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.journey-blog-header__nav svg {
  width: 19px !important;
  height: 19px !important;
  fill: currentColor;
  stroke: none;
}

.journey-blog-header__nav .journey-icon--home path:first-child {
  fill: #fff;
}

.journey-blog-header__nav .journey-icon--home path:last-child {
  fill: #e9312c;
}

.journey-blog-header__nav .journey-icon--player-stroke {
  fill: none;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-width: 2;
}

.journey-blog-header__nav a:hover,
.journey-blog-header__nav a:focus {
  color: #fff;
  text-decoration: underline;
}

.journey-blog-header__insurance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 280px;
  position: relative;
  align-self: stretch;
  min-height: 0;
  margin-top: 35px;
  padding: 13px 20px 0;
  color: #0c408c;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.journey-blog-header__insurance::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -28px;
  bottom: -7px;
  left: 0;
  content: '';
  background: url('../img/Union.png') 0 0 / 100% 100% no-repeat;
}

.journey-blog-header__insurance > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.journey-blog-header__insurance svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor;
}

@media (min-width: 1280px) {
  .journey-blog-header__insurance::before {
    /* Header content is centered in a 1280px frame; extend the tab to the viewport edge. */
    right: calc(612px - 50vw);
  }
}

/* The theme's original navigation is replaced by the local Journey header. */
#body-wrap > #wrap > header .cactus-nav {
  display: none;
}

/* Newstube reserved this space for the original navigation. */
#body-wrap {
  margin-top: 0 !important;
}

@media (max-width: 1000px) {
  /* Keep the search and primary navigation comfortable on tablets and phones. */
  .journey-blog-header__insurance {
    display: none;
  }
}

@media (max-width: 900px) {
  .journey-blog-header__inner {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding: 10px 16px;
  }

  .journey-blog-header__brand img {
    width: 150px;
  }

  .journey-blog-header__content {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .journey-blog-header__search {
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }

  .journey-blog-header__nav {
    gap: 14px;
  }

  .journey-blog-header__insurance {
    margin-left: auto;
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .journey-blog-header__nav {
    justify-content: space-between;
    gap: 5px;
    padding: 0 4px;
  }

  .journey-blog-header__nav a {
    gap: 3px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .journey-blog-header__nav svg {
    width: 15px !important;
    height: 15px !important;
  }

  .journey-blog-header__insurance {
    display: none;
  }
}
