/* web/styles/search.css */
/* The shell sets the shape from these; the results scroll inside it. */
.search-dialog {
  --dialog-width: 42rem;
  --dialog-height: 40rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--text);
}
.search-dialog::backdrop {
  background: color-mix(in srgb, var(--text) 35%, transparent);
}
.search-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.search-dialog h2 {
  margin: 0;
  font-size: 1.2rem;
}
.search-dialog .search-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
}
.search-scope,
.search-status,
.search-results small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.search-field {
  display: grid;
  gap: 0.4rem;
}
.search-field input {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  padding: 0.7rem;
}
.search-descendants {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  min-height: 2.75rem;
}
.search-descendants[hidden] {
  display: none;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.search-results a {
  color: var(--accent);
  font-weight: 600;
}
.search-results small {
  display: block;
  margin-top: 0.25rem;
}
.search-results p {
  white-space: pre-wrap;
  margin: 0.5rem 0 0;
}
.search-dialog footer {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
