/* Scoped search styles: original website branding/layout remains untouched. */
.hs-search {
  box-sizing: border-box;
  position: fixed;
  inset: 7vh auto auto 50%;
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: 86vh;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid #dce0e4;
  border-radius: 14px;
  background: #fff;
  color: #222b33;
  box-shadow: 0 20px 80px #11182738;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 2147483000;
}
.hs-search:not([open]) { display: none; }
.hs-search::backdrop { background: #14212e99; }
.hs-search *, .hs-search *::before, .hs-search *::after { box-sizing: border-box; }
.hs-search__panel { padding: 26px; }
.hs-search__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block-end: 24px; }
.hs-search .hs-search__title { margin: 0; font: 650 24px/1.25 system-ui, sans-serif; color: #222b33; }
.hs-search .hs-search__close { display: grid; place-items: center; flex: 0 0 42px; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #dce0e4; border-radius: 50%; background: #fff; color: #333; font: 28px/1 system-ui, sans-serif; cursor: pointer; }
.hs-search__label { display: block; margin-block-end: 8px; font-size: 14px; font-weight: 600; }
.hs-search__controls { display: flex; gap: 10px; align-items: stretch; }
.hs-search .hs-search__input { display: block; flex: 1; min-width: 0; width: 100%; height: 48px; margin: 0; padding: 10px 13px; border: 1px solid #a6b0b8; border-radius: 6px; background: #fff; color: #222b33; font: inherit; box-shadow: none; }
.hs-search .hs-search__submit, .hs-search .hs-search__retry { height: auto; min-height: 44px; padding: 10px 18px; border: 1px solid #243f54; border-radius: 6px; background: #243f54; color: #fff; font: 600 15px/1.4 system-ui, sans-serif; cursor: pointer; }
.hs-search .hs-search__retry[hidden] { display: none; }
.hs-search .hs-search__status { margin: 18px 0 12px; color: #54616b; font-size: 14px; }
.hs-search .hs-search__results { margin: 0; padding: 0; list-style: none; }
.hs-search__result { margin: 0; padding: 0; border-block-start: 1px solid #e5e8eb; }
.hs-search .hs-search__link { display: flex; flex-direction: column; gap: 5px; padding: 16px 8px; border-radius: 4px; color: #243f54; text-decoration: none; }
.hs-search .hs-search__link:hover { background: #f4f7f9; color: #152d40; }
.hs-search__type { color: #65737e; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .035em; }
.hs-search__result-title { color: inherit; font-size: 18px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.hs-search__excerpt { color: #54616b; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hs-search :is(button, input, a):focus-visible, .hs-search-trigger:focus-visible { outline: 3px solid #247bb3 !important; outline-offset: 3px; outline-style: solid !important; }
.hs-search-trigger { position: fixed; inset: auto auto 20px 20px; z-index: 1000; min-height: 42px; padding: 9px 17px; border: 1px solid #c6d0d8; border-radius: 24px; background: #fff; color: #243f54; box-shadow: 0 3px 14px #172b3b18; font: 600 14px/1.5 system-ui, sans-serif; cursor: pointer; }
@media (max-width: 520px) {
  .hs-search { inset-block-start: 16px; width: calc(100vw - 20px); max-height: calc(100dvh - 32px); }
  .hs-search__panel { padding: 18px; }
  .hs-search .hs-search__title { font-size: 21px; }
  .hs-search__controls { flex-wrap: wrap; }
  .hs-search .hs-search__input { flex-basis: 100%; }
  .hs-search .hs-search__submit { width: 100%; }
  .hs-search-trigger { inset-inline-start: 12px; inset-block-end: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-search, .hs-search * { scroll-behavior: auto !important; }
}
