.facet-browser-shell {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.facet-browser-shell .catalog-layout {
  align-items: start;
}

.facet-browser-shell .filters-panel {
  padding-left: 8px;
  align-self: start;
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-width: auto;
}

.researcher-record-row {
  padding-top: 18px;
  padding-bottom: 18px;
}

.researcher-card {
  gap: 18px;
}

.researcher-card-link {
  display: flex;
  gap: 18px;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.researcher-card-link:hover .record-title {
  color: var(--imarina-blue, #0071ba);
}

.researcher-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--imarina-cyan, #00c1df) 26%, white 74%) 0%, color-mix(in srgb, var(--imarina-blue, #0071ba) 86%, white 14%) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.researcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.researcher-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.researcher-summary .record-title {
  margin-bottom: 0;
}

.researcher-subtitle {
  margin: 0;
  color: var(--text, #2f3133);
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.researcher-subtitle--tooltip {
  cursor: help;
}

.researcher-subtitle--centered {
  align-items: center;
}

.researcher-subtitle__text {
  display: block;
  min-width: 0;
  max-width: min(780px, calc(100vw - 260px));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.researcher-subtitle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 18px;
  color: var(--imarina-blue, #0071ba);
  font-size: 17px;
  line-height: 1;
}

.researcher-subtitle__icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.researcher-subtitle__icon--centered {
  margin-top: 0;
  align-self: center;
}

.researcher-subtitle__icon--small {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
  font-size: 13px;
}

.researcher-subtitle__more {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  min-width: 18px;
  min-height: 16px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--imarina-blue, #0071ba) 12%, white 88%);
  color: var(--imarina-blue, #0071ba);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  white-space: nowrap;
}

.facet-browser-adscription-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.facet-browser-adscription-tooltip[hidden] {
  display: none;
}

.facet-browser-adscription-tooltip__line {
  display: block;
  padding: 5px 0;
}

.facet-browser-adscription-tooltip__line + .facet-browser-adscription-tooltip__line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.researcher-location,
.researcher-extra {
  margin: 0;
  color: var(--muted, #6e7175);
  font-size: 14px;
  line-height: 1.5;
}

.researcher-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.researcher-location__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--imarina-blue, #0071ba);
  width: 16px;
  height: 16px;
  line-height: 0;
}

.researcher-location__icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.researcher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.researcher-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f5f6;
  color: var(--imarina-navy, #003857);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.researcher-chip--soft {
  background: color-mix(in srgb, var(--imarina-yellow, #feb300) 16%, white 84%);
  color: var(--text, #2f3133);
  text-transform: none;
}

.facet-browser-filters-footer {
  margin-top: 20px;
}

.facet-browser-shell .filter-block__toggle {
  margin-bottom: 18px;
}

.facet-browser-side-control {
  margin-bottom: 18px;
}

.facet-browser-side-control .filter-block__toggle.is-static {
  display: block;
  margin-bottom: 18px;
  cursor: default;
}

.facet-browser-side-control .filter-block__toggle.is-static::before,
.facet-browser-side-control .filter-block__toggle.is-static::after {
  display: none !important;
  content: none !important;
}

.facet-browser-side-control__body {
  display: block !important;
  padding-right: 8px;
}

.facet-browser-side-control__label {
  display: block;
  margin: 0;
}

.facet-browser-side-control__select {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  background: #fff;
  color: var(--text, #2f3133);
  font-size: 15px;
  line-height: 1.2;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.facet-browser-side-control__select:focus {
  outline: none;
  border-color: #c9c9c9;
  box-shadow: 0 0 0 3px rgba(0, 113, 186, 0.08);
}

.researcher-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: -4px;
  margin-bottom: 10px;
}

.researcher-filter-toolbar__search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  background: #fff;
  color: var(--text, #2f3133);
  font-size: 15px;
  line-height: 1.2;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.researcher-filter-toolbar__search::placeholder {
  color: #6e7175;
}

.researcher-filter-toolbar__search:focus {
  outline: none;
  border-color: #c9c9c9;
  box-shadow: 0 0 0 3px rgba(0, 113, 186, 0.08);
}

.researcher-filter-toolbar__search[hidden] {
  display: none;
}

.researcher-filter-toolbar__search[hidden]
  + .researcher-filter-toolbar
  .researcher-filter-toolbar__actions
  .researcher-filter-toolbar__button:nth-child(2) {
  display: none;
}

.researcher-filter-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.researcher-filter-toolbar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #707784;
  font-size: 0;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.researcher-filter-toolbar__button::before {
  font-size: 14px;
  line-height: 1;
}

.researcher-filter-toolbar__button:hover,
.researcher-filter-toolbar__button:focus-visible {
  background: transparent;
  color: #1f2937;
  outline: 0;
}

.researcher-filter-toolbar__button.is-active {
  background: transparent;
  color: #1f2937;
  font-weight: 600;
}

.researcher-filter-toolbar__button--search {
  min-width: 20px;
}

.researcher-filter-toolbar__button--search::before {
  content: "⌕";
  font-size: 16px;
  font-weight: 600;
}

.researcher-filter-toolbar__button--search::before {
  content: "\f002";
  font-family: FontAwesome, "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-size: 12px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.researcher-filter-toolbar__actions .researcher-filter-toolbar__button:nth-child(2)::before {
  content: "x";
  font-size: 18px;
}

.researcher-filter-toolbar__actions .researcher-filter-toolbar__button:nth-child(3)::before {
  content: "A-Z";
  font-size: 13px;
  font-weight: 600;
}

.researcher-filter-toolbar__actions .researcher-filter-toolbar__button:nth-child(4)::before {
  content: "9-1";
  font-size: 13px;
  font-weight: 600;
}

.researcher-filter-toolbar__actions .researcher-filter-toolbar__button:nth-child(3).is-active::before {
  content: "A-Z";
}

.researcher-filter-toolbar__actions .researcher-filter-toolbar__button:nth-child(4).is-active::before {
  content: "9-1";
}


.facet-browser-shell .filter-list--compact {
  display: block;
}

.researcher-filter-options {
  display: block;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0;
  padding-left: 10px;
}

.researcher-filter-options .filter-item {
  display: block;
  position: relative;
  background: transparent !important;
  border-radius: 0 !important;
}

.researcher-filter-options .filter-item label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  margin-left: -10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.researcher-filter-options .filter-item label:hover,
.researcher-filter-options .filter-item label:focus-visible {
  color: #1f2937;
  outline: 0;
}

.researcher-filter-options .filter-item.is-selected label {
  background: transparent;
}

.researcher-filter-options .filter-item label > span:first-child {
  min-width: 0;
  width: auto;
  max-width: 100%;
  justify-self: start;
  padding: 9px 10px;
  border-radius: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.researcher-filter-options .filter-item label:hover > span:first-child,
.researcher-filter-options .filter-item label:focus-visible > span:first-child {
  background: transparent;
}

.researcher-filter-options .filter-item.is-selected label > span:first-child {
  width: 100%;
  background: var(--theme-filter-selected-bg, #dfdfdf);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.researcher-filter-options .filter-item .filter-count {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: center;
  min-width: 48px;
  min-height: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5e5e5 !important;
  box-shadow: none;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
}

.researcher-filter-options .filter-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.researcher-filter-options::-webkit-scrollbar {
  width: 8px;
}

.researcher-filter-options::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.facet-browser-clear-all {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #fff;
  color: var(--text, #2f3133);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.facet-browser-clear-all[hidden] {
  display: none;
}

.facet-browser-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  color: var(--muted, #6e7175);
}

.facet-browser-loading[hidden] {
  display: none;
}

.facet-browser-loading__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0, 113, 184, 0.18);
  border-top-color: var(--imarina-blue, #0071ba);
  border-radius: 50%;
  animation: researchers-spin 0.75s linear infinite;
}

.facet-browser-inline-error {
  padding: 18px;
  border: 1px solid #ecd9d8;
  border-radius: 12px;
  background: #fff6f6;
  color: #8a2f2c;
}

.facet-browser-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.facet-browser-pagination[hidden] {
  display: none;
}

.facet-browser-pagination__button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.facet-browser-pagination__button:disabled {
  border-color: #d3d3d3;
  color: #8a8a8a;
  cursor: not-allowed;
}

.facet-browser-pagination__info {
  font-size: 14px;
  color: #5a5a5a;
  font-weight: 500;
}

@keyframes researchers-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .researcher-card-link {
    align-items: flex-start;
  }

  .researcher-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .facet-browser-shell {
    width: min(100%, calc(100% - 28px));
    padding-top: 16px;
  }

  .researcher-card-link {
    gap: 14px;
  }
}
