/* ============================================================
   partners-rich.css — Google-style detail block appended to the
   buyer portal .partner-card by partners-rich.js (TIPartnersRich).

   Theme-token only (product.css custom properties). No hardcoded hex
   except documented alpha washes that ride on a token. Legible in
   BOTH light and dark (data-theme on <html>). Prefix: .pr-

   Token map used here, all defined in BOTH themes (product.css):
     --accent / --accent-deep  stars + message button
     --surface-2               review bubbles + chips (sand, both modes)
     --text / --text-dim / --text-dimmer   body copy
     --border / --border-soft  hairlines
     --paper                   action fill base
     --ok                      (kept available; not relied on here)

   Star legibility: --accent is the star color and is defined in light
   (#0a5852) AND dark (#3fb3a8); both pass AA on --surface-2 in their
   own theme. It is never a flipping-to-invisible token, so the stars
   stay visible in both modes. No star color depends on a fixed-color
   surface.
   ============================================================ */

.pr-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- rating row ------------------------------------------------- */
.pr-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--sans, system-ui, sans-serif);
}
.pr-stars {
  /* pinned to --accent (defined in both themes); not a flipping token */
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}
.pr-score {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.pr-reviewcount {
  font-size: 13px;
  color: var(--text-dim);
}
.pr-dot {
  color: var(--text-dimmer);
  font-size: 13px;
}
.pr-rating-stub {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* "sample" chip — sand background from a token, ink text pinned on top.
   Both --surface-2 and the text token resolve per theme, so the chip
   reads in light and dark. */
.pr-sample {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  line-height: 1.5;
}
.pr-sample-review {
  color: var(--text-dimmer);
}

/* ---- sample reviews --------------------------------------------- */
.pr-reviews {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-review {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card, 12px);
  padding: 11px 13px;
}
.pr-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pr-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pr-review-meta {
  font-size: 12px;
  color: var(--text-dim);
}
.pr-review-head .pr-sample {
  margin-left: auto;
}
.pr-review-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* ---- contact actions -------------------------------------------- */
.pr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-action {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--text);
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pr-action:hover {
  border-color: var(--accent);
}
.pr-action-call:hover {
  color: var(--accent-deep);
}
.pr-action-label {
  white-space: nowrap;
}
.pr-action-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}
/* website hint (non-clickable sample) reads as muted, not a link */
.pr-action-hint {
  cursor: default;
  color: var(--text-dim);
}
.pr-action-hint:hover {
  border-color: var(--border);
}
/* Message Erin = the primary intro action, solid accent fill.
   --accent-bright is a solid-fill token; white ink already passes on it
   in both themes (per product.css notes). Text pinned white on a token
   fill, never on a flipping surface. */
.pr-action-msg {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #ffffff;        /* pinned: white on the solid accent fill */
}
.pr-action-msg .pr-action-label {
  color: #ffffff;        /* pinned with the fill above */
}
.pr-action-msg:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
}

/* ---- attribution ------------------------------------------------- */
.pr-attrib {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pr-attrib-line {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.pr-attrib-sub {
  font-size: 11px;
  color: var(--text-dimmer);
  line-height: 1.5;
}

/* ---- responsive -------------------------------------------------- */
@media (max-width: 720px) {
  .pr-actions { flex-direction: column; align-items: stretch; }
  .pr-action { align-items: flex-start; }
}
