/* VEA Connect Team | Scoped styles; follows VEA red #EF2021 and Gotham typography */
.vea-team-widget {
  --vct-accent: #ef2021;
  --vct-red-text: #c52122;
  --vct-ink: #19242c;
  --vct-muted: #62707a;
  --vct-card: #ffffff;
  --vct-border: #e8ebee;
  --vct-columns: 4;
  --vct-gap: 22px;
  --vct-photo-ratio: 4 / 5;
  color: var(--vct-ink);
  font-family: Gotham, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
}
.vea-team-widget, .vea-team-widget *, .vea-team-widget *::before, .vea-team-widget *::after { box-sizing: border-box; }
.vea-team-widget button, .vea-team-widget a { -webkit-tap-highlight-color: transparent; }
.vea-team-widget button:focus-visible, .vea-team-widget a:focus-visible { outline: 3px solid var(--vct-accent); outline-offset: 4px; }

.vea-team-widget .vct-heading { max-width: 760px; margin: 0 0 38px; }
.vea-team-widget .vct-heading-eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--vct-red-text); text-transform: uppercase;
  letter-spacing: .18em; font-size: 12px; font-weight: 800;
  margin: 0 0 16px;
}
.vea-team-widget .vct-heading-eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; display: inline-block; flex: none; }
.vea-team-widget .vct-heading-title {
  color: var(--vct-ink); font-size: clamp(30px, 4vw, 45px);
  line-height: 1.13; letter-spacing: -.038em; font-weight: 800;
  margin: 0 0 15px; max-width: 760px; text-transform: none;
}
.vea-team-widget .vct-heading-intro { color: var(--vct-muted); margin: 0; max-width: 670px; font-size: 15.5px; line-height: 1.8; }
.vea-team-widget .vct-grid {
  display: grid;
  grid-template-columns: repeat(var(--vct-columns), minmax(0, 1fr));
  gap: var(--vct-gap);
  align-items: stretch;
}
.vea-team-widget .vct-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--vct-card); border: 1px solid var(--vct-border);
  border-radius: 10px; overflow: hidden; min-width: 0;
  box-shadow: 0 5px 20px rgba(19, 33, 44, .035);
  transition: transform .25s ease, box-shadow .25s ease;
  margin: 0;
}
/* A real button stretches across the card, rather than nesting links/buttons.
   It works with click/touch/Tab/Enter/Space, and leaves LinkedIn separately usable. */
