/* =Reset default browser CSS.
-------------------------------------------------------------- */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
}

* {
	box-sizing: border-box;
}

body {
	line-height: 1;
	font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: normal;
}

ol,
ul {
	list-style: none;
}

blockquote {
	quotes: none;
}

blockquote:before,
blockquote:after {
	content: '';
	content: none;
}

del {
	text-decoration: line-through;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

a img {
	border: none;
}

a,
a:hover {
	text-decoration: none;
}

input:focus,
textarea:focus {
	border: none;
	outline: none;
}

img {
	max-width: 100%;
}

.hidden {
	display: none;
}

/* =Fonts
-------------------------------------------------------------- */
body,
input,
textarea {
	font-family: "Google Sans Flex", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings:
		"slnt" 0,
		"wdth" 100,
		"GRAD" 0,
		"ROND" 0;
}

h1 {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 40px;
}

h2 {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

/* =Common elements
-------------------------------------------------------------- */

.container {
	max-width: 1366px;
	margin: 0 auto;
	padding: 24px 20px 48px;
}

.container.pad {
	padding: 24px 20px;
}

.primary-btn {
	display: inline-block;
	border: 1px solid #614EBA;
	background: #FFFEFF;
	color: #2F1A8D;
	font-size: 12px;
	padding: 12px 32px 12px 14px;
	border-radius: 10px;
}

.primary-btn>span::after {
	content: url(./images/arrow.svg);
	padding-left: 10px;
	vertical-align: middle;
	position: absolute;
}

.secondary-btn {
	padding: 12px;
	border: 1px solid rgba(172, 130, 246, 1);
	background: rgba(172, 130, 246, 1);
	border-radius: 10px;
	color: #fff;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.form-group {
	position: relative;
}

.form-group.col-2 {
	display: flex;
	gap: 10px;
}

.form-group.col-2>* {
	flex-shrink: 0;
}

input.form-control {
	width: 100%;
	border: 1px solid #614EBA;
	border-radius: 10px;
	height: 40px;
	font-size: 12px;
	color: #2F1A8D;
	padding: 12px 14px;
}

input.form-control.padrt {
	padding-right: 50px;
}


/* Select constituency style */

/* Select All row */
.score-filter-all {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid #E5DFF5;
	cursor: pointer;
}

/* Constituency rows */
.score-constituency-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	border-bottom: 1px solid #E5DFF5;
	cursor: pointer;
	transition: background 0.2s ease;
}

/* Selected row background */
.score-constituency-item.is-selected {
	background: #F2EEFA;
}

/* Checkbox base */
.score-filter-all input[type="checkbox"],
.score-constituency-item input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid #6411CE;
	border-radius: 50%;
	background: #FFFFFF;
	cursor: pointer;
}

/* Selected checkbox */
.score-filter-all input:checked,
.score-constituency-item input:checked {
	background: #6411CE;
	border-color: #6411CE;
}

/* White tick */
.score-filter-all input:checked::after,
.score-constituency-item input:checked::after {
	content: "";
	display: block;
	width: 4px;
	height: 8px;
	border: solid #FFFFFF;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-1px, -1px);
}

/* Select All default dash */
.score-filter-all input:not(:checked) {
	background: #6411CE;
}

.score-filter-all input:not(:checked)::after {
	content: "−";
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

/* Constituency names */
.score-constituency-item span {
	flex: 1;
	font-size: 16px;
	font-weight: 400;
	color: #171322;
}

/* Region tag */
.score-constituency-item small {
	margin-left: auto;
	padding: 5px 12px;
	border-radius: 50px;
	background: #E6DFF7;
	color: #68616F;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	display: none;
}

/* Select All text */
.score-filter-all {
	font-size: 16px;
	color: #171322;
}

/* Keyboard focus */
.score-filter-all input:focus-visible,
.score-constituency-item input:focus-visible {
	outline: 2px solid #6411CE;
	outline-offset: 3px;
}

/* Ends */

/* Multiselect Filter checkbox style */

/* Hide native checkboxes */
.multiselect-select-all input[type="checkbox"],
.multiselect-option input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid #6500d9;
	border-radius: 50%;
	background: transparent;
	position: relative;
	cursor: pointer;
	margin: 0;
	flex-shrink: 0;
}

/* Align checkbox with text and party image */
.multiselect-select-all label,
.multiselect-option {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

/* Selected checkbox background */
.multiselect-select-all input:checked,
.multiselect-option input:checked {
	background: #6500d9;
}

/* Selected white tick */
.multiselect-select-all input:checked::after,
.multiselect-option input:checked::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
	top: 3px;
	left: 2px;
}

/* Select All default purple circle */
.multiselect-select-all input {
	background: #6500d9 !important;
}

/* Select All default white minus */
.multiselect-select-all input:not(:checked)::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	top: 6px;
	left: 3px;
}

/* Selected option background */
.multiselect-option:has(input:checked) {
	background: #f3effb;
}

/* Keyboard focus */
.multiselect-select-all input:focus-visible,
.multiselect-option input:focus-visible {
	outline: 2px solid #222;
	outline-offset: 3px;
}

/* Ends */

.form-group .ico {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 14px;
}

.card-box {
	padding: 16px;
	border-radius: 16px;
	background: #FDFDFD;
	border: 1px solid #EFEFEF;
	box-shadow: 0px 9px 19px 0px #D6CDCD1A, 0px 34px 34px 0px #D6CDCD17, 0px 77px 46px 0px #D6CDCD0D, 0px 137px 55px 0px #D6CDCD03, 0px 214px 60px 0px #D6CDCD00;
	position: relative;
}


/* =Layout
-------------------------------------------------------------- */

body {
	background: #F0EDFA;
}

#header {
	position: sticky;
	top: 0px;
	left: 0px;
	z-index: 100;
	/*padding-bottom: 20px;*/
	background: #F0EDFA;
	transition: box-shadow 0.3s ease;
}

#header.padbtm0 {
	padding-bottom: 0px;
}

@media (min-width: 1024px) {
	#header {
		z-index: 10000;
	}
}

#header.scrolled {
	box-shadow: 0px 4px 5px 0px #D3CEE382;
}

#logo-cont {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 11px 20px;
	background: #F5F5F5;
	position: relative;
	z-index: 1;
}

#logo-cont>a {
	width: 139px;
	height: auto;
	flex-shrink: 0;
}

#logo-cont>a img {
	height: 100%;
	width: auto;
	display: block;
}

#site-description {
	font-size: 20px;
	line-height: 1.4;
	font-weight: 400;
	/* max-width: 92px; */
	color: #6214CC;
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
	border-left: 1px solid rgba(227, 221, 245, 1)
}

@media (max-width: 768px) {
	#site-description {
		font-size: 12px;
		max-width: 92px;
	}

	#content {
		margin-bottom: 28px;
	}

	#content>.container {
		padding: 28px 28px 0px;
	}
}

#site-description::before {
	content: '';
	width: 1px;
	height: 30px;
	display: block;
	background: #E5DFF1;
}

.header-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	margin-left: auto;
	border: 0;
	background: transparent;
	color: #6214CC;
	cursor: pointer;
}

