/*
 * The sold band on a Condo Corner building page: the same band as the monthly statistics posts' "What Sold in ..."
 * (copied from stats.css with the post selector swapped for the building page; Kaz, November 6, 2026).
 */
/* ---- Homes sold in the month: a band across the post that cannot be missed (Jethro, November 3, 2026:
 * the site's lead-generation tool for sold homes). A banner, four sold cards blurred for anyone not
 * signed in, one big button over them; signed-in VOW members see the real cards (VOW 6.2(a)). ---- */
.single-condo_building .seymour-sold--band {
	color: #fff;
	margin: 0 auto;
	max-width: 1200px;
	padding: 8px 0 4px;
}

.seymour-sold__banner {
	margin: 0 0 30px;
	text-align: center;
}

.seymour-sold__kicker {
	color: #e8c97a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.single-condo_building .seymour-sold--band .seymour-sold__title {
	color: var(--gold-500, #c9a84c);
	font-family: var(--font-serif);
	font-size: clamp(28px, 4.2vw, 44px);
	line-height: 1.15;
	margin: 0 0 12px;
}

.single-condo_building .seymour-sold--band .seymour-sold__sub {
	color: #dfe5f2;
	font-size: clamp(15px, 1.6vw, 18px);
	margin: 0;
}

.seymour-sold__stage {
	display: block;
	position: relative;
	text-decoration: none;
}

.seymour-sold__cards {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

/* The cards drift slowly to the left (Kaz, November 3, 2026): two sets side by side in a row,
 * moved by one set's width (--n cards of one card-width each), so the loop has no jump. Everyone sees
 * the street, type, bedrooms and month; the figures are blurred. Still with reduced motion. */
.seymour-sold__stage {
	container-type: inline-size;
	overflow: hidden;
	padding: 8px 0 34px;
}

.seymour-sold__cards--drift {
	--unit: 25cqw;
	animation: seymour-sold-drift var(--dur, 120s) linear infinite;
	display: flex;
	gap: 0;
	margin-left: -9px;
	user-select: none;
	width: max-content;
}

.seymour-sold__cards--drift .seymour-sold__card {
	flex: 0 0 calc(var(--unit) - 18px);
	margin: 0 9px;
}

@keyframes seymour-sold-drift {
	to {
		transform: translateX(calc(var(--n) * var(--unit) * -1));
	}
}

@media (prefers-reduced-motion: reduce) {
	.seymour-sold__cards--drift {
		animation: none;
	}
}

/* Any card opens the sign-up; the row holds still under the pointer so it is easy to click. */
.seymour-sold__stage {
	cursor: pointer;
}

.seymour-sold__stage:hover .seymour-sold__cards--drift,
.seymour-sold__stage:focus-visible .seymour-sold__cards--drift {
	animation-play-state: paused;
}

.seymour-sold__stage .seymour-sold__card {
	transition: box-shadow 0.15s, transform 0.15s;
}

.seymour-sold__stage .seymour-sold__card:hover {
	box-shadow: 0 0 0 2px #c9a84c, 0 0 30px rgba(201, 168, 76, 0.6), 0 16px 32px rgba(0, 0, 0, 0.4);
	transform: translateY(-5px);
}

.seymour-sold__blur {
	filter: blur(6px);
	user-select: none;
}

.seymour-sold__card {
	background: #faf8f3;
	border-radius: 6px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
	color: #0a1628;
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
	padding: 0 0 16px;
}

.seymour-sold__card > span:not(.seymour-sold__pic) {
	padding: 0 16px;
}

.seymour-sold__pic {
	background: linear-gradient(135deg, #d9c9a0, #8a9bbd);
	display: block;
	height: 120px;
	margin-bottom: 10px;
}

.seymour-sold__price {
	color: #0a1628;
	font-family: var(--font-serif);
	font-size: 17px; /* the same as the street line (Kaz, November 3, 2026) */
}

.seymour-sold__addr {
	color: #0a1628; /* the navy band's list text is pale, which hid the street on the cream card */
	font-family: var(--font-serif);
	font-size: 17px;
}

.seymour-sold__addr a {
	color: inherit;
	text-decoration: none;
}

.seymour-sold__facts,
.seymour-sold__meta {
	color: #5d6578;
	font-size: 13px;
}

.seymour-sold__ours {
	color: #8c6d1f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.seymour-sold__action {
	margin: 2px 0 0;
	text-align: center;
}

.single-condo_building .seymour-sold .seymour-sold__cta {
	background: var(--gold-500, #c9a84c);
	border: 0;
	border-radius: 4px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
	color: #0a1628 !important; /* the navy bands turn every link gold, which hid the words on the gold button */
	display: inline-block;
	font-size: clamp(16px, 1.8vw, 20px);
	font-weight: 800;
	letter-spacing: 1px;
	padding: 18px 38px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.15s, transform 0.15s;
}

.seymour-sold__glass {
	flex: none;
	height: 1.1em;
	margin-right: 0.55em;
	vertical-align: -0.17em;
	width: 1.1em;
}

.single-condo_building .seymour-sold .seymour-sold__cta:hover,
.single-condo_building .seymour-sold .seymour-sold__cta:focus-visible {
	background: #e8c97a;
	box-shadow: 0 0 28px rgba(232, 201, 122, 0.7), 0 12px 28px rgba(0, 0, 0, 0.4);
	transform: translateY(-3px);
}

.single-condo_building .seymour-sold .seymour-sold__free {
	color: #fff;
	font-size: 14px;
	margin: 12px 0 0;
}

.single-condo_building .seymour-sold .seymour-sold__why {
	color: #b9c2d8;
	font-size: 12px;
	line-height: 1.4;
	margin: 8px auto 0;
	max-width: 640px;
}

.seymour-sold__more {
	margin-top: 18px;
}

.seymour-sold__more summary {
	color: #e8c97a;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	margin-bottom: 18px;
	text-align: center;
	text-transform: uppercase;
}

.seymour-sold .seymour-mls-notices {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: #b9c2d8;
	font-size: 11px;
	line-height: 1.4;
	margin-top: 26px;
	padding-top: 12px;
	text-align: center;
}

@media (max-width: 899px) {
	.seymour-sold__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.seymour-sold__cards--drift {
		--unit: 50cqw;
	}
}

@media (max-width: 599px) {
	.seymour-sold__cards {
		gap: 12px;
	}

	.seymour-sold__pic {
		height: 80px;
	}


}

/* Four sold cards or fewer sit in the middle of the band, each the width of a card in a row of four
 * (Kaz, November 6, 2026). More than four keep the grid. */
.seymour-sold__cards:not(.seymour-sold__cards--drift):not(:has(> li:nth-child(5))) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.seymour-sold__cards:not(.seymour-sold__cards--drift):not(:has(> li:nth-child(5))) > li {
	flex: 0 0 calc((100% - 54px) / 4);
	max-width: calc((100% - 54px) / 4);
}

@media (max-width: 899px) {
	.seymour-sold__cards:not(.seymour-sold__cards--drift):not(:has(> li:nth-child(5))) > li {
		flex-basis: calc((100% - 18px) / 2);
		max-width: calc((100% - 18px) / 2);
	}
}

@media (max-width: 599px) {
	.seymour-sold__cards:not(.seymour-sold__cards--drift):not(:has(> li:nth-child(5))) > li {
		flex-basis: calc((100% - 12px) / 2);
		max-width: calc((100% - 12px) / 2);
	}
}

/* Fewer than four sold cards stay centred (Kaz, November 9, 2026). The drifting set is left as it is. */
.single-condo_building .seymour-sold__cards:not(.seymour-sold__cards--drift) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.single-condo_building .seymour-sold__cards:not(.seymour-sold__cards--drift) > .seymour-sold__card {
	flex: 0 0 calc((100% - 54px) / 4);
	min-width: 0;
}

@media (max-width: 899px) {
	.single-condo_building .seymour-sold__cards:not(.seymour-sold__cards--drift) > .seymour-sold__card {
		flex-basis: calc((100% - 18px) / 2);
	}
}
