/* static/frontend/css/search.css */
.search-wrap {
  max-width: 960px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}
/* Make the search bar row sticky and horizontal */
.search-bar-row {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 0.5rem 0 1rem;
  display: block;
  will-change: top;
  contain: paint;
}
/* Input grows, button keeps natural width */
.search-input {
  width: 100%;
  font-size: 1.125rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  /* border-radius: .5rem; */
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.search-input:focus {
  border-color: #94a3b8; /* slate-300 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); /* soft blue ring */
}
/* Results list */
.search-results {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}
.search-results.is-loading {
  pointer-events: none;
}
.search-skeleton {
  border-color: #efefef;
}
.skeleton-line {
  display: block;
  height: 0.85rem;
  background: rgba(230, 230, 230, 0.75);
  border-radius: 4px;
}
.skeleton-line--title {
  width: 55%;
  height: 1rem;
  margin-bottom: 0.6rem;
}
.skeleton-line--body {
  width: 100%;
  margin-bottom: 0.45rem;
}
.skeleton-line--body.short {
  width: 70%;
  margin-bottom: 0;
}
.search-item {
  display: block;
  border: 1px solid #e7e7e7;
  /* border-radius: .75rem; */
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.search-item:hover {
  border-color: #bbd5e1;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
.search-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: space-between;
}
.search-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.search-kind {
  font-size: 0.75rem;
  line-height: 1;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.2rem 0.45rem;
  text-transform: uppercase;
}
.search-date {
  font-size: 0.85rem;
  margin: 0.15rem 0 0.35rem;
}
.search-excerpt {
  line-height: 1.45;
}
.search-empty {
  padding: 0.75rem 0;
}
.search-sentinel {
  width: 100%;
  height: 1px;
}
mark {
  background: #fff2a8;
}
