/* =========================================================
   VOTE SMART KE
   BILL PAGE
========================================================= */


/* =========================================================
   PAGE FOUNDATION
========================================================= */

.vsk-bill-page {
	width: 100%;
	background: #f7f9fc;
	color: #172033;
}

.vsk-bill-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.vsk-bill-hero {
	position: relative;
	padding: 72px 0 68px;
	background: linear-gradient(
		135deg,
		#0b1f3a 0%,
		#123d68 55%,
		#0b2948 100%
	);
	color: #ffffff;
	overflow: hidden;
}

.vsk-bill-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -180px;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 50%;
}

.vsk-bill-hero::before {
	content: "";
	position: absolute;
	right: 40px;
	bottom: -260px;
	width: 520px;
	height: 520px;
	border: 1px solid rgba(255,255,255,.05);
	border-radius: 50%;
}

.vsk-bill-category {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: rgba(255,255,255,.11);
	border: 1px solid rgba(255,255,255,.16);
	color: #dbeafe;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.vsk-bill-title {
	max-width: 850px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.03em;
}

.vsk-bill-long-title {
	max-width: 850px;
	margin: 22px 0 0;
	color: rgba(255,255,255,.78);
	font-size: 17px;
	line-height: 1.65;
}

.vsk-bill-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.vsk-bill-meta span {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 8px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.12);
	color: #e7eef7;
	font-size: 13px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.vsk-bill-content {
	padding: 60px 0 70px;
}

.vsk-bill-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 46px;
	align-items: start;
}


/* =========================================================
   MAIN COLUMN
========================================================= */

.vsk-bill-main {
	min-width: 0;
}

.vsk-bill-section {
	padding: 0 0 48px;
	margin-bottom: 48px;
	border-bottom: 1px solid #e4e9f0;
}

.vsk-bill-section:last-child {
	margin-bottom: 0;
}

.vsk-section-label {
	margin-bottom: 10px;
	color: #1d6fa5;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.vsk-bill-section h2,
.vsk-bill-votes h2 {
	margin: 0 0 18px;
	color: #10233f;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.02em;
}

.vsk-bill-text {
	color: #4b5565;
	font-size: 16px;
	line-height: 1.8;
}

.vsk-bill-text p {
	margin: 0 0 18px;
}

.vsk-bill-text p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   SIDEBAR
========================================================= */

.vsk-bill-sidebar {
	position: sticky;
	top: 30px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.vsk-bill-info-card {
	padding: 25px;
	background: #ffffff;
	border: 1px solid #e3e8ef;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(15, 35, 60, .06);
}

.vsk-info-label {
	margin-bottom: 18px;
	color: #718096;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}


/* =========================================================
   STATUS
========================================================= */

.vsk-bill-status {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 13px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.vsk-status-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #94a3b8;
}

.vsk-bill-status-passed {
	background: #eaf8ef;
	color: #19733b;
}

.vsk-bill-status-passed .vsk-status-dot {
	background: #22a447;
}

.vsk-bill-status-rejected {
	background: #fff0f0;
	color: #b42318;
}

.vsk-bill-status-rejected .vsk-status-dot {
	background: #d92d20;
}

.vsk-bill-status-pending {
	background: #fff7e6;
	color: #a15c00;
}

.vsk-bill-status-pending .vsk-status-dot {
	background: #e6a11a;
}

.vsk-bill-status-neutral {
	background: #f1f4f7;
	color: #536273;
}

.vsk-bill-info-value {
	color: #536273;
	font-size: 14px;
}


/* =========================================================
   BILL DETAIL ROWS
========================================================= */

.vsk-detail-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 0;
	border-bottom: 1px solid #edf0f4;
}

.vsk-detail-row:first-of-type {
	padding-top: 0;
}

.vsk-detail-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.vsk-detail-row span {
	color: #7a8797;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.vsk-detail-row strong {
	color: #1c2b3d;
	font-size: 14px;
	line-height: 1.45;
}


/* =========================================================
   CIVIC CONTEXT
========================================================= */

.vsk-bill-context {
	display: flex;
	gap: 14px;
	padding: 22px;
	border-radius: 14px;
	background: #eef6fb;
	border: 1px solid #d9eaf5;
}

.vsk-context-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #ffffff;
	font-size: 20px;
}

.vsk-bill-context strong {
	display: block;
	margin-bottom: 7px;
	color: #163b5c;
	font-size: 14px;
}

.vsk-bill-context p {
	margin: 0;
	color: #52677b;
	font-size: 13px;
	line-height: 1.6;
}


/* =========================================================
   VOTING SECTION
========================================================= */

.vsk-bill-votes {
	padding: 70px 0 90px;
	background: #ffffff;
	border-top: 1px solid #e7ebf0;
}

.vsk-votes-intro {
	margin: -7px 0 30px;
	color: #6b7787;
	font-size: 15px;
}


/* =========================================================
   VOTE TABLE
========================================================= */

.vsk-vote-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #e1e6ed;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 35, 60, .06);
}

.vsk-vote-table {
	width: 100%;
	min-width: 780px;
	border-collapse: collapse;
}

.vsk-vote-table thead {
	background: #f4f7fa;
}

.vsk-vote-table th {
	padding: 15px 18px;
	border-bottom: 1px solid #dfe5ec;
	color: #687789;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
}

.vsk-vote-table td {
	padding: 17px 18px;
	border-bottom: 1px solid #edf0f4;
	color: #445163;
	font-size: 14px;
	vertical-align: middle;
}

.vsk-vote-table tbody tr:last-child td {
	border-bottom: 0;
}

.vsk-vote-table tbody tr {
	transition: background .18s ease;
}

.vsk-vote-table tbody tr:hover {
	background: #f9fbfd;
}


