/* Suggestions while typing in the search fields of the help (#88): plain CSS loaded with HelpSuggest.js by
   Partials/Tutorials/Navigation.html; the list hangs below the input group, over the content */

.vo-umbrella-help-suggest-wrap {
  position: relative;
}

.vo-umbrella-help-suggest {
  position: absolute;
  z-index: 1050;
  left: 0;
  right: 0;
  max-width: 40rem;
  margin: -0.5rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  background-color: var(--bs-white);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.vo-umbrella-help-nav .vo-umbrella-help-suggest {
  margin-top: 0.25rem;
}

.vo-umbrella-help-suggest a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: var(--bs-body-color);
  text-decoration: none;
}

.vo-umbrella-help-suggest [role="option"].is-active a,
.vo-umbrella-help-suggest a:hover {
  background-color: var(--color-primary-opacity_10);
}

.vo-umbrella-help-suggest-icon {
  flex: 0 0 1.75rem;
  height: 1.75rem;
  background-color: var(--color-primary);
  -webkit-mask: var(--vo-umbrella-help-tile-icon) center / contain no-repeat;
  mask: var(--vo-umbrella-help-tile-icon) center / contain no-repeat;
}

.vo-umbrella-help-suggest-title {
  flex: 1 1 auto;
  font-weight: 600;
  color: var(--color-primary);
}

.vo-umbrella-help-suggest-topic {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

/* the typed part, marked like the search word in the hits (helpSearch.css). font-size: inherit, because the portal sets
   a fixed font size on every element ("*, html" in main.css), which a mark inside a heading or badge would get instead
   of the size around it (Axel, 02.11.2026) */
.vo-umbrella-help-suggest mark {
  padding: 0;
  font-size: inherit;
  color: inherit;
  background-color: var(--bs-warning-bg-subtle);
}

/* below the suggestions: how often the typed word is marked on the current page */
.vo-umbrella-help-suggest-page {
  padding: 0.5rem 1rem 0.25rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}

/* the typed word marked in the content of the current page (HelpSuggest.js); always dark text, the light yellow would
   not be readable with the white text of badges and buttons */
.vo-umbrella-help-page-mark {
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: var(--bs-body-color);
  background-color: var(--bs-warning-bg-subtle);
  box-shadow: 0 0 0 1px var(--bs-warning-border-subtle);
}
