/* tool/manual_site/search.css */
/*
 * Search control inserted into the website copy of the manual.
 * Colors follow the variables already defined in manual.css.
 */

.manual-search {
  margin: 0 0 1.4rem;
}

.manual-search-open {
  font: inherit;
  color: var(--link);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}

.manual-search-panel {
  margin-top: 0.7rem;
}

.manual-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.manual-search-input {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.4rem 0.55rem;
  width: 100%;
  box-sizing: border-box;
}

.manual-search-status {
  margin: 0.6rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.manual-search-hits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-search-hits li {
  margin: 0;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}

.manual-search-hits a {
  font-weight: 600;
  text-decoration: none;
}

.manual-search-hits p {
  margin: 0.15rem 0 0;
}

.manual-search mark {
  font-weight: 700;
  color: inherit;
  background: color-mix(in srgb, var(--link) 28%, transparent);
}
