/* #elections-2022-homepage {
  box-sizing: border-box;
  color: #2a2a2a;
  display: block;
  font-family: "benton-sans", sans-serif;
  max-width: 900px;
  position: relative;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
} */

#elections-2022-homepage h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-size-adjust: 100%;
}

#elections-2022-homepage h4 {
  color: #656565;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-size-adjust: 100%;
}

#elections-2022-homepage img {
  width: 100%;
}

#elections-2022-homepage text {
  font-size: 14px;
  font-weight: 300;
  pointer-events: none;
}

#elections-2022-homepage .container {
  position: relative;
  box-sizing: border-box;
  padding: 10px;
  max-width: 300px;
}

#elections-2022-homepage .container.map-2 {
  margin: 15px auto;
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  max-width: 600px;
}
#elections-2022-homepage .container > * {
  position: relative;
  /* border: 1px solid red; */
  box-sizing: border-box;
  /* padding-right: 50px; */
}
#elections-2022-homepage .graphic-attribution span {
  color: #999999;
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

#elections-2022-homepage .key {
  left: 0%;
  position: absolute;
  text-align: left;
  top: 35%;
  width: 34%;
}

#elections-2022-homepage .key p {
  color: #333333;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}

#elections-2022-homepage .key .hover-note {
  color: rgb(102, 102, 102);
  font-size: 13px;
  font-weight: 300;
  line-height: 17px;
  margin: 15px auto;
}

#elections-2022-homepage .key .values {
  padding-left: 5px;
  padding-right: 15px;
}

#elections-2022-homepage .key .values .color-values {
  background: rgb(221, 246, 229);
  display: grid;
  height: 15px;
  width: 100%;
}

#elections-2022-homepage .key .values .color-values span {
  display: block;
  height: 15px;
  width: 100%;
}

#elections-2022-homepage .key .values .number-values {
  display: block;
  font-size: 12px;
  height: 10px;
  position: relative;
  width: 100%;
}

#elections-2022-homepage .key .values .number-values span {
  display: block;
  height: fit-content;
  margin: 0;
  position: absolute;
  transform: translate(-50%, 5px);
}

#elections-2022-homepage .key .values .number-values span::before {
  background-color: #000;
  content: "";
  display: block;
  height: 20px;
  left: 50%;
  position: absolute;
  transform: translate(0%, -20px);
  width: 1px;
}

#elections-2022-homepage .map {
  position: relative;
}

#elections-2022-homepage .map .choropleth {
  stroke-width: 0.5;
}

#elections-2022-homepage .map .community-area-label {
  display: inline-block;
  fill: #2a2a2a;
  font-size: 10px;
  font-weight: bold;
  image-rendering: crisp-edges;
  letter-spacing: 1px;
  line-height: 10px;
  pointer-events: none;
  position: absolute;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1px;
  text-align: center;
  text-shadow: 0px 0px 1.2px rgba(255, 255, 255, 1),
    0px 0px 1.2px rgba(255, 255, 255, 1), 0px 0px 1.2px rgba(255, 255, 255, 1),
    0px 0px 1.2px rgba(255, 255, 255, 1);
    /* color: #000; */
  text-transform: capitalize;
  visibility: visible;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
#elections-2022-homepage .map .community-area-label.chicago {
  transform: translate(15%, -47%);
}
#elections-2022-homepage .map .community-area-label.rockford {
  transform: translate(-112%, -50%);
}
#elections-2022-homepage .map .community-area-label.peoria {
  transform: translate(26%, -52%);
}
#elections-2022-homepage .map .community-area-label.springfield {
  transform: translate(-108%, -75%);
}
#elections-2022-homepage .map .highway-circles {
  fill: #efefef;
  pointer-events: none;
  stroke: #2a2a2a;
  stroke-width: 0.5;
}

#elections-2022-homepage .map .highway-label {
  font-size: 10px;
  font-weight: 700;
  fill: #2a2a2a;
  pointer-events: none;
  text-anchor: middle;
}

#elections-2022-homepage .map .overlay {
  fill-opacity: 0;
}

#elections-2022-homepage .map .overlay:hover {
  stroke: #000;
  stroke-width: 1px;
}

#elections-2022-homepage .map .roads {
  fill: none;
  stroke: #d6d6d6;
  stroke-width: 1;
}
#elections-2022-homepage .btn-container {
  margin: 12px auto;
  max-width: fit-content;
  display: grid;
  grid-template-columns: auto auto;
}
#elections-2022-homepage .btn-container button {
  background: #fff;
  border: 1px solid #000;
  padding: 8px 5px;
  box-sizing: border-box;
}
#elections-2022-homepage .btn-container button.active {
  background: #000;
  color: #fff;
  font-weight: bold;
}
#elections-2022-homepage .btn-container button:first-child {
  border-right: none;
}

#elections-2022-homepage .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 .tooltip p {
  font-size: 13px;
  margin: 0;
}

#elections-2022-homepage .tooltip .district {
  color: #777777;
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 5px;
}

#elections-2022-homepage .tooltip .primary-value {
  font-weight: bold;
}

@media (max-width: 650px) {
  #elections-2022-homepage .key {
    margin: 0 auto;
    max-width: 300px;
    position: relative;
    width: 100%;
  }
  #elections-2022-homepage .key .values {
    margin: 0 auto;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #elections-2022-homepage .map .community-area-label {
    font-size: 8px;
    line-height: 8px;
  }
  #elections-2022-homepage .map .highway-label {
    font-size: 13px;
    font-weight: 700;
  }
}

