/* AffilioPedia — review display. Scoped under .ap-rs / .ap-hist so it cannot
   collide with existing site styles. Colours match the current directory cards:
   amber stars, slate text, blue links. */

.ap-rs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  line-height: 1.2;
}

.ap-rs__score {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.ap-rs--sm .ap-rs__score { font-size: 18px; }
.ap-rs--lg .ap-rs__score { font-size: 30px; }

.ap-rs__stars { display: inline-flex; align-items: center; gap: 1px; }
.ap-rs__defs  { position: absolute; width: 0; height: 0; }

.ap-rs__star { display: block; }
.ap-rs--sm .ap-rs__star { width: 16px; height: 16px; }
.ap-rs--lg .ap-rs__star { width: 20px; height: 20px; }

.ap-rs__star--full,
.ap-rs__star--half  { color: #fbbf24; }
.ap-rs__star--empty { color: #cbd5e1; }

.ap-rs__muted { color: #64748b; }
.ap-rs--sm .ap-rs__muted, .ap-rs--sm .ap-rs__link { font-size: 14px; }
.ap-rs--lg .ap-rs__muted, .ap-rs--lg .ap-rs__link { font-size: 16px; }

.ap-rs__link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, .3);
  text-underline-offset: 2px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.ap-rs__link:hover { color: #1d4ed8; text-decoration-color: #1d4ed8; }
.ap-rs__link:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 2px; }

.ap-rs__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #047857;
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, .2);
}
.ap-rs__verified svg { width: 12px; height: 12px; fill: currentColor; }

/* --- histogram, profile reviews tab --- */

.ap-hist { display: grid; gap: 6px; max-width: 320px; }
.ap-hist__row { display: grid; grid-template-columns: 12px 1fr 32px; align-items: center; gap: 8px; }
.ap-hist__label { font-size: 13px; color: #64748b; text-align: right; }
.ap-hist__track { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.ap-hist__fill  { display: block; height: 100%; border-radius: 999px; background: #fbbf24; }
.ap-hist__count { font-size: 13px; color: #475569; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .ap-rs__link { transition: none; }
}
