/* search */
.search-wrap {
  margin-top: 16px;
  position: relative;
}
.search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(122, 252, 214, 0.1);
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 480px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.search-hit {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  transition: background 0.1s;
}
.search-hit:last-child { border-bottom: none; }
.search-hit:hover {
  background: rgba(122, 252, 214, 0.06);
  text-decoration: none;
}
.search-hit-title {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.search-hit-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: lowercase;
}
.search-hit-snippet {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.search-empty {
  padding: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}