button[data-open-site-search],
.nfx-search-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #163958;
  cursor: pointer;
}
button[data-open-site-search] svg { display: block; width: 21px; height: 21px; }
.nfx-search-close svg { width: 19px; height: 19px; }
@media (hover: hover) {
  button[data-open-site-search]:hover,
  .nfx-search-close:hover { background: #e5ebe9; }
}
button[data-open-site-search]:focus-visible,
.nfx-search-close:focus-visible { outline: 2px solid #163958; outline-offset: 1px; }

html:has(#nfx-site-search[open]) { overflow: hidden; }
#nfx-site-search {
  position: fixed;
  inset: 0 0 auto;
  box-sizing: border-box;
  width: min(650px, calc(100% - 40px));
  max-width: none;
  max-height: none;
  margin: min(11vh, 96px) auto 0;
  padding: 0;
  border: 1px solid #c3cccb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 54px rgb(10 30 46 / 22%);
  color: #263139;
  text-align: start;
  overflow: hidden;
}
#nfx-site-search::backdrop { background: rgb(11 27 40 / 48%); }
.nfx-search-panel {
  display: flex;
  flex-direction: column;
  max-height: min(660px, 78vh);
  max-height: min(660px, 78dvh);
  font: inherit;
}
.nfx-search-top { flex: none; padding: 20px 28px 0; }
.nfx-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
#nfx-search-title {
  margin: 0;
  color: #163958;
  font-family: inherit;
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.25;
}
.nfx-search-close { margin-inline-end: -8px; }
.nfx-search-field {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #839394;
  border-radius: 4px;
  background: #fff;
  color: #163958;
}
.nfx-search-field:focus-within {
  border-color: #163958;
  box-shadow: inset 0 0 0 1px #163958;
}
.nfx-search-field svg { flex: none; width: 21px; height: 21px; }
#nfx-search-query {
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #19344a;
}
#nfx-search-query::placeholder { color: #58676c; opacity: 1; }
.nfx-search-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 19px 28px 23px;
}
.nfx-search-body .nfx-search-status {
  margin: 0 0 7px;
  color: #52636a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.nfx-search-results { margin: 0; padding: 0; list-style: none; }
.nfx-search-results li { margin: 0; padding: 0; border-bottom: 1px solid #e2e7e5; }
.nfx-search-results li:last-child { border-bottom: 0; }
.nfx-search-results a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  column-gap: 15px;
  min-height: 48px;
  padding: 10px 4px;
  color: #163958;
  text-decoration: none;
}
.nfx-search-results a:focus-visible {
  outline: 2px solid #163958;
  outline-offset: -2px;
  background: #eff3f2;
}
@media (hover: hover) {
  .nfx-search-results a:hover { background: #eff3f2; }
}
.nfx-search-copy, .nfx-search-name, .nfx-search-detail { display: block; }
.nfx-search-copy { overflow-wrap: anywhere; }
.nfx-search-name { color: #163958; font-size: 16px; font-weight: 600; line-height: 1.45; }
.nfx-search-detail { margin-top: 3px; color: #4e5a60; font-size: 14px; line-height: 1.5; }
.nfx-search-kind { color: #53636b; font-size: 12px; line-height: 1.35; }
.nfx-search-arrow { grid-column: 3; align-self: center; color: #39556d; font-size: 17px; text-align: end; }
.nfx-search-body .nfx-search-empty { margin: 10px 0 6px; font-size: 15px; line-height: 1.6; }
@media (max-width: 600px) {
  #nfx-site-search {
    width: calc(100% - 24px);
    margin-top: max(12px, env(safe-area-inset-top));
    border-radius: 6px;
  }
  .nfx-search-panel {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  }
  .nfx-search-top { padding: 12px 16px 0; }
  .nfx-search-heading { margin-bottom: 10px; }
  .nfx-search-body { padding: 16px; }
  .nfx-search-results a { grid-template-columns: minmax(0, 1fr) 18px; column-gap: 8px; }
  .nfx-search-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .nfx-search-kind { grid-column: 1; margin-top: 4px; }
  .nfx-search-field { gap: 9px; padding-inline: 11px; }
}
