/* ============================================
   VOTING RECORD DISPLAY
   Minimal defaults — Elementor controls the colors, spacing, etc.
   ============================================ */

.fve-voting-record {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.fve-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---- Card ---- */

.fve-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
	box-sizing: border-box;
}

.fve-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 24px;
	min-width: 0;
}

/* Stance pill — sits at the top, sized to its text */
.fve-card-stance {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
}

.fve-card-stance-text {
	font-weight: 700;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a1a1a;
}

/* Color the pill based on the MP's stance */
.fve-card--for     .fve-card-stance { background: #c8e6c9; }   /* green */
.fve-card--against .fve-card-stance { background: #ffcdd2; }   /* red */
.fve-card--abstain .fve-card-stance { background: #e0e0e0; }   /* grey */

.fve-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.fve-card-date {
	font-size: 14px;
	color: #666;
}

/* ---- Title link ---- */

.fve-card-title-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}

/* Default: no underline on hover. The Elementor "Underline on hover"
   toggle overrides this if enabled. */
.fve-card-title-link:hover,
.fve-card-title-link:focus {
	border-bottom-color: transparent;
}

/* ---- Ayes / Noes counts (above the bar) ---- */

.fve-card-counts {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	margin-top: 4px;
}

.fve-card-counts-aye,
.fve-card-counts-no {
	white-space: nowrap;
}

/* ---- Ayes / Noes bar (now label-less) ---- */

.fve-card-bar {
	display: flex;
	width: 100%;
	height: 12px;
	border-radius: 6px;
	overflow: hidden;
}

.fve-card-bar-aye,
.fve-card-bar-no {
	min-width: 0;
	transition: width 0.25s ease;
}

.fve-card-bar-aye {
	background: #c8e6c9;
}

.fve-card-bar-no {
	background: #ffcdd2;
}

.fve-card-result {
	font-size: 14px;
	color: #444;
}

/* ---- Load more ---- */

.fve-load-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

.fve-load-more {
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.fve-load-more:hover {
	background: #135e96;
}

.fve-load-more:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.fve-status {
	font-size: 13px;
	color: #666;
}

.fve-status--err     { color: #c62828; }
.fve-status--loading { color: #888; }

.fve-notice {
	padding: 16px 20px;
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 8px;
	color: #666;
	text-align: center;
	margin: 0;
}

.fve-notice--error {
	background: #fdecea;
	border-color: #f5c6cb;
	color: #721c24;
}
