.vot-search-demo-page {
  max-width: 1260px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.vot-search-demo {
  color: #152238;
}

.vot-search-demo__hero {
	background: radial-gradient(circle at top left, rgba(72, 187, 120, 0.18), transparent 34%), linear-gradient(135deg, #5931e7 0%, #3b209b 58%, #5931e7 100%);
	color: #fff;
	border-radius: 28px;
	padding: 42px;
	box-shadow: 0 24px 70px rgba(15, 36, 56, 0.22);
}

.vot-search-demo__eyebrow {
  margin: 0 0 -2px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbef22;
  font-weight: 800;
}

.vot-search-demo__title {
  margin: 0;
  max-width: 80%;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
}

.vot-search-demo__intro {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.vot-search-demo__box {
	display: block !important;
	margin-top: 30px;
	background: rgb(89, 49, 231);
	color: #fff;
	border-radius: 22px;
	padding: 18px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.vot-search-demo__label,
.vot-search-demo__box label {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  color: #20324a !important;
}

.vot-search-demo__box .form-item {
  margin: 0 !important;
}

.vot-search-demo__box .form-text {
  max-width: none !important;
}

.vot-search-demo input.vot-search-demo__input,
.vot-search-demo__input[type="search"],
.vot-search-demo__input[type="text"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 4px solid rgb(218, 238, 33) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #152238 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  visibility: visible !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  box-shadow: none !important;
}

.vot-search-demo input.vot-search-demo__input::placeholder {
  color:#a5a4a8 !important;
  opacity: 1 !important;
}

.vot-search-demo__input:focus {
  border-color: rgba(104, 66, 255, 0.78) !important;
  box-shadow: 0 0 0 4px rgba(104, 66, 255, 0.14) !important;
}

.vot-search-demo__hint {
  margin: 10px 0 0;
  color: #637083;
  font-size: 0.9rem;
}

.vot-search-demo__status {
  margin: 24px 0 14px;
  color: #516174;
  font-weight: 800;
}

.vot-search-demo__results {
  display: grid;
  gap: 18px;
}

.vot-search-demo-group {
  background: #fff;
  border: 1px solid rgba(32, 50, 74, 0.1);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(18, 39, 63, 0.08);
}

.vot-search-demo-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vot-search-demo-group__title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  color: #17263a;
}

.vot-search-demo-group__count {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6842ff;
  color: #fff;
  font-weight: 900;
  font-size: 0.86rem;
}

.vot-search-demo-group__items {
  display: grid;
  gap: 10px;
}

.vot-search-demo-group__empty,
.vot-search-demo__empty {
  padding: 14px;
  border-radius: 14px;
  background: #f7f9fb;
  color: #677589;
  font-size: 0.94rem;
}

.vot-search-demo-group__note {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8e0fc;
  color: #51406f;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
}

/* Generic object cards: parties, electorates, chambers. */
.vot-search-demo-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(32, 50, 74, 0.1);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.vot-search-demo-result:hover,
.vot-search-demo-result:focus {
  transform: translateY(-1px);
  border-color: rgba(104, 66, 255, 0.34);
  box-shadow: 0 14px 30px rgba(18, 39, 63, 0.1);
  text-decoration: none;
  color: inherit;
}

.vot-search-demo-result__type {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #eef5f1;
  color: #176238;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vot-search-demo-result__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #152238;
}

.vot-search-demo-result__subtitle {
  margin: 5px 0 0;
  color: #3d4c60;
  font-weight: 800;
}

.vot-search-demo-result__description {
  margin: 5px 0 0;
  color: #657386;
  font-size: 0.92rem;
}

.vot-search-demo-result__arrow {
  align-self: center;
  color: #6842ff;
  font-weight: 900;
  font-size: 1.3rem;
}

/* Compact politician search cards using the existing pol-card-list visual language. */
.vot-search-demo .pol-card-list--search-result {
  position: relative;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__link {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid rgba(32, 50, 74, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(18, 39, 63, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__link:hover,
.vot-search-demo .pol-card-list--search-result .pol-card-list__link:focus {
  transform: translateY(-1px);
  border-color: rgba(104, 66, 255, 0.24);
  box-shadow: 0 14px 34px rgba(18, 39, 63, 0.12);
  color: inherit;
  text-decoration: none;
}

.vot-search-demo__examples {
	font-size: 14px;
}

/*.vot-search-demo .pol-card-list--search-result .pol-card-list__media {
  align-self: center;
} */

.vot-search-demo .pol-card-list--search-result .pol-card-list__media-image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__media-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__body {
  min-width: 0;
  gap: 5px;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__name {
  margin: 0;
  color: #11182d;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__role {
  margin: 0;
  color: #313c52;
  font-size: 0.94rem;
  font-weight: 800;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  color: #687488;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 1;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.vot-search-demo .pol-card-list--search-result .pol-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(32, 50, 74, 0.07);
  color: #17263a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.vot-search-demo .pol-card-list--search-result .pol-chip--party {
  background: rgba(31, 155, 87, 0.12);
  color: #176238;
}

.vot-search-demo .pol-card-list--search-result.party-labor .pol-card-list__media-image {
  background: rgba(200, 40, 40, 0.15);
}

.vot-search-demo .pol-card-list--search-result.party-liberal .pol-card-list__media-image {
  background: rgba(0, 74, 222, 0.31);
}

.vot-search-demo .pol-card-list--search-result.party-greens .pol-card-list__media-image {
  background: rgba(30, 130, 70, 0.3);
}

.vot-search-demo .pol-card-list--search-result.party-national .pol-card-list__media-image {
  background: rgba(30, 130, 70, 0.3);
}

.vot-search-demo .pol-card-list--search-result.party-independent .pol-card-list__media-image {
  background: rgba(78, 0, 107, 0.27);
}

.vot-search-demo .pol-card-list--search-result.party-generic .pol-card-list__media-image {
  background: rgba(120, 120, 120, 0.15);
}

.vot-search-demo .pol-card-list--search-result.party-labor .pol-chip--party {
  background: rgba(180, 45, 45, 0.16);
  color: #8f2525;
}

.vot-search-demo .pol-card-list--search-result.party-liberal .pol-chip--party {
  background: rgba(0, 74, 222, 0.14);
  color: #173f9a;
}

.vot-search-demo .pol-card-list--search-result.party-greens .pol-chip--party {
  background: rgba(30, 130, 70, 0.16);
  color: #176238;
}

.vot-search-demo .pol-card-list--search-result.party-independent .pol-chip--party {
  background: rgba(78, 0, 107, 0.14);
  color: #54206e;
}

.vot-search-demo .pol-card-list.party-one-nation .pol-card-list__media-image {
  background: rgba(239, 144, 28, 0.22);
}

.vot-search-demo .pol-chip--party.party-one-nation {
  background: rgba(239, 144, 28, 0.18);
  border-color: rgba(239, 144, 28, 0.42);
  color: #8a4b00;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__electorate {
  color: #6b7588;
  font-size: 0.78rem;
  opacity: 1;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__cta {
  margin-top: 4px;
  color: #1d6f3d;
  font-size: 0.8rem;
  font-weight: 900;
}

@media (max-width: 720px) {
  /* .vot-search-demo-page {
    padding: 28px 14px 48px;
  }*/

  .vot-search-demo__hero {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .vot-search-demo__box {
    padding: 9px;
  }

  .vot-search-demo-result {
    padding: 14px;
  }
	
	
.vot-search-demo__box::after {
  top: 41% !important;
	}
.vot-search-demo__examples {
	font-size:13px;
	}
	
.vot-search-demo-group {
	padding: 8px;
   }
	
}

@media (max-width: 640px) {
  .vot-search-demo .pol-card-list--search-result .pol-card-list__link {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .vot-search-demo .pol-card-list--search-result .pol-card-list__media-image {
    width: 58px;
    height: 58px;
  }
   .vot-search-demo .pol-card-list--search-result .pol-card-list__link {
	gap: 3px !important;
  }
	
}
/* Phase 5B.2C: two-column politician search cards + senate-list typography alignment. */

/* Only politician result groups become a two-column grid. */
.vot-search-demo-group--politician .vot-search-demo-group__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Keep non-politician object result groups as single-column rows. */
.vot-search-demo-group:not(.vot-search-demo-group--politician) .vot-search-demo-group__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Compact search cards using the same title/role feel as the senate listing cards. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__link {
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 120px;
  padding: 18px 18px;
}

/* Match senate card title treatment more closely. */
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

/* Match senate card role treatment more closely. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__role {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
}

/* Slightly tighten the body so cards feel closer to listing cards. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__body {
  gap: 5px;
}

/* Match the production media size more closely while keeping search compact. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__media-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

/* Keep the CTA aligned like the listing cards. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__cta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d6f3d;
}

/* Tablet/mobile: stack to one column. */
@media (max-width: 980px) {
  .vot-search-demo-group--politician .vot-search-demo-group__items {
    grid-template-columns: 1fr;
  }
}

/* Small mobile: tighten media and spacing. */
@media (max-width: 640px) {
  .vot-search-demo .pol-card-list--search-result .pol-card-list__link {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 14px;
    min-height: 104px;
  }

  .vot-search-demo .pol-card-list--search-result .pol-card-list__media-image {
    width: 58px;
    height: 58px;
  }
}


/* Phase 5B.2D: make search politician cards closer to senate list-card rhythm. */

/* Slightly tighter group spacing. */
.vot-search-demo-group--politician .vot-search-demo-group__items {
  gap: 12px;
}

/* Reduce card height and padding. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__link {
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 16px;
  align-items: self-start;
	min-height: 145px;
}

/* Match senate list view title/subtitle feel more closely. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
}

.vot-search-demo .pol-card-list--search-result .pol-card-list__role {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  color: #4b5563;
	margin-top: -2px;
}


/* Smaller media block to reduce card height. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__media-image {
  width: 88px;
  height: 88px;
  border-radius: 10px;
}

/* Tighten content rhythm. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__body {
  gap: 4px;
  justify-content: flex-start ;
}

/* Make the meta line behave like the senate card lower meta. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__meta {
  margin: 5px 0 0;
  padding: 0;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1;
  color: rgba(17, 24, 39, 0.62);
}

/* Make chips less tall/bulky. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__chips {
  gap: 5px;
  margin-top: 2px;
}

.vot-search-demo .pol-card-list--search-result .pol-chip {
  padding: 7px 7px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.05;
}

/* The description duplicates chamber/state, so make it quieter and smaller. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__electorate {
  margin-top: 1px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(75, 85, 99, 0.78);
}

/* CTA should feel like the senate list CTA, not a big search action. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__cta {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1f3d2a;
  text-align: right;
}

/* Keep cards compact in two-column layout. */
.vot-search-demo-group--politician .pol-card-list--search-result {
  min-width: 0;
}

/* Slightly reduce outer group padding so the section feels tighter. */
.vot-search-demo-group--politician {
  padding: 16px;
}

/* Mobile still stacks cleanly. */
@media (max-width: 640px) {
  .vot-search-demo .pol-card-list--search-result .pol-card-list__link {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    min-height: 96px;
    padding: 12px;
  }

  .vot-search-demo .pol-card-list--search-result .pol-card-list__media-image {
    width: 54px;
    height: 54px;
  }

  .vot-search-demo .pol-card-list--search-result .pol-card-list__name {
    font-size: 1.3rem;
  }

  .vot-search-demo .pol-card-list--search-result .pol-card-list__role {
    font-size: 0.88rem;
  }
	.vot-search-demo__title {
	max-width: 100%;
	font-size: clamp(2.4rem, 6vw, 3.8rem);

}
	
}

@media (max-width: 420px) {
  .vot-search-demo .pol-card-list--search-result .pol-card-list__role {
    margin: 4px 0 10px;
    font-size: 0.6rem;
    line-height: 0;
  }
}


.vot-search-demo .pol-card-list--search-result .pol-card-list__electorate {
  display: none;
}

/* Phase 5B.2E: polish party result card. */

.vot-search-demo-group--party {
  padding: 16px;
}

.vot-search-demo-group--party .vot-search-demo-group__items {
  gap: 10px;
}

.vot-search-demo-group--party .vot-search-demo-result {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 106px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(32, 50, 74, 0.1);
  background:
    radial-gradient(circle at top left, rgba(104, 66, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f7fb 100%);
  box-shadow: 0 10px 26px rgba(18, 39, 63, 0.08);
}

.vot-search-demo-group--party .vot-search-demo-result::before {
  content: "⚑";
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 66, 255, 0.12);
  color: #4b2ac2;
  font-size: 1.35rem;
  font-weight: 900;
}

.vot-search-demo-group--party .vot-search-demo-result:hover,
.vot-search-demo-group--party .vot-search-demo-result:focus {
  transform: translateY(-1px);
  border-color: rgba(104, 66, 255, 0.24);
  box-shadow: 0 14px 34px rgba(18, 39, 63, 0.12);
}

.vot-search-demo-group--party .vot-search-demo-result__main {
  min-width: 0;
}

.vot-search-demo-group--party .vot-search-demo-result__type {
  margin-bottom: 7px;
  background: #d9d9d9;
  color: #363636;
  font-size: 0.68rem;
  font-weight: 900;
  border: 1px solid #9d9d9d;
}

.vot-search-demo-group--party .vot-search-demo-result__label {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.vot-search-demo-group--party .vot-search-demo-result__subtitle {
  margin: 4px 0 0;
  color: #313c52;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.vot-search-demo-group--party .vot-search-demo-result__description {
  margin: 5px 0 0;
  color: #657386;
  font-size: 0.86rem;
  line-height: 1.35;
}

.vot-search-demo-group--party .vot-search-demo-result__arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1edff;
  color: #6842ff;
  font-size: 1rem;
  font-weight: 900;
}

@media (max-width: 640px) {
  .vot-search-demo-group--party .vot-search-demo-result {
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .vot-search-demo-group--party .vot-search-demo-result::before {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.1rem;
  }
}
/* Phase 5B.2F: polish chamber/electorate object result cards. */

/* Chambers and electorates use a compact 2-column civic object grid. */
.vot-search-demo-group--chamber .vot-search-demo-group__items,
.vot-search-demo-group--electorate .vot-search-demo-group__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Keep party full-width. */
.vot-search-demo-group--party .vot-search-demo-group__items {
  grid-template-columns: 1fr;
}

/* Shared object-card styling for chambers/electorates. */
.vot-search-demo-group--chamber .vot-search-demo-result,
.vot-search-demo-group--electorate .vot-search-demo-result {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(32, 50, 74, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  box-shadow: 0 10px 24px rgba(18, 39, 63, 0.07);
}

.vot-search-demo-group--chamber .vot-search-demo-result:hover,
.vot-search-demo-group--chamber .vot-search-demo-result:focus,
.vot-search-demo-group--electorate .vot-search-demo-result:hover,
.vot-search-demo-group--electorate .vot-search-demo-result:focus {
  transform: translateY(-1px);
  border-color: rgba(104, 66, 255, 0.22);
  box-shadow: 0 14px 30px rgba(18, 39, 63, 0.1);
}

/* Civic object icons. */
.vot-search-demo-group--chamber .vot-search-demo-result::before,
.vot-search-demo-group--electorate .vot-search-demo-result::before {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.vot-search-demo-group--chamber .vot-search-demo-result::before {
  content: "🏛";
  background: rgba(104, 66, 255, 0.1);
  color: #4b2ac2;
}

.vot-search-demo-group--electorate .vot-search-demo-result::before {
  content: "📍";
  background: rgba(31, 155, 87, 0.1);
  color: #176238;
}

/* Object-card text rhythm. */
.vot-search-demo-group--chamber .vot-search-demo-result__main,
.vot-search-demo-group--electorate .vot-search-demo-result__main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vot-search-demo-group--chamber .vot-search-demo-result__type,
.vot-search-demo-group--electorate .vot-search-demo-result__type {
  width: fit-content;
  margin: 0 0 2px;
  padding: 3px 8px;
  background: #f0eef5;
  color: #3b0798;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: 1px solid #bb9cf3;
}

.vot-search-demo-group--chamber .vot-search-demo-result__label,
.vot-search-demo-group--electorate .vot-search-demo-result__label {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.vot-search-demo-group--chamber .vot-search-demo-result__subtitle,
.vot-search-demo-group--electorate .vot-search-demo-result__subtitle {
  margin: 0;
  color: #313c52;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.vot-search-demo-group--chamber .vot-search-demo-result__description,
.vot-search-demo-group--electorate .vot-search-demo-result__description {
  margin: 2px 0 0;
  color: #657386;
  font-size: 0.82rem;
  line-height: 1.3;
}

/* Turn generic arrow into proper object CTAs. */
.vot-search-demo-group--chamber .vot-search-demo-result__arrow,
.vot-search-demo-group--electorate .vot-search-demo-result__arrow {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #2f2f2f;
  font-size: 0;
  font-weight: 800;
  white-space: nowrap;
  align-self: end;
  padding-bottom: 2px;
}

.vot-search-demo-group--chamber .vot-search-demo-result__arrow::before {
  content: "View chamber →";
  font-size: 0.78rem;
}

.vot-search-demo-group--electorate .vot-search-demo-result__arrow::before {
  content: "View electorate →";
  font-size: 0.78rem;
}

/* Mobile/tablet: stack object cards. */
@media (max-width: 980px) {
  .vot-search-demo-group--chamber .vot-search-demo-group__items,
  .vot-search-demo-group--electorate .vot-search-demo-group__items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vot-search-demo-group--chamber .vot-search-demo-result,
  .vot-search-demo-group--electorate .vot-search-demo-result {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .vot-search-demo-group--chamber .vot-search-demo-result::before,
  .vot-search-demo-group--electorate .vot-search-demo-result::before {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 1rem;
  }

  .vot-search-demo-group--chamber .vot-search-demo-result__arrow,
  .vot-search-demo-group--electorate .vot-search-demo-result__arrow {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    margin-top: 4px;
  }
}

/* Phase 5B.2F override: keep civic object cards two-column earlier on desktop/laptop widths. */
@media (min-width: 760px) {
  .vot-search-demo .vot-search-demo-group--chamber .vot-search-demo-group__items,
  .vot-search-demo .vot-search-demo-group--electorate .vot-search-demo-group__items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 759px) {
  .vot-search-demo .vot-search-demo-group--chamber .vot-search-demo-group__items,
  .vot-search-demo .vot-search-demo-group--electorate .vot-search-demo-group__items {
    grid-template-columns: 1fr !important;
  }
}


/* Phase 5B.2G: state/territory SVG icons for chamber/electorate object cards. */

.vot-search-demo-group--chamber .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before,
.vot-search-demo-group--electorate .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before {
  content: "" !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
  background-color: rgba(104, 66, 255, 0.10);
}

.vot-search-demo-result--state-act::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/act-map.svg");
}

.vot-search-demo-result--state-nsw::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/nsw-map.svg");
}

.vot-search-demo-result--state-nt::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/nt-map.svg");
}

.vot-search-demo-result--state-qld::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/qld-map.svg");
}

.vot-search-demo-result--state-sa::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/sa-map.svg");
}

.vot-search-demo-result--state-tas::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/tas-map.svg");
}

.vot-search-demo-result--state-vic::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/vic-map.svg");
}

.vot-search-demo-result--state-wa::before {
  background-image: url("/themes/custom/votality_barrio/images/maps/wa-map.svg");
}

.vot-search-demo-group--electorate .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before {
  background-color: rgba(31, 155, 87, 0.10);
}


/* Phase 5B.2G fix: render state SVGs as masks so SVG fill colour does not matter. */
.vot-search-demo-group--chamber .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before,
.vot-search-demo-group--electorate .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before {
  background-color: rgba(104, 66, 255, 0.12) !important;
  background-image: none !important;
  position: relative;
}

.vot-search-demo-group--chamber .vot-search-demo-result[class*="vot-search-demo-result--state-"]::after,
.vot-search-demo-group--electorate .vot-search-demo-result[class*="vot-search-demo-result--state-"]::after {
  content: "";
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 34px;
  height: 34px;
  background: #6842ff;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  pointer-events: none;
}

.vot-search-demo-result--state-act::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/act-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/act-map.svg");
}

.vot-search-demo-result--state-nsw::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/nsw-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/nsw-map.svg");
}

.vot-search-demo-result--state-nt::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/nt-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/nt-map.svg");
}

.vot-search-demo-result--state-qld::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/qld-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/qld-map.svg");
}

.vot-search-demo-result--state-sa::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/sa-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/sa-map.svg");
}

.vot-search-demo-result--state-tas::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/tas-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/tas-map.svg");
}

.vot-search-demo-result--state-vic::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/vic-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/vic-map.svg");
}

.vot-search-demo-result--state-wa::after {
  mask-image: url("/themes/custom/votality_barrio/images/maps/wa-map.svg");
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/wa-map.svg");
}


/* Phase 5B.2G correction: use state SVG as the icon, remove duplicate blank square. */

.vot-search-demo-group--chamber .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before,
.vot-search-demo-group--electorate .vot-search-demo-result[class*="vot-search-demo-result--state-"]::before {
  content: "" !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 0 !important;
  background-color: #6842ff !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
}

/* Hide the second pseudo-element that was creating a duplicate icon layer. */
.vot-search-demo-group--chamber .vot-search-demo-result[class*="vot-search-demo-result--state-"]::after,
.vot-search-demo-group--electorate .vot-search-demo-result[class*="vot-search-demo-result--state-"]::after {
  display: none !important;
}

/* Apply SVG masks to the main icon pseudo-element. */
.vot-search-demo-result--state-act::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/act-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/act-map.svg") !important;
}

.vot-search-demo-result--state-nsw::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/nsw-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/nsw-map.svg") !important;
}

.vot-search-demo-result--state-nt::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/nt-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/nt-map.svg") !important;
}

