
#elections-2022-homepage .mini-grid-container {
  position: relative;
}
#elections-2022-homepage .mini-grid {
  /* border-top: 0.75px solid #000; */

  width: 100%;
  display: grid;
  column-gap: 2px;
  row-gap: 2px;
  grid-template-columns: repeat(15,auto);
  position: static;
  max-width: 100%;
  /* padding-top: 5px;
  margin-top: 5px; */
}
#elections-2022-homepage #us-house .mini-grid {
  grid-template-columns: repeat(5,auto);
}

#elections-2022-homepage .mini-grid-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: gray;
  margin: 10px 0px;
}

#elections-2022-homepage .mini-grid-head  > * {
  margin-bottom: 8px;
}
#elections-2022-homepage .mini-grid .cell {
  position: static;
}
#elections-2022-homepage .mini-grid .cell span {
  pointer-events: none;
}

#elections-2022-homepage .mini-grid .dem-uncontested,
#elections-2022-homepage .mini-grid .dem-win  {
  color: #fff;
  font-weight: bold;
  text-shadow: 1.5px 1.5px #000;
  background-color: #000e70;
  opacity: 0.8;
  background-size: 7px 7px;
  background-image: repeating-linear-gradient(45deg, #949494 0, #949494 0.7000000000000001px, #000e70 0, #000e70 50%);
}

#elections-2022-homepage .mini-grid .dem-lead {
  color: #000;
  font-weight: bold;
  background-color: #b1cee7;
  opacity: 1;
  background-size: 7px 7px;
  background-image: repeating-linear-gradient(45deg, #fff6f6 0, #fff6f6 0.8px, #b1cee7 0, #b1cee7 50%);
}

/* #elections-2022-homepage .mini-grid .dem-win {
  background-color: #3a4593;
  color: #fff;
  font-weight: bold;
  text-shadow: 1.5px 1.5px #000;
} */
/* #elections-2022-homepage .mini-grid .gop-lead {
  background-color: #d78888;
} */
#elections-2022-homepage .mini-grid .gop-lead {
  color: #000;
  font-weight: bold;
  /* text-shadow: 1.5px 1.5px #000; */
  background-color: #cb6965;
  opacity: 1;
  background-size: 7px 7px;
  background-image: repeating-linear-gradient(-45deg, #fff6f6 0, #fff6f6 0.8px, #ebb1af 0, #ebb1af 50%);
}
/* #elections-2022-homepage .mini-grid .gop-win {
  background-color: #884141;
  color: #fff;
  font-weight: bold;
  text-shadow: 1.5px 1.5px #000;
} */
#elections-2022-homepage .mini-grid .gop-uncontested,
#elections-2022-homepage .mini-grid .gop-win  {
  color: #fff;
  font-weight: bold;
  text-shadow: 1.5px 1.5px #000;
  background-color: #700000;
opacity: 0.8;
background-size: 7px 7px;
background-image: repeating-linear-gradient(-45deg, #949494 0, #949494 0.7000000000000001px, #700000 0, #700000 50%);
}

#elections-2022-homepage .mini-grid-head span {
  font-weight: bold;
  font-size: 24px;
}
#elections-2022-homepage .mini-grid-head .dem  span.win {
  color: #333f8e;
}
#elections-2022-homepage .mini-grid-head .dem  span.lead {
  color: #6296c4;
}
#elections-2022-homepage .mini-grid-head .gop  span.win {
  color: #8f3b37;
}
#elections-2022-homepage .mini-grid-head .gop  span.lead {
  color: #cb6965;
}
/* #elections-2022-homepage #us-house .mini-grid  {
  grid-template-columns: repeat(5,auto);
} */
#elections-2022-homepage .mini-grid > * {
  width: 100%;
  height: 25px;
  width: 100%;
  background-color: #efefef;
  border: 1px solid #efefef;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 12px;
}
#elections-2022-homepage .mini-grid > *:hover {
   border: 1px solid #333;
}
#elections-2022-homepage .race-results .main {
  position: relative;
}
#elections-2022-homepage .main .tooltip {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  font-size: 0.9em;
  left: 0;
  line-height: 1.4em;
  padding: 6px;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: all 0.1s ease-out;
  z-index: 999;
  -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

