/* Only profile dialogs and entry motion; existing site styling is retained. */
.team-dialog {
  width: min(1040px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  padding: 48px 38px 36px;
  border: 0;
  border-top: 4px solid #eb6d32;
  border-radius: 8px;
  background: #fff;
  color: #002445;
  box-shadow: 0 24px 90px #0005;
  overflow: auto;
  overscroll-behavior: contain;
}
.team-dialog::backdrop { background: #161b2bbd; backdrop-filter: blur(4px); }
body.team-dialog-open { overflow: hidden; }
.team-dialog .content-extra-team.active { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; padding: 0; }
.team-dialog .img-extra { float: none; }
.team-dialog .img-extra img { width: 100%; height: auto; border-radius: 4px; }
.team-dialog .extra-content-teams { display: block; padding: 0; min-width: 0; }
.team-dialog .extra-content-teams h3 { padding-top: 0 !important; padding-right: 20px; line-height: 1.3; }
.team-dialog .extra-content-teams h5 { line-height: 1.6; }
.team-dialog .content-extra-team p { line-height: 1.85; }
.team-dialog-close { position: absolute; top: 9px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f1f1f4; color: #4c4d6b; font: 28px/1 sans-serif; cursor: pointer; }
.team-dialog-close:hover { background: #eb6d32; color: white; }
.team-dialog-close:focus-visible, .team-box:focus-visible { outline: 3px solid #eb6d32; outline-offset: 4px; }
.team-dialog[open] { animation: profile-entry .3s cubic-bezier(.22,1,.36,1); }
@keyframes profile-entry { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .team-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 48px 22px 26px; }
  .team-dialog .content-extra-team.active { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .team-dialog .img-extra img { width: 180px; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .team-dialog[open], .wow { animation: none !important; transition: none !important; }
  .wow { visibility: visible !important; }
}