.vot-search-demo-result--state-qld::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/qld-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/qld-map.svg") !important;
}

.vot-search-demo-result--state-sa::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/sa-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/sa-map.svg") !important;
}

.vot-search-demo-result--state-tas::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/tas-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/tas-map.svg") !important;
}

.vot-search-demo-result--state-vic::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/vic-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/vic-map.svg") !important;
}

.vot-search-demo-result--state-wa::before {
  mask-image: url("/themes/custom/votality_barrio/images/maps/wa-map.svg") !important;
  -webkit-mask-image: url("/themes/custom/votality_barrio/images/maps/wa-map.svg") !important;
}

/* Phase 5B.2H: chip icons in search politician cards. */
.vot-search-demo .pol-card-list--search-result .pol-chip {
  gap: 4px;
}

.vot-search-demo .pol-card-list--search-result .pol-chip i {
  font-size: 0.72em;
  line-height: 1;
}

.vot-search-demo .pol-card-list--search-result .pol-chip--member {
  background: rgba(32, 50, 74, 0.07);
  color: #17263a;
}


/* Phase 5B.2I: result status icon. */
.vot-search-demo__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vot-search-demo__status::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 66, 255, 0.12);
  color: #6842ff;
  font-size: 0.78rem;
}


/* Phase 5B.2J: federal/chamber icon inside civic object type badges. */
.vot-search-demo-group--chamber .vot-search-demo-result__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vot-search-demo-group--chamber .vot-search-demo-result__type::before {
  content: "\f19c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size:1.1em;
  line-height: 1;
}

