/* Results panel for the client-side site search. */

.sm-search-form {
  position: relative;
}

.sm-search-results {
  position: absolute;
  z-index: 999;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(8, 23, 46, .45);
  text-align: left;
}

.sm-search-results[hidden] {
  display: none;
}

.sm-search-hit {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f6;
  text-decoration: none;
  color: #08172e;
}

.sm-search-hit:last-child {
  border-bottom: 0;
}

.sm-search-hit:hover,
.sm-search-hit:focus {
  background: #f4f7fc;
  outline: none;
}

.sm-search-hit:focus-visible {
  box-shadow: inset 3px 0 0 #00329d;
}

.sm-search-hit__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #00329d;
  margin-bottom: 3px;
}

.sm-search-hit__text {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #5a6672;
}

.sm-search-hit mark {
  background: #d9f4f2;
  color: #08172e;
  padding: 0 2px;
  border-radius: 2px;
}

.sm-search-empty {
  margin: 0;
  padding: 16px;
  font-size: 14px;
  color: #5a6672;
}

/* the header search sits in a narrow dropdown - let results escape it */
.searchh .sm-search-results {
  right: auto;
  width: 340px;
  max-width: 78vw;
}

@media (max-width: 767px) {
  .sm-search-results {
    width: auto;
    min-width: 0;
  }
  .searchh .sm-search-results {
    right: 0;
    width: auto;
  }
}
