/* Compact public join invitation inside the existing AFSCME homepage card. */
.home-page .home-afscme-join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 181, 208, .38);
}

.home-page .home-afscme .home-afscme-join-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #62dda2;
  border-radius: 10px;
  background: #087c4d;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  text-decoration: none;
}

.home-page .home-afscme .home-afscme-join-cta:hover {
  background: #0a985e;
}

.home-page .home-afscme .home-afscme-join-qr {
  display: block;
  box-sizing: border-box;
  width: 152px;
  height: 152px;
  margin: 0;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
}

.home-page .home-afscme-join-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-page .home-afscme-join a:focus-visible {
  outline: 3px solid #75e8ff;
  outline-offset: 3px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .home-page .home-afscme-join {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .home-page .home-afscme .home-afscme-join-cta {
    width: 100%;
  }

  .home-page .home-afscme .home-afscme-join-qr {
    width: 128px;
    height: 128px;
  }
}

@media (max-width: 760px) {
  .home-page .home-afscme-join {
    grid-template-columns: minmax(0, 1fr) 136px;
  }

  .home-page .home-afscme .home-afscme-join-qr {
    width: 136px;
    height: 136px;
  }
}

@media (max-width: 350px) {
  .home-page .home-afscme-join {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px;
  }

  .home-page .home-afscme .home-afscme-join-cta {
    padding-inline: 6px;
    font-size: 12px;
  }

  .home-page .home-afscme .home-afscme-join-qr {
    width: 128px;
    height: 128px;
  }
}