/* Electorate cards get a location/map-style icon if used. */
.vot-search-demo-group--electorate .vot-search-demo-result__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vot-search-demo-group--electorate .vot-search-demo-result__type::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.78em;
  line-height: 1;
}


/* Increase spacing between politician image and profile content in civic search cards. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__link {
  gap: 33px;
}


/* Phase 5B.2K: align politician card hover with chamber/electorate object cards. */
.vot-search-demo .pol-card-list--search-result .pol-card-list__link:hover,
.vot-search-demo .pol-card-list--search-result .pol-card-list__link:focus {
  transform: translateY(-1px) !important;
  border-color: rgba(104, 66, 255, 0.22) !important;
  box-shadow: 0 14px 30px rgba(18, 39, 63, 0.10) !important;
  color: inherit !important;
  text-decoration: none !important;
}


/* Phase 5B.2L: search icon inside civic search input. */
.vot-search-demo__box {
  position: relative;
}

.vot-search-demo__box::after {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-4px);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 66, 255, 0.10);
  color: #6842ff;
  font-size: 0.92rem;
  pointer-events: none;
}

.vot-search-demo input.vot-search-demo__input,
.vot-search-demo__input[type="search"],
.vot-search-demo__input[type="text"] {
  padding-right: 64px !important;
}