.menu-dots {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.menu-dots i {
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.menu-close {
	display: none;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
}

.header-menu-toggle.is-open .menu-dots {
	display: none;
}

.header-menu-toggle.is-open .menu-close {
	display: block;
}

.header-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 200;
	margin: 0;
	background: #F5F5F5;
	border-radius: 0 0 16px 16px;
	box-shadow: 0px 4px 5px 0px #D3CEE382;
	overflow: hidden;
}

.header-nav.is-open {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

#header.overlay:after {
	content: "";
	position: fixed;
	z-index: -1;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background: rgba(21, 13, 58, 0.75);
}

.header-nav a {
	display: block;
	padding: 20px;
	font-size: 14px;
	font-weight: 400;
	color: #2F1A8D;
	text-decoration: none;
	/* border-top: 1px solid #ECEBF1; */
}

.ticker {
	box-shadow: 0px 4px 16px 0px #00000005;
	background: #FFDE59;
	font-size: 12px;
	padding: 12px;
	width: 100%;
	overflow: hidden;
	white-space: nowrap;

	position: relative;
	z-index: 0;
	height: 36px;
	transition: margin-top 0.3s ease;
}

.ticker.hide {
	margin-top: -36px;
}

.ticker-track {
	display: inline-flex;
	width: max-content;
	animation: ticker-scroll 60s linear infinite;
}

.ticker-item {
	flex-shrink: 0;
	padding: 0 12px;
	color: #2E2A34;
}

@keyframes ticker-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.state-tabs {
	display: flex;
	align-items: flex-end;
	background: #4C0F9E;
	height: 60px;
	padding-left: 20px;
}

.state-tab {
	font-family: "Google Sans Flex", sans-serif;
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	height: 44px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: #EEE5E5;
	font-size: 14px;
	line-height: 1;
	font-weight: 400;
	cursor: pointer;
}

.state-tab.active {
	background: #F0EDFA;
	color: #4C0F9E;
	font-weight: 700;
	border-radius: 12px 12px 0 0;
}

/* Create the angled right edge */
.state-tab.active::after {
	content: "";
	position: absolute;
	right: -22px;
	bottom: 0;
	width: 22px;
	height: 44px;
	background: #F0EDFA;
	border-radius: 0 12px 0 0;
	transform: skewX(25deg);
	transform-origin: bottom left;
}

/* Keep next tab above the angled edge */
.state-tab+.state-tab {
	margin-left: 8px;
	z-index: 2;
}

.card-box h2 {
	font-size: 32px;
	font-weight: 400;
	line-height: 1.1;
	color: #2E2A34;
	padding-bottom: 4px;
}

.card-box h2 span {
	color: #6214CC;
}

.card-box h3 {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: #65606D;
}

.incumbent-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-size: 12px;
	line-height: 1;
}

@media (min-width: 768px) {
	.card-box h2 {
		font-size: 22px;
		line-height: 1.5;
	}
}

@media (min-width: 1024px) {
	#assembly-card .incumbent-bar {
		max-width: 40%;
		position: relative;
		left: 50%;
		transform: translate(-100%);
	}
}

.incumbent-bar::before {
	content: "";
	height: 1px;
	background: #E3DDF5;
	flex: 1;
	order: 2;
}

.incumbent-label {
	color: #2F1A8D;
	white-space: nowrap;
	flex-shrink: 0;
}

.incumbent-party {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #2E2A34;
	white-space: nowrap;
	flex-shrink: 0;
	order: 3;
}

