/* ==========================================================================
   AWEA Team — Zero-Shadow Architectural Repeater Grid
   ========================================================================== */

.awea-tm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.awea-tm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 12px;
  border-radius: 26px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.awea-tm-card:hover {
  background-color: #f8fafc;
  border-color: var(--e-global-color-primary, #4f46e5);
  box-shadow: none;
}

/* 1. Photo Canvas */
.awea-tm-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background-color: #0f172a;
  flex-shrink: 0;
}

.awea-tm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Department Pill Badge */
.awea-tm-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 100px;
  background-color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  user-select: none;
}

/* ==========================================================================
   MODE 1: Glass Overlay Card (Default)
   ========================================================================== */
.awea-tm-style-overlay .awea-tm-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, 0.86) 100%);
  pointer-events: none;
  z-index: 1;
}

.awea-tm-style-overlay .awea-tm-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  background-color: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  z-index: 2;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.awea-tm-style-overlay .awea-tm-name {
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.awea-tm-style-overlay .awea-tm-role {
  display: block;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

.awea-tm-style-overlay .awea-tm-bio {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.awea-tm-style-overlay .awea-tm-socials {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease,
    margin-top 0.35s ease;
}

.awea-tm-style-overlay .awea-tm-card:hover .awea-tm-socials,
.awea-tm-style-overlay.awea-tm-dock-open-yes .awea-tm-socials {
  max-height: 54px;
  opacity: 1;
  margin-top: 14px;
}

.awea-tm-style-overlay .awea-tm-soc-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ==========================================================================
   MODE 2: Editorial Card (Clean Light Surface Body Below Photo)
   ========================================================================== */
.awea-tm-style-editorial .awea-tm-scrim {
  display: none;
}

.awea-tm-style-editorial .awea-tm-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 10px 10px 10px;
  text-align: left;
  box-sizing: border-box;
}

.awea-tm-style-editorial .awea-tm-name {
  color: #0f172a;
  font-size: 1.24rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.awea-tm-style-editorial .awea-tm-role {
  display: block;
  color: var(--e-global-color-primary, #4f46e5);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.awea-tm-style-editorial .awea-tm-bio {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.awea-tm-style-editorial .awea-tm-socials {
  justify-content: flex-start;
  margin-top: auto;
}

.awea-tm-style-editorial .awea-tm-soc-btn {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   Shared Social Buttons
   ========================================================================== */
.awea-tm-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.awea-tm-soc-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.awea-tm-soc-btn i,
.awea-tm-soc-btn svg {
  width: 14px;
  height: 14px;
  font-size: 14px;
  display: block;
  fill: currentColor;
  line-height: 1;
}

.awea-tm-soc-btn:hover {
  background-color: var(--e-global-color-primary, #4f46e5);
  border-color: var(--e-global-color-primary, #4f46e5);
  color: #ffffff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .awea-tm-card,
  .awea-tm-panel,
  .awea-tm-socials,
  .awea-tm-soc-btn {
    transition: none !important;
  }
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
  .awea-tm-style-overlay .awea-tm-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px;
  }

  .awea-tm-style-overlay .awea-tm-socials {
    max-height: 50px !important;
    opacity: 1 !important;
    margin-top: 10px !important;
  }
}