/* Phase 5B.2L refinement: cleaner search icon inside civic search input. */
.vot-search-demo__box::after {
  right: 34px !important;
  top: 46%;
  transform: translateY(-50%) !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(104, 66, 255, 0.55) !important;
  font-size: 1.18rem !important;
  line-height: 1 !important;
}

.vot-search-demo input.vot-search-demo__input,
.vot-search-demo__input[type="search"],
.vot-search-demo__input[type="text"] {
  padding-right: 58px !important;
}


/* Phase 5B.2M: party logos in party result cards. */
.vot-search-demo-group--party .vot-search-demo-result[class*="vot-search-demo-result--party-"] {
  grid-template-columns: 96px 1fr auto;
  min-height: 116px;
}

.vot-search-demo-group--party .vot-search-demo-result[class*="vot-search-demo-result--party-"]::before {
  content: "" !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.82) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  border: 1px solid rgba(32, 50, 74, 0.08);
  box-shadow: 0 8px 20px rgba(18, 39, 63, 0.08);
}

.vot-search-demo-result--party-greens::before {
  background-image: url("/themes/custom/votality_barrio/images/party/greens-logo.png") !important;
}

.vot-search-demo-result--party-labor::before {
  background-image: url("/themes/custom/votality_barrio/images/party/labor-logo.png") !important;
}

