/* ==========================================================================
   BUDDIES — GOOGLE RATING BLOCK
   Replaces the design's dashed "Platzhalter · Google-Reviews-Widget" box.
   ========================================================================== */

.bwr-host {
	/* Air between the section heading and the cards. The design's placeholder
	   carried its own generous height, so removing it also removed the breathing
	   room the heading had above it — this puts it back. */
	margin-top: 44px;
}

/* FLEX, NOT GRID — this was a real bug, not a preference.
   The first version used grid with repeat(auto-fit, minmax(…)). With only two
   cards in a wide container, auto-fit still reserves the collapsed tracks for
   alignment, so the pair sat left of centre with an empty gap to its right that
   read as a missing third card. Flex has no such concept: two items centre as
   two items, three would centre as three. */
.bwr-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
}

.bwr-card {
	/* grow to fill the pair evenly, but never become a letterbox on a wide screen */
	flex: 1 1 300px;
	max-width: 380px;

	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 34px 30px 0;

	background: var(--white, #fff);
	border: 1px solid var(--sand-300, #E2D7CB);
	border-radius: var(--radius-lg, 18px);
}

.bwr-place {
	font-family: var(--font-heading, "M PLUS 2", system-ui, sans-serif);
	font-weight: var(--weight-heading-alt, 800);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--black, #000);
	margin: 0 0 18px;
}

/* The rating is the whole point of the block, so it carries the display size
   and everything else is sized in relation to it. */
.bwr-score {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 12px;
}
.bwr-num {
	font-family: var(--font-heading, "M PLUS 2", system-ui, sans-serif);
	font-weight: var(--weight-heading, 800);
	font-size: 54px;
	line-height: 1;
	letter-spacing: -.015em;
	color: var(--black, #000);
	font-variant-numeric: tabular-nums;
}
.bwr-of {
	font-family: var(--font-body, "Lato", system-ui, sans-serif);
	font-weight: 300;
	font-size: 15px;
	color: var(--ink-400, #6E6A66);
}

/* Stars sit tight under the number — they restate it, they are not a separate
   fact, so they should read as one unit with it. */
.bwr-stars {
	display: block;
	margin: 0 0 14px;
}

.bwr-count {
	font-family: var(--font-body, "Lato", system-ui, sans-serif);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-600, #3D3D3D);
	margin: 0 0 26px;
}

/* A ruled footer rather than a link floating in space. It gives the card a
   defined bottom edge, which is what stopped it feeling unfinished. */
.bwr-link {
	margin-top: auto;
	width: 100%;
	padding: 17px 0 19px;
	border-top: 1px solid var(--sand-200, #EEE6DD);

	font-family: var(--font-heading, "M PLUS 2", system-ui, sans-serif);
	font-weight: var(--weight-heading-alt, 800);
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-link, #2660FF);
	text-decoration: none;
	transition: color .15s ease;
}
.bwr-link:hover { color: var(--text-link-hover, #1B47C4); }
.bwr-link:focus-visible {
	outline: 3px solid var(--focus-ring, #2660FF);
	outline-offset: -3px;
	border-radius: 4px;
}

/* Provenance. Without it a static figure reads as a live one. */
.bwr-note {
	text-align: center;
	font-family: var(--font-body, "Lato", system-ui, sans-serif);
	font-weight: 300;
	font-size: 13px;
	color: var(--ink-400, #6E6A66);
	margin: 22px 0 0;
}

@media (max-width: 720px) {
	.bwr-host { margin-top: 32px; }
	.bwr-cards { gap: 16px; }
	.bwr-card { flex: 1 1 100%; max-width: 420px; padding: 28px 24px 0; }
	.bwr-num { font-size: 46px; }
}

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