/* Homepage portraits only. Video and call remain separate native controls. */
#ap11 .ap11-card.ap-entry-home-card {
  position: relative;
}

#ap11 .ap-entry-home-card > .ap-entry-home-call {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 2px;
  /* The portrait is a square spanning the card's inline size. Percentage
     margins use that inline size, keeping the button anchored without JS. */
  margin: calc(100% - 46px) 0 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: none;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #102135 !important;
  box-shadow: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
  touch-action: manipulation;
}

#ap11 .ap-entry-home-card > .ap-entry-home-call::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223, 244, 255, .9);
  border-radius: 50%;
  background: #b7e5fa;
  box-shadow: 0 3px 12px rgba(3, 13, 26, .24), inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: background .18s ease, box-shadow .18s ease;
  pointer-events: none;
}

#ap11 .ap-entry-home-card > .ap-entry-home-call svg {
  position: relative;
  width: 19px !important;
  height: 19px !important;
  flex-basis: 19px;
  stroke-width: 1.7;
  pointer-events: none;
}

#ap11 .ap-entry-home-card > .ap-entry-home-call .ap-entry-call-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#ap11 .ap-entry-home-card > .ap-entry-home-call:hover {
  background: transparent;
  transform: translateY(-2px);
}

#ap11 .ap-entry-home-card > .ap-entry-home-call:hover::before {
  background: #d3f0ff;
  border-color: #edfaff;
  box-shadow: 0 4px 16px rgba(3, 13, 26, .28), 0 0 0 3px rgba(183, 229, 250, .14);
}

#ap11 .ap-entry-home-card > .ap-entry-home-call:active {
  transform: translateY(0) scale(.96);
}

#ap11 .ap-entry-home-card > .ap-entry-home-call:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #237ca4;
}

#ap11 .ap-entry-home-card .aphero-play {
  left: 7px;
  right: auto;
  bottom: 7px;
}

/* Keep the portrait and its overlaid call control aligned on hover. */
#ap11 .ap-entry-home-card .ap11-person:hover,
#ap11 .ap-entry-home-card .ap11-person:focus-visible {
  transform: none;
}

#ap11 #ap-entry-home-demo {
  color: #b9d1e4;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  #ap11 .ap-entry-home-card > .ap-entry-home-call,
  #ap11 .ap-entry-home-card > .ap-entry-home-call::before {
    transition: none;
  }
}