.vot-search-demo-result--party-liberal::before {
  background-image: url("/themes/custom/votality_barrio/images/party/liberals-logo.png") !important;
}

.vot-search-demo-result--party-independent::before {
  background-image: url("/themes/custom/votality_barrio/images/party/independent-logo.png") !important;
}

/* Fallback for parties without a logo yet. */
.vot-search-demo-result--party-generic::before {
  content: "\f024" !important;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  background-image: none !important;
  background: rgba(104, 66, 255, 0.12) !important;
  color: #6842ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .vot-search-demo-group--party .vot-search-demo-result[class*="vot-search-demo-result--party-"] {
    grid-template-columns: 72px 1fr;
  }

  .vot-search-demo-group--party .vot-search-demo-result[class*="vot-search-demo-result--party-"]::before {
    width: 60px !important;
    height: 60px !important;
  }
}

.vot-search-demo-group--party .vot-search-demo-result__eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 2.25a.75.75 0 0 1 1.5 0v.35h6.16c.52 0 .97.34 1.12.83.15.48-.03 1-.43 1.3l-.92.7.92.7c.4.3.58.82.43 1.3a1.18 1.18 0 0 1-1.12.83H4.5v5.25a.75.75 0 0 1-1.5 0V2.25Z' fill='%2354617a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.vot-search-demo-result--party-generic::before {
  content: "" !important;
  background-image: url("/themes/custom/votality_barrio/images/party/generic-party-logo.png") !important;
  background-color: rgba(255, 255, 255, 0.82) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 80px auto !important;
}
.vot-search-demo-group--party .vot-search-demo-result::before {
  background-size: 80px auto;
}

