/* Inline filtering: one page, immediate results, no nested scroll regions. */
.expert-team__all {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 52px;
  margin-top: 40px;
  padding: 14px 24px;
  background: #bc3230;
  color: #fff;
  border: 1px solid #bc3230;
  border-radius: 0;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.expert-team__all:hover { background: #942725; border-color: #942725; }
.expert-team__all:focus-visible { outline: 2px solid #bc3230; outline-offset: 4px; }
@media (max-width: 767px) { .expert-team__all { width: 100%; margin-top: 28px; } }
.expert-filters {
  --expert-control-height: 3rem;
  --expert-control-gap: 0.5rem;
  width: min(100%, 48rem);
}
.expert-team .expert-filters__caption {
  margin: 0 0 0.75rem;
  color: #666;
  font-size: 0.875rem;
}
.expert-directions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--expert-control-gap);
}
.expert-directions > button,
.expert-directions-extra > button {
  min-height: var(--expert-control-height);
  min-width: 0;
  padding: 0.625rem 0.375rem;
  max-width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  background: #fafafa;
  color: #333;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  cursor: pointer;
  text-align: center;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}
.expert-directions > button:hover,
.expert-directions-extra > button:hover {
  border-color: #b83230;
}
.expert-directions > button[aria-pressed="true"],
.expert-directions-extra > button[aria-pressed="true"] {
  color: #fff;
  background: #b83230;
  border-color: #b83230;
}
.expert-directions > .expert-directions__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: var(--expert-control-height);
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.625rem 0.875rem;
  box-sizing: border-box;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  background: #fafafa;
  font: inherit;
  font-size: 0.875rem;
  color: #333;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}
.expert-directions > .expert-directions__more:hover {
  border-color: #b83230;
  background: #fcf5f5;
  color: #9f2d2b;
}
.expert-directions > .expert-directions__more[aria-expanded="true"] {
  border-color: #ccc;
  background: #f1f1f1;
  color: #333;
}
.expert-directions__more-short {
  display: none;
}
.expert-directions__more-count {
  display: none;
  place-items: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0 0.25rem;
  background: #f1f1f1;
  color: #666;
  font-size: 0.75rem;
}
.expert-directions__more > svg {
  margin-left: 0;
  flex: none;
  transition: transform 160ms ease;
}
.expert-directions__more[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}
.expert-directions-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  margin-top: 0.5rem;
  border: 0;
  background: transparent;
}
.expert-directions-extra[hidden] {
  display: none;
}
.expert-directions-extra > button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-sizing: border-box;
  min-height: var(--expert-control-height);
  border: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  padding: 0.75rem 0.5rem;
  line-height: 1.45;
  text-align: left;
}

.expert-directions-extra > button:hover {
  background: #f7f7f7;
  border-bottom-color: #eee;
}
.expert-directions-extra > button[aria-pressed="true"] {
  color: #9f2d2b;
  background: #fcf3f3;
  border-bottom-color: #eee;
}

.expert-refinements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ebebeb;
}
.expert-refinements > span {
  grid-column: 1 / -1;
  margin-right: 0.25rem;
  color: #777;
  font-size: 0.875rem;
}
.expert-refinements > button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  min-width: 0;
  min-height: var(--expert-control-height);
  padding: 0.625rem 0.75rem;
  border: 1px solid #dedede;
  background: #f6f6f6;
  color: #555;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}
.expert-refinements > button > svg {
  flex: none;
}
.expert-refinements > button > svg:last-child {
  margin-left: auto;
}
.expert-refinements > button:hover {
  border-color: #b83230;
}
.expert-refinements > button[aria-expanded="true"],
.expert-refinements > button[data-selected="true"] {
  border-color: #bf6563;
  color: #a42b29;
  background: #fcf3f3;
}
.expert-refinement-panel {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #fff;
}
.expert-refinement-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.25rem 0 0.5rem;
}
.expert-team .expert-refinement-panel__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.expert-refinement-panel__header > button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}
.expert-refinement-panel__header > button:hover {
  background: #f4f4f4;
}
.expert-refinement-panel .expert-picker__search {
  display: block;
  width: 100%;
  min-height: var(--expert-control-height);
  padding: 0.6rem 0.75rem;
  margin: 0 0 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: #111;
}
.expert-refinement__options {
  display: grid;
  gap: 0.25rem;
}
.expert-refinement__option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: var(--expert-control-height);
  box-sizing: border-box;
  padding: 0.75rem 0.625rem;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.4;
  cursor: pointer;
}
.expert-refinement__option:hover {
  background: #f7f5f5;
}
.expert-refinement__option:has(:checked) {
  background: #fcf3f3;
  color: #a42b29;
}
.expert-refinement__option {
  position: relative;
  align-items: center;
}
.expert-refinement__option input {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.expert-option-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  box-sizing: border-box;
  border: 1px solid #888;
  background: #fff;
  color: #fff;
  pointer-events: none;
}
.expert-option-mark svg {
  opacity: 0;
}
.expert-option-mark[data-checked="true"] {
  background: #b83230;
  border-color: #b83230;
}
.expert-option-mark[data-checked="true"] svg {
  opacity: 1;
}
.expert-refinement__option input:focus-visible + .expert-option-mark {
  outline: 2px solid #b83230;
  outline-offset: 3px;
}
.expert-refinement__option:has(input:focus-visible) {
  background: #faf3f3;
}

