/* Quorum Legislator Panel — values ported 1:1 from the live homepage (.legislator-section, Quorum-Theme). */
.elementor-widget-quorum_legislator_panel { width: 100%; }
.qlp {
	--qlp-pill-bg: #fff; --qlp-pill-color: #7259EF; --qlp-pill-active-bg: #7259EF; --qlp-pill-active-color: #fff;
	text-align: center;
}
.qlp button { font: inherit; }

/* ----- Desktop (>= 900px) ----- */
.qlp-desktop { display: none; }
.qlp-mobile { display: block; background-size: 100% auto; background-repeat: no-repeat; background-position: top center; padding-top: 280px; }
@media (min-width: 900px) {
	.qlp-mobile { display: none; }
	.qlp-desktop { display: flex; position: relative; align-items: center; justify-content: center; min-height: 600px; padding-top: 40px; }
	.qlp-grid {
		--qlp-pills-col: 300px; --qlp-content-col: 420px;
		display: grid; grid-template-columns: var(--qlp-pills-col) var(--qlp-content-col); column-gap: 40px;
		position: relative; width: 1100px; max-width: 100%; height: 600px; z-index: 1; margin: 0 auto; padding-left: 320px;
		background-size: contain; background-position: center; background-repeat: no-repeat; align-items: center;
		box-sizing: border-box;
	}
	.qlp-pills { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-left: 20px; }
	.qlp .qlp-pill {
		padding: 10px 20px; border-radius: 30px; background: var(--qlp-pill-bg); color: var(--qlp-pill-color);
		font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.44;
		cursor: pointer; transition: all .2s; border: 1px solid transparent; text-align: center;
		box-shadow: 0 2px 8px rgba(0,0,0,.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
	}
	.qlp .qlp-pill:hover, .qlp .qlp-pill.is-active, .qlp .qlp-pill:focus-visible {
		background: var(--qlp-pill-active-bg); color: var(--qlp-pill-active-color);
		transform: scale(1.05); box-shadow: 0 6px 16px rgba(114,89,239,.3);
	}
	.qlp .qlp-pill:focus-visible { outline: 2px solid var(--qlp-pill-active-bg); outline-offset: 3px; }
	.qlp-content { position: relative; width: 100%; height: 600px; display: block; padding-right: 40px; padding-left: 20px; }
	.qlp-item {
		position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden;
		transition: opacity .3s ease, visibility .3s; display: flex; flex-direction: column; align-items: center; justify-content: center;
		pointer-events: none;
	}
	.qlp-item.is-active { opacity: 1; visibility: visible; z-index: 5; pointer-events: auto; }
	.qlp-img { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; }
	.qlp-img img { width: 100%; height: 100%; object-fit: cover; }
	.qlp .qlp-text { font-family: 'Lato', sans-serif; font-size: 14px; line-height: 1.5; color: #666; text-align: center; max-width: 90%; margin: 0; }
}

/* ----- Mobile accordion (< 900px) ----- */
.qlp-acc { display: flex; flex-direction: column; gap: 0; }
.qlp-acc-item { margin-bottom: 12px; padding: 0 20px; }
.qlp .qlp-acc-header {
	display: block; width: 100%; padding: 12px 24px; background: var(--qlp-pill-bg); color: var(--qlp-pill-color);
	font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.44; border-radius: 30px;
	border: 1px solid #E5E5E5; box-shadow: 0 2px 6px rgba(0,0,0,.04); text-align: center; transition: all .3s ease; cursor: pointer;
}
.qlp .qlp-acc-item.is-active .qlp-acc-header { background: var(--qlp-pill-active-bg); color: var(--qlp-pill-active-color); border-color: var(--qlp-pill-active-bg); }
.qlp-acc-body { padding: 20px 0; display: none; }
.qlp-acc-item.is-active .qlp-acc-body { display: block; }
.qlp-acc-body img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }