/* ━━━━ Unified Author Card (UAC) ━━━━ */
.uac { position:relative; display:inline-flex; }
.uac-link { display:flex; align-items:center; gap:10px; text-decoration:none; padding:10px 14px; background:var(--bg-card,#fff); border:1px solid var(--border); border-radius:var(--radius,10px); transition:all .2s; }
.uac-link:hover { border-color:var(--teal,var(--teal-light)); box-shadow:0 4px 14px rgba(11,31,58,.08); transform:translateY(-1px); }

/* Avatar */
.uac-avatar-wrap { position:relative; flex-shrink:0; }
.uac-avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid var(--border); transition:border-color .2s; }
.uac-link:hover .uac-avatar { border-color:var(--teal,var(--teal-light)); }
.uac-avatar-ph { width:44px; height:44px; border-radius:50%; background:var(--navy); color:var(--gold-light); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; }
.uac-avatar-ph[hidden] { display:none !important; }

/* Info */
.uac-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.uac-name { font-size:13px; font-weight:700; color:var(--navy); display:inline-flex; align-items:center; gap:4px; }
.uac-role { font-size:10px; font-weight:700; letter-spacing:.02em; }
.uac-role.uac-role--author { color:var(--teal,var(--teal-light)); }
.uac-role.uac-role--reviewer { color:var(--gold,var(--gold-light)); }
.uac-role.uac-role--editor { color:#6366f1; }
.uac-role.uac-role--publisher { color:#f97316; }

/* ━━━━ Verified Badge (sibling to card-link, absolute positioned at top-end) ━━━━ */
.uac-verified { position:absolute; top:6px; inset-inline-end:6px; width:16px; height:16px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:8px; font-weight:800; cursor:pointer; flex-shrink:0; transition:all .15s; font-style:normal; line-height:1; border:none; padding:0; z-index:2; }
.uac-verified.uac-role--author { background:var(--teal,var(--teal-light)); color:#fff; }
.uac-verified.uac-role--reviewer { background:var(--gold,var(--gold-light)); color:#fff; }
.uac-verified.uac-role--editor { background:#6366f1; color:#fff; }
.uac-verified.uac-role--publisher { background:#f97316; color:#fff; }
.uac-verified:hover { transform:scale(1.15); box-shadow:0 0 0 3px rgba(31,207,201,.2); }
.uac.is-open .uac-verified { box-shadow:0 0 0 3px rgba(31,207,201,.3); transform:scale(1.1); }

/* ━━━━ Tooltip (opens DOWNWARD, click-triggered) ━━━━ */
.uac-tooltip { position:absolute; top:calc(100% + 6px); inset-inline-start:0; width:280px; background:var(--bg-card,#fff); border:1px solid var(--border); border-radius:var(--radius-lg,12px); padding:16px; box-shadow:0 12px 32px rgba(11,31,58,.14); opacity:0; visibility:hidden; pointer-events:none; transition:all .2s; z-index:999; }
.uac-tooltip::before { content:""; position:absolute; bottom:100%; inset-inline-start:20px; border:6px solid transparent; border-bottom-color:var(--border); }
.uac-tooltip::after { content:""; position:absolute; bottom:100%; inset-inline-start:21px; border:5px solid transparent; border-bottom-color:var(--bg-card,#fff); }
.uac.is-open .uac-tooltip { opacity:1; visibility:visible; pointer-events:auto; }

.uac-tooltip-header { display:flex; align-items:center; gap:10px; margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.uac-tooltip-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.uac-tooltip-name { font-size:14px; font-weight:800; color:var(--navy); }
.uac-tooltip-role { font-size:11px; font-weight:700; }
.uac-tooltip-cred { font-size:11px; color:var(--teal,var(--teal-light)); font-weight:700; margin-bottom:6px; line-height:1.5; }
.uac-tooltip-bio { font-size:12px; color:var(--text-mid); line-height:1.7; margin-bottom:8px; }
.uac-tooltip-link { font-size:11px; font-weight:700; color:var(--teal,var(--teal-light)); text-decoration:none; }
.uac-tooltip-link:hover { text-decoration:underline; }

/* ━━━━ Compact size ━━━━ */
.uac--compact .uac-link { padding:6px 10px; gap:8px; }
.uac--compact .uac-avatar, .uac--compact .uac-avatar-ph { width:32px; height:32px; font-size:12px; }
.uac--compact .uac-name { font-size:12px; }
.uac--compact .uac-role { font-size:9px; }
.uac--compact .uac-verified { width:14px; height:14px; font-size:7px; }

/* ━━━━ Mini size ━━━━ */
.uac--mini .uac-link { padding:0; background:none; border:none; gap:6px; }
.uac--mini .uac-link:hover { box-shadow:none; transform:none; }
.uac--mini .uac-avatar, .uac--mini .uac-avatar-ph { width:22px; height:22px; font-size:9px; border-width:1px; }
.uac--mini .uac-name { font-size:11px; font-weight:600; }
.uac--mini .uac-role { display:none; }
.uac--mini .uac-verified { display:none; }

/* ━━━━ Author pair container ━━━━ */
.uac-pair { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.uac-pair .uac { flex:1; min-width:180px; }
.uac-pair .uac-link { width:100%; }

/* ━━━━ Author strip ━━━━ */
.uac-strip { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.uac-strip .uac-link { border:none; background:none; padding:6px 28px 6px 8px; border-radius:999px; }
.uac-strip .uac-link:hover { background:var(--teal-bg,rgba(31,207,201,.06)); box-shadow:none; transform:none; }
.uac-strip .uac-verified { position:static; width:20px; height:20px; font-size:11px; margin-inline-start:4px; align-self:center; }
.uac-strip .uac { align-items:center; }
.uac-strip-sep { width:1px; height:24px; background:var(--border); flex-shrink:0; }
.uac-strip-meta { font-size:11px; color:var(--text-muted); margin-inline-start:auto; }

/* ━━━━ Verification badges ━━━━ */
.uac-verification { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.uac-verify-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:var(--text-mid); background:var(--bg,var(--bg-subtle)); border:1px solid var(--border); padding:5px 10px; border-radius:6px; }
.uac-verify-badge .uac-check { color:var(--success); font-weight:800; }

/* ━━━━ Dark variant ━━━━ */
.uac--dark .uac-link { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); }
.uac--dark .uac-link:hover { border-color:var(--teal,var(--teal-light)); background:rgba(255,255,255,.1); }
.uac--dark .uac-avatar { border-color:rgba(255,255,255,.2); }
.uac--dark .uac-avatar-ph { background:rgba(255,255,255,.12); color:var(--gold-light); }
.uac--dark .uac-name { color:var(--border-soft); }

/* ━━━━ Tablet ━━━━ */
@media(max-width:768px) {
  .uac-tooltip { width: 240px; }
  .uac-pair { gap: 8px; }
}

/* ━━━━ Mobile ━━━━ */
@media(max-width:640px) {
  .uac-pair { flex-direction:column; gap:8px; }
  .uac-pair .uac { min-width:0; }
  .uac-tooltip { inset-inline-start:0; width:calc(100vw - 48px); max-width:280px; }
  .uac-strip { gap:6px; }
}
