/* Homepage call controls: native buttons below the identity, before Skills.
   Scoped to #ap11; no portrait links, listeners or global CTAs are replaced. */

#ap11 .ap11-team {
  align-items:baseline;
}

/* Remove the decorative line that crosses the identities. */
#ap11 .ap11-stage::before {
  display:none;
}

#ap11 .ap11-card.ap-entry-home-card {
  align-self:baseline;
}

/* Baseline alignment anchors the portraits and names. Let each role keep its
   natural height so the role and both actions sit immediately below the name.
   A translated role can wrap without reserving an empty second line elsewhere. */
#ap11 .ap11-card.ap-entry-home-card .ap11-person-text {
  display:grid;
  grid-template-rows:20px auto;
  row-gap:0;
  min-height:0;
  margin:11px 0 0;
}

#ap11 .ap11-card.ap-entry-home-card .ap11-person-text > strong {
  align-self:start;
  margin:0;
  line-height:20px;
}

#ap11 .ap11-card.ap-entry-home-card .ap11-person-text > span {
  align-self:start;
  display:block;
  min-height:0;
  margin:0;
  line-height:15px;
  overflow-wrap:anywhere;
  text-wrap:balance;
}

/* The extra card class and button selector outrank the old absolute circle,
   including its hover rules and the late injected public-entry styles. */
#ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call {
  appearance:none;
  position:relative;
  isolation:isolate;
  inset:auto;
  z-index:1;
  display:inline-flex !important;
  flex:0 0 auto;
  align-self:center;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-sizing:border-box;
  width:98px;
  height:34px;
  min-width:0;
  min-height:34px;
  max-width:100%;
  /* Match the visible text gap below, including the Skills control's padding. */
  margin:5.5px auto 0;
  padding:0 9px;
  overflow:hidden;
  border:1px solid rgba(164,217,255,.34);
  border-radius:8px;
  background:linear-gradient(180deg,#0f2a4d 0%,#0b1020 100%);
  color:var(--ap-action-ice,#ade0ff) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 3px 8px rgba(3,10,22,.16);
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  line-height:16px;
  letter-spacing:0;
  text-align:center;
  text-decoration:none;
  text-transform:none;
  text-shadow:none;
  white-space:nowrap;
  transform:none;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

/* Replace the old circular disc with a restrained, hover-only reflection. */
#ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:auto;
  top:-35%;
  bottom:-35%;
  left:0;
  width:42%;
  height:auto;
  border:0;
  border-radius:0;
  background:linear-gradient(90deg,transparent,rgba(197,234,255,.13),transparent);
  box-shadow:none;
  opacity:0;
  transform:translateX(-150%) skewX(-18deg);
  pointer-events:none;
  transition:transform .48s ease,opacity .18s ease;
}

#ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call svg {
  position:relative;
  z-index:1;
  width:16px !important;
  height:16px !important;
  flex:0 0 16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}

#ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call .ap-entry-call-label {
  position:relative;
  z-index:1;
  display:inline-block;
  inset:auto;
  width:auto;
  height:auto;
  min-width:0;
  margin:0;
  padding:0;
  overflow:visible;
  clip:auto;
  clip-path:none;
  border:0;
  white-space:nowrap;
  pointer-events:none;
}

#ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call:active {
  transform:translateY(0);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.2);
}

#ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call:focus-visible {
  outline:2px solid #c5eaff;
  outline-offset:3px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px #0b1020;
}

#ap11 .ap11-card.ap-entry-home-card > .ap11-skills {
  margin:0 auto;
  color:#a7bed3;
  font-size:11px;
  font-weight:500;
  white-space:normal;
}

#ap11 .ap11-card.ap-entry-home-card > .ap11-skills:hover,
#ap11 .ap11-card.ap-entry-home-card > .ap11-skills:focus-visible {
  background:transparent;
  color:#c5eaff;
  text-decoration:underline;
}

@media (hover:hover) and (pointer:fine) {
  #ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call:hover {
    background:linear-gradient(180deg,#173b62 0%,#101b31 100%);
    border-color:rgba(185,232,255,.68);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 5px 12px rgba(3,10,22,.2);
    transform:translateY(-1px);
  }

  #ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call:hover::before {
    border:0;
    background:linear-gradient(90deg,transparent,rgba(197,234,255,.13),transparent);
    box-shadow:none;
    opacity:1;
    transform:translateX(310%) skewX(-18deg);
  }

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

/* The original layout changes from nine columns to three at 980px. */
@media (min-width:981px) and (max-width:1199px), (max-width:360px) {
  #ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call {
    gap:5px;
    padding-inline:6px;
    font-size:11.5px;
  }
}

@media (max-width:980px), (pointer:coarse) {
  #ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call {
    height:44px;
    min-height:44px;
  }
}

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

  #ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call:hover {
    transform:none;
  }

  #ap11 .ap11-card.ap-entry-home-card > button.ap-entry-home-call::before {
    display:none;
    opacity:0;
  }
}
