/* Override stock mSearch2 / jQuery UI autocomplete for the global search modal */
.search-modal .ui-autocomplete,
body > .ui-autocomplete.mse2-ac,
.ui-autocomplete .mse2-ac-wrapper {
  display: none !important;
}

.search-modal .global-search-box.msearch2 {
  margin-bottom: 0;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 2rem;
  margin-top: 1.5rem;
}

.search-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .8rem;
  color: #6b7670;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.global-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  min-height: 180px;
}

.global-search-results.is-loading {
  opacity: .55;
  pointer-events: none;
}

.search-result-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  align-items: center;
  gap: .8rem;
  padding: .6rem;
  color: var(--ink);
  background: #faf8f3;
  border: 1px solid #e1d9cd;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.search-result-item:hover {
  color: var(--ink);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.search-result-item img {
  display: block;
  width: 72px;
  height: 72px;
  padding: .25rem;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center center;
  background: #eee8df;
}

.search-result-item strong,
.search-result-item small {
  display: block;
}

.search-result-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
}

.search-result-item small {
  margin-top: .2rem;
  overflow: hidden;
  color: #68736e;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-item > .bi {
  color: var(--green-700);
  justify-self: end;
}

.search-aside {
  padding-left: 1.4rem;
  border-left: 1px solid #ded6ca;
}

.search-aside h3 {
  margin-bottom: .9rem;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-aside a {
  display: block;
  padding: .65rem 0;
  color: #35423c;
  border-bottom: 1px solid #eee8de;
  text-decoration: none;
}

.search-aside a:hover {
  color: var(--green-900);
}

.search-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: .55rem;
  padding: 3rem 1rem;
  text-align: center;
  color: #73807a;
  background: #faf8f3;
  border: 1px dashed #d5cec2;
}

.search-empty > i {
  color: var(--gold-dark);
  font-size: 1.8rem;
}

.search-empty p {
  margin: 0;
  max-width: 28rem;
}

@media (max-width: 991.98px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .search-aside {
    padding: 1rem 0 0;
    border-top: 1px solid #ded6ca;
    border-left: 0;
  }
}

@media (max-width: 767.98px) {
  .global-search-results {
    grid-template-columns: 1fr;
  }
}
