/* Landing campaign links and their separate, keyboard-accessible join action. */
.landing-campaign-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.landing-campaign-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.landing-campaign-card .landing-campaign-join {
  position: relative;
  z-index: 1;
  font-family: inherit;
  cursor: pointer;
}

.landing-campaign-card:focus-within {
  outline: 3px solid rgba(109, 40, 217, 0.24);
  outline-offset: 3px;
}

html.landing-campaign-auth-open {
  overflow: hidden;
}

/* Match the existing Kampane authentication dialog, using native focus trapping. */
.landing-campaign-auth {
  width: min(520px, calc(100% - 40px));
  height: min(var(--campaign-auth-content-height, 700px), calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9cdf7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.landing-campaign-auth::backdrop {
  background: rgba(18, 20, 35, 0.46);
}

.landing-campaign-auth iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .landing-campaign-auth {
    width: 100%;
    height: calc(100dvh - 12px);
    margin: 12px 0 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }
}