.incumbent-symbol {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.card-box .info-bar {
	background: #E3DDF5;
	font-size: 12px;
	color: #2E2A34;
	border-radius: 10px;
	line-height: 1.55;
	padding: 10px 14px;
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.card-box .icon {
	width: 67px;
	height: 32px;
	border-radius: 80px;
	background: #E3DDF5;
	flex-shrink: 0;
	display: flex;
	gap: 4px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.card-box .icon span {
	color: #6214CC;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.3;
}

.card-box .info-bar .icon {
	background: #AC82F6;
	cursor: default;
	width: 32px;
}

.card-box .info-text {
	color: #AC82F6;
	font-size: 10px;
	line-height: 1.5;
	padding: 24px 0px;
}

@media (min-width: 1024px) {
	.card-box .info-text.max-wd {
		width: 55%;
	}
}

.card-box .btm-icons {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-box .btm-icons>img {
	height: 34px;
}

#footer {
	clear: both;
	width: 100%;
}

.graphic-banner {
	margin: 20px 0;
}

.information-banner {
	background-color: #4C0F9E;
	margin: 20px 0;
	padding: 24px 20px;
}

.information-banner.infobg {
	background-image: url("./images/info-bg-new.webp");
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: cover;
}

.information-banner.whatsbg {
	background: url(./images/whatsapp-icon.png);
	background-position: right 0px top 0px;
	background-repeat: no-repeat;
	background-color: #4C0F9E;
	background-size: contain;
	color: #fff;
}

.information-banner .lt-cont {
	max-width: 183px;
}

.information-banner.whatsbg .lt-cont {
	max-width: 228px;
}

.information-banner h3 {
	font-size: 32px;
	line-height: 1.2;
	color: #E3DDF5;
	font-family: 'Be Vietnam Pro', sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.information-banner p {
	padding-top: 8px;
	font-size: 16px;
	line-height: 1.5;
	color: #E3DDF5;
	margin-bottom: 24px;
}

.footer-content {
	background-color: #4C0F9E;
	color: #FFFFFF;
	display: flex;
	flex-direction: column;
}

.footer-top {
	background: url(./images/lines.svg) repeat;
	display: flex;
	flex-direction: column;
	margin-top: 50px;
	margin-bottom: 40px;
}

.score-branding {
	margin: 0 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.score-branding img {
	height: auto;
	width: 139px;
	display: block;
}

.score-branding h3 {
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	/* max-width: 216px; */
	font-family: 'Be Vietnam Pro', sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
}

.score-socials {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 52px;
}

.score-socials img {
	width: auto;
	height: 32px;
}

.score-contact {
	margin: 32px 28px 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.score-contact h4 {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
}

.score-contact p,
.score-contact a {
	font-size: 12px;
	line-height: 1.5;
	color: #FDFDFD;
	text-decoration: none;
	max-width: 242px;
}

.bottom-links {
	font-size: 10px;
	line-height: 1.2;
	font-weight: 300;
	border-top: 1px solid #FFFFFF30;
	padding: 16px 20px 20px;
	width: 100%;

	display: flex;
	gap: 16px 48px;
	flex-wrap: wrap;
}

.bottom-links a {
	color: #FFF;
	text-decoration: none;
}

.bottom-links span:last-child {
	width: 100%;
}



/* =Shared filters
-------------------------------------------------------------- */

/* Overlay */
.score-filter-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: flex-end;
	justify-content: center;
	/* background: rgba(0, 0, 0, 0.42); */
	background: rgba(21, 13, 58, 0.75);
}

@media (min-width: 1024px) {
	.score-filter-overlay {
		position: absolute;
		z-index: 9;
	}
}

.score-filter-overlay.is-open {
	display: flex;
}

/* Panel */
.score-filter-panel {
	width: 100%;
	/* max-width: 393px; */
	width: 100%;
	max-height: 85dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	box-shadow: 0px -2px 11px 0px #59607814;
	position: relative;
}

@media (min-width: 1024px) {
	.score-filter-panel {
		max-height: calc(100% - 100px);
	}
}

/* Header */
.score-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 20px;
}

.score-filter-head h3 {
	font-family: 'Be Vietnam Pro', sans-serif;
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	color: #000;
}

.score-filter-close {
	border: 0;
	background: none;
	font-size: 20px;
	cursor: pointer;
}

/* Content */
.score-filter-content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

/* Select All */
.score-filter-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px 12px;
	font-size: 16px;
	line-height: 1.25;
	color: #000;
	cursor: pointer;
}

.score-filter-all input,
.score-constituency-item input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #6214CC;
	cursor: pointer;
}

/* Region Map */
.score-region-map {
	position: relative;
	width: 287px;
	max-width: 100%;
	margin: 0 auto;
}

.score-region-map-image {
	display: block;
	width: 100%;
	height: auto;
}

.score-region-hitareas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.score-region-hitareas [data-region] {
	fill: transparent;
	stroke: none;
	pointer-events: fill;
	cursor: pointer;
}

.score-region-hitareas [data-region]:focus,
.score-region-hitareas [data-region]:focus-visible {
	outline: none;
	stroke: none;
}

/* Constituency Search */
.score-filter-search {
	display: block;
	width: calc(100% - 40px);
	margin: 0 20px 24px;
	padding: 15px 10px 15px 42px;
	border: 1px solid #E1E3EC;
	border-radius: 10px;
	background: #F7F7FC url("./images/icon-search.svg") no-repeat 14px center;
	background-size: 24px 24px;
	font: inherit;
	font-size: 14px;
	color: #737373;
	outline-color: #E1E3EC;
	box-sizing: border-box;
	display: flex;
	gap: 8px;
	align-items: center;
	position: relative;
	height: 42px;
}

/* Constituency List */
.score-constituency-list {
	width: 100%;
}

.score-constituency-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(227, 221, 245, 1);
	cursor: pointer;
}

.score-constituency-item.is-selected {
	background: linear-gradient(90deg, #F0E9FF 0%, #E4D8FF 100%);
	/* border-top: 1px solid rgba(227, 221, 245, 1);
	border-bottom: 1px solid rgba(227, 221, 245, 1); */
}

.score-constituency-item span {
	/* flex: 1; */
	font-size: 16px;
	color: #101A35;
}

.score-constituency-item small {
	padding: 4px 8px;
	border-radius: 20px;
	background: #F4EDFF;
	color: #65606D;
	font-size: 14px;
	margin-left: auto;
}

/* Demographics */
.score-demo-group {
	margin: 0 20px 16px;
	padding: 16px;
	border: 1px solid #E3DDF5;
	border-radius: 8px;
}

.score-demo-group h4 {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 500;
	color: #2E2A34;
}

.score-demo-group h4 img {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
	display: none;
}

.score-demo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.score-demo-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid #2F1A8D;
	border-radius: 30px;
	background: #FFF;
	color: #2F1A8D;
	font-size: 12px;
	cursor: pointer;
}

.score-demo-chip.is-selected {
	background: #E3DDF5;
}

.chip-tick {
	display: block;
	width: 11px;
	height: 8px;
	flex-shrink: 0;
}

/* Actions */
.score-filter-actions {
	display: flex;
	gap: 8px;
	padding: 16px 20px 32px;
	box-shadow:
		-2px -1px 5px 0px #A197971A,
		-9px -3px 9px 0px #A1979717,
		-20px -8px 13px 0px #A197970D,
		-35px -14px 15px 0px #A1979703,
		-54px -21px 16px 0px #A1979700;
}

.score-filter-actions button {
	flex: 1;
	padding: 14px;
	border: 1px solid #6214CC;
	border-radius: 10px;
	font: inherit;
	font-size: 12px;
	line-height: 1.35;
	cursor: pointer;
}

.score-filter-cancel {
	background: #fff;
	color: #6214CC;
}

.score-filter-submit {
	background: #6214CC;
	color: #fff;
}

/* =Shared card triggers
-------------------------------------------------------------- */

.filter-triggers {
	display: flex;
	align-items: stretch;
	gap: 6px;
	width: 100%;
}

.filter-trigger {
	min-width: 0;
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	padding: 5px 12px 7px;
	background: #ECEBF1;
	border: 1px solid #E3DDF5;
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.filter-trigger-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.filter-trigger-content small {
	font-size: 10px;
	color: #2F1A8D70;
}

.filter-region-value,
.filter-constituency-value {
	font-size: 12px;
	color: #2F1A8D;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.filter-trigger-arrow {
	width: 7px;
	height: 7px;
	border-right: 1px solid #2F1A8D;
	border-bottom: 1px solid #2F1A8D;
	transform: rotate(45deg) translateY(-2px);
	flex-shrink: 0;
}

/* Demographics Trigger */
.filter-demographics-trigger {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	background: #ECEBF1;
	border: 1px solid #6214CC;
	color: #6214CC;
	border-radius: 50%;
	cursor: pointer;
}

.filter-demographics-trigger img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

/* Demographics Summary */
.filter-demographics-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 4px 0;
	border-radius: 19px;
	/*background: #E6E2F5;*/
	color: #2F1A8D;
	font-size: 11px;
	box-sizing: border-box;
	line-height: 1.4;
}

.score-demographic-label {
	font-weight: 600;
	margin-right: 2px;
}

.score-demographic-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 6px 3px 9px;
	background: #fff;
	border-radius: 999px;
	white-space: nowrap;
}

.score-demographic-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #2f1a8d;
	font: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.score-demographic-remove:hover,
.score-demographic-remove:focus-visible {
	background: #d5caef;
}

/* Incumbent visibility */
.incumbent-bar[hidden] {
	display: none;
}

.comparison-no-data {
	color: #65606D;
	text-align: center;
}


/* =Assembly chart
-------------------------------------------------------------- */

.assembly-chart {
	width: 100%;
	margin-top: 24px;
	box-sizing: border-box;
}

.assembly-majority {
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	color: #1D182F;
	margin-bottom: 10px;
}

.assembly-visual {
	position: relative;
	width: 100%;
}

.assembly-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.assembly-segment {
	transition: fill 0.25s ease;
}

.assembly-separator {
	stroke: #FFFFFF;
	stroke-width: 3;
	pointer-events: none;
}

.assembly-majority-line {
	stroke: #211B34;
	stroke-width: 2;
	stroke-dasharray: 3 5;
	pointer-events: none;
}

.assembly-seat {
	transition: opacity 0.2s ease, r 0.2s ease;
}

.assembly-seat:hover {
	opacity: 0.7;
}

/* .assembly-majority-line {
	stroke: #1D182F;
	stroke-width: 1.5;
	stroke-dasharray: 2 6;
} */

.assembly-majority-line {
	stroke: #211B34;
	stroke-width: 2;
	stroke-dasharray: 3 5;
}

.assembly-total {
	position: absolute;
	left: 50%;
	top: 75%;
	transform: translate(-50%, -50%);
	text-align: center;
	pointer-events: none;
}