/* Phase 5B.2N: small icon inside PARTY result badge. */
.vot-search-demo-group--party .vot-search-demo-result__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vot-search-demo-group--party .vot-search-demo-result__type::before {
  content: "\f024";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.72em;
  line-height: 1;
}



/* Phase 5B.2O: generic party fallback tile and softer PARTY badge. */

/* Softer PARTY badge so it does not compete with official party logos. */
.vot-search-demo-group--party .vot-search-demo-result__type {
  background: rgba(32, 50, 74, 0.07) !important;
  border-color: rgba(32, 50, 74, 0.10) !important;
  color: rgba(23, 38, 58, 0.76) !important;
  font-weight: 700;
  letter-spacing: 0.035em;
}

/* Keep the tiny flag icon subtle. */
.vot-search-demo-group--party .vot-search-demo-result__type::before {
  color: rgba(23, 38, 58, 0.62) !important;
  opacity: 0.85;
}

/* Generic fallback for parties without an uploaded logo. */
.vot-search-demo-result--party-generic::before {
  content: "\f024" !important;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  background-image: none !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,240,255,0.92)) !important;
  color: rgba(104, 66, 255, 0.72) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.6rem !important;
  border: 1px solid rgba(104, 66, 255, 0.14) !important;
  box-shadow: 0 8px 20px rgba(18, 39, 63, 0.07) !important;
}

/* Optional tiny PARTY text feel inside generic tile via icon-only treatment kept clean. */
.vot-search-demo-result--party-generic::before {
  width: 80px !important;
  height: 80px !important;
  border-radius: 18px !important;
}

/* Make uploaded party logos fit cleanly but avoid overwhelming the card. 
.vot-search-demo-group--party .vot-search-demo-result[class*="vot-search-demo-result--party-"]:not(.vot-search-demo-result--party-generic)::before {
  background-size: 70px auto !important;
} */