.expert-filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.expert-refinement-panel__close {
  display: flex;
  margin-left: auto;
}
.expert-filters__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.expert-filters__selected > button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #e4cece;
  background: #fcf5f5;
  color: #8e2725;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.expert-filters__selected svg {
  flex: none;
}
.expert-team .expert-filters__current,
.expert-refinement__empty {
  margin: 0.5rem 0;
  color: #666;
  font-size: 0.875rem;
}
.expert-filters button:focus-visible,
.expert-filters input:focus-visible {
  outline: 2px solid #b83230;
  outline-offset: 3px;
}
@media (min-width: 768px) {
  .expert-directions > .expert-directions__more {
    width: 100%;
    grid-column: auto;
    min-width: 0;
    margin: 0;
    padding: 0.625rem 0.5rem;
    justify-content: center;
  }
  .expert-directions__more-long,
  .expert-directions__more-count {
    display: none;
  }
  .expert-directions__more-short {
    display: inline;
  }
  .expert-directions__more > svg {
    margin-left: 0;
    width: 0.875rem;
    height: 0.875rem;
  }
  .expert-directions-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
  .expert-refinements {
    display: grid;
    grid-template-columns: max-content minmax(0, 10rem) minmax(0, 10rem);
    gap: 0.75rem;
  }
  .expert-refinements > span {
    grid-column: auto;
    margin-right: 0.5rem;
  }
  .expert-refinements > button {
    padding: 0.5rem 0.75rem;
  }
  .expert-directions {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .expert-directions > button {
    min-width: 0;
    padding: 0.625rem 0.5rem;
  }
  .expert-refinement__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }
}
.expert-team {
  --expert-ink: #111;
  --expert-muted: #595959;
  --expert-line: #d5d5d5;
  color: var(--expert-ink);
}
.expert-team .expert-team__heading > p {
  max-width: 58ch;
  margin: 0;
}
main #experts .expert-team__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}
.expert-team__filters {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
.expert-team__field {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
}
.expert-team__case-placeholder {
  min-width: 0;
}
.expert-team .expert-filter__trigger:disabled {
  color: #777;
  border-color: #dedede;
  background: #fafafa;
  cursor: not-allowed;
}
.expert-category-icon {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  color: #747474;
}
.expert-filter__value {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.expert-team__field label {
  color: var(--expert-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.expert-team .expert-filter__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--expert-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  outline: none;
  color: var(--expert-ink);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}
.expert-team .expert-filter__trigger:hover:not(:disabled),
.expert-team .expert-filter__trigger[data-state="open"] {
  border-color: #bc3230;
  background: #fff;
  box-shadow: none;
}
.expert-team .expert-filter__trigger:focus-visible {
  outline: none;
  border-color: #bc3230;
  box-shadow: 0 0 0 2px rgb(188 50 48 / 12%);
}
/* Radix locks scrolling while open; retain the site's rail/header geometry. */
body[data-scroll-locked]:has(.expert-filter__menu) {
  padding-top: calc(var(--article-offset) + 3rem) !important;
  padding-bottom: 5.5rem !important;
}
.expert-filter__chevron {
  flex: none;
  color: #595959;
  transition: transform 160ms ease;
}
.expert-filter__trigger[data-state="open"] .expert-filter__chevron {
  transform: rotate(180deg);
}
.expert-filter__menu {
  z-index: 150;
  width: var(--radix-select-trigger-width);
  max-height: min(22rem, var(--radix-select-content-available-height));
  overflow: hidden;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
  font: 400 0.9375rem/1.4 var(--font-text, "Golos Text", sans-serif);
  animation: expert-filter-in 140ms ease-out;
}
.expert-filter__options {
  padding: 0.25rem;
}
.expert-filter__option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 2.25rem 0.625rem 0.75rem;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  user-select: none;
}
.expert-filter__option[data-highlighted] {
  background: #f6f3f3;
}
.expert-filter__option[data-state="checked"] {
  color: #bc3230;
  background: #fbf0f0;
}
.expert-filter__check {
  position: absolute;
  right: 0.75rem;
  display: flex;
}
.expert-filter__scroll {
  display: grid;
  place-items: center;
  height: 1.5rem;
  color: #595959;
  background: #fff;
}
@keyframes expert-filter-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.expert-team .expert-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.25rem 0;
  padding: 0;
  list-style: none;
}
.expert-team .expert-card__tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e4e4e4;
  background: #fafafa;
  color: #595959;
  font-size: 0.875rem;
  line-height: 1.4;
}
.expert-team__results-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: min(100%, 48rem);
  min-height: 2.75rem;
  margin: 0.75rem 0 1rem;
}
.expert-team .expert-team__results-bar > .expert-team__text-button {
  min-height: 2.75rem;
  padding: 0;
  color: var(--expert-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.expert-team .expert-team__count {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0;
  color: var(--expert-muted);
  font-size: 0.875rem;
}
.expert-team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 2.5rem;
}
.expert-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0;
  background: transparent;
}
.expert-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f1f1f1;
}
.expert-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-portrait__initials {
  color: #767676;
  font-size: clamp(3rem, 6cqi, 5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}
.expert-card__copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding-top: 1rem;
}
.expert-card__facts {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.expert-card__facts > div {
  display: block;
}
.expert-card__facts dt {
  display: inline;
  margin-right: 0.5rem;
  color: #777;
  font-weight: 400;
}
.expert-card__facts dt::after {
  content: ":";
}
.expert-card__facts dd {
  display: inline;
  margin: 0;
  color: #333;
}
.expert-card__facts .expert-card__placeholder {
  color: #777;
}
.expert-dialog .expert-card__facts {
  margin-bottom: 1rem;
}
.expert-team .expert-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.expert-team .expert-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
.expert-card__role {
  color: var(--expert-ink);
}
.expert-card__experience,
.expert-card__summary {
  color: var(--expert-muted);
}
.expert-team .expert-team__text-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 2.75rem;
  max-width: 100%;
  margin: 0;
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--expert-ink);
  font: 400 1rem/1.4 var(--font-text, "Golos Text", sans-serif);
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}
.expert-team .expert-card__experience {
  font-size: 0.875rem;
  line-height: 1.5;
}
.expert-team .expert-card__copy .expert-team__text-button {
  margin-top: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  color: var(--expert-muted);
  font-size: 0.9375rem;
  text-decoration-color: #a5a5a5;
}
.expert-team .expert-team__text-button:hover,
.expert-dialog a:hover {
  color: #bc3230;
}
.expert-team :is(button, select, a):focus-visible {
  outline: 2px solid #bc3230;
  outline-offset: 4px;
}
.expert-team__empty {
  border-block: 1px solid var(--expert-line);
  padding-block: 2rem;
}
.expert-team .expert-team__empty h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 400;
}
.expert-team .expert-team__empty p {
  margin: 0 0 1rem;
}
.expert-dialog {
  width: min(56rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--expert-line);
  border-radius: 0;
  background: #fff;
  color: var(--expert-ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.expert-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}
body:has(.expert-dialog[open]) {
  overflow: hidden;
}
.expert-dialog__toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem;
  background: #fff;
}
.expert-dialog__close {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--expert-ink);
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}
.expert-dialog__close:hover {
  color: #bc3230;
  background: #f7f2f2;
}
.expert-dialog__close svg {
  display: block;
  flex: none;
}
.expert-dialog__body {
  padding: 0.5rem 1.5rem 1.5rem;
  overflow-wrap: anywhere;
}
.expert-dialog__intro {
  display: grid;
  gap: 1.5rem;
}
.expert-team .expert-dialog h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.expert-team .expert-dialog p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.expert-dialog__section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--expert-line);
}
.expert-team .expert-dialog__section h3 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 400;
}
.expert-dialog__section ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.expert-dialog__section li + li {
  margin-top: 0.75rem;
}
.expert-dialog__section li {
  font-size: 1rem;
  line-height: 1.6;
}
.expert-dialog__case + .expert-dialog__case {
  margin-top: 1.5rem;
}
.expert-dialog__case h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.expert-dialog__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--expert-ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
@media (min-width: 768px) {
  .expert-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expert-team__filters {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: min(100%, 58rem);
  }
  .expert-team__field {
    flex: 1 1 0;
  }
  .expert-team__case-placeholder {
    flex: 1 1 0;
  }
  .expert-dialog__body {
    padding: 0.5rem 2rem 2rem;
  }
  .expert-dialog__intro {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  body[data-scroll-locked]:has(.expert-filter__menu) {
    padding-top: 0 !important;
    padding-left: var(--layout-rail) !important;
    padding-bottom: 0 !important;
  }
  .expert-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .expert-filter__menu,
  .expert-filter__chevron {
    animation: none;
    transition: none;
  }
  .expert-team *,
  .expert-team *::before,
  .expert-team *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