.assembly-total strong {
	display: block;
	font-size: clamp(40px, 8vw, 68px);
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	color: #1D182F;
	margin: 5px 0px;
}

.assembly-total span {
	display: block;
	font-size: 12px;
	line-height: 1;
	color: #777184;
}

.assembly-legend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 24px;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1;
	color: #65606D;
}

.assembly-legend-item {
	display: flex;
	/* justify-content: space-between; */
	align-items: center;
	gap: 20px;
}

.assembly-legend-name {
	display: flex;
	align-items: center;
	gap: 8px;
	/* width: 35%; */
}

.assembly-legend-dot {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	flex-shrink: 0;
}

.assembly-legend-symbol {
	width: 30px;
	height: 30px;
	object-fit: contain;
	flex-shrink: 0;
}

.assembly-legend-count {
	font-weight: 700;
	color: #2E2A34;
}

.assembly-lg-ct-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

/* =Multi select dropdown
-------------------------------------------------------------- */

.custom-multiselect {
	width: 100%;
}

@media (min-width: 1024px) {
	#assembly-card .custom-multiselect {
		position: absolute;
		top: 0;
		right: 24px;
		width: 37%;
	}

	#assembly-card h2 {
		width: 60%;
	}
}

.multiselect-trigger {
	width: 100%;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	margin-top: 24px;
	padding: 5px 12px 7px;
	border: 1px solid #E3DDF5;
	border-radius: 10px;
	background: #ECEBF1;
	cursor: pointer;
}

.multiselect-trigger-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.multiselect-trigger small {
	font-size: 10px;
	color: #2F1A8D70;
}

.multiselect-value {
	font-size: 12px;
	line-height: 1;
	color: #2F1A8D;
}

.multiselect-arrow {
	width: 7px;
	height: 7px;
	border-right: 1px solid #2F1A8D;
	border-bottom: 1px solid #2F1A8D;
	transform: rotate(45deg);
	margin-right: 4px;
}

/* Overlay constrained to mobile layout */

.multiselect-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: flex-end;
	justify-content: center;
	/* background: rgba(0, 0, 0, 0.42); */
	background: rgba(21, 13, 58, 0.75);
}

@media (min-width: 1024px) {
	.multiselect-overlay {
		position: absolute;
	}
}

.multiselect-overlay.is-open {
	display: flex;
}

/* Bottom sheet */

.multiselect-panel {
	width: 100%;
	max-width: 393px;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	box-shadow: 0px -2px 11px 0px #59607814;
	position: relative;
}

@media (min-width: 1024px) {
	.multiselect-panel {
		height: 100%;
		margin-left: auto;
	}
}

/*.multiselect-panel::before {
	content: '';
	height: 2px;
	width: 40px;
	display: block;
	background: #E4E6EE;
	position: absolute;
	top: 8px;
	left: calc(50% - 20px);
}*/

.multiselect-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 20px;
}

.multiselect-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: #000;
	font-family: 'Be Vietnam Pro', sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.multiselect-close {
	border: 0;
	background: none;
	font-size: 20px;
	cursor: pointer;
}

.multiselect-search {
	padding: 0 20px 16px;
}

.multiselect-search input {
	width: 100%;
	padding: 16px 12px;
	border: 1px solid #E1E3EC;
	border-radius: 10px;
	background: #F7F7FC;
	font: inherit;
	font-size: 14px;
	outline-color: #6415CE;
	color: #737373;
	box-sizing: border-box;
	height: 42px;
}

.multiselect-select-all {
	padding: 0 16px 8px;
}

.multiselect-select-all label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 16px;
	line-height: 2;
	color: #000;
}

.multiselect-select-all input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #6415CE;
	cursor: pointer;
}

.multiselect-options {
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.multiselect-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #E4E6EE;
	cursor: pointer;
}

.multiselect-option input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #6415CE;
	cursor: pointer;
}

.multiselect-option .party-symbol {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: contain;
}

.multiselect-option .party-name {
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #2E2A34;
}

.multiselect-option.is-hidden {
	display: none;
}

.multiselect-actions {
	display: flex;
	gap: 8px;
	padding: 16px 20px 32px;
	box-shadow: -2px -1px 5px 0px #A197971A, -9px -3px 9px 0px #A1979717, -20px -8px 13px 0px #A197970D, -35px -14px 15px 0px #A1979703, -54px -21px 16px 0px #A1979700;
}

.multiselect-actions button {
	flex: 1;
	padding: 14px;
	border-radius: 10px;
	font: inherit;
	font-size: 12px;
	line-height: 1.35;
	cursor: pointer;
	border: 1px solid #6214CC;

}

.multiselect-cancel {
	background: #fff;
	color: #6214CC;
}

.multiselect-submit {
	background: #6214CC;
	color: #fff;
}

/* =Map chart
-------------------------------------------------------------- */

.map-chart {
	width: 100%;
	box-sizing: border-box;
	margin-top: 24px;
}

/* Map image */

.map-visual {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.map-image {
	display: block;
	width: 75%;
	height: auto;
	object-fit: contain;
}

/* Percentage bar */

.map-results {
	display: flex;
	width: 100%;
	height: 44px;
	margin-top: 24px;
	overflow: hidden;
	border-radius: 12px;
}

.map-result {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	box-sizing: border-box;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
}

.map-result:first-child {
	border-radius: 12px 0 0 12px;
}

.map-result:last-child {
	border-radius: 0 12px 12px 0;
}

/* Legend */

.map-legend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 12px;
	margin-top: 16px;
}

.map-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.map-legend-item:nth-child(even) {
	margin-left: 40px;
}

.map-legend-item:nth-child(even) .map-legend-percentage {
	margin-right: 0;
}

.map-legend-percentage {
	font-size: 12px;
	margin-left: auto;
	margin-right: 40px;
	font-weight: 700;
}

.map-legend-dot {
	display: block;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	border-radius: 50%;
}

.map-legend-name {
	font-size: 14px;
	line-height: 1;
	font-weight: 400;
	color: #65606D;
}

/* =Then vs. Now chart
-------------------------------------------------------------- */

.then-vs-now-chart {
	width: 100%;
	margin-top: 24px;
}

/* Party row */
.comparison-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	width: 100%;
}

/* Party symbol and name */
.comparison-party {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 126px;
	flex-shrink: 0;
}

.comparison-party img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
}

.comparison-party span {
	font-size: 16px;
	/* font-weight: 600; */
	line-height: 1.2;
	color: #2E2A34;
}

/* Bars */
.comparison-bars {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
}