/* Phase 5B.2P: use uploaded generic party logo for unmapped parties. */
.vot-search-demo-group--party .vot-search-demo-result--party-generic::before {
  content: "" !important;
  font-family: initial !important;
  background-image: url("/themes/custom/votality_barrio/images/party/generic-party-logo.png") !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 70px auto !important;
  color: transparent !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 18px !important;
  display: block !important;
  border: 1px solid rgba(32, 50, 74, 0.08) !important;
  box-shadow: 0 8px 20px rgba(18, 39, 63, 0.08) !important;
}


/* Phase 5D polish: the civic search hero already contains the page H1. */
.path-civic-search h1.title,
.path-votality-search h1.title,
.route-votality-search-search-page h1.title {
  display: none;
}

/* Shared canonical listing card grid.
   Applies the now-aligned politician card markup to Senate/state listing pages,
   not just the Federal House single-representative row.
*/
.view-federal-senators-by-state .view-content,
.view-state-upper-region .view-content,
.view-upper-by-state .view-content,
.view-state-lower-by-electorate .view-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.view-federal-senators-by-state .views-row,
.view-state-upper-region .views-row,
.view-upper-by-state .views-row,
.view-state-lower-by-electorate .views-row {
  min-width: 0;
}

/* Shared politician card styling for canonical Views listing pages. */
.view-federal-senators-by-state .pol-card-list,
.view-state-upper-region .pol-card-list,
.view-upper-by-state .pol-card-list,
.view-state-lower-by-electorate .pol-card-list {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(32, 50, 74, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 39, 63, 0.08);
}

.view-federal-senators-by-state .pol-card-list__compare,
.view-state-upper-region .pol-card-list__compare,
.view-upper-by-state .pol-card-list__compare,
.view-state-lower-by-electorate .pol-card-list__compare {
  display: none !important;
}

.view-federal-senators-by-state .pol-card-list__link,
.view-state-upper-region .pol-card-list__link,
.view-upper-by-state .pol-card-list__link,
.view-state-lower-by-electorate .pol-card-list__link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  min-height: 150px;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.view-federal-senators-by-state .pol-card-list__link:hover,
.view-state-upper-region .pol-card-list__link:hover,
.view-upper-by-state .pol-card-list__link:hover,
.view-state-lower-by-electorate .pol-card-list__link:hover,
.view-federal-senators-by-state .pol-card-list__link:focus,
.view-state-upper-region .pol-card-list__link:focus,
.view-upper-by-state .pol-card-list__link:focus,
.view-state-lower-by-electorate .pol-card-list__link:focus {
  color: inherit;
  text-decoration: none;
}

.view-federal-senators-by-state .pol-card-list__media,
.view-state-upper-region .pol-card-list__media,
.view-upper-by-state .pol-card-list__media,
.view-state-lower-by-electorate .pol-card-list__media {
  width: 96px;
  min-width: 0;
}

.view-federal-senators-by-state .pol-card-list__media-image,
.view-state-upper-region .pol-card-list__media-image,
.view-upper-by-state .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list__media-image {
  overflow: hidden;
  width: 96px;
  max-width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #edf1f4;
}

.view-federal-senators-by-state .pol-card-list__media-image img,
.view-state-upper-region .pol-card-list__media-image img,
.view-upper-by-state .pol-card-list__media-image img,
.view-state-lower-by-electorate .pol-card-list__media-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-federal-senators-by-state .pol-card-list__body,
.view-state-upper-region .pol-card-list__body,
.view-upper-by-state .pol-card-list__body,
.view-state-lower-by-electorate .pol-card-list__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 0.1rem;
}

.view-federal-senators-by-state .pol-card-list__name,
.view-state-upper-region .pol-card-list__name,
.view-upper-by-state .pol-card-list__name,
.view-state-lower-by-electorate .pol-card-list__name {
  margin: 0;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 900;
}

.view-federal-senators-by-state .pol-card-list__role,
.view-state-upper-region .pol-card-list__role,
.view-upper-by-state .pol-card-list__role,
.view-state-lower-by-electorate .pol-card-list__role {
  margin-top: 0.22rem;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 750;
}

.view-federal-senators-by-state .pol-card-list__meta,
.view-state-upper-region .pol-card-list__meta,
.view-upper-by-state .pol-card-list__meta,
.view-state-lower-by-electorate .pol-card-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.6rem;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.view-federal-senators-by-state .pol-card-list__chips,
.view-state-upper-region .pol-card-list__chips,
.view-upper-by-state .pol-card-list__chips,
.view-state-lower-by-electorate .pol-card-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.view-federal-senators-by-state .pol-chip,
.view-state-upper-region .pol-chip,
.view-upper-by-state .pol-chip,
.view-state-lower-by-electorate .pol-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgb(44, 44, 44);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.view-federal-senators-by-state .pol-chip i,
.view-state-upper-region .pol-chip i,
.view-upper-by-state .pol-chip i,
.view-state-lower-by-electorate .pol-chip i {
  font-size: 10px;
  line-height: 1;
}

