/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Research-tool density: keep tables and quotes readable, not decorative. */
.predicate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0 0.35rem;
  color: #334155;
}

.evidence-quote {
  border-left: 3px solid #94a3b8;
  padding: 0.4rem 0.85rem;
  margin: 0.5rem 0;
  background: #f8fafc;
}

.explore-graph {
  height: 560px;
  background: #f8fafc;
}

.claim-card {
  background: #fff;
}

code {
  font-size: 0.85em;
}

/* Autocomplete sits under the search input. The extra wrapper is added
   by project.js so every opted-in box gets the same listbox. */
.autocomplete {
  position: relative;
}

.input-group:has(> .autocomplete) {
  position: relative;
}

.input-group > .autocomplete {
  position: static;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group > .autocomplete:not(:last-child) .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.autocomplete-list {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  left: 0;
  max-height: 20rem;
  margin: 0.15rem 0 0;
  padding: 0.25rem 0;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.navbar .autocomplete-list {
  min-width: 22rem;
  right: auto;
}

.autocomplete-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.autocomplete-item.is-active,
.autocomplete-item:hover {
  background: #eef2ff;
}

.autocomplete-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-item__meta {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.8em;
  text-transform: lowercase;
}
