/*
  NewsMajor search reveal upgrade
  Keeps the existing home search/trending section, but hides it until the
  header search button is pressed.
*/

.king-body-search-up {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.king-body-search-up > .king-body-search {
  position: absolute !important;
  height: 0 !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height 240ms ease, opacity 180ms ease, visibility 0s linear 240ms;
}

body.nm-search-open .king-body-search-up > .king-body-search {
  position: relative !important;
  height: auto !important;
  background: #0c0b0d !important;
  background-image: none !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  align-self: stretch !important;
  display: block !important;
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  transition: max-height 260ms ease, opacity 200ms ease;
}

body.nm-search-open .king-body-search-up > .king-featureds {
  display: none !important;
}

body.nm-search-open .king-body-search-up > .king-body-search .king-search {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  width: min(730px, calc(100vw - 160px)) !important;
  max-width: 730px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.nm-search-open .king-body-search-up > .king-body-search .king-search-in {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.nm-search-open .king-body-search-up > .king-body-search .king-search form {
  width: 100% !important;
}

body.nm-search-open .king-body-search-up > .king-body-search .search-disc {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-button .search-toggle {
  cursor: pointer;
}

@media (max-width: 768px) {
  body.nm-search-open .king-body-search-up > .king-body-search .king-search {
    width: calc(100vw - 32px) !important;
  }
}

@media (max-width: 991px) {
  .leo-nav .leo-range {
    display: flex !important;
  }
}

@media (max-width: 725px) {
  .leo-nav {
    align-items: center;
  }

  .leo-nav .leo-range {
    flex: 1 1 100%;
    order: 4;
    box-sizing: border-box;
    height: 44px;
    margin: 0 7px 8px;
    padding: 0 12px;
  }

  .leo-nav .leo-slider {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 12px;
    opacity: 1;
    touch-action: pan-y;
  }

  #container.column-1 .king-part-q-list .container .box,
  #container.column-1 .king-part-q-list .container .grid-sizer {
    width: 100% !important;
  }

  #container.column-2 .king-part-q-list .container .box,
  #container.column-2 .king-part-q-list .container .grid-sizer {
    width: 50% !important;
  }

  #container.column-2 .box .mslider-post-content {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    padding: 18px 8px 8px !important;
  }

  #container.column-2 .box .mslider-title {
    display: -webkit-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: 14px !important;
    line-height: 18px !important;
    word-break: normal;
  }

  #container.column-2 .box .mslider-post-meta {
    height: 20px;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
  }

  .leo-nav .leo-slider::-webkit-slider-thumb {
    width: 42px;
    height: 28px;
  }

  .leo-nav .leo-slider::-moz-range-thumb {
    width: 42px;
    height: 28px;
  }

  .leo-nav .leo-range i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
  }
}
