/* Shim styles. The hamburger and search dropdowns inherit Super.so's
   .super-navbar__menu* and .super-search-input classes; this file only adds
   layout for the search results below the input bar. */

.shim-search-panel {
  /* Match menu width but allow it to grow on wider screens for results */
  min-width: 380px !important;
}

.shim-search-bar {
  margin: 12px 12px 8px 12px !important;
  cursor: text;
}
.shim-search-bar svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.shim-search-bar input::-webkit-search-cancel-button {
  display: none;
}
.shim-search-bar input::placeholder {
  color: var(--color-text-default-light, #888);
  opacity: 1;
}
.shim-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-default-light, #888);
  flex-shrink: 0;
}
.shim-search-clear:hover {
  color: var(--color-text-default, #000);
}

.shim-search-results {
  padding: 0 8px 8px 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.shim-search__hit {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--navbar-text-color, #37352f);
  transition: background 200ms ease-in-out;
}
.shim-search__hit:hover,
.shim-search__hit.active {
  background: var(--navbar-background-color-hover, rgba(130, 130, 130, 0.09));
}
.shim-search__title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.shim-search__snippet {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-default-light, #666);
}
.shim-search__snippet mark {
  background: rgba(109, 192, 96, 0.25);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.shim-search__empty {
  padding: 14px 16px;
  margin: 0;
  color: var(--color-text-default-light, #666);
  font-size: 0.9rem;
}
