/* =========================================================
   VOTE SMART KE
   CANDIDATE — QUICK FACTS
   ========================================================= */

.vsk-quick-facts {
    padding: 28px 0 36px;
    background: #f8fafc;
}

.vsk-quick-facts .vsk-container {
    width: 100%;
}

/* =========================================================
   CARD
   ========================================================= */

.quick-facts-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 35, 71, 0.05);
}

/* =========================================================
   HEADER
   ========================================================= */

.quick-facts-header {
    padding: 22px 26px 18px;
    border-bottom: 1px solid #e8edf3;
}

.quick-facts-header h2 {
    margin: 0 0 5px;
    color: #0b2347;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.quick-facts-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   FACT GRID
   ========================================================= */

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* =========================================================
   INDIVIDUAL FACT
   ========================================================= */

.quick-fact {
    min-width: 0;
    padding: 20px 22px;
    border-right: 1px solid #e8edf3;
}

.quick-fact:last-child {
    border-right: none;
}

.quick-fact-label {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.quick-fact-value {
    display: block;
    color: #0b2347;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 750;
    overflow-wrap: anywhere;
}

/* =========================================================
   SUBTLE FACT ACCENTS
   ========================================================= */

.quick-fact.age .quick-fact-value {
    color: #0b2347;
}

.quick-fact.party .quick-fact-value {
    color: #2459d6;
}

.quick-fact.status .quick-fact-value {
    color: #166534;
}

.quick-fact.electoral-area .quick-fact-value {
    color: #0b2347;
}

/* =========================================================
   HOVER
   ========================================================= */

.quick-fact {
    transition: background-color 0.2s ease;
}

.quick-fact:hover {
    background: #f8fafc;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .quick-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-fact {
        border-right: none;
        border-bottom: 1px solid #e8edf3;
    }

    .quick-fact:nth-child(odd) {
        border-right: 1px solid #e8edf3;
    }

    .quick-fact:nth-last-child(-n + 2) {
        border-bottom: none;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .vsk-quick-facts {
        padding: 20px 0 28px;
    }

    .quick-facts-card {
        border-radius: 14px;
    }

    .quick-facts-header {
        padding: 19px 18px 16px;
    }

    .quick-facts-header h2 {
        font-size: 19px;
    }

    .quick-facts-header p {
        font-size: 12px;
    }

    .quick-facts-grid {
        grid-template-columns: 1fr;
    }

    .quick-fact {
        padding: 16px 18px;
        border-right: none !important;
        border-bottom: 1px solid #e8edf3;
    }

    .quick-fact:last-child {
        border-bottom: none;
    }

    .quick-fact-label {
        margin-bottom: 5px;
    }

    .quick-fact-value {
        font-size: 14px;
    }

}

/* Candidate status should use normal title case. */
.quick-fact.candidate-status .quick-fact-value {
    text-transform: none !important;
    font-variant: normal;
}

/* =========================================================
   QUICK FACTS — CARD ENHANCEMENT
========================================================= */

.vsk-quick-facts {
	padding: 48px 0;
	background: #f7f9fc;
}

.vsk-quick-facts .quick-facts-card {
	overflow: visible;
	padding: 28px;
	border: 1px solid #dce5f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(0, 43, 92, 0.07);
}


/* Section heading */

.vsk-quick-facts .quick-facts-header {
	margin-bottom: 24px;
	padding: 0;
	border: 0;
}

.vsk-quick-facts .quick-facts-header h2 {
	margin: 0 0 7px;
	color: #002b5c;
	font-size: 27px;
	font-weight: 800;
	line-height: 1.25;
}

.vsk-quick-facts .quick-facts-header p {
	margin: 0;
	color: #607086;
	font-size: 14px;
	line-height: 1.6;
}


/* Facts grid */

.vsk-quick-facts .quick-facts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	border: 0;
}


/* Individual fact */

.vsk-quick-facts .quick-fact {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 128px;
	margin: 0;
	padding: 22px 62px 22px 19px;
	overflow: hidden;
	border: 1px solid #dce5f0;
	border-top: 4px solid #2563eb;
	border-radius: 14px;
	background: #f8fbff;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.vsk-quick-facts .quick-fact:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(0, 43, 92, 0.1);
}


/* Decorative icon */

.vsk-quick-facts .quick-fact::before {
	position: absolute;
	top: 18px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: #e5edff;
	color: #2563eb;
	font-size: 18px;
	line-height: 1;
	content: "ℹ";
}


/* Fact typography */

.vsk-quick-facts .quick-fact-label {
	display: block;
	margin: 0 0 8px;
	color: #687a90;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.075em;
	line-height: 1.4;
	text-transform: uppercase;
}

.vsk-quick-facts .quick-fact-value {
	display: block;
	margin: 0;
	overflow-wrap: anywhere;
	color: #002b5c;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;
	text-transform: none;
}


/* =========================================================
   INDIVIDUAL FACT COLOURS AND ICONS
========================================================= */

/* Age */

.vsk-quick-facts .quick-fact.age {
	border-top-color: #2563eb;
	background: #f7faff;
}

.vsk-quick-facts .quick-fact.age::before {
	background: #e5edff;
	color: #2563eb;
	content: "◷";
}


/* Profession */

.vsk-quick-facts .quick-fact.profession,
.vsk-quick-facts .quick-fact.occupation {
	border-top-color: #0f8a7b;
	background: #f5fcfa;
}

.vsk-quick-facts .quick-fact.profession::before,
.vsk-quick-facts .quick-fact.occupation::before {
	background: #dff7f2;
	color: #0f766e;
	content: "▣";
}


/* Highest qualification */

.vsk-quick-facts .quick-fact.qualification,
.vsk-quick-facts .quick-fact.highest-qualification {
	border-top-color: #7c3aed;
	background: #faf8ff;
}

.vsk-quick-facts .quick-fact.qualification::before,
.vsk-quick-facts .quick-fact.highest-qualification::before {
	background: #eee7ff;
	color: #7c3aed;
	content: "◆";
}


/* Candidate status */

.vsk-quick-facts .quick-fact.status,
.vsk-quick-facts .quick-fact.candidate-status {
	border-top-color: #f59e0b;
	background: #fffaf1;
}

.vsk-quick-facts .quick-fact.status::before,
.vsk-quick-facts .quick-fact.candidate-status::before {
	background: #fff0c7;
	color: #b76e00;
	content: "✓";
}

.vsk-quick-facts .quick-fact.candidate-status .quick-fact-value,
.vsk-quick-facts .quick-fact.status .quick-fact-value {
	text-transform: none;
}


/* =========================================================
   RESPONSIVE QUICK FACTS
========================================================= */

@media (max-width: 1000px) {

	.vsk-quick-facts .quick-facts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 600px) {

	.vsk-quick-facts {
		padding: 34px 0;
	}

	.vsk-quick-facts .quick-facts-card {
		padding: 20px;
		border-radius: 16px;
	}

	.vsk-quick-facts .quick-facts-header {
		margin-bottom: 18px;
	}

	.vsk-quick-facts .quick-facts-header h2 {
		font-size: 24px;
	}

	.vsk-quick-facts .quick-facts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.vsk-quick-facts .quick-fact {
		min-height: 124px;
		padding: 18px 50px 18px 15px;
	}

	.vsk-quick-facts .quick-fact::before {
		top: 14px;
		right: 12px;
		width: 32px;
		height: 32px;
		font-size: 15px;
	}

	.vsk-quick-facts .quick-fact-value {
		font-size: 15px;
	}

}

@media (max-width: 420px) {

	.vsk-quick-facts .quick-facts-grid {
		grid-template-columns: 1fr;
	}

	.vsk-quick-facts .quick-fact {
		min-height: 105px;
	}

}

/* =========================================================
   VSKE SVG ICONS — QUICK FACTS
========================================================= */

.vsk-quick-facts .quick-fact::before {
	display: none;
	content: none;
}

.vsk-quick-facts .quick-fact {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 15px;
	padding: 20px;
}

.vsk-quick-facts .quick-fact-icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #e5edff;
	color: #2563eb;
}

