#unit-profile-slot {
  position: relative;
  border-top: 1px solid var(--tdmu-border-light);
  padding-top: var(--tdmu-slot-spacing);
  padding-bottom: var(--tdmu-slot-spacing);
}

.tdmu-unit-profile-section {
  background:
    linear-gradient(
      180deg,
      rgba(var(--tdmu-primary-rgb), 0.04),
      rgba(var(--tdmu-primary-rgb), 0)
    ),
    var(--tdmu-surface-alt);
}

.tdmu-unit-profile-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tdmu-unit-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 1.5rem;
  align-items: center;
}

.tdmu-unit-profile-copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.tdmu-unit-profile-kicker {
  margin: 0;
  color: var(--tdmu-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdmu-unit-profile-name {
  margin: 0;
  color: var(--tdmu-primary-light);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tdmu-unit-profile-title {
  margin: 0;
  color: var(--tdmu-text);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  max-width: none;
}

.tdmu-unit-profile-summary {
  margin: 0;
  max-width: 58ch;
  color: var(--tdmu-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.tdmu-unit-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.55rem;
}

.tdmu-unit-profile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--tdmu-primary);
  background: linear-gradient(
    135deg,
    var(--tdmu-primary),
    var(--tdmu-primary-600)
  );
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  box-shadow: 0 6px 18px rgba(var(--tdmu-primary-rgb), 0.2);
}

.tdmu-unit-profile-cta:hover,
.tdmu-unit-profile-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--tdmu-primary-rgb), 0.24);
}

.tdmu-unit-profile-cta .material-symbols-rounded {
  font-size: 1rem;
}

.tdmu-unit-profile-media {
  min-width: 0;
  justify-self: stretch;
}

.tdmu-unit-profile-stage {
  position: relative;
  min-height: 420px;
  padding: 1.2rem 0 1.5rem 1.8rem;
}

.tdmu-unit-profile-stage::before {
  content: "";
  position: absolute;
  inset: 0.8rem 0 0.8rem 1rem;
  background:
    linear-gradient(
      180deg,
      rgba(var(--tdmu-primary-rgb), 0.08),
      rgba(var(--tdmu-accent-rgb), 0.04)
    ),
    var(--tdmu-surface);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 92% 100%, 0 100%);
  border: 1px solid rgba(var(--tdmu-primary-rgb), 0.12);
}

.tdmu-unit-profile-stage::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: 140px;
  background: linear-gradient(
    135deg,
    rgba(var(--tdmu-accent-rgb), 0.9),
    rgba(var(--tdmu-accent-rgb), 0.35)
  );
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 58%, 58% 100%, 0 100%);
}

.tdmu-unit-profile-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: var(--tdmu-surface);
  box-shadow: 0 18px 36px rgba(18, 33, 79, 0.12);
}

.tdmu-unit-profile-photo--main {
  margin-left: 1.8rem;
  margin-right: -1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 94% 100%, 0 100%);
}

.tdmu-unit-profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
}

.tdmu-unit-profile-cutout {
  position: absolute;
  left: 0.55rem;
  bottom: 1.9rem;
  width: 32%;
  height: 104px;
  z-index: 2;
  background: linear-gradient(
    135deg,
    var(--tdmu-primary),
    var(--tdmu-primary-600)
  );
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 14px 28px rgba(var(--tdmu-primary-rgb), 0.18);
}

.tdmu-unit-profile-cutout::before,
.tdmu-unit-profile-cutout::after {
  content: "";
  position: absolute;
  background: var(--tdmu-accent);
}

.tdmu-unit-profile-cutout::before {
  right: 18px;
  top: -12px;
  width: 14px;
  height: 14px;
}

.tdmu-unit-profile-cutout::after {
  right: -14px;
  top: 18px;
  width: 14px;
  height: 14px;
}

.tdmu-unit-profile-badge {
  position: absolute;
  right: 0;
  bottom: -0.15rem;
  z-index: 3;
  width: min(290px, calc(100% - 3rem));
  padding: 1rem 1.05rem 1.05rem;
  background: rgba(255, 255, 255, 0.94);
  border-left: 4px solid var(--tdmu-accent);
  box-shadow: 0 14px 30px rgba(18, 33, 79, 0.14);
}

.tdmu-unit-profile-badge-label {
  margin: 0 0 0.3rem;
  color: var(--tdmu-primary-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tdmu-unit-profile-badge-value {
  color: var(--tdmu-text);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .tdmu-unit-profile-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .tdmu-unit-profile-stage {
    min-height: 400px;
    padding-left: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .tdmu-unit-profile-layout {
    gap: 1.25rem;
  }

  .tdmu-unit-profile-title {
    max-width: none;
    font-size: 1.95rem;
  }

  .tdmu-unit-profile-summary {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .tdmu-unit-profile-actions {
    display: grid;
    justify-items: start;
  }

  .tdmu-unit-profile-stage {
    min-height: auto;
    padding: 0.9rem 0.75rem 1.1rem;
  }

  .tdmu-unit-profile-stage::before {
    inset: 0.55rem 0.25rem 0.7rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
  }

  .tdmu-unit-profile-stage::after {
    width: 72px;
    height: 72px;
  }

  .tdmu-unit-profile-photo--main {
    margin: 0;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
  }

  .tdmu-unit-profile-cutout {
    left: 0.3rem;
    bottom: 1.5rem;
    width: 26%;
    height: 52px;
  }

  .tdmu-unit-profile-badge {
    width: min(260px, calc(100% - 1.4rem));
    padding: 0.85rem 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .tdmu-unit-profile-title {
    font-size: 1.72rem;
  }

  .tdmu-unit-profile-stage {
    padding: 0.65rem 0.45rem 0.9rem;
  }

  .tdmu-unit-profile-stage::before {
    inset: 0.35rem 0 0.7rem;
  }

  .tdmu-unit-profile-cutout {
    display: none;
  }

  .tdmu-unit-profile-badge {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0.9rem;
  }
}

.tdmu-panel--home-news {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
