.top-search { position: relative; min-width: 0; flex: 1 1 540px; max-width: 580px; }
.top-search-form {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #eff4fb;
  color: #253e62;
}
.top-search-form:focus-within { background: #fff; border-color: #57979c; box-shadow: 0 0 0 2px #dceeed; }
.top-search-form button {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.top-search-form button:hover { background: #e1ebf7; }
.top-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 8px 8px 8px 0;
  color: #182f4b;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .9375rem;
}
.top-search-form input::placeholder { color: #576f88; opacity: 1; }
.search-key {
  flex-shrink: 0;
  margin-right: 10px;
  border: 1px solid #d5e0ec;
  border-radius: 6px;
  padding: 1px 7px;
  color: #516b82;
  background: #f8fafd;
  font-family: inherit;
  font-size: .75rem;
}
.search-suggestions {
  position: absolute;
  inset: calc(100% + 7px) 0 auto;
  z-index: 1;
  padding: 6px;
  max-height: min(390px, calc(100dvh - 135px));
  overflow-y: auto;
  background: #fff;
  color: #223d59;
  border: 1px solid #d9e5ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px #17304c21;
}
.search-suggestion-status { color: #536f84; margin: 4px 7px; font-size: .875rem; }
.search-suggestion-status:empty, .search-suggestion-list:empty { display: none; }
.search-suggestion-list, .search-result-list { list-style: none; padding: 0; margin: 0; }
.search-suggestion-list a, .search-result-list a {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  color: #284d65;
}
.search-suggestion-list a:hover, .search-result-list a:hover { text-decoration: none; background: #edf5f8; }
.search-suggestion-list strong, .search-result-list strong { line-height: 1.4; font-size: .9375rem; }
.search-suggestion-list small, .search-result-list small { color: #516c84; font-size: .8125rem; line-height: 1.5; }
.all-search-results { display: block; margin: 4px 2px 0; padding: 8px 9px; border-top: 1px solid #e5edf4; font-size: .875rem; font-weight: 650; }
.search-page { max-width: 1080px; }
.search-page .page-heading { margin-bottom: 15px; }
.search-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.search-categories a { display: inline-block; padding: 5px 11px; border: 1px solid #d6e2eb; border-radius: 8px; background: #fff; color: #34546a; font-size: .875rem; }
.search-categories a[aria-current="page"] { background: #135966; border-color: #135966; color: #fff; font-weight: 650; }
.search-result-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; gap: 12px; }
.search-result-groups .panel { padding: 15px; margin: 0; }
.search-result-heading { display: flex; align-items: center; gap: 8px; color: #285f6d; margin-bottom: 5px; }
.search-result-heading h2 { margin: 0; font-size: 1rem; }
.search-group-more { display: inline-block; margin: 7px 10px 0; font-size: .875rem; }
.search-empty h2 { margin: 0 0 4px; font-size: 1.125rem; }
.search-empty p { margin: 0; }
@media (max-width: 700px) {
  .search-key { display: none; }
  .top-search-form input { font-size: 1rem; }
  .search-suggestions { right: min(0px, calc(100% - 260px)); }
}