/* =========================================================
   CANDIDATE
========================================================= */

.vsk-candidate-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: #163e63;
	text-decoration: none !important;
}

.vsk-candidate-link:hover {
	color: #1d6fa5;
}

.vsk-candidate-photo {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #edf1f5;
}

.vsk-candidate-link span {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.vsk-candidate-link strong {
	font-size: 14px;
	font-weight: 700;
}

.vsk-candidate-link small {
	color: #8995a4;
	font-size: 10px;
	font-weight: 500;
}

.vsk-candidate-unknown {
	color: #8a95a3;
	font-style: italic;
}


/* =========================================================
   VOTE BADGES
========================================================= */

.vsk-vote-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.vsk-vote-badge .vsk-status-dot {
	width: 8px;
	height: 8px;
}

.vsk-vote-for {
	background: #e9f8ee;
	color: #18743b;
}

.vsk-vote-for .vsk-status-dot {
	background: #21a447;
}

.vsk-vote-against {
	background: #fff0f0;
	color: #b42318;
}

.vsk-vote-against .vsk-status-dot {
	background: #d92d20;
}

.vsk-vote-abstained {
	background: #fff7df;
	color: #9a6500;
}

.vsk-vote-abstained .vsk-status-dot {
	background: #e3a719;
}

.vsk-vote-other {
	background: #f1f3f5;
	color: #687585;
}

.vsk-vote-other .vsk-status-dot {
	background: #94a3b8;
}


/* =========================================================
   TABLE VALUES
========================================================= */

.vsk-table-value {
	color: #3d4b5b;
	font-size: 13px;
}

.vsk-table-muted {
	color: #a2abb6;
}

.vsk-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #218548;
	font-size: 12px;
	font-weight: 700;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.vsk-no-votes {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 26px;
	border: 1px solid #e1e6ed;
	border-radius: 14px;
	background: #f8fafc;
	color: #697687;
}

.vsk-no-votes strong {
	display: block;
	margin-bottom: 4px;
	color: #344355;
}

.vsk-no-votes p {
	margin: 0;
	font-size: 13px;
}

.vsk-no-votes-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 12px;
	background: #ffffff;
	font-size: 21px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

	.vsk-bill-container {
		width: min(100% - 30px, 720px);
	}

	.vsk-bill-layout {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.vsk-bill-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vsk-bill-context {
		grid-column: 1 / -1;
	}

	.vsk-bill-title {
		font-size: 42px;
	}

}


@media (max-width: 600px) {

	.vsk-bill-container {
		width: calc(100% - 24px);
	}

	.vsk-bill-hero {
		padding: 50px 0;
	}

	.vsk-bill-title {
		font-size: 34px;
	}

	.vsk-bill-long-title {
		font-size: 15px;
	}

	.vsk-bill-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.vsk-bill-content {
		padding: 40px 0 50px;
	}

	.vsk-bill-sidebar {
		grid-template-columns: 1fr;
	}

	.vsk-bill-section {
		padding-bottom: 35px;
		margin-bottom: 35px;
	}

	.vsk-bill-section h2,
	.vsk-bill-votes h2 {
		font-size: 25px;
	}

	.vsk-bill-votes {
		padding: 50px 0 60px;
	}

	.vsk-vote-table-wrap {
		border-radius: 10px;
	}

}

/* =========================================================
   VOTE SUMMARY
========================================================= */

.vsk-vote-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin: 0 0 22px;
	padding: 20px 24px;
	background: #f7f9fc;
	border: 1px solid #e2e7ed;
	border-radius: 14px;
}

.vsk-vote-summary-intro {
	display: flex;
	align-items: baseline;
	gap: 7px;
	white-space: nowrap;
}

.vsk-vote-summary-intro strong {
	color: #10233f;
	font-size: 25px;
	font-weight: 800;
	line-height: 1;
}

.vsk-vote-summary-intro span {
	color: #687687;
	font-size: 13px;
	font-weight: 600;
}

.vsk-vote-summary-items {
	display: flex;
	align-items: center;
	gap: 30px;
}

.vsk-vote-summary-item {
	display: flex;
	align-items: center;
	gap: 9px;
}

.vsk-summary-dot {
	width: 9px;
	height: 9px;
	flex: 0 0 9px;
	border-radius: 50%;
}

.vsk-vote-summary-item > div {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.vsk-vote-summary-item strong {
	font-size: 16px;
	font-weight: 800;
}

.vsk-vote-summary-item div span {
	font-size: 12px;
	font-weight: 600;
}


/* Supported */

.vsk-summary-for .vsk-summary-dot {
	background: #21a447;
}

.vsk-summary-for strong {
	color: #18743b;
}

.vsk-summary-for div span {
	color: #5c8069;
}


/* Opposed */

.vsk-summary-against .vsk-summary-dot {
	background: #d92d20;
}

.vsk-summary-against strong {
	color: #b42318;
}

.vsk-summary-against div span {
	color: #8a6663;
}


/* Abstained */

.vsk-summary-abstained .vsk-summary-dot {
	background: #e3a719;
}

.vsk-summary-abstained strong {
	color: #9a6500;
}

.vsk-summary-abstained div span {
	color: #8a7955;
}


/* =========================================================
   SUMMARY — MOBILE
========================================================= */

@media (max-width: 700px) {

	.vsk-vote-summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.vsk-vote-summary-items {
		width: 100%;
		justify-content: space-between;
		gap: 12px;
	}

	.vsk-vote-summary-item > div {
		flex-direction: column;
		gap: 2px;
	}

}


@media (max-width: 450px) {

	.vsk-vote-summary-items {
		align-items: flex-start;
		flex-direction: column;
	}

	.vsk-vote-summary-item > div {
		flex-direction: row;
		gap: 5px;
	}

}