.top-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 16px;
  border: 2px solid rgb(17, 17, 17);
  border-radius: 999px;
  background: transparent;
  color: rgb(17, 17, 17);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.top-linkedin:hover { background: rgba(17, 17, 17, 0.06); }
.top-linkedin:focus-visible { outline: 2px solid #0a66c2; outline-offset: 2px; }
.top-linkedin .linkedin-glyph { width: 17px; height: 17px; color: #0a66c2; flex: none; }
.top-linkedin .linkedin-avatar {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: block;
}
.top-linkedin .linkedin-label-short { display: none; }
/* Keep the injected button beside the original pill without moving it. */
.top-linkedin + .top-cta { margin-left: 0; }

@media (max-width: 700px) {
  /* Wrap the header onto two rows instead of shrinking the stage. */
  .page .top {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    row-gap: 10px;
  }
  .top-linkedin,
  .top .top-cta {
    order: 5;
    padding: 5px 12px;
    font-size: 13px;
  }
  .top-linkedin + .top-cta { margin-left: auto; }
  .top .top-cta { padding: 5px 12px; font-size: 13px; }
  .top-linkedin .linkedin-label-full { display: none; }
  .top-linkedin .linkedin-label-short { display: inline; }
  .top-linkedin .linkedin-glyph { width: 15px; height: 15px; }
  .top-linkedin .linkedin-avatar { width: 21px; height: 21px; }
}
