/* Article star rating — theme-owned, replaces Yet Another Stars Rating.
 *
 * One quiet line under the article: question, stars, score. No card, just a
 * hairline above it, so it reads as a footnote to the article rather than a
 * block of its own. Wraps to two short lines on narrow phones.
 */
.ml-rate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 30px 0 8px;
	padding: 14px 2px 0;
	border-top: 1px solid var(--ms-line, #e7e1d9);
}

.ml-rate__title {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.8;
	color: var(--ms-ink-2, #3f4642);
}

.ml-rate__stars {
	display: inline-flex;
	gap: 1px;
	direction: ltr;
}

.ml-rate__star {
	padding: 2px;
	border: 0;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: var(--ms-line, #d8d0c5);
	cursor: pointer;
	transition: color .12s ease, transform .12s ease;
}

.ml-rate__star.is-on {
	color: var(--ms-green, #fc6f02);
}

.ml-rate__star:hover {
	transform: scale(1.15);
}

.ml-rate__star:focus-visible {
	outline: 2px solid var(--ms-green, #fc6f02);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Score sits right after the stars as a small pill, not at the far end. */
.ml-rate__meta {
	margin: 0;
	padding: 2px 10px;
	border-radius: var(--ms-radius-full, 999px);
	background: var(--ms-green-soft, #fff1e6);
	color: var(--ms-green-ink, #c2410c);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.9;
	white-space: nowrap;
}

.ml-rate.is-rated .ml-rate__meta::before {
	content: "✓ ";
}

.ml-rate.is-loading {
	opacity: .55;
}

.ml-rate.is-rated .ml-rate__star {
	cursor: default;
}

.ml-rate.is-rated .ml-rate__star:hover {
	transform: none;
}

/* Small phones: question on its own line, stars and score below it. */
@media (max-width: 420px) {
	.ml-rate__title {
		flex-basis: 100%;
	}
}
