/* Search (redesign) — page-specific layout.
   Shared primitives in src/styles/redesign.module.css; tokens in tokens.css. */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

/* ---- search bar ---- */
.searchBar {
  padding: 6px;
}
.searchInputRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-faint);
}
.searchInput {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--text);
}
.searchInput::placeholder {
  color: var(--text-faint);
}
.searchControls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 8px;
  flex-wrap: wrap;
}
.controlsRight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.filterRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 12px;
  flex-wrap: wrap;
}

/* ---- result meta ---- */
.resultMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---- result cards ---- */
.results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resultCard {
  overflow: hidden;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.resultCard:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.resultCardOpen {
  border-color: var(--primary-line);
}
.resultHead {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 18px;
  cursor: pointer;
}
.resultTitleWrap {
  flex: 1;
  min-width: 0;
}
.resultTitle {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  overflow: hidden;
}
.breadcrumb > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.breadcrumb svg {
  opacity: 0.6;
}
.resultMetaR {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chev {
  color: var(--text-faint);
  transition: transform 0.2s;
  display: inline-flex;
}
.chevOpen {
  transform: rotate(180deg);
}
.resultSnippet {
  padding: 0 18px 16px 71px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.resultSnippetOpen {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.resultExpand {
  padding: 0 18px 16px 71px;
  animation: fade 0.2s ease;
}
.resultStats {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.emptyState {
  text-align: center;
  padding: 48px;
  color: var(--text-faint);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .resultExpand { animation: none; }
}

@media (max-width: 720px) {
  .resultSnippet,
  .resultExpand {
    padding-left: 18px;
  }
}
