/* V4.7N — ONE logo layer. broadcast.js owns the actual <img>. */

.parties .party .id{
  width:56px !important;
  height:56px !important;
  min-width:56px !important;
  flex:0 0 56px !important;
  padding:0 !important;
  margin-right:10px !important;
  display:grid !important;
  place-items:center !important;
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
}

.parties .party .id::before,
.parties .party .id::after{
  content:none !important;
  display:none !important;
}

.parties .party .id > *:not(.partyLogo){
  display:none !important;
}

.parties .party .id > img.partyLogo{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:54px !important;
  height:54px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  image-rendering:pixelated !important;
  position:relative !important;
  z-index:10 !important;
  filter:drop-shadow(2px 2px 0 #000) !important;
}

.parties .party .name{
  margin-left:0 !important;
}

/* V43 legacy emblem must never coexist with the source-owned logo */
.parties .party .id .v43-party-emblem{
  display:none !important;
}

/* Riksdagen legend clean-up */
.v43-riksdag-chip img{
  width:30px !important;
  height:30px !important;
  object-fit:contain !important;
  image-rendering:pixelated !important;
  background:transparent !important;
  border:0 !important;
}

body[data-pixel-layout="9"] .parties .party .id{
  width:62px !important;
  height:62px !important;
  min-width:62px !important;
  flex-basis:62px !important;
}
body[data-pixel-layout="9"] .parties .party .id > img.partyLogo{
  width:60px !important;
  height:60px !important;
}