.view-federal-senators-by-state .pol-chip--chamber,
.view-state-upper-region .pol-chip--chamber,
.view-upper-by-state .pol-chip--chamber,
.view-state-lower-by-electorate .pol-chip--chamber {
  background: rgba(225, 225, 225, 0.44);
  border-color: rgba(0, 0, 0, 0.11);
  color: rgb(44, 44, 44);
}

.view-federal-senators-by-state .pol-chip--party,
.view-state-upper-region .pol-chip--party,
.view-upper-by-state .pol-chip--party,
.view-state-lower-by-electorate .pol-chip--party {
  background: rgb(226, 196, 196);
  border-color: rgb(204, 172, 172);
  color: rgb(127, 0, 0);
}

.view-federal-senators-by-state .pol-chip--member,
.view-state-upper-region .pol-chip--member,
.view-upper-by-state .pol-chip--member,
.view-state-lower-by-electorate .pol-chip--member {
  background: rgb(255, 255, 255);
  border-color: rgba(0, 0, 0, 0.19);
  color: rgb(44, 44, 44);
}

.view-federal-senators-by-state .pol-card-list__electorate,
.view-state-upper-region .pol-card-list__electorate,
.view-upper-by-state .pol-card-list__electorate,
.view-state-lower-by-electorate .pol-card-list__electorate {
  display: none !important;
}

.view-federal-senators-by-state .pol-card-list__cta,
.view-state-upper-region .pol-card-list__cta,
.view-upper-by-state .pol-card-list__cta,
.view-state-lower-by-electorate .pol-card-list__cta {
  align-self: flex-end;
  margin-top: auto;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 900;
}

/* Party-tinted placeholder backgrounds for canonical listings. */
.view-federal-senators-by-state .pol-card-list.party-labor .pol-card-list__media-image,
.view-state-upper-region .pol-card-list.party-labor .pol-card-list__media-image,
.view-upper-by-state .pol-card-list.party-labor .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list.party-labor .pol-card-list__media-image {
  background: #e2c4c4;
}

.view-federal-senators-by-state .pol-card-list.party-liberal .pol-card-list__media-image,
.view-state-upper-region .pol-card-list.party-liberal .pol-card-list__media-image,
.view-upper-by-state .pol-card-list.party-liberal .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list.party-liberal .pol-card-list__media-image {
  background: #dbe6f7;
}

.view-federal-senators-by-state .pol-card-list.party-greens .pol-card-list__media-image,
.view-state-upper-region .pol-card-list.party-greens .pol-card-list__media-image,
.view-upper-by-state .pol-card-list.party-greens .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list.party-greens .pol-card-list__media-image {
  background: #dceee2;
}

.view-federal-senators-by-state .pol-card-list.party-national .pol-card-list__media-image,
.view-state-upper-region .pol-card-list.party-national .pol-card-list__media-image,
.view-upper-by-state .pol-card-list.party-national .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list.party-national .pol-card-list__media-image {
  background: #e7f0dc;
}

.view-federal-senators-by-state .pol-card-list.party-independent .pol-card-list__media-image,
.view-state-upper-region .pol-card-list.party-independent .pol-card-list__media-image,
.view-upper-by-state .pol-card-list.party-independent .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list.party-independent .pol-card-list__media-image,
.view-federal-senators-by-state .pol-card-list.party-generic .pol-card-list__media-image,
.view-state-upper-region .pol-card-list.party-generic .pol-card-list__media-image,
.view-upper-by-state .pol-card-list.party-generic .pol-card-list__media-image,
.view-state-lower-by-electorate .pol-card-list.party-generic .pol-card-list__media-image {
  background: #edf1f4;
}

@media (max-width: 900px) {
  .view-federal-senators-by-state .view-content,
  .view-state-upper-region .view-content,
  .view-upper-by-state .view-content,
  .view-state-lower-by-electorate .view-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .view-federal-senators-by-state .pol-card-list__link,
  .view-state-upper-region .pol-card-list__link,
  .view-upper-by-state .pol-card-list__link,
  .view-state-lower-by-electorate .pol-card-list__link {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.8rem;
    min-height: 0;
    padding: 0.9rem;
  }

  .view-federal-senators-by-state .pol-card-list__media,
  .view-state-upper-region .pol-card-list__media,
  .view-upper-by-state .pol-card-list__media,
  .view-state-lower-by-electorate .pol-card-list__media,
  .view-federal-senators-by-state .pol-card-list__media-image,
  .view-state-upper-region .pol-card-list__media-image,
  .view-upper-by-state .pol-card-list__media-image,
  .view-state-lower-by-electorate .pol-card-list__media-image {
    width: 84px;
    max-width: 84px;
  }

  .view-federal-senators-by-state .pol-card-list__name,
  .view-state-upper-region .pol-card-list__name,
  .view-upper-by-state .pol-card-list__name,
  .view-state-lower-by-electorate .pol-card-list__name {
    font-size: 1.12rem;
  }

  .view-federal-senators-by-state .pol-chip,
  .view-state-upper-region .pol-chip,
  .view-upper-by-state .pol-chip,
  .view-state-lower-by-electorate .pol-chip {
    white-space: normal;
  }
}