.comparison-line {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comparison-track {
	flex: 1;
	min-width: 0;
	height: 13px;
	background: #ECEBF1;
	border-radius: 4px;
	overflow: hidden;
}

.comparison-fill {
	height: 100%;
	border-radius: 4px;
}

.comparison-fill.is-previous {
	background: linear-gradient(270deg, #FFCC00 0%, #E19F05 125.05%);

}

.comparison-fill.is-current {
	background: linear-gradient(90deg, #5F29A8 -25.89%, #A665FF 100%);
}

/* Percentage */
.comparison-value {
	width: 40px;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	color: #2E2A34;
	text-align: right;
}

/* Legend */
.comparison-legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0px;
}

.comparison-legend span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	line-height: 1.3;
	color: #65606D;
	white-space: nowrap;
}

.comparison-legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.legend-previous {
	background: linear-gradient(270deg, #FFCC00 0%, #E19F05 125.05%);
}

.legend-current {
	background: linear-gradient(90deg, #5F29A8 -25.89%, #A665FF 100%);
}

.comparison-change {
	width: 46px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

/* Positive change */
.comparison-change.is-positive {
	color: #439D1D;
}

/* Negative change */
.comparison-change.is-negative {
	color: #F72F32;
}

/* No change */
.comparison-change.is-neutral {
	color: #BDBDBD;
}

/* Arrow */
.comparison-change-arrow {
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
}

/* Up arrow */
.comparison-change.is-positive .comparison-change-arrow {
	border-bottom: 9px solid currentColor;
}

/* Down arrow */
.comparison-change.is-negative .comparison-change-arrow {
	border-top: 9px solid currentColor;
}

/* No arrow for zero change */
.comparison-change.is-neutral .comparison-change-arrow {
	display: none;
}

/* =SCORE Leaderboard podium
-------------------------------------------------------------- */
#leaderboard-card .leaderboard-chart {
	width: 100%;
	margin-top: 24px;
}

#leaderboard-card .leaderboard-podium {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	gap: 1px;
	min-height: 223px;
}

#leaderboard-card .leaderboard-entry {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

#leaderboard-card .leaderboard-identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	margin-bottom: 4px;
}

#leaderboard-card .leaderboard-symbol {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin-bottom: 8px;
}

#leaderboard-card .leaderboard-name,
#leaderboard-card .leaderboard-percent {
	display: block;
	font-weight: 700;
	font-size: 16px;
	line-height: 18px;
	text-align: center;
	overflow-wrap: anywhere;
	color: #2E2A34;
}

#leaderboard-card .leaderboard-step {
	border-radius: 4px 4px 0 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 8px;
	box-sizing: border-box;
}

#leaderboard-card .leaderboard-step span {
	font-weight: 700;
	font-size: 16px;
	line-height: 18px;
	text-align: center;
	color: #FFF;
	opacity: .7;
	display: none;
}

#leaderboard-card .leaderboard-rank-1 .leaderboard-step {
	height: 127px;
	width: 80px;
}

#leaderboard-card .leaderboard-rank-2 .leaderboard-step {
	height: 95px;
	width: 80px;
}

#leaderboard-card .leaderboard-rank-3 .leaderboard-step {
	height: 64px;
	width: 80px;
}



/* =CM vs Government card
-------------------------------------------------------------- */

#cm-government-rating-card .cm-gov-visual {
	position: relative;
	width: calc(100% + 32px);
	aspect-ratio: 352 / 897;
	margin: 0 -16px;
	overflow: hidden;
	background: #fff url("images/score-rating.webp") center / 100% 100% no-repeat;
}

/* Text containers */
#cm-government-rating-card .cm-gov-cm-copy,
#cm-government-rating-card .cm-gov-gov-copy {
	position: absolute;
	z-index: 2;
	box-sizing: border-box;
}

/* CM rating */
#cm-government-rating-card .cm-gov-cm-copy {
	top: 12px;
	left: 16px;
	right: 16px;
	text-align: left;
}

/* Government rating */
#cm-government-rating-card .cm-gov-gov-copy {
	top: 47%;
	right: 16px;
	text-align: right;
}

/* Labels */
#cm-government-rating-card .cm-gov-eyebrow {
	font-size: 12px;
	line-height: 1.8;
	text-transform: uppercase;
	color: #59088E;
}

#cm-government-rating-card .cm-gov-gov-copy .cm-gov-eyebrow {
	color: #FFF;
}

/* Names */
#cm-government-rating-card .cm-gov-person {
	font-size: 20px;
	line-height: 1.3;
	color: #000;
}

/* Rating values */
#cm-government-rating-card .cm-gov-number {
	font-family: "Delicious Handrawn", cursive;
	font-weight: 400;
	font-style: normal;
	font-size: 64px;
	line-height: 1;
	color: #6214CC;
}

/* Government-specific text */
#cm-government-rating-card .cm-gov-gov-copy .cm-gov-person {
	color: #FFF;
}

/* No data */
#cm-government-rating-card .cm-gov-no-data {
	position: absolute;
	z-index: 5;
	top: 50%;
	left: 5%;
	right: 5%;
	transform: translateY(-50%);
	padding: 14px;
	background: #fff;
	color: #302936;
	text-align: center;
	border-radius: 4px;
}

#cm-government-rating-card .cm-gov-no-data[hidden] {
	display: none !important;
}

#cm-government-rating-card .cm-gov-visual.has-no-data .cm-gov-number {
	opacity: .45;
}



/* =Party ahead chart
-------------------------------------------------------------- */

.party-ahead-chart {
	width: 100%;
	margin-top: 24px;
}

.party-ahead-row {
	margin-bottom: 16px;
}

.party-ahead-upper {
	display: flex;
	align-items: center;
	gap: 16px;
}

.party-ahead-symbol {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
}

.party-ahead-details {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.party-ahead-details strong {
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: #0C1720;
}

.party-ahead-details span {
	font-size: 14px;
	line-height: 1.25;
	color: #606060;
}

.party-ahead-seats {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex-shrink: 0;
}

.party-ahead-seats strong {
	font-size: 16px;
	font-weight: 500;
	color: #0C1720;
}

.party-ahead-seats span {
	font-size: 14px;
	color: #606060;
}

.party-ahead-track {
	height: 12px;
	margin-top: 8px;
	margin-left: 64px;
	border-radius: 20px;
	background: #E4E4E4;
	overflow: hidden;
}

.party-ahead-fill {
	height: 100%;
	border-radius: 20px;
}

/* =Candidate ahead chart
-------------------------------------------------------------- */

#candidate-ahead-card .incumbent-bar img {
	width: 20px;
	height: 20px;
	border: 1px solid #9B9B9E;
	border-radius: 50%;
	object-fit: cover;
	box-sizing: border-box;
}

.candidate-ahead-chart {
	width: 100%;
	margin-top: 24px;
}

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

.candidate-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.candidate-rank {
	width: 16px;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 500;
	color: #0C1720;
}

.candidate-photo-wrap {
	position: relative;
	width: 48px;
	height: 48px;
	border: 4px solid;
	border-radius: 50%;
	flex-shrink: 0;
}

.candidate-photo {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.candidate-leading {
	position: absolute;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%);
	padding: 6px;
	border-radius: 20px;
	background: #614EBA;
	color: #F5F2FE;
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.candidate-details {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
}

.candidate-details strong {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #2E2A34;
}

.candidate-party {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.candidate-party img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	flex-shrink: 0;
}

.candidate-party span {
	font-size: 12px;
	line-height: 1.25;
	color: #606060;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.candidate-percentage {
	align-self: flex-start;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: #2E2A34;
}

.candidate-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
}

.candidate-page-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #5E21E74D;
	cursor: pointer;
}

.candidate-page-dot.is-active {
	background: #5E21E7;
}

.candidate-page-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #6214CC;
	cursor: pointer;
}

