/* search.css — full-screen search overlay */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  display: none;
  flex-direction: column;
}
.search-overlay[aria-hidden="false"] { display: flex; }

.search-overlay .search-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  max-width: 60rem;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 834px) {
  .search-overlay .search-head { padding: 1.5rem 2rem; }
}

.search-overlay .search-head .icon {
  width: 1rem; height: 1rem;
}

.search-overlay .search-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  outline: 0;
}

.search-overlay .search-close {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-overlay .search-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  width: 100%;
}

.search-results {
  display: flex;
  flex-direction: column;
}
.search-results li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid var(--color-border-soft);
  transition: background 0.15s var(--ease);
}
.search-results li a:hover { background: var(--color-bg-alt); }
.search-results .r-title {
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}
.search-results .r-category {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-empty,
.search-initial {
  padding: 2rem 0.5rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  font-weight: 300;
}
