/* HypeBPO Community Handoff UI v1.0 — presentation-only additive layer. */

/* Disable the two legacy pseudo-element boot presentations. The underlying
   Community boot/session state remains controlled by community.js. */
body:not(.community-boot-resolved)::before,
body:not(.community-boot-resolved)::after,
html.hbpo-community-sso-pending body::before,
html.hbpo-community-sso-pending body::after {
  content: none !important;
  display: none !important;
}

/* Polish v1 hides direct body children during an SSO pending state. Keep the
   real handoff card visible while everything behind it stays shielded. */
html.hbpo-community-sso-pending body > #hbpoCommunityHandoffUi,
#hbpoCommunityHandoffUi {
  visibility: visible !important;
}
#hbpoCommunityHandoffUi * {
  visibility: visible !important;
}

#hbpoCommunityHandoffUi {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #221f1c;
  font-family: Tahoma, Arial, sans-serif;
}

#hbpoCommunityHandoffUi[hidden] {
  display: none !important;
}

.hbpo-community-handoff-card {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 40px));
  padding: 36px 36px 30px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 24px;
  background: #fbfaf8;
  color: #101010;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  text-align: left;
}

.hbpo-community-handoff-mark {
  width: 56px;
  height: 56px;
  margin: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ff6a1a;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.hbpo-community-handoff-kicker {
  margin: 0 0 8px;
  color: #e7540d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hbpo-community-handoff-title {
  margin: 0;
  color: #090909;
  font-size: clamp(31px, 6vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hbpo-community-handoff-copy {
  margin: 16px 0 18px;
  color: #625c56;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.hbpo-community-handoff-divider {
  height: 1px;
  margin: 0 0 18px;
  background: #ddd6cf;
}

.hbpo-community-handoff-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #f1d0bc;
  border-radius: 11px;
  background: #fff5ee;
  color: #a84412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.hbpo-community-handoff-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ff6a1a;
  box-shadow: 0 0 0 5px rgba(255,106,26,.12);
  animation: hbpo-community-handoff-pulse 1.25s ease-in-out infinite;
}

@keyframes hbpo-community-handoff-pulse {
  0%,100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 520px) {
  #hbpoCommunityHandoffUi { padding: 18px; }
  .hbpo-community-handoff-card {
    width: min(100%, 420px);
    padding: 30px 26px 25px;
    border-radius: 21px;
  }
  .hbpo-community-handoff-title { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .hbpo-community-handoff-dot { animation: none; }
}
