/* MSB */

.vsc-main > .vsc-employee {
 max-width: min(260px, calc(100% - 2 * var(--vsc-content-pad, 16px)));
 margin: 24px auto;
 width: 100%;
 box-sizing: border-box;
}

.vsc-row__col > .vsc-employee {
 max-width: 260px;
 width: 100%;
 margin-block: 0;
}

.vsc-employee {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 overflow: hidden;
 width: 100%;
 max-width: 260px;
 border: 1px solid var(--color-bg-hover-muted, #ececec);
 border-radius: 8px;
 background: var(--color-white, #fff);
 transform: translateY(0) scale(1);
 transition:
 background-color 250ms var(--cubic-bezier, ease),
 border-color 250ms var(--cubic-bezier, ease),
 box-shadow 250ms var(--cubic-bezier, ease),
 transform 250ms var(--cubic-bezier, ease);
}

.vsc-employee:hover {
 background-color: var(--color-bg-surface, #fafafa);
 border-color: #ececec;
 box-shadow: 0 6px 14px rgba(32, 42, 68, 0.09);
 transform: translateY(-4px) scale(1.02);
}

.vsc-employee__photo {
 width: 100%;
 aspect-ratio: 3 / 4;
 height: auto;
 background-color: var(--color-bg-hover-muted, #ececec);
 overflow: hidden;
}

.vsc-employee__photo--placeholder {
 display: flex;
 align-items: center;
 justify-content: center;
}

.vsc-employee__placeholder {
 display: inline-flex;
 color: var(--color-text-secondary, #6f6f6f);
 opacity: 0.55;
}

.vsc-employee__placeholder svg {
 display: block;
 width: 64px;
 height: 64px;
}

.vsc-employee__img {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center top;
}

.vsc-employee__body {
 display: flex;
 flex-direction: column;
 gap: 24px;
 padding: 16px;
}

.vsc-employee__identity {
 display: flex;
 flex-direction: column;
 gap: 4px;
}

.vsc-employee__name {
 margin: 0;
 font-family: var(--font-body);
 font-weight: 600;
 font-size: 15px;
 line-height: normal;
 color: var(--color-primary);
}

.vsc-employee__position {
 margin: 0;
 font-family: var(--font-body);
 font-weight: 400;
 font-size: 13px;
 line-height: normal;
 color: var(--color-text-secondary, #6f6f6f);
}

.vsc-employee__contacts {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 4px;
}

.vsc-employee__contact {
 display: flex;
 align-items: center;
 gap: 8px;
 min-width: 0;
}

.vsc-employee__icon {
 display: inline-flex;
 flex-shrink: 0;
 width: 16px;
 height: 16px;
 color: var(--color-text-secondary, #6f6f6f);
}

.vsc-employee__icon svg {
 display: block;
 width: 16px;
 height: 16px;
}

.vsc-employee__link,
.vsc-employee__text {
 font-family: var(--font-body);
 font-weight: 400;
 font-size: 13px;
 line-height: normal;
 color: var(--color-text-secondary, #6f6f6f);
 text-decoration: none;
 word-break: break-word;
}

.vsc-employee__link:hover {
 color: var(--color-brand-primary);
 text-decoration: underline;
 text-underline-offset: 2px;
}

@media (max-width: 768px) {
 .vsc-main > .vsc-employee {
 max-width: calc(100% - 2 * var(--vsc-content-pad, 16px));
 }

 .vsc-row__col > .vsc-employee,
 .vsc-employee {
 max-width: 100%;
 }
}

/* Employee grid (max 4 / row, row-matching gaps) */

.vsc-main > .vsc-employee-grid {
  width: 100%;
  max-width: var(--vsc-content-max, 1464px);
  margin: 24px auto;
  padding-inline: var(--vsc-content-pad, 32px);
  box-sizing: border-box;
}

.vsc-row__col > .vsc-employee-grid {
  margin-block: 0;
  padding-inline: 0;
  max-width: none;
}

.vsc-employee-grid__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vsc-employee-grid--gap-none .vsc-employee-grid__list { gap: 0; }
.vsc-employee-grid--gap-sm .vsc-employee-grid__list { gap: 0.75rem; }
.vsc-employee-grid--gap-md .vsc-employee-grid__list { gap: 1.5rem; }
.vsc-employee-grid--gap-lg .vsc-employee-grid__list { gap: 3rem; }

.vsc-employee-grid__item {
  min-width: 0;
  display: flex;
}

.vsc-employee-grid__item .vsc-employee {
  max-width: none;
  width: 100%;
  margin: 0;
}

@media (max-width: 1100px) {
  .vsc-employee-grid__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vsc-employee-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .vsc-employee-grid__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
