/*
 * Testimonials — Ratings tab (donut, bar chart, category scores)
 * Depends on: design-tokens.css, log-test-explorer.css
 * Page: body.log-testimonials-page
 */

.rating-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.big-score { text-align: center; }
.bs-number { font-family: var(--display); font-weight: 800; font-size: 52px; color: var(--plum-800); line-height: 1; }
.bs-stars { display: flex; gap: 3px; justify-content: center; color: var(--sage-600); margin-top: 8px; }
.bs-stars span { font-size: 16px; }
.bs-count { font-size: 12px; line-height: 1.2; color: var(--gray-600); margin-top: 6px; }

.donut { position: relative; width: 140px; height: 140px; margin: 18px auto 0; }
.donut svg { width: 100%; height: 100%; }
.donut-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-pct { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink-900); line-height: 1.2; }
.donut-sub { font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; }

.rb-list { display: flex; flex-direction: column; gap: 9px; }
.rb-row { display: grid; grid-template-columns: 36px 1fr 40px 90px; align-items: center; gap: 10px; font-size: 11.5px; }
.rb-star { font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.rb-track { height: 7px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.rb-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--sage-600), var(--plum-700)); border-radius: var(--r-pill); transition: width 1.2s var(--ease); }
.rb-pct { font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.rb-cnt { color: var(--gray-600); font-size: 10.5px; white-space: nowrap; line-height: 1.2; }

.cat-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }

.cs-card {
	background: var(--paper-50);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 10px;
	text-align: center;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cs-ico { font-size: 17px; }
.cs-val { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--plum-700); margin-top: 4px; line-height: 1.2; }
.cs-lbl { font-size: 9.5px; color: var(--gray-600); margin-top: 2px; line-height: 1.3; }

@media(max-width:760px) {
	.rating-grid { grid-template-columns: 1fr; gap: 26px; }
	.rb-row { grid-template-columns: 32px 1fr 34px; }
	.rb-cnt { display: none; }
	.cat-scores { grid-template-columns: repeat(2, 1fr); }
}
