.kp-profile-summary-card {
  overflow: hidden;
}

.kp-profile-summary-card .kp-event-hero {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ct-tertiary-bg);
  border-radius: var(--ct-border-radius) var(--ct-border-radius) 0 0;
  box-shadow: var(--ct-box-shadow-sm);
}

.kp-profile-summary-card .kp-event-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kp-profile-summary-card .kp-event-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 78%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgba(var(--ct-black-rgb), .85) 0%, rgba(var(--ct-black-rgb), .55) 38%, rgba(var(--ct-black-rgb), 0) 100%);
}

.kp-profile-summary-card .kp-event-hero-content {
  position: absolute;
  right: .875rem;
  bottom: .75rem;
  left: .875rem;
  z-index: 2;
  min-width: 0;
  color: var(--ct-white);
  text-shadow: 0 1px 2px rgba(var(--ct-black-rgb), .65);
}

.kp-profile-summary-card .kp-event-hero-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.kp-profile-summary-card .kp-event-hero-meta {
  margin-top: .375rem;
  font-size: .85rem;
  opacity: .95;
}

.kp-profile-summary-card .kp-event-hero-meta > div {
  display: flex;
  gap: .35rem;
  align-items: center;
  min-width: 0;
  margin-top: .125rem;
}

.kp-profile-summary-card .kp-event-hero-meta a {
  color: var(--ct-white);
  text-decoration: underline;
  text-underline-offset: .125rem;
}

.kp-profile-summary-card .kp-hero-flag {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  object-fit: cover;
  border-radius: var(--ct-border-radius-sm);
}

.kp-profile-summary-card .kp-event-hero-actions {
  position: absolute;
  top: .625rem;
  right: .625rem;
  z-index: 3;
}

.kp-profile-summary-card .kp-event-hero-actions .btn {
  box-shadow: var(--ct-box-shadow-sm);
}

.kp-profile-summary-card .kp-profile-summary-body {
  padding: .75rem;
}

.kp-profile-summary-card .list-group-item {
  padding: .75rem .25rem;
}

.kp-profile-summary-card .kp-info-row {
  display: flex;
  gap: .75rem;
  align-items: center;
  min-width: 0;
}

.kp-profile-summary-card .kp-info-ico {
  display: inline-flex;
  flex: 0 0 2.125rem;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  overflow: hidden;
  background: var(--ct-tertiary-bg);
  border: var(--ct-border-width) solid var(--ct-border-color);
  border-radius: var(--ct-border-radius-lg);
}

.kp-profile-summary-card .kp-info-ico img {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: cover;
}

.kp-profile-summary-card .kp-info-main {
  min-width: 0;
}

.kp-profile-summary-card .kp-info-label {
  margin: 0;
  font-size: .75rem;
  line-height: 1.1;
  color: var(--ct-secondary-color);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.kp-profile-summary-card .kp-info-value {
  margin: 0;
  line-height: 1.2;
}

.kp-profile-summary-card .kp-hero-image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--ct-white);
  background: rgba(var(--ct-black-rgb), .25);
}

@media (max-width: 575.98px) {
  .kp-profile-summary-card .kp-event-hero-title {
    font-size: 1.25rem;
  }

  .kp-profile-summary-card .kp-profile-summary-body {
    padding: .625rem;
  }
}

.kp-discord-trigger {
  align-items: center;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  padding: 0;
}

.kp-discord-logo {
  background-color: currentColor;
  display: inline-block;
  height: 1rem;
  -webkit-mask: url("../img/icons/discord.svg") center / contain no-repeat;
  mask: url("../img/icons/discord.svg") center / contain no-repeat;
  width: 1rem;
}

.kp-discord-popover {
  max-width: min(18rem, calc(100vw - 1.5rem));
}

.kp-discord-popover-row {
  align-items: center;
  display: flex;
  gap: .5rem;
  min-width: 0;
}

.kp-discord-popover-username {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kp-discord-copy {
  flex: 0 0 auto;
}

.kp-profile-setting-control {
  cursor: pointer;
}

.kp-profile-setting-copy {
  min-width: 0;
}

[data-kp-setting-options][aria-disabled="true"] .kp-profile-setting-control {
  cursor: not-allowed;
}
