/* "Share this profile" trigger + modal. */
.pafa-share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #112244;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.pafa-share-trigger:hover { background: #0b1730; }
.pafa-share-trigger:focus-visible { outline: 3px solid #f0c040; outline-offset: 2px; }

.pafa-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.55);
}
.pafa-share-modal[hidden] { display: none; }

.pafa-share-dialog {
  background: #fff;
  border-radius: 14px;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pafa-share-dialog h2 { margin: 0 0 6px; font-size: 1.5rem; }
.pafa-share-dialog__intro { margin: 0 0 18px; color: #4a515c; }

.pafa-share-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.pafa-share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d3d6dc;
  border-radius: 10px;
  text-decoration: none;
  color: #16181d;
  font-weight: 600;
}
.pafa-share-link:hover { background: #f5f7fa; }
.pafa-share-link:focus-visible { outline: 3px solid #f0c040; outline-offset: 2px; }
.pafa-share-link svg { width: 22px; height: 22px; flex: none; }

.pafa-share-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  border: 1px solid #d3d6dc;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.pafa-share-copy:focus-visible { outline: 3px solid #f0c040; outline-offset: 2px; }

.pafa-share-dialog__close {
  margin-top: 18px;
  background: none;
  border: 0;
  color: #14538f;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}
.pafa-share-dialog__close:focus-visible { outline: 3px solid #f0c040; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .pafa-share-dialog { animation: pafa-share-in 0.15s ease; }
  @keyframes pafa-share-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}