#elections-2022-homepage .main .tooltip .tooltip-hed {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 3px;
  align-items: center;
  max-width: fit-content;
}

#elections-2022-homepage .main .tooltip .tooltip-hed .lead-dem {
  font-weight: bold;
  color: blue;
}
#elections-2022-homepage .main .tooltip .tooltip-hed .lead-gop {
  font-weight: bold;
  color: red;
}

#elections-2022-homepage .main .tooltip .precincts-reporting {
  font-size: 11px;
}

#elections-2022-homepage .main .tooltip .tooltip-table .table-head {
  display: grid;
  grid-template-columns: 2.5fr 0.5fr 1fr 1fr;
  column-gap: 2px;
  grid-template-areas: "name party votes pct";
  align-items: center;
  border-bottom: 1px solid #ccc;
  min-height: 20px;
}

#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .table-head {
  display: grid;
  grid-template-columns: 2.5fr 0.5fr 2fr;
  column-gap: 2px;
  grid-template-areas: "name party .";
  align-items: center;
  border-bottom: 1px solid #ccc;
  min-height: 20px;
}

#elections-2022-homepage .main .tooltip .tooltip-table .table-head > *,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .table-head > * {
  font-size: 10px;
  color: gray;
}
#elections-2022-homepage .main .tooltip .tooltip-table .table-head .name,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .table-head .name  {
  grid-area: name;
}
#elections-2022-homepage .main .tooltip .tooltip-table .table-head .party,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .table-head .party {
  grid-area: party;
}

#elections-2022-homepage .main .tooltip .tooltip-table .table-head .votes,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .table-head .votes {
  grid-area: votes;
  text-align: right;
}
#elections-2022-homepage .main .tooltip .tooltip-table .table-head .pct,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .table-head .pct  {
  grid-area: pct;
  text-align: right;
}

#elections-2022-homepage .main .tooltip .tooltip-table .row {
  display: grid;
  grid-template-columns: 0.1fr 2.4fr 0.5fr 1fr 1fr;
  align-items: center;
  column-gap: 2px;
  grid-template-areas: "color name party votes pct";
  border-bottom: 1px solid #ccc;
  min-height: 20px;
}
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row  {
  display: grid;
  grid-template-columns: 0.1fr 2.4fr 0.5fr 2fr;
  align-items: center;
  column-gap: 2px;
  grid-template-areas: "color name party uncontested";
  border-bottom: 1px solid #ccc;
  min-height: 20px;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row > *,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row > * {
  font-size: 12px;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row:last-child,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row:last-child {
  border-bottom: none;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row .color,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .color {
  grid-area: color;
  width: 100%;
  height: 100%;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row .name,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .name {
  grid-area: name;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row .party,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .party  {
  grid-area: party;
  font-size: 10px;
  color: gray;
}

#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .uncontested  {
  grid-area: uncontested;
  font-size: 10px;
  color: gray;
  text-align: right;
}


#elections-2022-homepage .main .tooltip .tooltip-table .row .color.dem,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .color.dem  {
  background-color: #333f8e;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row .color.gop,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .color.gop {
  background-color: #8f3b37;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row .color.lib,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .color.lib {
  background-color: #fee391;
}
#elections-2022-homepage .main .tooltip .tooltip-table .row .pct,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .pct {
  grid-area: pct;
  text-align: right;
  font-weight: bold;
}

#elections-2022-homepage .main .tooltip .tooltip-table .row .votes,
#elections-2022-homepage .main .tooltip .tooltip-table-uncontested .row .votes {
  grid-area: votes;
  text-align: right;
}


@media(max-width: 600px) {
  #elections-2022-homepage .mini-grid {
    grid-template-columns: repeat(5,auto);
  }
}
@media(max-width: 450px) {
  #elections-2022-homepage .mini-grid-head {
    display: block;
  }
}
