/* Progressive search controls: keep native selects usable until JS enhances them. */
.gp-search-form {
  padding: 18px;
  background: #f7f9fa;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  color: #294653;
  font-family: inherit;
}
.gp-search-form .gp-search-field {
  position: relative;
  display: block;
  margin: 0 0 18px;
  max-width: 100%;
}
.gp-search-field .search-filter-label {
  display: block;
  margin: 0 0 8px;
  color: #294653;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.gp-search-field input[type="search"],
.gp-search-field input[type="text"],
.gp-search-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #fff;
  color: #294653;
  font: inherit;
  box-shadow: none;
}
.gp-resources-form.gp-search-form {
  margin: 0;
  padding: 16px;
  color: #5e5e5e;
}
.gp-resources-form .gp-search-keyword {
  margin-top: 10px;
  padding: 0;
}
.gp-resources-form .gp-search-keyword input[type="search"] {
  display: block;
  height: 40.6px;
  min-height: 0;
  margin: 0;
  padding: 6.3px 8.77px;
  font-size: 18px;
  line-height: 26px;
}
.gp-search-field input:focus-visible,
.gp-search-field select:focus-visible,
.gp-choice__control:focus-visible,
.gp-choice__search:focus-visible,
.gp-choice__option:focus-visible,
.gp-choice__remove:focus-visible {
  outline: 2px solid #24566a;
  outline-offset: 3px;
}

.gp-choice { position: relative; width: 100%; }
.gp-choice__native { display: none !important; }
.gp-choice__control {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 15px 0 8.77px;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #fff;
  color: #5e5e5e;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.gp-choice__control::after {
  position: absolute;
  inset-inline-end: 40px;
  top: 9px;
  bottom: 9px;
  border-inline-start: 1px solid #a0afb5;
  content: "";
  pointer-events: none;
}
.gp-choice__control:hover { border-color: #7899a7; }
.gp-choice.is-open .gp-choice__control { border-color: #24566a; box-shadow: 0 0 0 1px #24566a; }
.gp-choice__value { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; padding-inline-end: 9px; }
.gp-choice__placeholder { color: #74868d; }
.gp-choice__clear {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #74868d;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  margin: 0 4px 0 0;
}
.gp-choice__clear:hover { background: #e6eff3; color: #24566a; }
.gp-choice__clear[hidden] { display: none; }
.gp-choice__arrow {
  flex: 0 0 9px;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid #24566a;
  border-bottom: 2px solid #24566a;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s;
}
.gp-choice.is-open .gp-choice__arrow { transform: rotate(225deg) translate(-2px, -1px); }
.gp-choice__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 5px 3px 9px;
  border: 1px solid #d5e2e7;
  border-radius: 6px;
  background: #e6eff3;
  color: #1d4759;
  font-size: .92em;
  line-height: 1.35;
}
.gp-choice__chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-choice__remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #24566a;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.gp-choice__remove:hover { background: #d1e1e8; }
.gp-choice__panel {
  position: absolute;
  z-index: 200;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(29 71 89 / 14%);
}
.gp-choice__panel[hidden] { display: none; }
.gp-choice__search { margin: 8px; width: calc(100% - 16px) !important; min-height: 38px !important; }
.gp-choice__list { overflow: auto; max-height: min(320px, 50vh); padding: 4px; }
.gp-choice__option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #294653;
  cursor: pointer;
  font: inherit;
  line-height: 1.4;
  text-align: left;
}
.gp-choice__option:hover, .gp-choice__option.is-selected { background: #e6eff3; color: #1d4759; }
.gp-choice__option[hidden] { display: none; }
.gp-choice__empty { padding: 10px 12px; color: #74868d; }
.gp-search-form .gp-resources-submit {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border: 1px solid #24566a;
  border-radius: 8px;
  background: #24566a;
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background .2s, border-color .2s;
}
.gp-search-form .gp-resources-submit:hover { border-color: #1d4759; background: #1d4759; }
.gp-search-js .gp-search-form[data-gp-auto] .gp-resources-submit { display: none; }
.gp-resources-form.gp-search-form a.gp-resources-reset:any-link {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #24566a;
  border-radius: 8px;
  background: #24566a;
  color: #fff !important;
  font: inherit;
  font-size: 18px;
  line-height: 26px;
  box-shadow: 0 2px 2px 0 rgb(36 86 106 / 14%), 0 3px 1px -2px rgb(36 86 106 / 20%), 0 1px 5px 0 rgb(36 86 106 / 12%);
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.gp-resources-form.gp-search-form a.gp-resources-reset:hover { border-color: #1d4759; background: #1d4759; }
.gp-search-loading [data-gp-results] { opacity: .62; transition: opacity .15s; }
.gp-search-ajax-status { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #f0f5f7; color: #294653; }

.gp-resources-page { padding-top: 170px; }
.gp-resources-page .gp-search-count {
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #f0f5f7;
  color: #294653;
}
.gp-resources-page .pagination { margin: 20px 0; }
.gp-resources-page .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gp-resources-page .pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  padding: 8px 12px;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  background: #fff;
  color: #24566a;
  line-height: 1.4;
  scroll-margin-top: 180px;
}
.gp-resources-page .pagination .page-numbers.current,
.gp-resources-page .pagination a:hover { border-color: #24566a; background: #24566a; color: #fff; }
.gp-resources-page .gp-search-empty { padding: 24px; border: 1px solid #dce5e9; border-radius: 12px; background: #f7f9fa; }

@media (max-width: 767px) {
  .gp-search-form { padding: 14px; }
  .gp-search-field { width: 100%; min-width: 0; }
  .gp-choice__list { max-height: 42vh; }
  .gp-resources-page { padding-top: 110px; }
  .gp-resources-page .pagination { margin: 16px 0; }
}
