@charset "utf-8";

.infographics-page {
  background: #fff;
}

.infographics-hero {
  border-bottom: 1px solid #dedede;
  background:
    radial-gradient(circle at 5% 0%, rgba(187, 0, 0, .055), transparent 34%),
    radial-gradient(circle at 96% 18%, rgba(1, 104, 183, .05), transparent 38%),
    linear-gradient(135deg, rgba(187, 0, 0, .025), transparent 44%),
    #fff;
  padding: 46px 0 34px;
}

.infographics-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.infographics-hero-copy {
  max-width: 720px;
}

.infographics-hero-copy .hero-title {
  margin: 8px 0 12px;
}

.infographics-hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.infographics-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #444;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.infographics-controls {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
}

.infographics-control-label {
  color: #666;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.infographics-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
}

.infographics-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #444;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 12px;
}

.infographics-segmented button:hover,
.infographics-segmented button.is-active {
  background: #444;
  color: #fff;
}

.infographics-state-library,
.infographics-context {
  padding: 42px 0;
}

.infographics-context {
  border-top: 1px solid #ededed;
  background: #f7f7f7;
}

.infographics-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.infographics-section-head .section-title {
  margin: 8px 0 0;
}

.infographics-state-grid {
  display: grid;
  gap: 22px;
}

.infographics-state-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
}

.infographics-state-panel[hidden],
.info-module[hidden] {
  display: none;
}

.infographics-state-head {
  position: relative;
  display: flex;
  min-height: 118px;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid #e5e5e5;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72)),
    #f3f3f3;
}

