/* Comparison dialog only; other dialogs keep their existing dimensions. */
.ds-dialog.nexo-talent-compare {
  width: min(940px, calc(100vw - 32px));
  max-height: min(88vh, 840px);
}

.nexo-talent-compare .ds-dialog-body {
  padding: 20px;
}

.nexo-talent-compare .wf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nexo-talent-compare .wf-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 3px 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe8de;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(20, 64, 40, .04);
}

.nexo-talent-compare .wf-profile > .wf-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
}

.nexo-talent-compare .wf-profile > h2 {
  grid-column: 2;
  margin: 4px 0 0;
  color: #173f2d;
  font-size: .9rem;
  line-height: 1.3;
}

.nexo-talent-compare .wf-profile > p {
  grid-column: 2;
  margin: 0;
  color: #61776a;
  font-size: .73rem;
}

.nexo-talent-compare .wf-profile > small,
.nexo-talent-compare .wf-profile > .wf-chips,
.nexo-talent-compare .wf-profile > em,
.nexo-talent-compare .wf-profile > button {
  grid-column: 1 / -1;
}

.nexo-talent-compare .wf-profile > small {
  display: block;
  margin-top: 11px;
  color: #385a47;
  font-size: .72rem;
}

.nexo-talent-compare .wf-profile > small::before,
.nexo-talent-compare .wf-profile > .wf-chips::before,
.nexo-talent-compare .wf-profile > em::before {
  display: block;
  margin-bottom: 5px;
  color: #72897a;
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.nexo-talent-compare .wf-profile > small::before { content: 'Ubicación'; }
.nexo-talent-compare .wf-profile > .wf-chips::before { content: 'Habilidades'; flex-basis: 100%; }
.nexo-talent-compare .wf-profile > em::before { content: 'Disponibilidad y afinidad'; }

.nexo-talent-compare .wf-profile > small svg {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.nexo-talent-compare .wf-profile > .wf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.nexo-talent-compare .wf-profile > .wf-chips i {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: .64rem;
}

.nexo-talent-compare .wf-profile > em {
  display: block;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f5faf6;
  color: #3b604b;
  font-size: .72rem;
  font-style: normal;
  line-height: 1.5;
}

.nexo-talent-compare .wf-profile > button {
  width: 100%;
  min-height: 38px;
  margin-top: 3px;
  border: 1px solid #bcdac7;
  border-radius: 9px;
  background: #fff;
  color: #076a43;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.nexo-talent-compare .wf-profile > button:hover,
.nexo-talent-compare .wf-profile > button:focus-visible {
  border-color: #0c7950;
  background: #eef8f1;
}

body .wf-talent-intro + .wf-toolbar--filters > button.wf-clear {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 146px;
  border: 1px solid #bcdac7;
  border-radius: 9px;
  background: #eef8f1;
  color: #086a45;
  font-size: .73rem;
  font-weight: 700;
}

body .wf-talent-intro + .wf-toolbar--filters > button.wf-clear:has(svg.lucide-users-round) {
  position: fixed;
  right: max(20px, calc((100vw - 1240px) / 2));
  bottom: 22px;
  z-index: 1000;
  grid-column: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #076943;
  border-radius: 12px;
  background: #076943;
  box-shadow: 0 10px 28px rgba(5, 84, 49, .22);
  color: #fff;
  cursor: pointer;
}

body .wf-talent-intro + .wf-toolbar--filters > button.wf-clear:has(svg.lucide-users-round):hover,
body .wf-talent-intro + .wf-toolbar--filters > button.wf-clear:has(svg.lucide-users-round):focus-visible {
  border-color: #075537;
  background: #075537;
  color: #fff;
}

body .wf-module:has(.wf-talent-intro):has(.wf-toolbar--filters > button.wf-clear svg.lucide-users-round) {
  padding-bottom: 76px;
}

body:has(#nexo-talent-compare-return) main.rich-page:not(.rich-company-page) {
  padding-top: 58px;
}

#nexo-talent-compare-return {
  position: absolute;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: #086a45;
  font: 700 .73rem/1.2 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}

#nexo-talent-compare-return:hover,
#nexo-talent-compare-return:focus-visible {
  background: transparent;
  color: #075537;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .ds-dialog.nexo-talent-compare {
    max-height: 92vh;
    width: 100%;
  }

  .nexo-talent-compare .ds-dialog-body { padding: 14px; }
  .nexo-talent-compare .wf-grid { grid-template-columns: 1fr; }
  body .wf-talent-intro + .wf-toolbar--filters > button.wf-clear:has(svg.lucide-users-round) {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
