.board-seat__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-section .board-grid.board-grid--4 {
  column-gap: 24px;
  row-gap: 52px;
}

.board-profile-action {
  margin-top: 14px;
}

.advisory-profile-trigger,
.advisory-profile-trigger.btn {
  font: 600 14px/1 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

html.advisory-dialog-open,
body.advisory-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.advisory-dialog-open {
  scrollbar-gutter: stable;
}

.advisory-profile-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 32px));
  height: min(calc(100vh - 64px), 640px);
  height: min(calc(100dvh - 64px), 640px);
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red-600);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(19, 39, 65, 0.22);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.advisory-profile-dialog::backdrop {
  background: rgba(19, 39, 65, 0.72);
}

.advisory-profile-dialog__inner {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.advisory-profile-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 400 28px/1 var(--font-sans);
  cursor: pointer;
}

.advisory-profile-dialog__close:hover {
  color: var(--red-700);
  border-color: var(--red-600);
}

.advisory-profile-dialog__close:focus-visible,
.advisory-profile-trigger:focus-visible {
  outline: 3px solid rgba(198, 61, 48, 0.3);
  outline-offset: 3px;
}

.advisory-profile-dialog__header {
  padding-right: 64px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.advisory-profile-dialog__label {
  margin: 0 0 8px;
  color: var(--red-700);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advisory-profile-dialog__header h2 {
  margin: 0;
  color: var(--navy-700);
  font: 700 32px/1.12 var(--font-serif);
}

.advisory-profile-dialog__role {
  margin: 8px 0 0;
  color: var(--text-tertiary);
  font: 400 11px/1.5 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advisory-profile-dialog__layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}

.advisory-profile-dialog__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
}

.advisory-profile-dialog__copy {
  max-width: 62ch;
}

.advisory-profile-dialog__copy p {
  margin: 0;
  color: var(--text-primary);
  font: 400 16px/1.72 var(--font-sans);
}

@media (max-width: 620px) {
  .team-section .board-grid.board-grid--4 {
    row-gap: 40px;
  }

  .advisory-profile-dialog {
    width: calc(100% - 24px);
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
  }

  .advisory-profile-dialog__inner {
    padding: 24px 20px 28px;
  }

  .advisory-profile-dialog__close {
    top: 12px;
    right: 12px;
  }

  .advisory-profile-dialog__header {
    padding-right: 52px;
  }

  .advisory-profile-dialog__header h2 {
    font-size: 26px;
  }

  .advisory-profile-dialog__layout {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .advisory-profile-dialog__layout {
    grid-template-columns: 1fr;
  }

  .advisory-profile-dialog__portrait {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .advisory-profile-dialog,
  .advisory-profile-dialog::backdrop {
    animation: none;
  }
}
