/* Extra styles supporting the multi-page conversion and client-side search */

#search-results {
  list-style: none;
  margin: 0.75em 0 0 0;
  padding: 0;
}

#search-results:not(:empty) {
  margin-top: 1em;
  padding: 0.75em 1em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  animation: search-results-fade-in 0.15s ease-out;
}

#search-results li {
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9em;
}

#search-results li:first-child {
  padding-top: 0;
}

#search-results li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#search-results li a {
  display: block;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

#search-results li a:hover {
  padding-left: 0.25em;
}

#search-results li:not(:has(a)) {
  font-style: italic;
  opacity: 0.75;
}

@keyframes search-results-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu li.active-page > a {
  font-weight: bold;
  text-decoration: underline;
}