.infographics-state-head h3 {
  margin: 6px 0 0;
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.infographics-state-head img {
  width: 144px;
  height: 86px;
  align-self: center;
  border-radius: 6px;
  object-fit: cover;
  opacity: .72;
}

.infographics-state-tag {
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.infographics-fact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.infographics-fact-row div {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fafafa;
}

.infographics-fact-row strong,
.infographics-fact-row span {
  display: block;
}

.infographics-fact-row strong {
  color: #1f1f1f;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.infographics-fact-row span {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.infographics-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.infographics-flourish {
  min-height: 360px;
  padding: 0 10px 10px;
}

.infographics-flourish .flourish-embed {
  min-height: 360px;
}

.info-module {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 220px;
  padding: 16px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
}

.info-module-wide {
  grid-column: 1 / -1;
}

.info-module header {
  display: grid;
  gap: 5px;
}

.info-module header span {
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.info-module header h4 {
  margin: 0;
  color: #222;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.info-split,
.info-pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.info-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-split div,
.info-pair div {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f5;
}

.info-split strong,
.info-pair strong,
.info-split span,
.info-pair span {
  display: block;
}

.info-split strong,
.info-pair strong {
  color: #1f1f1f;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.info-split span,
.info-pair span {
  margin-top: 7px;
  color: #666;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.info-meter-list,
.info-bar-list {
  display: grid;
  gap: 12px;
}

.info-meter,
.info-bar,
.info-rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.info-meter span,
.info-bar span,
.info-rank span {
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 800;
}

.info-meter strong,
.info-bar strong,
.info-rank strong {
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 900;
}

.info-meter i,
.info-bar i,
.info-rank i {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e7e7;
}

.info-meter i::before,
.info-bar i::before,
.info-rank i::before {
  content: "";
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--brand-red);
}

.info-meter:nth-child(2) i::before {
  background: #777;
}

.info-bar:nth-child(1) i::before {
  background: #f0b44c;
}

.info-bar:nth-child(2) i::before {
  background: #cf2f3c;
}

.info-bar:nth-child(3) i::before {
  background: #8ab17d;
}

.info-stack {
  display: flex;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee;
}

.info-stack i {
  width: calc(var(--value) * 1%);
  background: var(--color);
}

.info-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.info-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.info-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color);
}

.info-module-women {
  min-height: 0;
  padding: 18px;
}

.info-ranking {
  display: grid;
  gap: 12px;
}

.info-rank {
  grid-template-columns: 120px minmax(0, 1fr) 64px;
}

.info-rank i {
  grid-column: 2;
  grid-row: 1;
}

.info-rank i::before {
  width: calc((var(--value) / 25) * 100%);
  background: #e31b9d;
}

@media (max-width: 1120px) {
  .infographics-hero-grid,
  .infographics-data-grid {
    grid-template-columns: 1fr;
  }

  .infographics-controls {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .infographics-hero {
    padding: 32px 0 26px;
  }

  .infographics-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .infographics-hero-grid {
    gap: 22px;
  }

  .infographics-hero-copy p {
    font-size: 14px;
  }

  .infographics-state-library,
  .infographics-context {
    padding: 30px 0;
  }

  .infographics-state-head {
    min-height: 104px;
    padding: 16px;
  }

  .infographics-state-head h3 {
    font-size: 19px;
  }

  .infographics-state-head img {
    width: 106px;
    height: 68px;
  }

  .infographics-fact-row {
    grid-template-columns: 1fr;
    padding-right: 14px;
    padding-left: 14px;
  }

  .infographics-fact-row {
    gap: 8px;
  }

  .infographics-fact-row div {
    min-height: 56px;
  }

  .infographics-fact-row strong {
    font-size: 23px;
  }

  .infographics-segmented {
    width: 100%;
  }

  .infographics-segmented button {
    flex: 1 1 auto;
  }

  .infographics-flourish,
  .infographics-flourish .flourish-embed {
    min-height: 300px;
  }

  .infographics-data-grid {
    grid-template-columns: 1fr;
    padding-right: 14px;
    padding-left: 14px;
  }

  .info-split,
  .info-pair,
  .info-legend {
    grid-template-columns: 1fr;
  }

  .info-rank {
    grid-template-columns: 86px minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .info-rank span,
  .info-rank strong {
    font-size: 12px;
  }
}

/* Current infographic layout updates */
.infographics-filter {
  padding: 24px 0 30px;
  border-bottom: 0;
}

.infographics-segmented {
  width: auto;
  gap: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.infographics-segmented button {
  flex: 0 0 auto;
  min-width: 158px;
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  background: #9a9a9a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.infographics-segmented button:hover,
.infographics-segmented button.is-active {
  background: var(--brand-red);
  color: #fff;
}

.johor-essentials {
  padding-top: 44px;
}

.johor-essentials-layout {
  display: grid;
  grid-template-columns: minmax(280px, 395px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.johor-essentials-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.infographics-embed-card {
  min-width: 0;
  height: 100%;
}

.infographics-embed-card--wide {
  grid-column: 1 / -1;
}

.infographics-embed-card .chart-placeholder {
  display: flex;
  flex: 1 1 auto;
  min-height: 360px;
  border: 1px solid #d6d6d6;
  background: #fff;
}

.infographics-embed-card .flourish-embed {
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
}

.infographics-embed-card .flourish-embed iframe {
  min-height: 100%;
}

.infographics-embed-card--wide .chart-placeholder,
.infographics-embed-card--wide .flourish-embed {
  min-height: 430px;
}

.genially-placeholder {
  position: relative;
  aspect-ratio: 9 / 16;
  min-height: 0;
}

.genially-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.genially-placeholder--square {
  aspect-ratio: 1 / 1;
}

.editorial-graphics--contests {
  padding-top: 12px;
}

@media (max-width: 1120px) {
  .johor-essentials-layout {
    grid-template-columns: 1fr;
  }

  .infographics-embed-card--trivia {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .infographics-segmented {
    width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .infographics-segmented button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .johor-essentials {
    padding-top: 34px;
  }

  .johor-essentials-secondary {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .infographics-embed-card--wide {
    grid-column: auto;
  }

  .infographics-embed-card .chart-placeholder,
  .infographics-embed-card .flourish-embed,
  .infographics-embed-card--wide .chart-placeholder,
  .infographics-embed-card--wide .flourish-embed {
    min-height: 300px;
  }
}

/* Original graphics layout */
.infographics-hero {
  background: none;
  border: 0;
  padding: 50px 0 22px;
}

.infographics-hero-grid {
  display: block;
}

.infographics-hero-copy {
  max-width: none;
}

.infographics-hero-copy .infographics-kicker,
.infographics-hero-copy p {
  display: none;
}

.infographics-filter {
  padding: 0 0 34px;
}

.infographics-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.infographics-control-label {
  color: #5e5e5e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.infographics-segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: var(--paper);
}

.infographics-segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
}

.infographics-segmented button.is-active {
  background: #4b4b4b;
  color: #fff;
}

.infographics-state-library,
.infographics-context {
  display: none;
}

[data-info-card][hidden] {
  display: none !important;
}

.chart-stats {
  padding: 10px 0 50px 0; /*UPDATED 15072026*/
}

.election-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-title {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
}

.chart-title span {
  font-size: 14px;
  font-weight: 400;
}

.chart-placeholder {
  overflow: hidden;
  border-radius: 8px;
}

.election-stats-grid .chart-placeholder,
.state-stats .chart-card,
.editorial-graphics .chart-placeholder {
  border: 1px solid #d6d6d6;
}

.chart-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

.state-key-facts {
  padding: 0 0 50px;
}

.state-key-facts img {
  max-width: 395px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.key-facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 395px);
  justify-content: center;
  gap: 30px;
}

.key-facts-card {
  width: 100%;
}

.key-facts-card img {
  display: block;
  width: 100%;
  height: auto;
}

.assembly-composition {
  background: #f6f6f6;
  padding: 50px 0;
}

.state-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.state-stats .chart-card {
  background: var(--paper);
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  height: auto;
  padding: 18px;
}

.editorial-graphics {
  padding: 50px 0;
}

.graphics-section-head {
  margin-bottom: 24px;
  text-align: center;
}

.graphics-section-head .section-title {
  margin: 0;
}

.editorial-graphics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 30px;
}

.editorial-graphics .chart-card {
  min-width: 0;
  height: 100%;
}

.editorial-graphics .chart-placeholder {
  background: var(--paper);
  display: flex;
  flex: 1 1 auto;
  min-height: 360px;
}

.editorial-graphics .flourish-embed {
  flex: 1 1 auto;
  width: 100%;
}

.editorial-graphics .flourish-embed iframe {
  min-height: 100%;
}

.editorial-parties-card {
  grid-column: 1 / -1;
}

.editorial-parties-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.editorial-parties-grid .chart-placeholder {
  min-height: 300px;
}

.women-voters {
  background: #aa218d;
  padding: 50px 0;
}

.women-voters .chart-card {
  align-items: center;
}

.women-voters img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .election-stats-grid,
  .editorial-graphics-grid {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .infographics-hero {
    padding: 32px 0 18px;
  }

  .infographics-filter {
    padding-bottom: 28px;
  }

  .infographics-segmented {
    width: 100%;
  }

  .infographics-segmented button {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
  }

  .election-stats-grid,
  .editorial-graphics-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .state-key-facts img {
    margin: 0 auto;
  }

  .state-stats .chart-card {
    padding: 14px;
  }

  .editorial-graphics .chart-placeholder {
    min-height: 280px;
  }

  .editorial-parties-grid {
    grid-template-columns: 1fr;
  }
}

/* Refined infographic landing layout */
.infographics-filter {
  padding: 26px 0 30px;
  border-bottom: 1px solid #ededed;
  background: #fff;
}

.infographics-controls {
  width: 100%;
}

.infographics-control-label {
  display: none;
}

.infographics-segmented {
  width: 100%;
}

.infographics-segmented button {
  flex: 1;
  min-height: 44px;
}

.state-overview {
  padding: 34px 0 0px;
  xbackground: linear-gradient(135deg, #fff 0%, #f7f7f7 100%);
}

.state-overview-grid {
  display: grid;
  gap: 26px;
}

.state-overview-card {
  display: grid;
  grid-template-columns: minmax(280px, 395px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.state-overview-card .key-facts-card {
  width: 100%;
}

.state-overview-card .key-facts-card img {
  width: 100%;
  max-width: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}

.state-overview-card .chart-card {
  min-width: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: var(--paper);
}

.state-overview-card .chart-title {
  text-align: left;
}

.state-overview-card .chart-placeholder {
  min-height: 440px;
}

.state-overview-card .flourish-embed {
  min-height: 440px;
}

.state-key-facts,
.assembly-composition {
  display: none;
}

.editorial-graphics {
  padding-top: 48px;
}

@media (max-width: 991px) {
  .state-overview-card {
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 20px;
  }

  .state-overview-card .chart-placeholder,
  .state-overview-card .flourish-embed {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .infographics-filter {
    padding: 18px 0 22px;
  }

  .state-overview {
    padding: 24px 0 36px;
  }

  .state-overview-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .state-overview-card .key-facts-card {
    max-width: 395px;
    margin: 0 auto;
  }

  .state-overview-card .chart-card {
    padding: 14px;
  }

  .state-overview-card .chart-title {
    text-align: center;
  }

  .state-overview-card .chart-placeholder,
  .state-overview-card .flourish-embed {
    min-height: 300px;
  }
}

/* Final tab treatment */
.infographics-filter {
  padding: 24px 0 0px;
  border-bottom: 0;
}

.infographics-segmented {
  width: auto;
  gap: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.infographics-segmented button {
  flex: 0 0 auto;
  min-width: 158px;
  min-height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  background: #9a9a9a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.infographics-segmented button:hover,
.infographics-segmented button.is-active {
  background: var(--brand-red);
  color: #fff;
}

@media (max-width: 767px) {
  .infographics-segmented {
    width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .infographics-segmented button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Johor essentials relayout */
.johor-essentials-layout,
.n9-essentials-layour {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}

.johor-essentials-secondary,
.n9-essentials-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.infographics-embed-card--trivia {
  width: 100%;
  max-width: none;
  margin: 0;
}

.infographics-embed-card--trivia .chart-placeholder {
  width: min(100%, 620px);
  margin: 0 auto;
}

.genially-placeholder {
  position: relative;
  aspect-ratio: 9 / 16;
  min-height: 0;
}

.genially-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.genially-placeholder.genially-placeholder--square {
  aspect-ratio: 1 / 1;
}

.infographics-embed-card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 991px) {
  .johor-essentials-secondary,
  .n9-essentials-secondary {
    gap: 22px;
  }

  .infographics-embed-card--trivia .chart-placeholder {
    width: min(100%, 560px);
  }
}

@media (max-width: 767px) {
  .johor-essentials-layout,
  .johor-essentials-secondary,
  .n9-essentials-layout,
  .n9-essentials-secondary{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .infographics-embed-card--trivia .chart-placeholder {
    width: min(100%, 420px);
  }

  .infographics-embed-card--wide {
    grid-column: auto;
  }
}

/* Final Johor editorial layout */
.johor-essentials,
.n9-essentials,
.melaka-essentials {
  padding-top: 0;
}

.johor-essentials-layout,
.n9-essentials-layout,
.melaka-essentials-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.johor-essentials-row, 
.n9-essentials-row,
.melaka-essentials-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
    margin-top:34px;
}

.johor-essentials-row--lead, 
.n9-essentials-row--lead,
.melaka-essentials-row--lead {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
}

.johor-essentials-row--durian-compare {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
}

.johor-essentials-row .infographics-embed-card,
.johor-essentials-row .infographics-embed-card--wide, 
.n9-essentials-row .infographics-embed-card,
.n9-essentials-row .infographics-embed-card--wide,
.melaka-essentials-row .infographics-embed-card,
.melaka-essentials-row .infographics-embed-card--wide {
  grid-column: auto;
  min-width: 0;
  height: 100%;
}

.johor-essentials-row .chart-card,
.n9-essentials-row .chart-card,
.melaka-essentials-row .chart-card {
  display: flex;
  flex-direction: column;
}

.johor-essentials-row .chart-placeholder,
.n9-essentials-row .chart-placeholder,
.melaka-essentials-row .chart-placeholder {
  flex: 1 1 auto;
  min-height: 430px;
  overflow: hidden;
}

.johor-essentials-row .flourish-embed,
.n9-essentials-row .flourish-embed,
.melaka-essentials-row .flourish-embed {
  min-height: 430px;
}

.johor-essentials-row--lead .infographics-embed-card--trivia .chart-placeholder,
.n9-essentials-row--lead .infographics-embed-card--trivia .chart-placeholder,
.melaka-essentials-row--lead .infographics-embed-card--trivia .chart-placeholder {
  width: 100%;
  max-width: 430px;
  min-height: 0;
  margin: 0 auto;
}

.johor-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
.johor-essentials-row--lead .infographics-embed-card--wide .flourish-embed, 
.n9-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
.n9-essentials-row--lead .infographics-embed-card--wide .flourish-embed,
.melaka-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
.melaka-essentials-row--lead .infographics-embed-card--wide .flourish-embed {
  min-height: 500px;
}

@media (max-width: 991px) {
  .johor-essentials-row,
  .johor-essentials-row--lead,
  .n9-essentials-row,
  .n9-essentials-row--lead,
  .melaka-essentials-row,
  .melaka-essentials-row--lead{
    gap: 22px;
  }
    
    .chart-stats{
        padding-top:0;
    }

  .johor-essentials-row--lead,
  .n9-essentials-row--lead,
  .melaka-essentials-row--lead{
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  }

  .johor-essentials-row .chart-placeholder,
  .johor-essentials-row .flourish-embed,
  .n9-essentials-row .chart-placeholder,
  .n9-essentials-row .flourish-embed,
  .melaka-essentials-row .chart-placeholder,
  .melaka-essentials-row .flourish-embed{
    min-height: 360px;
  }

  .johor-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
  .johor-essentials-row--lead .infographics-embed-card--wide .flourish-embed,
   .n9-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
  .n9-essentials-row--lead .infographics-embed-card--wide .flourish-embed,
  .melaka-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
  .melaka-essentials-row--lead .infographics-embed-card--wide .flourish-embed{
    min-height: 400px;
  }
}

@media (max-width: 767px) {

  .johor-essentials-layout,
  .n9-essentials-layout,
  .melaka-essentials-layout{
    gap: 24px;
  }

  .johor-essentials-row,
  .johor-essentials-row--lead,
  .johor-essentials-row--durian-compare,
  .n9-essentials-row,
  .n9-essentials-row--lead,
  .melaka-essentials-row,
  .melaka-essentials-row--lead {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .johor-essentials-row--lead .infographics-embed-card--trivia .chart-placeholder,
  .n9-essentials-row--lead .infographics-embed-card--trivia .chart-placeholder,
  .melaka-essentials-row--lead .infographics-embed-card--trivia .chart-placeholder{
    max-width: 420px;
  }

  .johor-essentials-row .chart-placeholder,
  .johor-essentials-row .flourish-embed,
  .johor-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
  .johor-essentials-row--lead .infographics-embed-card--wide .flourish-embed,
  .n9-essentials-row .chart-placeholder,
  .n9-essentials-row .flourish-embed,
  .n9-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
  .n9-essentials-row--lead .infographics-embed-card--wide .flourish-embed,
  .melaka-essentials-row .chart-placeholder,
  .melaka-essentials-row .flourish-embed,
  .melaka-essentials-row--lead .infographics-embed-card--wide .chart-placeholder,
  .melaka-essentials-row--lead .infographics-embed-card--wide .flourish-embed{
    min-height: 300px;
  }
}


@media (max-width: 1023px) {
.genz-voters {
	padding:50px 0;
}
}

@media (max-width: 767px) {
    .genz-state-stats > div {
        padding-bottom: 150% !important;
    }
}


.n9-oneitem-row {
	width: 100%;
  margin: 0 auto;
  max-width: 600px;
}

/* 22px gap between infographic rows */
section.state-overview {
  padding-bottom: 0;
  margin-bottom: 0;
}

section.editorial-graphics,
section.chart-stats,
section.women-voters {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 22px;
}

section.editorial-graphics .johor-essentials-layout,
section.editorial-graphics .n9-essentials-layout,
section.editorial-graphics .melaka-essentials-layout {
  gap: 22px;
}

section.editorial-graphics .johor-essentials-row,
section.editorial-graphics .n9-essentials-row,
section.editorial-graphics .n9-oneitem-row,
section.editorial-graphics .melaka-essentials-row {
  margin-top: 0;
  gap: 22px;
}

section.chart-stats .election-stats-grid {
  row-gap: 22px;
}

/* Melaka two-column embed rows */
.embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  row-gap: 22px;
}

.embed-card.is-wide {
  grid-column: 1 / -1;
}

.embed-card > img {
  display: block;
  width: 100%;
  height: auto;
}

.embed-card .flourish-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.embed-frame {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  aspect-ratio: 1 / var(--ratio, .75);
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .embed-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    row-gap: 22px;
  }
}