/* Votality State of Play page
   Scoped to node 1309 main content only.
   Site header/nav/footer remain independent and full width.
*/

body.page-node-1309 #page,
body.page-node-1309 #main-wrapper,
body.page-node-1309 main,
body.page-node-1309 .layout-main-wrapper,
body.page-node-1309 .main-content {
 /* background: #0f1117 #10131c !important;*/
  background: #3c404d !important
	  
}
body.page-node-1309 h1 {
	color: #FFF!important;
}

/* Keep the actual page content contained, not the site header/nav. */
body.page-node-1309 #main-wrapper .container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Variables and base content styling */
body.page-node-1309 #main-wrapper {
  --surface: #161b22;
  --surface2: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;

  --alp:  #E02020;
  --lib:  #1C4F9C;
  --lnp:  #3B6DC8;
  --nat:  #006644;
  --grn:  #10A137;
  --teal: #009999;
  --ind:  #888780;
  --on:   #FF6300;
  --kap:  #8B0000;
  --ca:   #FF8C00;
  --jln:  #e9b213;
  --sff:  #7B4B00;
  --ajp:  #FF5599;
  --lcv:  #228B22;
  --ld:   #CC7700;
  --uap:  #CCAA00;
  --clp:  #2255AA;
  --av:   #9900AA;
  --fair: #CC4400;

  color: var(--text);
}

/* Hide unwanted default page title space if present. */
body.page-node-1309 #main-wrapper .page-title,
body.page-node-1309 #main-wrapper h1.title {
  display: none;
}

/* The content body itself */
body.page-node-1309 #main-wrapper .field--name-body {
  padding: 32px 0 64px;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.page-node-1309 #main-wrapper *,
body.page-node-1309 #main-wrapper *::before,
body.page-node-1309 #main-wrapper *::after {
  box-sizing: border-box;
}

/* This targets only the header pasted inside the Basic Page body, not the real site header. */
body.page-node-1309 #main-wrapper .field--name-body > header {
  text-align: center;
  margin-bottom: 48px;
  padding: 32px 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 50px!important;
}

body.page-node-1309 #main-wrapper .field--name-body > header .flag-row {
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

body.page-node-1309 #main-wrapper .field--name-body > header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

body.page-node-1309 #main-wrapper .field--name-body > header p.subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
}

body.page-node-1309 #main-wrapper .jurisdiction {
  margin-bottom: 36px;
}

body.page-node-1309 #main-wrapper .jurisdiction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: var(--surface2);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

body.page-node-1309 #main-wrapper .jurisdiction-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

body.page-node-1309 #main-wrapper .jurisdiction-header p {
  margin: 0 0 0 auto;
}

body.page-node-1309 #main-wrapper .jurisdiction-header .meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

body.page-node-1309 #main-wrapper .chambers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.page-node-1309 #main-wrapper .chambers.unicameral {
  grid-template-columns: 1fr;
}

body.page-node-1309 #main-wrapper .chamber-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

body.page-node-1309 #main-wrapper .chamber-title {
  padding: 10px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

body.page-node-1309 #main-wrapper .chamber-title .house-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: right;
}

body.page-node-1309 #main-wrapper table,
body.page-node-1309 #main-wrapper table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

body.page-node-1309 #main-wrapper thead th {
  padding: 7px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

body.page-node-1309 #main-wrapper thead th.right {
  text-align: right;
}

body.page-node-1309 #main-wrapper tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

body.page-node-1309 #main-wrapper tbody tr:last-child {
  border-bottom: none;
}

body.page-node-1309 #main-wrapper tbody tr:hover {
  background: var(--surface2);
}

body.page-node-1309 #main-wrapper td {
  padding: 8px 12px;
  font-size: 13px;
  vertical-align: middle;
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

body.page-node-1309 #main-wrapper td.seats {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}

body.page-node-1309 #main-wrapper td.pct {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  padding-right: 14px;
}

body.page-node-1309 #main-wrapper .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
  vertical-align: middle;
}

body.page-node-1309 #main-wrapper .bar-cell {
  padding: 8px 12px;
  vertical-align: middle;
  width: 80px;
}

