/* assets/community/profiles/avatar.css — the preset avatar tile, the ONLY rules for profiles_avatar_html()'s markup
   (integration r10, design panel r9 M1). The SVG art draws the mark in currentColor (the member's accent) and its negative
   space with .cp-av-cut in the TILE colour, so without these rules a cut renders black and the tile disappears. Every page
   that calls the renderer links this file (u/index.php, includes/profile/community-profile.php, author_prompts.php,
   includes/contrib/leaderboard_page.php); tests/integration/http_r11.py fails a page that prints .cp-av without it.
   Self-contained: it needs no other community stylesheet (the tile colour has its own fallback). */
.cp-av {
  --cp-av-size: 44px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--cp-av-size); height: var(--cp-av-size);
  border-radius: 30%;
  color: var(--cp-accent, #C4B5FD);
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.10), transparent 58%), var(--cp-av-bg, #141230);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.25);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .cp-av { background: radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--cp-accent, #C4B5FD) 30%, transparent), transparent 62%), var(--cp-av-bg, #141230);
           box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cp-accent, #C4B5FD) 34%, transparent); }
}
.cp-av svg { width: 64%; height: 64%; overflow: visible; }
.cp-av .cp-av-cut { fill: var(--cp-av-bg, #141230); }
.cp-av .cp-av-cut-stroke { stroke: var(--cp-av-bg, #141230); }
.cp-av--sm { --cp-av-size: 28px; border-radius: 28%; }
.cp-av--md { --cp-av-size: 44px; }
.cp-av--lg { --cp-av-size: 72px; }
.cp-av--xl { --cp-av-size: 88px; }
@media (min-width: 640px) { .cp-av--xl { --cp-av-size: 120px; } }
.cp-av--art { --cp-av-size: 520px; background: none; box-shadow: none; }
.cp-av--art svg { width: 100%; height: 100%; }

/* the leaderboard row: 40 px, 36 px on phones (the row's grid column) */
.cp-av--row { --cp-av-size: 40px; }
@media (max-width: 479px) { .cp-av--row { --cp-av-size: 36px; } }
@media (forced-colors: active) {
  .cp-av { border: 1px solid CanvasText; forced-color-adjust: auto; color: CanvasText; }
}
