/* ============================================================
   Official verification marks (see js/verified.js)
   ============================================================ */
:root { --sh-verified: #1d9bf0; --sh-verified-2: #0a7fd6; }

/* Blue rosette after a name */
.sh-verified {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sh-verified); vertical-align: -0.15em; margin-left: 0.28em;
  flex: none; line-height: 0;
}
.sh-verified__svg { display: block; }

/* Solid-blue official tag */
.sh-vlabel {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 3px 10px 3px 6px; border-radius: 999px;
  background: linear-gradient(135deg, var(--sh-verified), var(--sh-verified-2));
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(29, 155, 240, 0.28);
  vertical-align: middle;
}
.sh-vlabel .sh-verified__svg { color: #fff; flex: none; }
.sh-vlabel .sh-verified__svg path:first-child { fill: #fff; stroke: #fff; }
.sh-vlabel .sh-verified__svg path:last-child { stroke: var(--sh-verified); }
.sh-vlabel__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Row that holds the official tag under a name */
.sh-vrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sh-vrow:empty { display: none; }

@media (max-width: 420px) {
  .sh-vlabel { font-size: 11px; padding: 2px 9px 2px 5px; }
}

/* Page-specific placement */
.cm-pf-name .sh-verified { margin-left: -4px; }          /* community: h1 is flex with a 10px gap */
.msg-pf__vrow { justify-content: center; margin-top: -4px; }
.acc-card__identity-text .sh-vrow { margin-top: 8px; }

/* Messages: name truncates, badge always stays visible right after it */
.msg-namefit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-conv__name .sh-verified,
.msg-chat__name .sh-verified,
.msg-search-result__name .sh-verified { margin-left: -2px; }
.msg-search-result__name { display: flex; align-items: center; gap: 4px; min-width: 0; }

/* Community: badge sits right after the author name */
.cm-author > .sh-verified { margin-left: -5px; }
.cm-comment__head > .sh-verified { margin-left: -4px; }
