/* Hubert Matchmaker public teaser — aligned with Meet people (.hmm) container */

.hmm-teaser[hidden] {
  display: none !important;
}

.hmm-teaser {
  --hmm-teaser-ink: #241536;
  --hmm-teaser-muted: #635c5e;
  --hmm-teaser-line: rgba(125, 72, 150, 0.16);
  --hmm-teaser-teal: #7a3d8a;
  --hmm-teaser-teal-soft: #9d60a7;
  position: relative;
  isolation: isolate;
  padding: 28px 0 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.hmm-teaser-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.hmm-teaser-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--hmm-teaser-line);
  background:
    linear-gradient(160deg, #fbf8fd 0%, #ffffff 42%, #f5f8fb 100%);
  box-shadow: 0 2px 10px rgba(45, 27, 94, 0.06);
  overflow: hidden;
}

.hmm-teaser-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b4578;
  background: transparent;
  border: 1px solid rgba(125, 72, 150, 0.2);
}

.hmm-teaser-badge[hidden] {
  display: none !important;
}

.hmm-teaser-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hmm-teaser-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0d0d12;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(45, 27, 94, 0.12);
}

.hmm-teaser-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hmm-teaser-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hmm-teaser-teal);
}

.hmm-teaser-title {
  margin: 0 0 8px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hmm-teaser-ink);
}

.hmm-teaser-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hmm-teaser-muted);
  max-width: 40rem;
}

.hmm-teaser-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(125, 72, 150, 0.16);
}

.hmm-teaser-form:focus-within {
  border-color: rgba(157, 96, 167, 0.55);
  box-shadow: 0 0 0 3px rgba(157, 96, 167, 0.14);
}

.hmm-teaser-input {
  flex: 1 1 180px;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: var(--hmm-teaser-ink);
}

.hmm-teaser-input:focus {
  outline: none;
}

.hmm-teaser-input::placeholder {
  color: #9a879f;
}

.hmm-teaser-submit {
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--hmm-teaser-teal-soft);
  color: #fff;
}

.hmm-teaser-submit:hover {
  background: var(--hmm-teaser-teal);
}

.hmm-teaser-invite {
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 72, 150, 0.28);
  background: transparent;
  color: var(--hmm-teaser-teal);
  cursor: pointer;
}

.hmm-teaser-invite:hover {
  background: rgba(157, 96, 167, 0.08);
  border-color: rgba(157, 96, 167, 0.45);
}

.hmm-teaser-invite[hidden] {
  display: none !important;
}

.hmm-teaser-invite-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hmm-teaser-teal);
  text-align: center;
}

.hmm-teaser-invite-status[hidden] {
  display: none !important;
}

.hmm-teaser-gate {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hmm-teaser-muted);
}

/* Profile-build mode: centered primary + invite */
.hmm-teaser--profile .hmm-teaser-input[hidden] {
  display: none !important;
}

.hmm-teaser--profile .hmm-teaser-form {
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
}

.hmm-teaser--profile .hmm-teaser-submit {
  min-width: 11rem;
}

.hmm-teaser--profile .hmm-teaser-invite {
  display: inline-flex;
}

.hmm-teaser--search .hmm-teaser-invite {
  display: none !important;
}

@media (max-width: 640px) {
  .hmm-teaser-inner {
    padding: 18px 16px;
  }

  .hmm-teaser-hero {
    gap: 12px;
  }

  .hmm-teaser-icon {
    width: 52px;
    height: 52px;
  }

  .hmm-teaser-form {
    border-radius: 14px;
    padding: 10px;
  }

  .hmm-teaser--profile .hmm-teaser-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hmm-teaser--profile .hmm-teaser-submit,
  .hmm-teaser--profile .hmm-teaser-invite,
  .hmm-teaser-submit {
    width: 100%;
  }
}