body.page-node-1309 #main-wrapper .bar {
  height: 7px;
  border-radius: 3px;
  min-width: 2px;
  background: var(--accent);
}

body.page-node-1309 #main-wrapper .total-row td {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px 8px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

body.page-node-1309 #main-wrapper .govt-badge {
  display: inline-block;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

body.page-node-1309 #main-wrapper .govt {
  background: rgba(88,166,255,0.15);
  color: #58a6ff;
}

body.page-node-1309 #main-wrapper .opp {
  background: rgba(255,100,0,0.12);
  color: #ff8c55;
}

body.page-node-1309 #main-wrapper .note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  padding: 0 4px;
  font-style: italic;
}

/* This targets only the footer pasted inside the Basic Page body, not the real site footer. */
body.page-node-1309 #main-wrapper .field--name-body > footer {
  margin-top: 56px;
  padding: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  background: var(--surface);
  border-radius: 12px;
}

body.page-node-1309 #main-wrapper .field--name-body > footer p {
  margin: 0;
}

body.page-node-1309 #main-wrapper .field--name-body > footer p + p {
  margin-top: 6px;
}

body.page-node-1309 #main-wrapper .field--name-body > footer a {
  color: var(--accent);
  text-decoration: none;
}

body.page-node-1309 #main-wrapper .field--name-body > footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body.page-node-1309 #main-wrapper .chambers {
    grid-template-columns: 1fr;
  }

  body.page-node-1309 #main-wrapper .jurisdiction-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page-node-1309 #main-wrapper .jurisdiction-header p {
    margin-left: 0;
  }

  body.page-node-1309 #main-wrapper .jurisdiction-header .meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body.page-node-1309 #main-wrapper .field--name-body {
    padding: 24px 0 48px;
  }

  body.page-node-1309 #main-wrapper .field--name-body > header h1 {
    font-size: 20px;
  }

  body.page-node-1309 #main-wrapper .bar-cell {
    display: none;
  }

  body.page-node-1309 #main-wrapper .chamber-title {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page-node-1309 #main-wrapper .chamber-title .house-label {
    text-align: left;
  }
}
/* State of Play refinements — soften Bootstrap table borders and restore party colours */
body.page-node-1309 #main-wrapper .chamber-card table.table {
  border: 0 !important;
}

body.page-node-1309 #main-wrapper .chamber-card table.table th,
body.page-node-1309 #main-wrapper .chamber-card table.table td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(139, 148, 158, 0.18) !important;
}

body.page-node-1309 #main-wrapper .chamber-card table.table thead th {
  border-bottom: 1px solid rgba(139, 148, 158, 0.22) !important;
}

body.page-node-1309 #main-wrapper .chamber-card table.table tbody tr:last-child td {
  border-bottom: 0 !important;
}

body.page-node-1309 #main-wrapper .state-play-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--party-colour, #58a6ff);
  vertical-align: middle;
}

body.page-node-1309 #main-wrapper .bar {
  background: var(--party-colour, #58a6ff);
}

/* State of Play page heading colour */
body.page-node-1309 #main-wrapper .field--name-body > header h1 {
  color: #fff !important;
}

body.page-node-1309 #main-wrapper .field--name-body > header .flag-row {
  display: inline-block;
  font-size: 16px;
  margin: 0 6px 0 0;
  letter-spacing: 0;
  vertical-align: middle;
}

/* State of Play header selector fix */
body.page-node-1309 #main-wrapper .field--name-body header {

  text-align: center !important;
  margin-bottom: 48px !important;
  padding: 32px 20px 24px !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: 16px !important;
}

body.page-node-1309 #main-wrapper .field--name-body header h1 {

  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #fff !important;

  letter-spacing: -0.5px !important;
}

body.page-node-1309 #main-wrapper .field--name-body header p.subtitle {

  color: var(--muted) !important;
  margin: 6px 0 0 !important;
  font-size: 13px !important;
}

body.page-node-1309 #main-wrapper .field--name-body header .flag-row {

  display: inline-block !important;
  font-size: 16px !important;
  margin: 0 6px 0 0 !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
}
