/* QA fixes that the captured theme CSS cannot express. Linked after the page stylesheet. */

/* /benefits — health benefit cards: a fixed 524px card height on phones. Flickity sizes the slide and
   its viewport from the tallest card at init (inline `height: 534px`) and the slide adds 2px of
   padding, so setting only `.inner-wrap` left the card at 524px inside a 534px slide. The whole chain
   (viewport > slide > outer > card) is set to the same 524px so the card, the slide and the
   carousel agree. `!important` is needed to beat Flickity's inline heights. */
@media (max-width: 690px) {
  html body #health .flickity-viewport,
  html body #health .flickity-slider,
  html body #health .flickity-slider > .cell,
  html body #health .cell .inner-wrap-outer,
  html body #health .cell .inner-wrap-outer .inner-wrap {
    height: 524px !important;
  }

  html body #health .flickity-slider > .cell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* /life — the photo under the "Where We Operate" map is a column whose only child is an absolutely
   positioned background layer, so once the columns stack on a phone the column has no content height
   and collapses to a ~6px strip above "Our Workforce". Give the column (and its inner wrapper, which
   the background layer fills) a 240px minimum. */
@media (max-width: 690px) {
  html body #fws_6ae8a29a8ebd9 .vc_col-sm-6:has(> .vc_column-inner > .column-image-bg-wrap),
  html body #fws_6ae8a29a8ebd9 .vc_col-sm-6 > .vc_column-inner:has(> .column-image-bg-wrap) {
    min-height: 240px !important;
  }
}

/* /benefits — the carousel cards' bottom border was clipped. Flickity sizes each carousel's viewport
   (`overflow: hidden`) a couple of pixels shorter than the cards inside it (viewport 415px, cards
   417px), so the cards showed a top and side border but no bottom one. Extend the viewport by 4px of
   padding so the whole card, bottom border included, is inside the clip. Phones are excluded: the rule
   above pins viewport, slide and card to exactly 524px there. */
@media (min-width: 691px) {
  html body :is(#health, #financial, #testimonials) .flickity-viewport {
    box-sizing: content-box;
    padding-bottom: 4px;
  }
}

/* ?s= search results (rendered by the homepage route) — scoped to `body.search`.
   Live's search page is a plain inner page: a solid white header with a spacer under it, a light-gray
   title band with black type. The captured CSS only carries the transparent-header rules the homepage
   needs, which hide the spacer from 1000px up and leave the band transparent with white type. */
body.search #header-space {
  display: block;
}

body.search #page-header-bg {
  background-color: #f4f4f4;
}

body.search #page-header-bg h1,
body.search #page-header-bg .result-num {
  color: #000;
}

/* The theme pads the band's title block (~103px desktop, ~62px mobile) to clear a transparent header
   that overlaps a hero. The search view's header is solid and sits above the band, so live has none —
   with it the title rode ~50px low in the band. */
body.search #page-header-bg[data-alignment-v='middle'] .span_6 .inner-wrap {
  padding-top: 0;
}

/* Homepage "Latest News" notice (components/custom/latest-news-popup.tsx).
   Matches the source's Popup Maker popup #7258 / "Enterprise Blue" theme: a 205px card fixed 10px
   from the bottom-left corner at every screen size, no overlay, 350ms fade-in. */
html body .dy-latest-news {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 1999999999;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 205px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  background-color: #015cb9;
  box-shadow: 0 10px 25px 4px rgba(2, 2, 2, 0.5);
  font-family: Ubuntu, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  opacity: 0;
  transition: opacity 350ms ease;
}

html body .dy-latest-news.is-open {
  opacity: 1;
}

html body .dy-latest-news .dy-latest-news__title {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 16px 32px 0 16px;
  color: #fff;
  font-family: Ubuntu, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 38px;
}

html body .dy-latest-news .dy-latest-news__content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  padding: 16px 32px 0 16px;
  border-radius: 0 0 5px 5px;
  background-color: #fff;
  color: #fff;
  font-family: Ubuntu, sans-serif;
  font-weight: 400;
}

html body .dy-latest-news .dy-latest-news__content p {
  margin: 0 0 16px;
  padding: 0;
  font-size: 16px;
  line-height: 30px;
}

html body .dy-latest-news .dy-latest-news__content a {
  color: #005cb9;
  text-decoration: none;
}

html body .dy-latest-news .dy-latest-news__content a:hover {
  text-decoration: underline;
}

html body .dy-latest-news .dy-latest-news__close {
  position: absolute;
  top: 19px;
  right: 8px;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 20px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 42px;
  background-color: #fff;
  color: #015cb9;
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 100;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

/* Hand fix (not from the clone; re-add after a re-clone). Keep every desktop menu label on one
   line ("About Us", "Contact Us" broke onto two lines, e.g. at 1280px = 1920px screen at 150%).
   Unwrapped, the theme's 20px side margins push the menu past the container, so tighten them. */
#header-outer .sf-menu > li > a {
  white-space: nowrap;
}
@media (min-width: 1000px) and (max-width: 1439.98px) {
  #header-outer header#top nav > ul.sf-menu > li > a {
    margin-left: 14px;
    margin-right: 14px;
  }
}