.candidate-page-arrow:first-child {
	margin-right: 12px;
}

.candidate-page-arrow:last-child {
	margin-left: 12px;
}

.candidate-page-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.candidate-page-arrow svg {
	width: 20px;
	height: 20px;
}

/* =Voter issues
-------------------------------------------------------------- */

.issues-chart {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
}

.issues-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.issues-name {
	width: 135px;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1.3;
	color: #65606D;
}

.issues-track {
	/* flex: 1; */
	min-width: 0;
	width: 55%;
	height: 24px;
	background: #EEEEEE;
	border-radius: 4px;
	overflow: hidden;
}

.issues-fill {
	height: 100%;
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
	border-radius: 4px;
	transition: width 0.35s ease;
}

.issues-value {
	width: 28px;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 500;
	color: #2E2A34;
	text-align: right;
}


/* =Party trends
-------------------------------------------------------------- */

.party-trends-chart {
	width: 100%;
	margin-top: 24px;
}

.party-trends-chart svg {
	display: block;
	width: 100%;
	height: auto;
}

.party-trends-grid {
	stroke: #F1EEFB;
	stroke-width: 0.8;
}

.party-trends-axis {
	fill: #8683A2;
	font-size: 10px;
}

.party-trends-legend {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 24px;
}

.party-trends-legend-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: #65606D;
	white-space: nowrap;
}

.party-trends-legend-dot {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	border-radius: 50%;
}

.party-trends-chart .comparison-no-data {
	text-align: left;
	font-size: 10px;
	line-height: 1.5;
}


/* =MLA awareness
-------------------------------------------------------------- */

.mla-awareness-chart {
	width: 100%;
	margin-top: 24px;
}

.mla-awareness-bar {
	display: flex;
	width: 100%;
	height: 44px;
	overflow: hidden;
	border-radius: 4px;
}

.mla-awareness-yes,
.mla-awareness-no {
	display: flex;
	align-items: center;
	height: 100%;
	box-sizing: border-box;
	color: #FDFDFD;
	font-size: 14px;
	font-weight: 600;
	transition: width 0.35s ease;
}

.mla-awareness-yes {
	justify-content: flex-start;
	padding-left: 16px;
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.mla-awareness-no {
	justify-content: flex-end;
	padding-right: 16px;
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}

#undecided-voters-card .mla-awareness-yes {
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}

#undecided-voters-card .mla-awareness-no {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.mla-awareness-legend {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.mla-awareness-legend span {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #65606D;
}

.mla-awareness-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.mla-awareness-dot.yes {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.mla-awareness-dot.rarely {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
}

.mla-awareness-dot.no {
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}

.mla-visibility-bar>div {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: width .35s ease;
}

.mla-visibility-frequent {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.mla-visibility-rarely {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
	color: #2E2A34 !important;
}

.mla-visibility-never {
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}

.mla-reelection-bar>div {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: width .35s ease;
}

.mla-reelection-re-elect {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.mla-reelection-replace {
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}

.mla-reelection-undecided {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
	color: #2E2A34 !important;
}

#mla-reelection-card .mla-awareness-dot.reelect {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

#mla-reelection-card .mla-awareness-dot.replace {
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}

#mla-reelection-card .mla-awareness-dot.undecided {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
}

.next-mla-bar>div {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: width .35s ease;
}

.next-mla-specific {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.next-mla-party {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
	color: #2E2A34 !important;
}

#next-mla-card .mla-awareness-dot.specific {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

#next-mla-card .mla-awareness-dot.party {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
}


/* =Law and order
-------------------------------------------------------------- */

.law-order-chart {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 24px;
}

.law-order-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.law-order-label {
	font-size: 12px;
	color: #65606D;
}

.law-order-bar-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.law-order-track {
	flex: 1;
	min-width: 0;
	height: 24px;
	background: #EEEEEE;
	border-radius: 4px;
	overflow: hidden;
}

.law-order-fill {
	height: 100%;
	background: #5E21E7;
	border-radius: 4px;
}

.law-order-value {
	min-width: 50px;
	font-size: 11px;
	font-weight: 700;
	color: #2E2A34;
}

.law-order-fill-1 {
	background: linear-gradient(270deg, #59B200 0%, #008922 100%);
}

.law-order-fill-2 {
	background: linear-gradient(270deg, #51D62F 0%, #2CA30E 100%);
}

.law-order-fill-3 {
	background: linear-gradient(270deg, #FFCC00 0%, #EFA700 100%);
}

.law-order-fill-4 {
	background: linear-gradient(270deg, #FF8745 0%, #CB520F 100%);
}

.law-order-fill-5 {
	background: linear-gradient(270deg, #EE3438 0%, #C9191D 100%);
}


/* SCORE chart tooltips */
.score-chart-tooltip {
	position: fixed;
	z-index: 100000;
	max-width: min(300px, calc(100vw - 24px));
	padding: 9px 12px;
	border-radius: 8px;
	background: #24183e;
	color: #fff;
	font: 500 12px/1.45 Arial, sans-serif;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
	pointer-events: none;
}

.score-chart-tooltip[hidden] {
	display: none !important;
}

/* Interactive chart elements */
.comparison-track,
.issues-track,
.law-order-track,
.party-ahead-track,
.mla-awareness-bar>div,
#assembly-card svg path[data-tooltip-label],
#assembly-card .assembly-legend-item {
	cursor: help;
}

/* Interactive percentage bar */
.map-result {
	cursor: help;
	transition: filter 0.2s ease;
}

.map-result:hover,
.map-result:focus-visible {
	filter: brightness(0.9);
}

/* Interactive party legend */
.map-legend-item {
	cursor: help;
	transition: opacity 0.2s ease;
}

.map-legend-item:hover,
.map-legend-item:focus-visible {
	opacity: 0.75;
}

/* Keyboard accessibility */
.map-result:focus-visible,
.map-legend-item:focus-visible {
	outline: 2px solid #313131;
	outline-offset: 3px;
}

#map-chart .score-constituency-svg {
	display: block;
	width: 100%;
	height: auto;
}

.score-map-tooltip {
	position: fixed;
	z-index: 100001;
	max-width: min(300px, calc(100vw - 24px));
	padding: 9px 12px;
	border-radius: 8px;
	background: #24183e;
	color: white;
	font: 500 12px/1.45 Arial, sans-serif;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
	pointer-events: none;
}

.score-map-tooltip[hidden] {
	display: none !important;
}

.score-map-tooltip strong {
	display: block;
	font-weight: 700;
	margin-bottom: 3px;
}

/* Bar animations */
@keyframes score-bar-grow {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

.comparison-fill,
.issues-fill,
.law-order-fill,
.party-ahead-fill,
.mla-awareness-bar>div {
	transform-origin: left center;
	animation: score-bar-grow 420ms cubic-bezier(.2, .7, .2, 1) both;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

	.comparison-fill,
	.issues-fill,
	.law-order-fill,
	.party-ahead-fill,
	.mla-awareness-bar>div {
		animation: none !important;
	}
}

/* =Desktop Layout
-------------------------------------------------------------- */

@media (min-width: 1140px) {

	.header-menu-toggle {
		display: none;
	}

	.header-nav,
	.header-nav.is-open {
		display: flex;
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 24px;
		margin-left: auto;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
	}

	.header-nav a {
		padding: 0;
		font-size: 14px;
	}

	.header-nav a.active {
		font-weight: 700;
	}

	.header-nav a+a {
		border-top: 0;
	}
}

@media (min-width: 1024px) {

	#container {
		max-width: 1366px;
		margin: 0 auto;
		padding: 24px 20px 48px;
	}

	#content {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas:
			"assembly assembly map"
			"then party map"
			"then party whatsapp"
			"newsletter newsletter candidate"
			"issues trends candidate"
			"issues trends mla";
		gap: 20px;
		align-items: start;
	}

	#assembly-card {
		grid-area: assembly;
	}

	#map-card {
		grid-area: map;
	}

	#then-vs-now-card {
		grid-area: then;
	}

	#party-ahead-card {
		grid-area: party;
	}

	#candidate-ahead-card {
		grid-area: candidate;
	}

	#voter-issues-card {
		grid-area: issues;
	}

	#party-trends-card {
		grid-area: trends;
	}

	#mla-awareness-card {
		grid-area: mla;
	}

	.information-banner.whatsbg {
		grid-area: whatsapp;
	}

	.information-banner.infobg {
		grid-area: newsletter;
	}

	#content.masonry-ready {
		display: block;
		position: relative;
		grid-template-areas: none;
	}

	#content.masonry-ready>* {
		position: absolute;
		margin: 0;
		min-width: 0;
	}

	#content>.container {
		padding: 0;
		margin: 0;
		min-width: 0;
	}

	#content>.information-banner {
		margin: 0;
		min-width: 0;
		border-radius: 16px;
	}

	.graphic-banner {
		border-radius: 16px;
		overflow: hidden;
		margin: 0;
	}

	#content .card-box {
		width: 100%;
		overflow: hidden;
	}

	/* Assembly card: chart and legend side by side */

	#assembly-card .assembly-chart {
		display: grid;
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: center;
		column-gap: 24px;
	}

	#assembly-card .assembly-majority {
		grid-column: 1;
	}

	#assembly-card .assembly-visual {
		grid-column: 1;
	}

	#assembly-card .assembly-legend {
		grid-column: 2;
		grid-row: 1 / 3;
		grid-template-columns: 1fr 1fr;
		margin-top: 20px;
		column-gap: 0;
		margin-left: 0px;
	}

	/* Desktop header */

	#logo-cont {
		padding-left: max(20px, calc((100% - 1346px) / 2));
		padding-right: max(20px, calc((100% - 1346px) / 2));
	}

	.state-tabs {
		padding-left: max(20px, calc((100% - 1346px) / 2));
	}

	/* Desktop footer */

	.footer-top {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		padding: 0 max(20px, calc((100% - 1346px) / 2));
	}

	.bottom-links {
		padding-left: max(20px, calc((100% - 1346px) / 2));
		padding-right: max(20px, calc((100% - 1346px) / 2));
	}

	.bottom-links span:last-child {
		width: auto;
		margin-left: auto;
	}
}