.vea-team-widget .vct-card--clickable { cursor: pointer; }
.vea-team-widget .vct-card-open {
  appearance: none;
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  display: block; border: 0; border-radius: inherit;
  margin: 0; padding: 0;
  background: transparent !important; box-shadow: none !important;
  cursor: pointer;
}
.vea-team-widget .vct-card-open:hover,
.vea-team-widget .vct-card-open:active,
.vea-team-widget .vct-card-open:focus { background: transparent !important; box-shadow: none !important; }
.vea-team-widget .vct-card-open:focus-visible {
  outline: 3px solid var(--vct-accent);
  outline-offset: -4px;
}
.vea-team-widget .vct-card:hover { transform: translateY(-5px); box-shadow: 0 14px 38px rgba(22, 32, 40, .11); }
.vea-team-widget .vct-card-image { aspect-ratio: var(--vct-photo-ratio); width: 100%; position: relative; overflow: hidden; background: #e7ecef; }
.vea-team-widget .vct-card-image::after {
  content: ""; position: absolute; width: 100%; height: 4px;
  bottom: 0; left: 0; background: var(--vct-accent);
  transform: scaleX(.28); transform-origin: left center;
  transition: transform .3s ease;
}
.vea-team-widget .vct-card:hover .vct-card-image::after { transform: scaleX(1); }
.vea-team-widget .vct-card-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: center var(--vct-focus-y, 35%);
  transition: transform .45s ease;
}
.vea-team-widget .vct-card:hover .vct-card-img { transform: scale(1.04); }
.vea-team-widget .vct-photo-empty { width: 100%; height: 100%; background: linear-gradient(130deg, #e8ecef, #ced6dc); }
.vea-team-widget .vct-card-info {
  padding: 23px 22px 22px; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
}
.vea-team-widget .vct-card-name {
  color: var(--vct-ink); margin: 0 0 7px;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.28;
  font-weight: 800; letter-spacing: -.025em;
}
.vea-team-widget .vct-card-role {
  color: var(--vct-red-text); font-size: 11px; font-weight: 800; line-height: 1.5;
  letter-spacing: .09em; text-transform: uppercase;
  margin: 0 0 13px; overflow-wrap: anywhere;
}
.vea-team-widget .vct-card-excerpt {
  color: var(--vct-muted); font-size: 13px; line-height: 1.75;
  margin: 0 0 21px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 100%;
}
.vea-team-widget .vct-card-actions {
  margin-top: auto; width: 100%; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.vea-team-widget .vct-bio-trigger {
  color: var(--vct-ink); border: 0; border-bottom: 1px solid var(--vct-accent);
  border-radius: 0; display: inline-flex; align-items: center; gap: 8px;
  background: none; padding: 0 0 4px; margin: 0;
  font: inherit; font-size: 12px; line-height: 1.5; font-weight: 800;
  transition: color .2s ease;
  min-height: 27px; white-space: nowrap;
}
.vea-team-widget .vct-card--clickable:hover .vct-bio-trigger { color: var(--vct-accent); }
.vea-team-widget .vct-bio-trigger svg { flex: none; transition: transform .2s ease; }
.vea-team-widget .vct-card--clickable:hover .vct-bio-trigger svg { transform: translateX(3px); }
.vea-team-widget .vct-linkedin { position: relative; z-index: 3; color: var(--vct-muted); line-height: 1; padding: 6px; display: inline-flex; text-decoration: none; }
.vea-team-widget .vct-linkedin:hover { color: var(--vct-accent); }

/* Native dialog: keyboard focus, Escape and focus-restoration handled by the browser. */
.vea-team-widget .vct-dialog {
  position: fixed; inset: 0; width: min(910px, calc(100vw - 38px));
  max-width: 910px; max-height: min(760px, calc(100vh - 48px));
  max-height: min(760px, calc(100dvh - 48px));
  margin: auto; padding: 0; border: 0; border-radius: 13px;
  background: #ffffff; color: #19242c;
  overflow: hidden; box-shadow: 0 22px 80px rgba(0, 0, 0, .30);
  text-align: left; outline: none;
}
.vea-team-widget .vct-dialog:not([open]) { display: none; }
.vea-team-widget .vct-dialog::backdrop { background: rgba(12, 24, 32, .78); backdrop-filter: blur(4px); }
.vea-team-widget .vct-dialog-layout {
  width: 100%; display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  /* Prevent a long biography from expanding the grid row beyond the dialog. */
  grid-template-rows: minmax(0, 1fr);
  max-height: min(760px, calc(100vh - 48px));
  max-height: min(760px, calc(100dvh - 48px));
}
.vea-team-widget .vct-dialog-image { min-height: 100%; background: #e8edef; position: relative; overflow: hidden; }
.vea-team-widget .vct-dialog-image::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--vct-accent); }
.vea-team-widget .vct-dialog-img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; object-position: center var(--vct-focus-y, 35%); }
.vea-team-widget .vct-dialog-content {
  position: relative;
  min-height: 0; /* Required for grid children to shrink and actually scroll. */
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.vea-team-widget .vct-dialog-close {
  position: sticky; z-index: 2; top: 19px; margin: 19px 20px -16px auto;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid #e4e9ed; border-radius: 50%;
  background: #ffffff; color: #263640; cursor: pointer; padding: 0;
  transition: background .18s ease, color .18s ease;
}
.vea-team-widget .vct-dialog-close:hover { background: var(--vct-accent); border-color: var(--vct-accent); color: #fff; }
.vea-team-widget .vct-dialog-text { padding: 45px 42px 46px; }
.vea-team-widget .vct-dialog-label {
  margin: 0 0 11px; color: var(--vct-red-text); letter-spacing: .16em;
  text-transform: uppercase; font-size: 11px; font-weight: 800;
}
.vea-team-widget .vct-dialog-title {
  margin: 0 0 9px; font-size: clamp(28px, 3vw, 39px); line-height: 1.14;
  letter-spacing: -.038em; font-weight: 800; color: #19242c;
}
.vea-team-widget .vct-dialog-role {
  margin: 0 0 29px; color: var(--vct-red-text); text-transform: uppercase;
  font-size: 11px; font-weight: 800; line-height: 1.6; letter-spacing: .08em;
}
.vea-team-widget .vct-dialog-bio { font-size: 14px; line-height: 1.82; color: #4e5e67; }
.vea-team-widget .vct-dialog-bio p { color: inherit; font: inherit; margin: 0 0 19px; }
.vea-team-widget .vct-dialog-bio p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .vea-team-widget { --vct-columns: 2; }
}
@media (max-width: 767px) {
  .vea-team-widget { --vct-columns: 1; }
  .vea-team-widget .vct-heading { margin-bottom: 27px; }
  .vea-team-widget .vct-heading-title { font-size: 30px; }
  .vea-team-widget .vct-heading-intro { font-size: 14px; }
  .vea-team-widget .vct-card-info { padding: 20px 21px 22px; }
  .vea-team-widget .vct-card-name { font-size: 21px; }
  .vea-team-widget .vct-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .vea-team-widget .vct-dialog-layout { display: block; max-height: none; }
  .vea-team-widget .vct-dialog-image { height: 205px; min-height: 0; }
  .vea-team-widget .vct-dialog-img { min-height: 0; height: 100%; object-position: center 28%; }
  .vea-team-widget .vct-dialog-content { min-height: 0; overflow: visible; }
  .vea-team-widget .vct-dialog-close { top: 12px; margin: 12px 15px -24px auto; }
  .vea-team-widget .vct-dialog-text { padding: 37px 23px 28px; }
  .vea-team-widget .vct-dialog-title { font-size: 29px; }
  .vea-team-widget .vct-dialog-bio { font-size: 13.5px; line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) {
  .vea-team-widget .vct-card, .vea-team-widget .vct-card-img,
  .vea-team-widget .vct-card-image::after, .vea-team-widget .vct-bio-trigger svg { transition: none; }
}
