/* Ask Scout — site-wide and in-page search, no external services */
.ask-scout {
  --ask-purple: #8922AA;
  --ask-green: #388C37;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 40rem;
  min-height: 3rem;
  padding: 0.3rem 0.4rem 0.3rem 0.4rem;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--ask-purple) 70%, #fff), color-mix(in srgb, var(--ask-green) 70%, #fff)) border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ask-purple) 12%, transparent),
    0 0 18px color-mix(in srgb, var(--ask-green) 18%, transparent);
  box-sizing: border-box;
}
.ask-scout:focus-within {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ask-purple) 22%, transparent),
    0 0 22px color-mix(in srgb, var(--ask-green) 24%, transparent);
}
.ask-scout-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #f6eef9;
  display: block;
  object-fit: cover;
}
.ask-scout label.ask-scout-label,
.ask-scout .visually-hidden,
.ask-scout .sr,
.ask-scout .hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ask-scout input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink, #1d1424);
  outline: none;
  padding: 0.35rem 0.15rem;
  -webkit-appearance: none;
  appearance: none;
}
.ask-scout input[type="search"]::placeholder {
  color: #6a5a74;
  opacity: 1;
}
.ask-scout input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  background: radial-gradient(circle, #6a5a74 40%, transparent 42%);
  cursor: pointer;
}
.ask-scout-go {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--ask-purple), color-mix(in srgb, var(--ask-green) 80%, var(--ask-purple)));
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.ask-scout-go:focus-visible {
  outline: 2px solid var(--ask-purple);
  outline-offset: 2px;
}
.ask-scout-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 40;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ask-purple) 25%, #ddd);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(40, 16, 48, 0.16), 0 0 0 3px color-mix(in srgb, var(--ask-purple) 8%, transparent);
  max-height: min(22rem, 70vh);
  overflow: auto;
  padding: 0.4rem 0;
  display: none;
}
.ask-scout-panel.is-open { display: block; }
.ask-scout-list { list-style: none; margin: 0; padding: 0; }
.ask-scout-item a,
.ask-scout-empty {
  display: block;
  padding: 0.65rem 0.95rem;
  text-decoration: none;
  color: inherit;
}
.ask-scout-item a:hover,
.ask-scout-item.is-active a {
  background: color-mix(in srgb, var(--ask-purple) 8%, #f7f3fa);
}
.ask-scout-item a:focus-visible {
  outline: 2px solid var(--ask-purple);
  outline-offset: -2px;
}
.ask-scout-title {
  font-weight: 700;
  color: #2a1833;
}
.ask-scout-title mark {
  background: color-mix(in srgb, #388C37 28%, #fff);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 0.2em;
}
.ask-scout-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--ask-purple);
  font-weight: 650;
  margin-bottom: 0.1rem;
}
.ask-scout-snippet {
  display: block;
  font-size: 0.86rem;
  color: #5a4b63;
  margin-top: 0.15rem;
  line-height: 1.35;
}
.ask-scout-snippet mark {
  background: color-mix(in srgb, var(--ask-purple) 18%, #fff);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 0.2em;
}
.ask-scout-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #3a2a44;
  font-size: 0.95rem;
  line-height: 1.4;
}
.ask-scout-empty img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
}
@media (max-width: 520px) {
  .ask-scout { max-width: 100%; }
  .ask-scout-go { padding: 0.45rem 0.7rem; }
}
