/* V4.7C — corrections after visual QA */

/* 1) Put ticker back exactly where a broadcast ticker belongs. */
body.gpv47b .gpv47b-ticker{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  top:auto !important;
  width:100% !important;
  z-index:80 !important;
  margin:0 !important;
}

/* 2) The PARTIER pseudo heading must NOT become a CSS-grid item. */
body.gpv47b .gpv47b-parties{
  position:relative !important;
  padding-top:34px !important;
}
body.gpv47b .gpv47b-parties::before{
  position:absolute !important;
  left:2px !important;
  top:0 !important;
  z-index:5 !important;
  margin:0 !important;
  pointer-events:none !important;
}

/* Preserve the original party grid geometry. */
body.gpv47b .gpv47b-parties > .party{
  min-width:0 !important;
}

/* 3) Remove duplicate native titles where V4.7B already provides a header. */
body.gpv47b .gpv47b-majority > .section-title,
body.gpv47b .gpv47b-riksdag > .section-title{
  display:none !important;
}

/* Reaction Arena: keep engine-status text, hide only the old title. */
body.gpv47b .gpv47b-reaction .showHead .section-title{
  display:none !important;
}
body.gpv47b .gpv47b-reaction .showHead{
  position:absolute !important;
  top:13px !important;
  right:12px !important;
  left:auto !important;
  z-index:6 !important;
  width:auto !important;
  margin:0 !important;
  opacity:.68 !important;
  font-size:10px !important;
  pointer-events:none !important;
}

/* 4) Tighten the new panel headers so they look like HUD labels, not extra rows. */
body.gpv47b .gpv47b-majority,
body.gpv47b .gpv47b-riksdag{
  padding-top:38px !important;
}
body.gpv47b .gpv47b-reaction{
  padding-top:42px !important;
}

/* Keep Riksdagen's seats visually dominant. */
body.gpv47b .gpv47b-riksdag .seatmap{
  margin-top:4px !important;
}

/* Make Mandatkampen's bar fill the panel again. */
body.gpv47b .gpv47b-majority .track{
  margin-top:2px !important;
}

/* The ticker label should be compact and leave more room for actual text. */
body.gpv47b .gpv47b-ticker::before{
  width:104px !important;
  box-sizing:border-box !important;
  justify-content:center !important;
  padding:0 8px !important;
}
body.gpv47b .gpv47b-ticker .marquee{
  padding-left:116px !important;
}

/* 9:16: same fixes without changing the fixed-canvas behavior. */
body[data-pixel-layout="9"].gpv47b .gpv47b-parties{
  padding-top:30px !important;
}
body[data-pixel-layout="9"].gpv47b .gpv47b-ticker{
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
}
body[data-pixel-layout="9"].gpv47b .gpv47b-ticker::before{
  width:86px !important;
  font-size:10px !important;
}
body[data-pixel-layout="9"].gpv47b .gpv47b-ticker .marquee{
  padding-left:96px !important;
}
