/* ==========================================================================
   Homepage reviews band (front page only): ADDO in a spotlight, five cards below.
   Built by ourwork/build/home_reviews_band.py; the modules are native Divi, this sheet
   only does what Divi can't set alone: each card's inner grid (logo row with the result
   pill, name row pinned to the bottom so cards in a row line up), logo sizes, the
   spotlight byline, and smaller type on phones.
   `body #page-container` matches the specificity of Divi's per-module rules.
   ========================================================================== */

/* Text modules: no paragraph gap inside the band, the grids space things. */
body #page-container .hs-home-reviews .et_pb_text p {
	padding-bottom: 0;
	margin: 0;
}

/* Heading row: "See all our work" sits bottom right, level with the heading. */
body #page-container .hs-home-reviews .hs-reviews-all.et_pb_column {
	justify-content: flex-end;
	align-items: flex-end;
}

/* ---------------------------------------------------------------- spotlight */
body #page-container .hs-home-reviews .hs-spot-quote.et_pb_column {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	column-gap: 16px;
	row-gap: 0;
	align-content: end;
}
body #page-container .hs-home-reviews .hs-spot-quote.et_pb_column > * {
	margin: 0 !important;
}
/* Same selector shape as the margin reset above, later, so these win. */
body #page-container .hs-home-reviews .hs-spot-quote.et_pb_column > .hs-spot-pull {
	grid-column: 1 / -1;
	margin-bottom: 28px !important;
}
body #page-container .hs-home-reviews .hs-spot-pull p {
	letter-spacing: -0.02em;
}
body #page-container .hs-home-reviews .hs-spot-quote.et_pb_column > .hs-spot-body {
	grid-column: 1 / -1;
	max-width: 640px;
	margin-bottom: 32px !important;
}
body #page-container .hs-home-reviews .hs-spot-logo {
	grid-column: 1;
	grid-row: 3 / span 2;
	align-self: center;
	width: 52px;
}
body #page-container .hs-home-reviews .hs-spot-logo img {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	object-fit: cover;
	background: #FFFFFF;
}
body #page-container .hs-home-reviews .hs-spot-who {
	grid-column: 2;
	grid-row: 3;
	align-self: end;
}
body #page-container .hs-home-reviews .hs-spot-quote .et_pb_button_module_wrapper {
	grid-column: 2;
	grid-row: 4;
	align-self: start;
}
body #page-container .hs-home-reviews .hs-spot-result.et_pb_column {
	align-self: flex-end;
	justify-content: flex-end;
	border-top: 1px solid #4A4A43;
	padding-top: 28px;
	gap: 8px;
}
body #page-container .hs-home-reviews .hs-spot-stat p {
	letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------- cards */
body #page-container .hs-home-reviews .hs-review-card.et_pb_column {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto 1fr auto;
	column-gap: 12px;
	row-gap: 20px;
}
body #page-container .hs-home-reviews .hs-review-card.et_pb_column > * {
	margin: 0 !important;
}
body #page-container .hs-home-reviews .hs-review-logo {
	grid-column: 1;
	grid-row: 1;
	width: 44px;
}
body #page-container .hs-home-reviews .hs-review-logo img {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
	background: #FFFFFF;
}
body #page-container .hs-home-reviews .hs-review-stat {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	border: 1px solid #4A4A43;
	border-radius: 50px;
	padding: 6px 14px;
	white-space: nowrap;
}
body #page-container .hs-home-reviews .hs-review-pull {
	grid-column: 1 / -1;
	grid-row: 2;
}
body #page-container .hs-home-reviews .hs-review-body {
	grid-column: 1 / -1;
	grid-row: 3;
}
/* The name row: the name spans the card and carries the rule; the link sits on the same
   row at the right, over the name's empty end, so the rule is one unbroken line. */
body #page-container .hs-home-reviews .hs-review-who {
	grid-column: 1 / -1;
	grid-row: 5;
	justify-self: stretch;
	border-top: 1px solid #4A4A43;
	padding-top: 18px;
}
body #page-container .hs-home-reviews .hs-review-card .et_pb_button_module_wrapper {
	grid-column: 2;
	grid-row: 5;
	align-self: end;
	justify-self: end;
	display: flex;
}
/* The name's 1.4em line, not Divi's 1.7em button line, so the two share a baseline. */
body #page-container .hs-home-reviews .hs-review-card .hs-quote-link {
	line-height: 1.4em !important;
}
/* -------------------------------------------------------------------- phones */
@media (max-width: 767px) {
	body #page-container .hs-home-reviews .hs-spot-pull p {
		font-size: 38px !important;
	}
	body #page-container .hs-home-reviews .hs-spot-stat p {
		font-size: 72px !important;
	}
	body #page-container .hs-home-reviews .hs-review-pull p {
		font-size: 22px !important;
	}
	body #page-container .hs-home-reviews .hs-reviews-all.et_pb_column {
		align-items: flex-start;
	}
}
