/* ============================================================
   V4.8L — MANDATKAMPEN HEADER CLEANUP
   Exact known DOM inside majority:
     .majority
       .track
       .v48dOutcome
   The old inner "MANDATKAMPEN // 175" is a ::before decoration.
   ============================================================ */

/* Kill ONLY the duplicate inner title badge from V47B */
.majority.gpv47b-majority::before,
.gpv47b .gpv47b-majority::before{
  content:none !important;
  display:none !important;
}

/* Majority inner card: simple two-lane layout */
.majority.gpv47b-majority,
.gpv47b .gpv47b-majority{
  position:relative !important;
  display:block !important;
  box-sizing:border-box !important;

  padding:0 !important;
  min-height:74px !important;
  height:74px !important;
  max-height:74px !important;

  overflow:hidden !important;
}

/* Red/blue mandate bar gets the full lower lane */
.majority .track{
  position:absolute !important;
  left:12px !important;
  right:12px !important;
  top:auto !important;
  bottom:10px !important;

  width:auto !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;

  margin:0 !important;
  padding:0 !important;
  transform:none !important;

  z-index:10 !important;
  overflow:visible !important;
}

/* Do not create any synthetic second 175 */
.majority .track::after{
  content:none !important;
  display:none !important;
}

/* Native center marker stays */
.majority .track .mid{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  z-index:30 !important;
}

/* Outcome text sits ABOVE the bar, aligned to the right */
.majority > .v48dOutcome{
  position:absolute !important;
  top:5px !important;
  right:12px !important;
  left:auto !important;
  bottom:auto !important;

  width:auto !important;
  max-width:58% !important;
  height:18px !important;
  min-height:18px !important;
  max-height:18px !important;

  transform:none !important;
  margin:0 !important;
  padding:0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;

  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;

  color:#f8fbff !important;
  opacity:1 !important;
  visibility:visible !important;

  font-family:"Courier New",monospace !important;
  font-size:10px !important;
  font-weight:900 !important;
  line-height:18px !important;
  letter-spacing:.07em !important;

  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;

  text-shadow:2px 2px 0 #000 !important;
  z-index:35 !important;
}

/* The legacy source outcome stays hidden;
   V48E continues mirroring its live value into v48dOutcome. */
.majorityLabel{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
}

/* Portrait */
body[data-pixel-layout="9"] .majority.gpv47b-majority{
  min-height:94px !important;
  height:94px !important;
  max-height:94px !important;
}

body[data-pixel-layout="9"] .majority > .v48dOutcome{
  top:7px !important;
  right:16px !important;
  height:22px !important;
  min-height:22px !important;
  max-height:22px !important;
  font-size:11px !important;
  line-height:22px !important;
}

body[data-pixel-layout="9"] .majority .track{
  left:16px !important;
  right:16px !important;
  bottom:11px !important;
  height:42px !important;
  min-height:42px !important;
  max-height:42px !important;
}