/* Inner common style */

.sub-header {
	color: #fff;
	min-height: 180px;
	background: #4C0F9E url(./images/sub-header-bg.png) right 0px no-repeat;
	display: flex;
	align-items: center;
	margin-bottom: 24px;
}

.sub-header .container {
	flex: 1;
	display: flex;
	gap: 24px;
	align-items: center;
}

.inner-grid {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.inner-grid>div {
	flex-shrink: 0;
	flex: 100%;
}

.cont-box {
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	position: relative;
	min-height: 300px;
	box-shadow:
		0px 9px 19px 0px #D6CDCD1A,
		0px 34px 34px 0px #D6CDCD17,
		0px 77px 46px 0px #D6CDCD0D,
		0px 137px 55px 0px #D6CDCD03,
		0px 214px 60px 0px #D6CDCD00;
}

.cont-box .content {
	padding: 40px;
	position: relative;
	z-index: 2;
}

.cont-box .content h2 {
	font-size: 22px;
	color: #2F1A8D;
	margin-bottom: 24px;
}

.cont-box .content p {
	font-size: 14px;
	line-height: 1.6;
	color: #30303b;
}

.cont-box .content-image {
	position: relative;
	overflow: hidden;
}

.cont-box .content-image.shade::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right,
			#fff 0%,
			rgba(255, 255, 255, 0.85) 15%,
			rgba(255, 255, 255, 0) 55%);
	width: 50%;
	z-index: 1;
	pointer-events: none;
}

.cont-box .content-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.cont-box .order-2 {
	order: 2;
}

.small-bar {
	min-height: auto;
	background-color: #4C0F9E;
}

.cont-box.small-bar .content h2,
.cont-box.small-bar .content p {
	color: #fff;
}


/* SCORE share preview */

#score-share-preview {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.65);
}

#score-share-preview.active {
	display: flex;
}

.score-share-dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90dvh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 20px;
}

.score-share-close {
	position: absolute;
	top: 10px;
	right: 14px;
	z-index: 2;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.score-share-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 20px 0;
}

.score-share-status {
	margin: 0;
	text-align: center;
	font-size: 14px;
}

.score-share-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 65dvh;
	object-fit: contain;
}

.score-share-image[hidden] {
	display: none;
}

.score-share-action {
	display: block;
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 8px;
	background: #6548C4;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.score-share-action:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* whatsapp icon */

.whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 104px;
	width: 56px;
	height: 56px;
	background: #25D366;
	color: #FFFFFF;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	transition: transform 0.3s ease;
}

.whatsapp-float:hover {
	transform: scale(1.1);
}

.whatsapp-float svg {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
}

#scroll-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 56px;
	height: 56px;
	background: #FFCB01;
	color: #000;
	border: 0;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-shadow: 0px 7.98px 7.98px 0px #00000040;
	z-index: 9999;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

#scroll-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#scroll-to-top:hover {
	transform: scale(1.1);
}

#scroll-to-top .scroll-top-arrow {
	width: 14px;
	height: 14px;
	border-top: 3px solid currentColor;
	border-left: 3px solid currentColor;
	border-color: #2F1A8D;
	transform: translateY(3px) rotate(45deg);
}

#scroll-to-top span:last-child {
	font-size: 8px;
	line-height: 1.2;
	text-align: center;
}

@media (max-width: 767px) {
	.whatsapp-float {
		right: 16px;
		bottom: 82px;
		width: 50px;
		height: 50px;
	}

	#scroll-to-top {
		right: 16px;
		bottom: 16px;
		width: 50px;
		height: 50px;
	}
}

