/*
 * Win Champion Board — v4.2 skin: four neat compact cards in 2 columns,
 * inside one centered bordered container. Equal heights, no overflow,
 * no truncated brand names.
 */

/* Outer container: the "square" (full content measure minus padding) */
.wcpb-board {
	max-width: 100%;
	margin: 28px auto;
	background: #fffdf9;
	border: 1px solid var(--wcp-hairline, #e4dbd0);
	border-radius: var(--wcp-radius-card, 14px);
	padding: 24px;
	box-sizing: border-box;
}

.wcpb-lead {
	font-size: 13px;
	color: var(--wcp-ink-2, #5c524d);
	margin: 0 0 16px;
	text-align: center;
}

/* 2-column grid, equal-height cells, cards split the square evenly */
.wcpb-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* Card: compact, fixed structure, column flex so heights match */
.wcpb-row {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: break-word;
	background: #ffffff;
	border: 1px solid var(--wcp-hairline, #e4dbd0);
	border-radius: 12px;
	padding: 18px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcpb-row:hover {
	border-color: var(--wcp-claret, #7a1f2b);
	box-shadow: 0 4px 14px rgba(122, 31, 43, 0.08);
}

.wcpb-row-top {
	border: 1.5px solid var(--wcp-gold, #a8752a);
	background: #fffdf6;
}

/* Card head: rank square + brand left, score block right.
 * The brand is allowed to wrap so long names are never cut off. */
.wcpb-brandline {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	min-width: 0;
}

.wcpb-rank-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--wcp-claret, #7a1f2b);
	color: var(--wcp-cream, #faf6f0);
	font-family: var(--wcp-font-head, Georgia, serif);
	font-weight: 700;
	font-size: 16px;
}

.wcpb-row-top .wcpb-rank-num {
	background: var(--wcp-gold, #a8752a);
}

.wcpb-brand {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	color: var(--wcp-ink, #241d1a);
	min-width: 0;
	overflow-wrap: break-word;
}

/* Head right block: flag + score stacked, never squeezes the brand */
.wcpb-head-right {
	flex: 0 0 auto;
	margin-left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.wcpb-flag {
	display: inline-block;
	background: var(--wcp-gold, #a8752a);
	color: #fffdf9;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wcpb-score {
	font-family: var(--wcp-font-head, Georgia, serif);
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	color: var(--wcp-claret, #7a1f2b);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wcpb-row-top .wcpb-score {
	color: var(--wcp-gold, #a8752a);
}

/* Offer line: clamped to 2 lines */
.wcpb-offer {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wcp-claret, #7a1f2b);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 39px;
}

/* Chips: neat bullet lines */
.wcpb-chips {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcpb-chip {
	position: relative;
	padding-left: 16px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--wcp-ink, #241d1a);
}

.wcpb-chip::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--wcp-gold, #a8752a);
}

/* Licence line pinned to bottom via margin-top auto chain */
.wcpb-licence {
	font-size: 11px;
	color: var(--wcp-ink-2, #5c524d);
	margin: 0 0 12px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed var(--wcp-hairline, #e4dbd0);
}

/* CTA: full card width */
.wcpb-cta {
	display: block;
	text-align: center;
	background: var(--wcp-claret, #7a1f2b);
	color: var(--wcp-cream, #faf6f0);
	border: none;
	border-radius: 8px;
	padding: 11px 14px;
	font-family: var(--wcp-font-body, sans-serif);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.wcpb-cta:hover,
.wcpb-cta:focus {
	background: var(--wcp-claret-deep, #5e1620);
	color: var(--wcp-cream, #faf6f0);
	box-shadow: 0 4px 12px rgba(94, 22, 32, 0.22);
}

.wcpb-row-top .wcpb-cta {
	background: var(--wcp-gold, #a8752a);
}

.wcpb-row-top .wcpb-cta:hover,
.wcpb-row-top .wcpb-cta:focus {
	background: #8a5c1d;
}

.wcpb-cta:focus-visible {
	outline: 2px solid var(--wcp-gold, #a8752a);
	outline-offset: 2px;
}

/* Pill (score/100) under score in head-right */
.wcpb-pill {
	display: inline-block;
	background: transparent;
	border: 1px solid var(--wcp-hairline, #e4dbd0);
	color: var(--wcp-ink-2, #5c524d);
	border-radius: 999px;
	padding: 1px 8px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	font-size: 10.5px;
	white-space: nowrap;
}

/* Note: short muted line */
.wcpb-note {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--wcp-ink-2, #5c524d);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Tablet and below: one column so cards keep a comfortable width */
@media (max-width: 860px) {
	.wcpb-board {
		padding: 16px;
	}

	.wcpb-rows {
		grid-template-columns: minmax(0, 1fr);
	}
}