.site-search,
.js-rs-search { position: relative; }

.js-rs-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  padding: 6px;
  text-align: left;
  color: #111827;
}

.js-rs-search-results.is-open { display: block; }

.rs-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-search-list li + li { margin-top: 2px; }

.rs-search-item {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  line-height: 1.45;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.rs-search-item:hover,
.rs-search-item:focus {
  background: #e9a72d;
  color: #fff;
  outline: none;
}

.rs-search-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.rs-search-row {
  display: block;
  font-size: 13px;
  color: #4b5563;
  margin-top: 2px;
}

.rs-search-item:hover .rs-search-row,
.rs-search-item:focus .rs-search-row {
  color: rgba(255, 255, 255, 0.92);
}

.rs-search-label {
  font-weight: 600;
  color: #111827;
}

.rs-search-item:hover .rs-search-label,
.rs-search-item:focus .rs-search-label {
  color: #fff;
}

.rs-search-synonyms { line-height: 1.5; }

.rs-search-item mark {
  background:#e9a72d;
  color:  #0c1e3d;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.rs-search-item:hover mark,
.rs-search-item:focus mark {
  background: #0c1e3d;
  color: #fff;
}

.rs-search-empty {
  padding: 16px 14px;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 767px) {
  .site-header .js-rs-search-results {
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    max-height: calc(100vh - 80px);
  }
}
