/* Search page styles — kept external (not inline) to satisfy the enforced
   edge CSP: style-src 'self' (no 'unsafe-inline'). Depends on the design
   tokens defined in index.css. */
.search-wrap { max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.search-field { position: relative; margin: 1.5rem 0 0.5rem; }
.search-field svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--muted); pointer-events: none;
}
#search-input {
  width: 100%; box-sizing: border-box; font-size: 1.1rem; font-family: inherit;
  color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1rem 1rem 3rem;
}
#search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}
#search-status {
  font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em;
  margin: 0.75rem 0 2rem;
}
#search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.search-result a {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.25rem 1.4rem; transition: border-color 0.15s, transform 0.15s;
}
.search-result a:hover,
.search-result a:focus-visible {
  border-color: var(--accent); transform: translateY(-1px);
  outline: none;
}
.search-result a:focus-visible { box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }
.search-result-top { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.search-result-section {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 600; flex-shrink: 0;
}
.search-result-title { font-size: 1.15rem; margin: 0; color: var(--text); line-height: 1.3; }
.search-result-snippet {
  font-size: 0.9rem; color: var(--muted); line-height: 1.7;
  margin: 0.5rem 0 0.6rem;
}
.search-result-url { font-size: 0.75rem; color: var(--accent); word-break: break-word; }
.search-result mark, #search-results mark {
  background: rgba(0,102,204,0.15); color: inherit; padding: 0 2px; border-radius: 2px;
}
.search-empty { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
noscript .search-empty { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