.vsk-quick-facts .quick-fact-icon .vske-icon {
	display: block;
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
}

.vsk-quick-facts .quick-fact-content {
	flex: 1;
	min-width: 0;
}


/* Profession */

.vsk-quick-facts .quick-fact.profession .quick-fact-icon {
	background: #dff7f2;
	color: #0f766e;
}


/* Qualification */

.vsk-quick-facts .quick-fact.qualification .quick-fact-icon {
	background: #eee7ff;
	color: #7c3aed;
}


/* Candidate status */

.vsk-quick-facts .quick-fact.candidate-status .quick-fact-icon {
	background: #fff0c7;
	color: #b76e00;
}


/* Mobile */

@media (max-width: 600px) {

	.vsk-quick-facts .quick-fact {
		min-height: 112px;
		gap: 12px;
		padding: 16px;
	}

	.vsk-quick-facts .quick-fact-icon {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}

	.vsk-quick-facts .quick-fact-icon .vske-icon {
		width: 20px;
		height: 20px;
	}

}

/* =========================================================
   FINAL MOBILE QUICK-FACT ICON FIX
========================================================= */

@media screen and (max-width: 767px) {

	body .vsk-profile .vsk-quick-facts .quick-fact {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 12px !important;
		min-height: 108px !important;
		padding: 16px !important;
	}

	body .vsk-profile .vsk-quick-facts .quick-fact-icon {
		display: flex !important;
		flex: 0 0 40px !important;
		align-items: center !important;
		justify-content: center !important;
		width: 40px !important;
		height: 40px !important;
		min-width: 40px !important;
		min-height: 40px !important;
		max-width: 40px !important;
		max-height: 40px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	body .vsk-profile .vsk-quick-facts .quick-fact-icon svg,
	body .vsk-profile .vsk-quick-facts .quick-fact-icon svg.vske-icon {
		display: block !important;
		flex: 0 0 21px !important;
		width: 21px !important;
		height: 21px !important;
		min-width: 21px !important;
		min-height: 21px !important;
		max-width: 21px !important;
		max-height: 21px !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body .vsk-profile .vsk-quick-facts .quick-fact-content {
		display: block !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

}