/*NEW TOOLTIP*/
/* #elections-2022-homepage .tooltip-table {
display: grid;
grid-template-columns: auto 1fr 1fr 1fr;
text-align: right;
}
#elections-2022-homepage .tooltip-table p {
  font-size: 11px;
}
#elections-2022-homepage .tooltip-table > * {
  padding: 5px 0px;
  border-bottom: 1px solid #ccc;
}

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

#elections-2022-homepage .tooltip .tooltip-hed .lead-dem {
  font-weight: bold;
  color: blue;
}
#elections-2022-homepage .tooltip .tooltip-hed .lead-gop {
  font-weight: bold;
  color: red;
}
#elections-2022-homepage .tooltip-table .table-head {
  color: gray;
  font-size: 10px;
  /* background-color: #f8f8f8; */

#elections-2022-homepage .tooltip-table .cand-name {
  text-align: left;
}

#elections-2022-homepage .tooltip-table .cand-party {
  text-align: left;
}

#elections-2022-homepage .tooltip-table .cand-pct {
  font-weight: bold;
}
*/ #elections-2022-homepage .name-container {
  margin: 0 auto;
  /* max-width: fit-content; */
}
#elections-2022-homepage .name-container .hed {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 5px;
  align-items: flex-end;
  border-bottom: 0.5px solid #000;
}
#elections-2022-homepage .name-container img {
  display: block;
  width: 100%;
  max-width: 60px;
}
#elections-2022-homepage .name-container h5 {
  text-align: left;
  font-size: 19px;
}

#elections-2022-homepage .name-container span {
  color: gray;
  display: block;
  margin: 0 auto;
  font-size: 12px;
  /* text-align: center; */
}

#elections-2022-homepage .size-of-lead-text {
  margin: 0 auto;
  max-width: 300px;
  color: gray;
  text-align: center;
  font-size: 13px;
  display: none;
}
#elections-2022-homepage .margin-text {
  /* border: 1px solid red; */
  width: 100%;
  margin: 8px auto;
  margin-bottom: 12px;
}
#elections-2022-homepage .margin-text h6 {
  font-size: 12px;
  margin-bottom: 6px;
}
#elections-2022-homepage .margin-text .key-rect {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 2px;
  /* height: 10px; */
  font-weight: bold;
}

#elections-2022-homepage .margin-text .key-rect span {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ccc;
  padding: 5px;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
}

#elections-2022-homepage .margin-text .key-text {
  width: 80%;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

#elections-2022-homepage .margin-text .key-text span {
  width: 25px;
  /* border: 1px solid blue; */
  text-align: center;
}

#elections-2022-homepage .Dem .margin-text .key-rect span.pct_0 {
  background-color: #ceeafd;
  color: #000;
}
#elections-2022-homepage .Dem .margin-text .key-rect span.pct_10 {
  background-color: #92bde0;
  color: #000;
}
#elections-2022-homepage .Dem .margin-text .key-rect span.pct_20 {
  background-color: #5295cc;
}
#elections-2022-homepage .Dem .margin-text .key-rect span.pct_30 {
  background-color: #1375b7;
}

#elections-2022-homepage .GOP .margin-text .key-rect span.pct_0 {
  background-color: #fce0df;
  color: #000;
}
#elections-2022-homepage .GOP .margin-text .key-rect span.pct_10 {
  background-color: #eaa9a9;
  color: #000;
}
#elections-2022-homepage .GOP .margin-text .key-rect span.pct_20 {
  background-color: #db7171;
}
#elections-2022-homepage .GOP .margin-text .key-rect span.pct_30 {
  background-color: #c93135;
}

#elections-2022-homepage .Lib .margin-text .key-rect span.pct_0 {
  background-color: #ffffd4;
  color: #000;
}
#elections-2022-homepage .Lib .margin-text .key-rect span.pct_10 {
  background-color: #fed98e;
  color: #000;
}
#elections-2022-homepage .Lib .margin-text .key-rect span.pct_20 {
  background-color: #fe9929;
}
#elections-2022-homepage .Lib .margin-text .key-rect span.pct_30 {
  background-color: #cc4c02;
}

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

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

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

#elections-2022-homepage .maps .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 .maps .tooltip .tooltip-table .table-head > * {
  font-size: 10px;
  color: gray;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .table-head .name {
  grid-area: name;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .table-head .party {
  grid-area: party;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .table-head .votes {
  grid-area: votes;
  text-align: right;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .table-head .pct {
  grid-area: pct;
  text-align: right;
}

#elections-2022-homepage .maps .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 .maps .tooltip .tooltip-table .row > * {
  font-size: 12px;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .row:last-child {
  border-bottom: none;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .row .color {
  grid-area: color;
  width: 100%;
  height: 100%;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .row .name {
  grid-area: name;
}
#elections-2022-homepage .maps .tooltip .tooltip-table .row .party {
  grid-area: party;
  font-size: 10px;
  color: gray;
}

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

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


@media (max-width: 600px) {
  #elections-2022-homepage .container {
    display: block;
  }
  #elections-2022-homepage .container > * {
    margin: 0 auto;
    max-width: 300px;
  }
  #elections-2022-homepage .container.map-2 {
    display: block;
  }
  #elections-2022-homepage .container.map-2 > * {
    margin: 0 auto;
    max-width: 300px;
  }
}