/* RingBD 2040 icons — Sunshine theme (v1, 2026-11-22).
   Sizing + colour bindings for rb-2040-sprite.svg.
   Tokens: --rb-* with fallbacks so this file works before the token file lands.
   No hex literals outside var() fallbacks. No external origins. */
.rb-ic {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Snap sizes (W26 §2.2) — never 18/22/26px */
.rb-ic-16 { width: 16px; height: 16px; }
.rb-ic-20 { width: 20px; height: 20px; }
.rb-ic-24 { width: 24px; height: 24px; }
.rb-ic-28 { width: 28px; height: 28px; }
.rb-ic-32 { width: 32px; height: 32px; }
/* 48px hit areas (W26 §1.10) */
.rb-ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
}
.rb-ic-btn:focus-visible {
  outline: 2px solid var(--rb-info, #1570EF);
  outline-offset: 2px;
}
/* Colour bindings */
.rb-ic--brand { color: var(--rb-brand-500, #00A651); }
.rb-ic--ink { color: var(--rb-ink-700, #374151); }
.rb-ic--muted { color: var(--rb-ink-500, #6B7280); }
.rb-ic--faint { color: var(--rb-ink-400, #9CA3AF); }
.rb-ic--danger { color: var(--rb-flag-red-500, #F42A41); }
.rb-ic--info { color: var(--rb-info, #1570EF); }
.rb-ic--verified { color: var(--rb-info, #1570EF); }
.rb-ic--reels { color: var(--rb-reels-500, #8B5CF6); }
.rb-ic--gold { color: var(--rb-gold-500, #C9A227); }
.rb-ic--on-dark { color: #FFFFFF; }
/* Filled active state: same glyph, fill instead of stroke (W26 §2.1) */
.rb-ic--filled { fill: currentColor; stroke: none; }
.rb-ic--active { color: var(--rb-brand-500, #00A651); }
.rb-ic--active .rb-ic--filled, .rb-ic--active.rb-ic--filled { fill: currentColor; }
/* Spinner (replaces fa-spin / fa-spinner / fa-circle-o-notch) */
.rb-ic-spin { animation: rb-ic-spin 1s linear infinite; }
@keyframes rb-ic-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .rb-ic-spin { animation: none; }
}
/* Per-surface sizes (W26 §2.2) */
.rb-nav-ic { width: 24px; height: 24px; }
.rb-nav-ic.rb-ic--active { color: var(--rb-brand-500, #00A651); }
.rb-composer-ic { width: 24px; height: 24px; }
.rb-feed-action-ic { width: 24px; height: 24px; }
.rb-chat-ic { width: 24px; height: 24px; }
.rb-sidebar-ic { width: 20px; height: 20px; }
.rb-search-ic { width: 20px; height: 20px; }
.rb-sheet-close-ic { width: 24px; height: 24px; }
.rb-badge-ic { width: 16px; height: 16px; }
.rb-empty-ic { width: 32px; height: 32px; }
/* Fallback: if the sprite fails to load, a labelled button still shows its text.
   Decorative icons inside labelled buttons are aria-hidden in markup. */

/* RB a11y 2026-11-25 stream C: visually-hidden headings (D-10) + spin for sprite loaders (W2-6). */
.rb-sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.rb-spin{animation:rb-spin 1s linear infinite;transform-origin:center}
@keyframes rb-spin{to{transform:rotate(360deg)}}
