/* assets/community/profiles/author.css — THE only rules for the attribution markup (CONTRACT §6.11, one owner: profiles).
   Loaded by prompt.php, author_prompts.php and savedpromptsprofile.php (and linked, never restyled, by leaderboard.php).
     .tpi-author                 any credited name printed by community_render_author(s)
     .tpi-author--member         the name links to a member's public profile
     .tpi-author--house          an official house credit ("The Prompt Index"), followed by .tpi-official-chip
     .tpi-author--credited       a plain credit (third parties, imports, unclaimed names)
   The credited TEXT never changes; only where it points. Colours inherit the host page's link colour, so the hooks
   drop into each legacy layout unchanged; the member mark and the chip are the only additions. */

.tpi-author { overflow-wrap: anywhere; }
a.tpi-author { text-decoration-thickness: from-font; text-underline-offset: .18em; }

/* member: a small "person" glyph after the name says "this opens a profile", and the title attribute names whose */
a.tpi-author--member { text-decoration-line: underline; text-decoration-style: solid; text-decoration-color: rgba(196, 181, 253, .55); }
a.tpi-author--member::after {
  content: ""; display: inline-block; width: .82em; height: .82em; margin-left: .28em; vertical-align: -.08em;
  background-color: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.8'/%3E%3Cpath d='M4.5 20c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.8'/%3E%3Cpath d='M4.5 20c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
a.tpi-author--member:hover { text-decoration-color: currentColor; }

/* the Official chip: brand-violet outline, readable at 12 px (#E9E5FF on #2A2457 = 11.9:1) */
.tpi-official-chip {
  display: inline-flex; align-items: center; gap: .3em; margin-left: .35em; padding: .08em .55em .08em .45em;
  border-radius: 999px; border: 1px solid rgba(167, 139, 250, .65); background: #2A2457; color: #E9E5FF;
  font-size: .75rem; font-weight: 600; line-height: 1.5; letter-spacing: .02em; vertical-align: .1em; white-space: nowrap;
}
.tpi-official-chip::before {
  content: ""; width: .85em; height: .85em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (forced-colors: active) {
  .tpi-official-chip { border-color: CanvasText; background: Canvas; color: CanvasText; }
  a.tpi-author--member::after { background-color: LinkText; }
}
/* With profiles on the legacy volume "Score" card is not printed (critic r2 L4): 3 cards. On the live 2-column phone
   layout the odd last card spans the row instead of leaving a hole. */
@media (max-width: 768px) { .stats-grid > .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