@media (max-width: 767px) {
	.sub-header {
		background: rgba(76, 15, 158, 1) url(./images/sub-header-bg.png) right 0px no-repeat;
	}

	.cont-box {
		grid-template-columns: 1fr;
	}

	.cont-box .content-image {
		min-height: 250px;
		order: 1;
	}

	.cont-box .content-image {
		min-height: 250px;
		order: 1;
	}

	.cont-box .content {
		order: 2;
		padding: 20px;
	}

	.cont-box .order-2 {
		order: 2;
	}

	.cont-box .content-image img.flip {
		transform: scaleX(-1);
	}

	.cont-box .content-image img.flip.no {
		transform: scaleX(1);
	}

	.cont-box .content-image.shade::before {
		inset: auto 0 0 0;
		width: 100%;
		height: 25%;
		background: linear-gradient(to bottom,
				transparent 0%,
				rgba(255, 255, 255, 0.85) 70%,
				#fff 100%);
	}

	.score-contact {
		margin: 32px 20px 16px;
	}
}

@media (max-width: 668px) {
	.assembly-legend {
		margin-left: 18px;
		margin-right: 18px;
	}

	.assembly-legend-item {
		justify-content: space-between;
	}

	.assembly-total strong {
		font-size: 22px;
	}

	.map-legend-item:nth-child(even) {
		margin-left: 20px;
	}

	.map-legend-item:nth-child(even) .map-legend-percentage {
		margin-right: 0px;
	}

	.cont-box .content-image img {
		position: absolute;
		object-position: center center;
	}

	.cont-box.fliprev {
		grid-template-columns: 1fr;
	}

	.cont-box.fliprev .content-text {
		grid-row: 1;
	}

	.cont-box.fliprev .content-image {
		grid-row: 2;
	}

	.sub-header .container {
		flex-direction: column;
		align-items: flex-start;
	}
}


.page-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	max-width: 1366px;
	margin: 0 auto;
	padding: 16px 20px;
}

#global-filters {
	display: flex;
	gap: 8px;
}

#content .card-box .filter-triggers,
#content .card-box .filter-demographics-summary {
	display: none !important;
}

#content .card-box>.filter-triggers,
#content .card-box>.filter-demographics-summary {
	display: none;
}

.score-language-switcher {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

#score-language {
	padding: 10px 35px 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #302b39;
	font-size: 14px;
	cursor: pointer;
}

#google_translate_element {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.goog-te-banner-frame,
.goog-te-gadget {
	display: none !important;
}

body {
	top: 0 !important;
}



/* ==========================================
   SCORE GLOBAL FILTERS
   Desktop / Tablet / Mobile
========================================== */

/* Shared */
.filter-demographics-summary[hidden] {
	display: none !important;
}

#global-filters .filter-trigger-content>span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #2F1A8D;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}

/* Default demographics icon */
#global-filters .filter-demographics-trigger {
	border: 1px solid #E3DDF5;
}

/* Active demographics icon */
#global-filters:has(.score-demographic-pill) .filter-demographics-trigger {
	border-color: #6214CC;
}

/* ==========================================
   DESKTOP: 1024px and above
========================================== */

@media (min-width: 1024px) {

	#global-filters {
		align-items: center;
		flex-wrap: wrap;
	}

	#global-filters>.filter-triggers {
		width: auto;
		flex: 0 0 auto;
		align-items: center;
	}

	#global-filters .filter-trigger {
		width: 132px;
		flex: 0 0 132px;
	}

	#global-filters>.filter-demographics-summary {
		padding: 0;
		margin: 0;
	}

	/* Desktop anchored dropdown */
	.score-filter-overlay.is-dropdown {
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: transparent;
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
	}

	.score-filter-overlay.is-dropdown .score-filter-panel {
		position: fixed;
		left: var(--score-dropdown-left);
		top: var(--score-dropdown-top);
		width: var(--score-dropdown-width);
		max-height: min(65vh, 520px);
		border-radius: 12px;
		border: 1px solid #E3DDF5;
		box-shadow: 0 12px 32px rgba(30, 18, 74, 0.18);
	}

	.score-filter-overlay.is-dropdown .score-filter-head {
		padding: 16px;
	}

	.score-filter-overlay.is-dropdown .score-filter-head h3 {
		font-size: 16px;
	}

	.score-filter-overlay.is-dropdown .score-filter-content {
		overflow-y: auto;
	}
}

/* ==========================================
   TABLET: 768px - 1023px
   Single-line bar / Mobile-style drawer
========================================== */

@media (min-width: 768px) and (max-width: 1023px) {

	.page-top {
		padding: 16px 24px;
	}

	#global-filters {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		gap: 12px;
		width: 100%;
		min-width: 0;
	}

	#global-filters>.filter-triggers {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		gap: 8px;
		width: auto;
		min-width: 0;
		flex: 0 0 auto;
	}

	#global-filters .filter-trigger {
		width: 132px;
		min-width: 0;
		flex: 0 0 132px;
	}

	#global-filters .filter-demographics-trigger {
		width: 44px;
		height: 44px;
		flex: 0 0 44px;
	}

	#global-filters>.filter-demographics-summary {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		gap: 6px;
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		padding: 0;
		margin: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	#global-filters>.filter-demographics-summary::-webkit-scrollbar {
		display: none;
	}

	#global-filters .score-demographic-pill {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* ==========================================
   MOBILE: Up to 767px
   Row 1: Region / District / Constituency
   Row 2: Summary or chips / Filter icon
========================================== */

@media (max-width: 767px) {

	.page-top {
		padding: 16px;
	}

	#global-filters {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 8px;
		row-gap: 20px;
		align-items: center;
		width: 100%;
		min-width: 0;
	}

	/* Place three dropdowns directly in grid */
	#global-filters>.filter-triggers {
		display: contents;
	}

	#global-filters .filter-trigger {
		width: 100%;
		min-width: 0;
		padding: 8px 10px;
	}

	#global-filters .filter-trigger-content {
		overflow: hidden;
	}

	/* Demographics summary uses full row,
       reserving space for the icon */
	#global-filters>.filter-demographics-summary {
		grid-column: 1 / -1;
		grid-row: 2;

		display: flex;
		flex-wrap: wrap;
		align-items: center;
		align-content: start;
		gap: 8px;

		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;

		padding: 0 60px 0 0;
		margin: 0;

		background: transparent;
		font-size: 12px;
	}

	/* Default demographic summary */
	#global-filters>.filter-demographics-summary.score-demographics-default {
		display: block;
		width: calc(100% - 60px);
		max-width: 100%;
		box-sizing: border-box;
		background: #FFFFFF;
		border-radius: 999px;
		padding: 8px 11px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 11px;
	}

	/* Selected demographic chips */
	#global-filters .score-demographic-pill {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 5px 6px 5px 10px;
		font-size: 12px;
	}

	#global-filters .score-demographic-remove {
		background: transparent;
		width: 16px;
		height: 16px;
	}

	/* Filter icon stays right-aligned */
	#global-filters .filter-demographics-trigger {
		grid-column: 3;
		grid-row: 2;

		justify-self: end;
		align-self: start;

		width: 44px;
		height: 44px;
		position: relative;
		z-index: 1;
	}
}

/* Hide default demographic summary on
   tablet and desktop */
@media (min-width: 768px) {

	#global-filters>.filter-demographics-summary.score-demographics-default {
		display: none !important;
	}
}

/* Generated card pages */
body[data-score-card] #content {
	display: flex !important;
	justify-content: center;
	align-items: flex-start;
	height: auto !important;
	padding: 30px 20px;
	box-sizing: border-box;
}

/* Default card width */
body[data-score-card] #content>.container {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	width: 100% !important;
	max-width: 480px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Assembly Projection: full width */
body[data-score-card="assembly-card"] #content>.container {
	max-width: none;
}