/* GENERAL TYPOGRAPHY */
.gif-chart text {
  font-size: 15px;
}

.wp-admin .gif-landing-hero__headline--title sup, .gif-landing-hero__headline--title sup {
    font-size: 35%;
    font-weight: 300;
    top: -1.25em;
}

main h1,
main h2 {
  font-family: "Knockout 71 A", "Knockout 71 B";
  text-transform: uppercase;
}

main h1 {
  font-size: 82px;
  color: white;
  text-align: left;
}

main h2 {
  font-size: 4rem;
  text-align: center;
  color: var(--bunting);
}

main h3 {
  font-size: 0.75rem;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  text-transform: uppercase;
}

main ul,
main li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

main b,
main strong {
  font-weight: bold;
}

main p {
  color: var(--cello);
}

.is-docked .gif-nav__contain {
  margin-top: 0 !important; /*Prevents top nav from blocking view when observer fires */
}

/* GENERAL STRUCTURE */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B",
    sans-serif;
  font-weight: 300;
}

main {
  position: relative;
}

main > section {
  min-height: 100vh;
  padding: 4.5rem 0;
}

section header {
  margin: 0 auto 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section header > * {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

section header .header-copy {
  line-height: 150%;
}

.section-title b {
  font-weight: initial;
  color: var(--pale-red);
}

.section-subtitle {
  color: var(--cello);
}

.container {
  margin: auto;
  height: 100%;
  width: calc(100% - var(--margin-double));
  display: flex;
  flex-direction: column;
}

.container > * {
  z-index: 2;
}

section .container > main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  height: 100%;
  /* overflow: auto; */
}

#every-state-ranked main {
  /* overflow: auto; */
  z-index: 9;
}

.mobile-filter {
  width: 80%;
  display: none;
}

.mobile-filter .dropdown {
  width: 100%;
}

.mobile-filter .selector {
  color: var(--bunting);
  background-color: #ffffff;
  border-color: #28509c;
  width: 100%;
}

.mobile-filter .dropdown svg {
  color: #28509c;
}

.mobile-filter .dropdown-content {
  width: 100%;
}

.mobile-filter button {
  width: 100%;
  cursor: pointer;
}

.mobile-filter #show-more {
  margin-bottom: 24px;
  display: none;
}

.mobile-us-table {
  margin-top: 32px;
}

/* HERO */

#hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding-top: 0;
  padding-bottom: 5rem;
  min-height: 550px;
}

#hero p {
  color: white;
}

#hero:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  position: absolute;
  top: 0;
  background-color: #181c4b00;
  background: linear-gradient(-90deg, rgba(23, 28, 75, 0) 0%, #171c4b 100%),
    linear-gradient(180deg, rgba(23, 28, 75, 0) 50%, #171c4b 100%),
    url(../img/map-background.jpg) no-repeat;
  /* background-position: right top; */
  background-position: center;
  background-size: cover;
}

#hero .gif-landing-hero__content {
  margin-top: 15.0625rem;
}

#hero .gif-container {
  justify-content: center;
  z-index: 5;
}

.gif-landing-hero__overlay {
  height: initial !important;
}

#hero .subtitle {
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-size: 1.4rem;
  line-height: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

#hero .subtitle p {
  margin: 0;
}

#hero .copy {
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.8125rem;
}

/* STATE RANKINGS SECTION */

.state-rankings {
  height: 100%;
  background-color: rgba(40, 81, 156, 0.13);
  padding-bottom: 130px;
}

.state-rankings main {
  flex-direction: column;
  align-items: center;
}

/* table toggle */

.toggle-container {
  position: relative;
  display: inline-block;
  max-width: initial;
  width: 180px;
  max-height: initial;
  height: 62px;
  border: 4px solid var(--dusk-blue);
  border-radius: 42px;
  background-color: white;
  overflow: hidden;
  cursor: pointer;
}

/* Hide default HTML checkbox */
.toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.toggle-container .slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 42px;
}

.toggle-container .slider:before {
  position: absolute;
  content: "";
  height: 43.5px;
  width: 75px;
  left: 5px;
  bottom: 5.5px;
  background-color: var(--cello);
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-radius: 42px;
}

.toggle-container .map-label {
  position: absolute;
  top: 35%;
  left: 25px;
  text-transform: uppercase;
  -webkit-transition: 0.1s;
  transition: 0.1s;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.toggle-container .table-label {
  position: absolute;
  top: 35%;
  right: 20px;
  text-transform: uppercase;
  -webkit-transition: 0.1s;
  transition: 0.1s;
  color: var(--pale-red);
  font-weight: bold;
  cursor: pointer;
}

.toggle-container input:checked ~ .table-label {
  color: white;
}

.toggle-container input:checked ~ .map-label {
  color: var(--pale-red);
  cursor: pointer;
}

.toggle-container input:focus + .slider {
  box-shadow: 0 0 1px var(--valencia);
  border-radius: 42px;
}

.toggle-container input:checked + .slider:before {
  -webkit-transform: translateX(87px);
  -ms-transform: translateX(87px);
  transform: translateX(87px);
}

#us-table {
  display: none;
  width: 100%;
  overflow: auto;
  white-space: nowrap;
  padding: 25px;
  margin-left: -25px;
  margin-right: -25px;
}

table {
  margin: 1rem auto;
  width: 100%;
  border-collapse: separate;
  border: solid 2px var(--bunting);
  border-radius: 10px;
  background-color: white;
  overflow: hidden;
  box-shadow: 0px 4px 22px rgb(40 80 156 / 38%);
}

table th {
  /* font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B"; */
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-weight: 400;
  font-size: 20px;
  line-height: 130%;
  text-align: center;
  background-color: var(--bunting);
  color: #fff;
  padding: 2rem 3rem 2rem 1rem;
  border-right: 1px solid #fff;
  border-bottom: 2px solid var(--bunting);
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  text-transform: uppercase;
}

.state-rankings table th svg {
    height: 12px;
    width: 12px;
}

.state-rankings table th path {
    fill: var(--pale-red);
}

.state-rankings table th > span {
  display: block;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-size: 14px;
}

.state-rankings table th button:first-of-type {
  position: absolute;
  top: 35%;
  right: 20px;
}

.state-rankings table th button:last-of-type {
  position: absolute;
  bottom: 30%;
  right: 20px;
}

.state-rankings table th button:last-of-type svg {
  transform: rotate(180deg);
}

.state-rankings table th button {
  width: 1.25rem;
  height: 1.25rem;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  text-align: center;
  position: relative;
  transition: all 100ms ease-in-out;
  cursor: pointer;
}

.state-rankings table th button:hover {
  opacity: 0.8;
}

.state-rankings table th button::before {
  position: absolute;
  top: -4px;
  left: -4.5px;
  font-size: 1.65rem;
}

/* table th:first-of-type {
  border-top-left-radius: 10px;
} */

table th:last-of-type {
  /* border-top-right-radius: 10px; */
  border-right: none;
}

table td {
  padding: 1.25rem 0;
  text-align: center;
  vertical-align: middle;
  border-right: solid 1px #eee;
}
table td:last-of-type {
  border-right: none;
}

.state-rankings table .strength-rank,
.state-rankings table .state-name {
  font-weight: 700;
}

.state-rankings table .state-name {
  text-align: left;
  padding: 0 2rem;
}

.state-rankings table .state-name a {
  text-decoration: none;
  padding-left: 25px;
  background-size: auto 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  color: var(--bunting);
}

.state-rankings table .state-name a svg {
  margin-right: 0.75rem;
  pointer-events: none;
  width: 20px;
}

.state-rankings table tbody tr:hover a svg > * {
  stroke: white;
}

.state-rankings table tr:hover a svg circle {
  fill: white;
}

.state-rankings table tr:hover a svg .scorecard-check {
  stroke: var(--pale-red);
}

.state-rankings table .state-name a span {
  border-bottom: solid var(--cello) 2px;
  pointer-events: none;
}

.state-rankings table .state-name a:visited {
  color: var(--bunting);
  text-decoration-color: var(--cello);
}

.state-rankings table tr:hover a:visited {
  color: white;
  text-decoration-color: var(--cello);

}

.state-rankings table tr:hover a span {
  border-bottom: solid white 2px;
}

.state-rankings table td.grade span {
  display: inline-flex;
  font-size: 18px;
  border-radius: 50%;
  background-color: #e1e3f6;
  font-weight: 700;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.state-rankings table tr {
  position: relative;
  color: var(--bunting);
}

.state-rankings table tr:hover {
  background-color: var(--pale-red);
  color: white
}

.state-rankings table tr:hover a {
  color: white;
}

.state-rankings table tr:hover .grade span {
  background-color: var(--bunting);
}

.state-rankings table tbody tr:not(:first-child)::after {
  content: "";
  width: 95%;
  height: 1px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d4dceb;
  text-align: center;
}

.state-rankings table tr:hover::after {
  background-color: transparent;
}

.state-rankings .table-footer {
  text-align: left;
  vertical-align: middle;
}

.table-footer {
  background-color: var(--bunting);
  color: white;
  height: 88px;
}

#use-table .table-footer {
  vertical-align: center;
}

.table-footer span {
  display: inline-block;
  margin-left: 3rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-right: 24px;
}

.table-footer a {
  display: inline-block;
  margin-right: 20px;
}

/* MAP */

.switches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(50% + 90px);
  margin: 0 auto 2rem 0;
}

.selector {
  display: block;
  text-transform: uppercase;
  border: solid 4px #bdc2d8;
  border-radius: 10px;
  background-color: #bdc2d8;
  width: 236px;
  height: 62px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-weight: 600;
  font-size: 18px;
  color: var(--bunting);
  position: relative;
  line-height: 1.5;
}

#every-state-ranked .dropdown {
  color: var(--bunting);
}

.dropdown svg {
  color: var(--pale-red);
  position: absolute;
  right: 20px;
  top: 40%;
  width: 20px;
  height: 15px;
  pointer-events: none;
  z-index: 1;
}

.dropbtn[data-open="true"] {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.selector option {
  text-transform: uppercase;
}

/*  */

.selector:hover,
.selector:focus {
  background-color: var(--pale-red);
  border-color: var(--pale-red);
  color: #ffffff;
}

.dropdown:hover svg {
  color: #ffffff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 0;
  background-color: white;
  min-width: 236px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border: solid 4px var(--pale-red) ;
  border-radius: 10px;
}

#every-state-ranked > .selector,
#every-state-ranked > .dropdown-content {
  width: 200px;
  min-width: 200px;
}

.dropdown-content label {
  padding: 1rem;
  text-decoration: none;
  display: block;
  height: 62px;
  text-transform: uppercase;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-weight: 600;
  font-size: 18px;
  color: var(--bunting);
  line-height: 1.5;
}

.dropdown-content label:hover {
  background-color: var(--pale-red) ;
  color: white;
}

.show {
  display: block;
}

.radio-label {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.dropdown-content input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.dropdown-content input:checked + label {
  background-color: var(--bunting);
  color: white;
}

/*  */

#us-map {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 3rem;
  height: 100%;
  width: 100%;
}

#us-map svg {
  width: 75%;
}

.map-legend {
  margin-right: 5%;
  width: 250px;
  height: 350px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  color: var(--cello);
}

.map-legend.gradient {
  display: none;
}

.map-legend.stepped > span {
  margin: 0 5px;
}

.map-legend.stepped .metric {
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 22px;
}

.map-legend.stepped.per100k .metric, .map-legend.stepped.goodTop .metric, .map-legend.stepped.goodBottom .metric {
  font-weight: 300;
  margin-right: 0.5rem;
  font-size: 16px;
  width: 150px;
}

.map-legend.stepped > div {
  display: flex;
  align-items: center;
}

.map-legend.stepped > div > span:first-of-type {
  margin-right: 0.75rem;
}

.map-legend > div:nth-of-type(1) .color-key {
  background-color: #213063;
}

.map-legend > div:nth-of-type(2) .color-key {
  background-color: #143382;
}

.map-legend > div:nth-of-type(3) .color-key {
  background-color: #4f65aa;
}

.map-legend > div:nth-of-type(4) .color-key {
  background-color: #a1aed2;
}

.map-legend > div:nth-of-type(5) .color-key {
  background-color: #c7cee3;
}

.map-legend.per100k > div:nth-of-type(1) .color-key, .map-legend.gradient.goodTop > div:nth-of-type(1) .color-key, .map-legend.gradient.goodBottom > div:nth-of-type(5) .color-key {
  background-color: #213063;
}

.map-legend.per100k > div:nth-of-type(2) .color-key, .map-legend.gradient.goodTop > div:nth-of-type(2) .color-key, .map-legend.gradient.goodBottom > div:nth-of-type(4) .color-key {
  background-color: #143382;
}

.map-legend.per100k > div:nth-of-type(3) .color-key, .map-legend.gradient.goodTop > div:nth-of-type(3) .color-key, .map-legend.gradient.goodBottom > div:nth-of-type(3) .color-key {
  background-color: #4f65aa;
}

.map-legend.per100k > div:nth-of-type(4) .color-key, .map-legend.gradient.goodTop > div:nth-of-type(4) .color-key, .map-legend.gradient.goodBottom > div:nth-of-type(2) .color-key {
  background-color: #a1aed2;
}

.map-legend.per100k > div:nth-of-type(5) .color-key, .map-legend.gradient.goodTop > div:nth-of-type(5) .color-key, .map-legend.gradient.goodBottom > div:nth-of-type(1) .color-key {
  background-color: #c7cee3;
}

.map-legend.per100k > div:nth-of-type(6) .color-key, .map-legend.gradient.goodTop > div:nth-of-type(6) .color-key {
  background-color: #D8DAEB;
}



.map-legend.gradient div {
  height: 100%;
  position: relative;
}

.map-legend.gradient span:first-of-type {
  display: block;
  width: 100px;
  position: absolute;
  top: 0;
  right: -110px;
}

.map-legend.gradient span:last-of-type {
  display: block;
  width: 100px;
  position: absolute;
  bottom: 0;
  right: -110px;
}

.map-legend.gradient.goodBottom div {
  width: 48px;
  height: 100%;
  background: linear-gradient(#D8DAEB, #28519C);
}

.map-legend.gradient.goodTop div {
  width: 48px;
  height: 100%;
  background: linear-gradient(#28519C, #D8DAEB);
}

.map-legend.gradient.per100k div {
  width: 48px;
  height: 100%;
  background: linear-gradient(#28519C, #D8DAEB);
}

.color-key {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  margin-right: 25px;
}

.us-map-cls-3 {
  /* stroke: var(--iron); */
  stroke: white;
  transition: all 0.25s;
  stroke-miterlimit: 10;
  stroke-width: 1px;
}

.state a.active .us-map-cls-3 {
  fill: var(--iron);
  fill-opacity: 1;
}

.state:hover .us-map-cls-3 {
  fill: #D5442F !important;
  fill-opacity: 1;
  transition: all 0.1s;
}

/* change red hover effect to blue */
#us-map[data-type="death"] .state:hover .us-map-cls-3,
#us-map[data-type="per100k"] .state:hover .us-map-cls-3 {
  fill: #28509C !important;
}

/* change blue lines to red */
#us-map[data-type="death"] #state-CT .state-abbr line,
#us-map[data-type="death"] #state-DE .state-abbr line,
#us-map[data-type="death"] #state-HI .state-abbr line,
#us-map[data-type="death"] #state-MA .state-abbr line,
#us-map[data-type="death"] #state-MD .state-abbr line,
#us-map[data-type="death"] #state-NH .state-abbr line,
#us-map[data-type="death"] #state-NJ .state-abbr line,
#us-map[data-type="death"] #state-RI .state-abbr line,
#us-map[data-type="death"] #state-VT .state-abbr line,
#us-map[data-type="per100k"] #state-CT .state-abbr line,
#us-map[data-type="per100k"] #state-DE .state-abbr line,
#us-map[data-type="per100k"] #state-HI .state-abbr line,
#us-map[data-type="per100k"] #state-MA .state-abbr line,
#us-map[data-type="per100k"] #state-MD .state-abbr line,
#us-map[data-type="per100k"] #state-NH .state-abbr line,
#us-map[data-type="per100k"] #state-NJ .state-abbr line,
#us-map[data-type="per100k"] #state-RI .state-abbr line,
#us-map[data-type="per100k"] #state-VT .state-abbr line {
  stroke: #D5442F !important;
}

/* change blue text to red */
#us-map[data-type="death"] #state-CT .state-abbr text,
#us-map[data-type="death"] #state-DE .state-abbr text,
#us-map[data-type="death"] #state-HI .state-abbr text,
#us-map[data-type="death"] #state-MA .state-abbr text,
#us-map[data-type="death"] #state-MD .state-abbr text,
#us-map[data-type="death"] #state-NH .state-abbr text,
#us-map[data-type="death"] #state-NJ .state-abbr text,
#us-map[data-type="death"] #state-RI .state-abbr text,
#us-map[data-type="death"] #state-VT .state-abbr text,
#us-map[data-type="per100k"] #state-CT .state-abbr text,
#us-map[data-type="per100k"] #state-DE .state-abbr text,
#us-map[data-type="per100k"] #state-HI .state-abbr text,
#us-map[data-type="per100k"] #state-MA .state-abbr text,
#us-map[data-type="per100k"] #state-MD .state-abbr text,
#us-map[data-type="per100k"] #state-NH .state-abbr text,
#us-map[data-type="per100k"] #state-NJ .state-abbr text,
#us-map[data-type="per100k"] #state-RI .state-abbr text,
#us-map[data-type="per100k"] #state-VT .state-abbr text {
  fill: #D5442F !important;
}

.tippy-box[data-theme~="mapTip"] {
  border-radius: 20px;
  min-height: 68px;
  background-color: var(--bunting);;
}

.tippy-box[data-theme~="mapTip"] a {
  display: flex;
  text-decoration: none;
}

.tippy-box[data-theme~="mapTip"] > .tippy-arrow {
  color: var(--bunting);
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a {
  color: white;
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-size: 18px;
  text-transform: uppercase;
  padding: 0.5rem;
  display: flex;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a * {
  pointer-events: none;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a > div {
  display: flex;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a > div:first-of-type {
  /* flex-direction: column; */
  display: block;
  margin-right: 1rem;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a > div:first-of-type > span {
  white-space: nowrap;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a > div:first-of-type > span:first-child {
  display: block;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a > div:last-of-type {
  align-items: center;
  justify-content: space-between;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content .tooltip-data {
  color: var(--cello);
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 50px;
  line-height: 45px;
  text-align: center;
  font-size: 20px;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content .tooltip-data > span {
  display: inline-block;
  font-size: 11px;
  transform: translateY(-3px);
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a .view-scores {
  font-size: 14px;
  text-transform: capitalize;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  color: white;
  /* text-decoration: underline;
  text-decoration-color: white;
  text-underline-offset: 1px; */
  border-bottom: 1px solid #fff;
  display: inline-block;
}

.tippy-box[data-theme~="mapTip"] img {
  transform: rotate(90deg);
  width: 20px;
  height: 20px;
  margin-left: 8px;
  margin-right: -8px;
}

/* GET INVOLVED */

#get-involved {
  min-height: unset;
  background-color: var(--pale-red);
}

#get-involved .section-title b {
  color: white;
}

#get-involved p {
  color: white;
}

#get-involved .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
}

#get-involved header {
  margin: 0;
  align-items: flex-start;
  text-align: left;
  max-width: 850px;
}

#get-involved header .section-title {
  font-size: 36px;
}

#get-involved header .section-copy {
  line-height: 1.2;
  font-size: 22px;
  color: white;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
}

#get-involved main {
  flex-direction: column;
  justify-content: center;
  height: auto;
  gap: 2.5rem;
  margin-right: 3rem;
}
#get-involved #get-involved-buttons {
  margin-top: 2rem;
}
#get-involved .gif-button.gif-button--gif-button.gif-button--primary {
  background-color: var(--bunting);
  width: 290px;
}

/*  STATE HIGHLIGHTS */

/* .state-highlights header {
  width: calc(100% - var(--margin));
} */

.highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  /* max-width: 437px; */
  max-width: 1024px;
  /* height: 760px; */
  margin: 0.75rem;
  border-radius: 20px;
  padding: 42px 32px;
  box-shadow: 0px 4px 10px rgba(40, 81, 156, 0.4);
}

.highlight-card h3 {
  color: white;
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-size: 40px;
  text-align: center;
  /*& flex: 0 1 125px; */
  line-height: 120%;
  width: 100%;
  margin: 0 auto 40px;
}
.highlight-card .highlight-rank{
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.highlight-card .highlight-rank > span:first-of-type {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: white;
  color: var(--bunting);
  margin: auto;
  line-height: 100px;
  flex: 0 0 100px;
  font-size: 40px;
  text-align: center;
  font-family: "Knockout 71 A", "Knockout 71 B";
}

.highlight-card .highlight-rank span > span {
  display: inline-block;
  font-size: 16px;
  font-family: "Knockout 71 A", "Knockout 71 B";
  text-transform: uppercase;
  transform: translate(4px, -7px);
}

.highlight-card .highlight-rank > span:last-of-type {
  display: block;
  font-size: 24px;
  color: white;
  margin: 20px auto 20px;
  text-align: center;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  letter-spacing: 0.5px;
  /*text-transform: capitalize; */
}

.highlight-card .highlight-rank > span.highlight-icon {
  align-items: center;
  display: flex;
  justify-content: center;
}

.highlight-card .highlight-rank > .highlight-icon img {
  height: auto;
  width: 50%;
}

.highlight-card .state-name {
  display: block;
  border-top: 2px solid #ffffff;
  /* border-bottom: 2px solid #ffffff; */
  font-size: 24px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 400;
  color: white;
  padding: 1rem 0 0;
}

.highlight-card .state-name:before {
  font-size: 75px;
}

.highlights-positive {
  display: flex;
  justify-content: center;
}

.highlights-positive .highlight-card {
  background-color: var(--dusk-blue);
}

.highlights-negative {
  display: flex;
  justify-content: center;
}

.highlights-negative .highlight-card {
  background-color: var(--pale-red);
}
.highlight-card .highlight-learn-more ul{
  display: flex;
  gap: 1rem;
}
.highlight-card .highlight-learn-more li {
  margin: 1rem 0;
  padding-left: 0px;
  height: 46px;
  width: 100%;
}

.highlight-card .highlight-learn-more li:first-of-type {
  /* margin-top: 2rem; */
}

.highlight-card .highlight-learn-more li:last-of-type {
  margin-bottom: 0;
}

.highlight-card .highlight-learn-more li a {
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  line-height: 46px;
  font-size: 16px;
  text-decoration: none;
  justify-content: center;
  transition-property: border, box-shadow, color;
  transition-duration: 500ms;
  transition-timing-function: ease-in-out;
}

.highlight-card .highlight-learn-more li a,
.highlight-card .highlight-learn-more li a:visited {
  color: var(--dusk-blue);
}

.highlights-positive .highlight-card .highlight-learn-more li a:hover {
  box-shadow: inset 0 3.125rem var(--pale-red);
  color: #fff;
}

.highlights-negative .highlight-card .highlight-learn-more li a {
  color: var(--pale-red);
}

.highlights-negative .highlight-card .highlight-learn-more li a:hover {
  box-shadow: inset 0 3.125rem var(--dusk-blue);
  color: #fff;
}

.highlight-card .highlight-learn-more li a * {
  pointer-events: none;
}

.highlight-card .highlight-learn-more svg {
  margin-right: 0.5rem;
  /* width: 24px;
  height: auto; */
}

.highlight-card .highlight-learn-more a svg [fill] {
  fill: currentColor;
  transition: fill 500ms ease-in-out;
}

.highlight-card .highlight-learn-more a svg [stroke] {
  stroke: currentColor;
  transition: stroke 500ms ease-in-out;
}

.highlight-card .highlight-learn-more a svg .scorecard-check {
  stroke: #fff;
}

.highlights-positive .highlight-card .highlight-learn-more a:hover svg .scorecard-check {
  stroke: var(--pale-red);
}

.highlights-negative .highlight-card .highlight-learn-more a:hover svg .scorecard-check {
  stroke: var(--dusk-blue);
}

.highlight-card .highlight-learn-more svg.scorecard-icon {
  margin-right: 12px;
}

.highlights-positive .highlight-learn-more li a div > span {
  font-weight: 500;
}

.highlights-negative .highlight-learn-more li a div > span {
  pointer-events: none;
  font-weight: 500;
}

.highlights-negative .highlight-learn-more svg.circle-arrow-right path {
  fill: var(--pale-red);
}


/* DATA VISUALIZATIONS */

.data-viz .viz-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.data-viz .gif-chart__header {
  padding-bottom: 0.25rem;
  border-bottom: none !important;
}

.data-viz .gif-chart__header h2{
  text-align: center !important;
}

.data-viz .gif-chart__chart,
.gif-chart__chart[type="highcharts_line_chart"] {
  padding: 0 !important;
}

.data-viz .gif-chart__title {
  text-transform:none !important;
}

.data-viz .gif-chart__chart > div {
  /* opacity: 1; */
}

.data-viz.viz1 main .copy, .data-viz.viz5 main .copy {
  flex: 1 1 30%;
}

.data-viz.viz1 main .graphs, .data-viz.viz5 main .graphs {
  flex: 1 1 60%;
}

.data-viz.viz3 .viz-container.gif-fullwidth {
  flex-direction: column;
  gap: 0;
}

.data-viz.viz3 main {
  flex-direction: row;
  gap: 3rem;
}

.data-viz.viz3 main .viz-container {
  flex: 1 1 60%;
}
.gif-card__cta-box {
  margin-bottom: 2rem;
}
.data-viz.viz4 .gif-card__cta-box, .data-viz.viz3 .gif-card__cta-box {
  margin: auto;
}
.data-viz.viz4 .gif-chart__title {
  margin-bottom: 1.6rem;
}

.data-viz .copy {
  font-size: 20px;
  line-height: 1.5;
}
@media screen and (max-width: 950px) {
  section.data-viz.viz4 header {
    margin-bottom: 0;
  }
}

.data-viz .copy i {
  font-style: italic;
}

.data-viz.viz4 path.highcharts-area {
  fill: rgb(213 70 48 / 15%);
}

/* COMPARISON */

.state-comparison {
  height: auto;
  min-height: unset;
}

.state-comparison .comparison-table {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: #171c4b solid 3px;
  box-shadow: 0px 5px 18px rgba(0, 18, 53, 0.3);
}

.state-comparison .selected-comps {
  display: none;
}

.state-comparison button {
  width: 100%;
  height: 100px;
  border: none;
  border-radius: 0;
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-weight: 400;
  font-size: 30px;
  line-height: 130%;
  text-align: center;
  background-color: var(--bunting);
  color: white;
  padding: 2rem 3rem;
  text-transform: uppercase;
  cursor: pointer;
}

.state-comparison .selector:hover, .state-comparison .selector:focus {
  background-color: var(--pale-red);
  border-color: var(--pale-red);
  color: #ffffff;
}

.state-comparison .dropdown svg {
  position: absolute;
  right: 50px;
  width: 30px;
  height: 25px;
  color: var(--pale-red);
}

.state-comparison .dropdown:hover svg {
  color: #ffffff;
}

.state-comparison .dropdown:first-of-type button {
  border-right: 1px solid black;
}

.state-comparison .table-heading {
  display: flex;
  border-bottom: black solid 2px;
}

.state-comparison .table-heading > * {
  flex: 1;
}

.state-comparison .table-content > div:not(:first-of-type) {
  align-items: center;
  height: 100px;
  font-size: 20px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  position: relative;
}

.state-comparison .table-content > div span {
  display: block;
  text-align: center;
  line-height: 100px;
  color: var(--cello);
  font-size: 18px;
  flex: 0 1 230px;
}

.state-comparison
  .table-content
  > div:not(.selected-comps)
  span:nth-of-type(2) {
  flex: 0 0 330px;
}

.state-comparison .table-content > div:not(:last-child)::after {
  position: absolute;
  bottom: 0;
  content: "";
  height: 1px;
  width: 90%;
  background-color: var(--valencia);
}

.state-comparison .table-content .comp-data {
  font-family: "Knockout 71 A", "Knockout 71 B";
  text-transform: uppercase;
  font-size: 40px;
  width: 100px;
}

.dropbtn.comparison[data-open="true"] {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-content input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.dropdown-content input:checked + label {
  background-color: var(--pale-red) ;
  color: white;
}

.state-comparison .dropdown-content.show {
  overflow-y: scroll;
  max-height: 80vh;
}

.state-comparison .dropdown-content {
  width: 100%;
  border: 2px;
}

.state-comparison .dropdown:first-of-type .dropdown-content {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 0;
}

.state-comparison .dropdown:last-of-type .dropdown-content {
  width: 100%;
  border-top-right-radius: 10px;
  border-top-left-radius: 0;
}

.state-comparison .dropdown-content label {
  padding: 1rem;
  text-decoration: none;
  display: block;
  height: 45px;
  text-transform: uppercase;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-weight: 600;
  font-size: 18px;
  color: var(--bunting);
  line-height: 0.5;
}

.state-comparison .dropdown-content label:hover {
  background-color: var(--pale-red);
  color: white;
}

.state-comparison main > * {
  flex: 1;
}

.state-comparison .table-footer {
  display: flex;
  align-items: center;
  background-color: #e2e9f5;
  color: var(--bunting);
}

.state-comparison .table-footer a {
  color: var(--bunting);
}

/* GUN LAWS SAVE LIVES */

.gun-laws-save {
  height: initial;
  background: #213063 !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

.gun-laws-save .section-subtitle{
  color: white;
}


.gun-laws-save main {
  flex-direction: row;
  justify-content: space-between;
  gap: 5rem;
  flex: 1;
}

.gun-laws-save main > * {
  flex: 1;
}

/* general data visualization styles */
.dark-blue-bg {
  background-color: var(--dark-blue-grey);
  color-scheme: dark;
}

.dark-blue-bg *,
.dark-blue-bg .gif-card__cta,
.dark-blue-bg .graph-container .title,
.dark-blue-bg .gif-chart__title,
.dark-blue-bg .gif-landing-text__description {
  color: white ;
}

.blueish-bg {
  background-color: rgba(40, 81, 156, 0.13);
}

.tannish-bg {
  background-color: #f2efee;
}

/* YOU CAN HELP */

.you-can-help {
  background-color: var(--dusk-blue);
  min-height: unset;
  height: initial;
}

.you-can-help header {
  margin-bottom: 2rem;
}

.you-can-help h2 {
  color: white;
}

.you-can-help main {
  flex-direction: column;
  gap: 2rem;
}

.you-can-help .copy {
  flex: 1;
  max-width: 908px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.you-can-help .copy p {
  color: white;
}

.you-can-help ul {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  row-gap: 80px;
}

.you-can-help ul li {
  /*background-color: white;
  box-shadow: 0px 5px 18px rgba(0, 18, 53, 0.5);*/
  padding: 2rem;
  width: 48%;
  min-width: 360px;
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.you-can-help ul li a {
  text-decoration: none;
}



.you-can-help ul li h3 {
  color: white;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--cello);
}
.you-can-help ul li:hover{
  background-color: white;

}
.you-can-help ul li:hover h3{
  color: var(--dusk-blue);
  border-bottom: 3px solid var(--pale-red);

}
.you-can-help ul li:hover h3, .you-can-help ul li:hover p {
  color: var(--dusk-blue);

}

.you-can-help ul li p {
  color: white;
  line-height: 28px;
  font-size: 22px;
}

.you-can-help ul li h3 svg {
  margin-left: 8px;
  display: none;
}

.you-can-help .gif-divider-2 {
  background-image: linear-gradient(
    to right,
    var(--cello),
    rgba(40, 81, 156, 0)
  );
}
@media screen and (max-width: 950px) {
  .you-can-help ul li {
    padding-right: 0;
    padding-left: 0;
  }
  .you-can-help ul li .help-item-img {
    padding-left: 2rem;
  }
  .you-can-help ul li a {
    padding-right: 2rem;
  }
}

/* PREVIOUS SCORECARD SECTION */

#prev-scorecards {
  background-color: var(--dusk-blue);
  min-height: unset;
  height: initial;
  padding-top: 0;
}

#prev-scorecards header {
  margin: 0 0 2rem;
  display: initial;
  text-align: left;
  align-self: flex-start;
}

#prev-scorecards .container {
  align-items: flex-start;
}

#prev-scorecards h2 {
  font-size: 22px;
  text-align: left;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  font-weight: 700;
  margin: 0;
  color: white;
}

#prev-scorecards ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4%;
  width: 100%;
  margin-left: -10px;
}

#prev-scorecards ul li {
  margin-bottom: 2rem;
  height: auto;
  width: 60px;
}

#prev-scorecards a {
  display: inline-block;
  color: white;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 18px;
  font-weight: 400;
}

#prev-scorecards a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  content: "";
  width: 70%;
  height: 2px;
  background-color: var(--cello);
}

#prev-scorecards a:hover {
  display: inline-block;
  background-color: rgba(212, 220, 235, 0.6);
  border: none;
  color: var(--cello);
  border-radius: 20px;
}

#prev-scorecards a:hover:after {
  display: none;
}

#prev-scorecards a:visited {
  color: white;
}

/* Scatterplot */

.column.graphs {
  width: 100%;
}

.graph-container {
  height: 100%;
  padding: 0 15px 15px 20px;
  position: relative;
}

.graph-container .title {
  padding: 0 1rem 1rem 0;
  /* border-bottom: 4px solid var(--cello); */
  margin-left: -10px;
  color: var(--cello);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 2.125rem;
  /* margin-bottom: 3.125rem; */
  margin-bottom: 1.5rem;
  text-align: center;
}

.graph-container .column-labels {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin-top: 0;
  width: 100%;
  margin: 2rem auto 1rem;
  text-transform: uppercase;
  font-size: 15px;
  padding: 0 5px;
  color: var(--cello);
  font-weight: 400;
  letter-spacing: 0.25px;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
}

.graph-container .column-labels.x-legend {
  justify-content: center;
  margin: 0;
  font-weight: 700;
}

.graph-container .column-labels.y-legend {
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  position: absolute;
  bottom: 50%;
  left: -55px;
  height: 100%;
  text-orientation: sideways-right;
  font-weight: 700;
  pointer-events: none;
}

#scatterplot-graph {
  position: relative;
  aspect-ratio: 4 /5;
  margin-left: 20px;
}

#scatterplot-graph .trendline {
  position: absolute;
  /* top: 0; */
  bottom: 0;
  right: 0;
  left: 0;
}

#scatterplot-graph .trendline svg {
  width: 100%;
  /* display: none; */
}

#scatterplot-graph .trendline svg text {
  fill: white;
  font-size: 1.8px;
  text-transform: uppercase;
  font-weight: bold;
}

#line-graph .row-numbers,
#scatterplot-graph .row-numbers {
  /* position: absolute; */
  height: 100%;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}

.row-numbers span {
  font-size: 13px;
}

#line-graph .row-numbers .row,
#scatterplot-graph .row-numbers .row {
  font-size: 0.5em;
  width: 100%;
  text-align: left;
  padding-left: 1%;
  line-height: 1.5em;
  border-top: 1px solid white;
  opacity: 0.4;
}

#scatterplot-graph .row-numbers {
  display: flex;
  flex-flow: column nowrap;
}

#line-graph .row-numbers .row {
  height: 5.3%;
}

#scatterplot-graph .row-numbers .row {
  height: 3.74%;
}

#scatterplot-graph .row-numbers .row.bright {
  opacity: 1;
  color: var(--cello);
  position: relative;
}

#scatterplot-graph .row-numbers .row.bright span {
  position: absolute;
  right: 100%;
  top: -6px;
}

#scatterplot-graph .column-labels > div {
  padding: 0 24px;
}

#scatterplot-graph .column-numbers {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  width: 100%;
  margin: -4px auto 0;
  position: absolute;
}

#scatterplot-graph .column-numbers .row {
  border-right: 1px solid white;
  opacity: 0.4;
  height: 8px;
  margin-top: 3px;
}

#scatterplot-graph .column-numbers .row.bright {
  font-size: 13px;
  text-align: left;
  border-right: 1px solid white;
  opacity: 1;
  position: relative;
  margin-top: 1px;
  height: 10px;
}

#scatterplot-graph .column-numbers .row span {
  position: absolute;
  top: 13px;
  left: 1px;
  transform: translateX(-50%);
}

#scatterplot-graph .points {
  display: flex;
  flex-flow: row nowrap;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  right: -10px;
}

#scatterplot-graph .points .point-column {
  width: 101%;
  position: relative;
  margin-top: 2.5%;
}

#scatterplot-graph .points .point-column .point {
  position: absolute;
  bottom: 0;
  opacity: 1;
  background: white;
  height: 2.5%;
  aspect-ratio: 1 / 1;
  left: 40%;
  padding-top: 5px;
  border-radius: 99px;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1em;
  transform: translate(-100%, -60%);
  transition: width 1s, height 1s, color 1s, background 0.25s, opacity 0.5s;
  z-index: 1;
  opacity: 0.5;
}


#scatterplot-graph .points .point-column .sp-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  opacity: 0;
  background: var(--pale-red);
  height: 45px;
  aspect-ratio: 1 / 1;
  left: 50%;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.2;
  transform: translate(-50%, 0);
  transition: width 1s, height 1s, color 1s, background 0.25s, opacity 0.5s;
  z-index: 1000;
  color: #fff;
}

#scatterplot-graph .points .point-column .sp-tooltip::after {
  content: "";
  width: 0;
  /* aspect-ratio: 3 / 2; */
  /* clip-path: polygon(50% 100%,100% 0,0 0); */
  /* background: var(--pale-red); */
  position: absolute;
  /* top: calc(100% - 1px);
  left: calc(50% - 5px); */

  top: calc(100% - 1px);
  left: calc(50% + 1px);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--pale-red);
  transform: translateX(-50%);
}


#scatterplot-graph .points .point-column .point.hover .label{
  opacity: 0;
}

#scatterplot-graph .points .point-column .point.hover .sp-tooltip{
  opacity: 1;
}

#scatterplot-graph .points .point-column .sp-tooltip .tooltip-text{
  color: #fff;
  display: block;
  font-weight: 300;
  font-size: 14px;
}
#scatterplot-graph .points .point-column .sp-tooltip .tooltip-name{
  color: #fff;
  display: block;
  font-weight: 700;
  font-size: 12px;
}


#scatterplot-graph .points .point-column .grade {
  position: absolute;
  bottom: -5%;
  left: 34%;
}

/* animation */
#scatterplot-graph.hide .points .point-column .point {
  opacity: 0;
  transition-duration: 0s;

}

#scatterplot-graph .points.hover .point-column .point {
  background: white;
  color: white;
  cursor: pointer;
}

#scatterplot-graph .points.hover .point-column .point.hover {
  background: var(--pale-red);
  color: var(--pale-red);
}


#scatterplot-graph .points .point-column .point .label {
  position: absolute;
  font-size: 12px;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  bottom: 12px;
  pointer-events: none;
  z-index: 999;
  color: white;
  font-weight: 400;
  font-family: "Knockout 71 A", "Knockout 71 B";
}

#scatterplot-graph .points .point-column .point.hover {
  z-index: 99999;
  opacity: 1;
}

#scatterplot-graph .points .point-column .point.hovered {
  transition-delay: 0s !important;
}

footer.gif-footer {
  margin-top: 0;
}

#scorecard-modal {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 102;
  height: 100vh;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: visibility linear 0.25s, opacity 0.25s 0s;
  background-color: rgba(0, 0, 0, 0.308);
}

#scorecard-modal .container {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  background-color: var(--dark-blue-grey);
  width: 500px;
  transition: transform 0.25s;
  padding: 2rem 2rem 3rem;
  height: 100%;
  overflow-y: auto;
}

#scorecard-modal.open-modal {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s linear, opacity 0.25s 0s;
}

#scorecard-modal.open-modal .container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  transform: translateX(0);
  transition: transform 0.25s;
}

.admin-bar #scorecard-modal {
  top: 32px;
}

.admin-bar #scorecard-modal .container {
  top: 32px;
}

.admin-bar #scorecard-modal.open-modal .container {
  top: 32px;
}
.admin-bar #scorecard-modal.open-modal .container {
  top: 32px;
}

#scorecard-modal .container {
  scroll-behavior: smooth;
  padding-bottom: 4rem;
}

#scorecard-modal h3 {
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  color: var(--pale-red);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

#scorecard-modal .state-name {
  font-family: "Knockout 71 A", "Knockout 71 B";
  color: white;
  text-transform: uppercase;
  font-size: 42px;
  letter-spacing: 0.25px;
  text-align: center;
}

#scorecard-modal .grade {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: white;
  color: var(--cello);
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-size: 80px;
  line-height: 120px;
  text-align: center;
  margin: 3rem auto;
}

#scorecard-modal .state-stats li {
  border-top: 1px solid var(--pale-red);
  color: white;
  padding: 1rem 0;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 24px;
}
#scorecard-modal .state-stats .cat-title {
  margin-top: 4px;
}
#scorecard-modal .state-stats .deaths-year .cat-title {
  width: 200px;
}

.small-letters {
  text-transform: lowercase;
}

.red-type {
  color: var(--pale-red);
  font-size: 30px;
  font-family: "Knockout 71 A", "Knockout 71 B";
}
.state-stats .red-type {
  display: inline-block;
  transform: translateY(1px);
}

#scorecard-modal li .red-type:last-of-type {
  font-size: 20px;
}

#scorecard-modal .state-stats {
  margin-bottom: 2rem;
}

#scorecard-modal .state-stats div {
  width: 30%;
}

#scorecard-modal h4 {
  text-transform: uppercase;
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-size: 30px;
  color: white;
  letter-spacing: 0.75px;
}
#scorecard-modal
  .get-involved-list{
    /* margin-bottom: 4rem; */
  }
#scorecard-modal
  .get-involved-list
  .gif-button.gif-button--gif-button.gif-button--primary {
  background-color: transparent;
  border: none;
}

#scorecard-modal
  .get-involved-list
  .gif-button.gif-button--gif-button.gif-button--primary:hover {
  box-shadow: inset 0 4rem 0 0.00063rem var(--pale-red);

}

.what-changed,
.how-to-improve {
  margin-bottom: 2rem;
  padding-top: 20px;
}

.what-changed li {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
}

.what-changed li span a {
  color: white;
  text-decoration-color: var(--pale-red);
  font-weight: 400;
}

.what-changed img {
  height: 60px;
  width: auto;
  margin-right: 30px;
}

.what-changed li span {
  color: white;
  line-height: 24px;
  font-size: 18px;
}
.what-changed li span:has(+ a) {
  text-decoration: underline;
  text-decoration-color: var(--pale-red);

}
.how-to-improve li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 400;
}

.how-to-improve li:last-child {
    margin-bottom: 0;
}

.how-to-improve svg {
  margin-right: 0.5rem;
}

.how-to-improve li span {
  color: white;
  flex: 1;
  line-height: 20px;
}

.improvement-description {
  margin-top: 24px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}

.get-involved-list a {
  text-decoration: none;
  color: white;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.get-involved-list a:visited {
  text-decoration: none;
  color: white;
}

.get-involved-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.get-involved-list li {
  text-align: center;
}

.get-involved-list li a {
  font-size: 18px;
  /* background-color: var(--pale-red) !important; */

}

.get-involved-list li a:hover {
  /* color: var(--pale-red) !important;
  box-shadow: inset 0 4rem 0 0.00063rem white !important; */
}

.close-modal {
  position: fixed;
  top: 20px;
  right: 40px;
  cursor: pointer;
}

/* STICKY NAV */

#sticky-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  box-shadow: 0px 2px 10px 5px #0000001f;
  background-color: white;
  transition: transform 0.25s;
  z-index: 101;
  transform: translateY(calc(100vh - 76px));
  padding: 1rem var(--margin);
}

#sticky-nav .sticky-nav-content {
  display: flex;
  flex-direction: column;
}

#sticky-nav li {
  flex: 0;
  font-size: 32px;
  font-family: "Knockout 71 A", "Knockout 71 B";
  text-transform: uppercase;
  margin-bottom: 1.375rem;
}

#sticky-nav li a {
  position: relative;
  display: inline-block;
}

#sticky-nav li a:hover::before {
  position: absolute;
  top: 0;
  left: -4px;
  content: "";
  width: 104%;
  height: 101%;
  background-color: var(--pale-red);
  z-index: -1;
}

#sticky-nav li a:hover,
#sticky-nav li a:hover b {
  color: white;
}

#sticky-nav li a b {
  font-weight: initial;
  color: var(--pale-red);
}

#sticky-nav a {
  text-decoration: none;
  display: block;
  color: var(--bunting);
}

#sticky-nav a:visited {
  color: var(--bunting);
}

#sticky-nav.open-nav {
  transform: translateY(0%);
  transition: transform 0.25s;
}

.admin-bar #sticky-nav.open-nav {
  top: 32px;
}

#sticky-nav.open-nav .current-section {
  margin-bottom: 0.25rem;
  padding-bottom: 0;
}

#sticky-nav .current-section {
  display: flex;
  align-items: center;
  font-size: 36px;
  padding: 0.25rem 1rem 1rem 0;
  margin-bottom: 2rem;
  font-family: "Knockout 71 A", "Knockout 71 B";
  color: var(--cello);
  text-transform: uppercase;
  cursor: pointer;
}

#sticky-nav .current-section svg path {
  stroke: var(--bunting);
}

#sticky-nav .current-section .current-section-title {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s linear, opacity 0.25s;
  margin-left: 1rem;
}

#sticky-nav .current-section .current-section-title b {
  color: var(--pale-red);
}

#sticky-nav.open-nav .current-section .current-section-title {
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s linear, opacity 0.25s;
}

#sticky-nav.open-nav .arrow {
  transform: rotate(180deg);
}

.gif-fullwidth {
  width: 100%;
}

.gif-fullwidth .gif-chart__title {
  text-align: center;
}

.button {
  display: block;
  min-width: 250px;
  font-family: "Knockout 71 A", "Knockout 71 B", sans-serif !important;
  font-weight: normal !important;
  font-size: 22px;
  text-transform: uppercase;
  padding: 8px 16px 9px;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 5px;
  position: relative;
  transition: color 0.1s ease-in-out, background 0.1s ease-in-out;
  height: 58px;
  line-height: 38px;
  border: 3px solid;
}

.button.blue {
  background: var(--bunting);
  border-color: var(--bunting);
}

.button.blue:hover {
  background: white;
  border-color: var(--bunting);
  color: var(--bunting);
}

.button.primary {
  background: var(--pale-red);
  border-color: var(--pale-red);
}

.button.primary:hover {
  background: white;
  border-color: var(--pale-red);
  color: var(--pale-red);
}

.button.outline {
  background: white;
  border-color: var(--bunting);
  color: var(--bunting);
}

.button.outline:hover {
  background: var(--bunting);
  border-color: var(--bunting);
  color: #fff;
}

@media only screen and (min-width: 951px) {
  .you-can-help ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .you-can-help ul li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    min-width: 0;
    margin-bottom: 0;
  }

  .you-can-help img {
    width: 125px;
    height: auto;
  }

  .gif-chart__header {
    margin-bottom: 0 !important;
  }

  section.data-viz.viz5 .container > main {
    gap: 60px
  }
}

@media only screen and (max-width: 1350px) {
  .highlight-card {
    padding: 15px;
    margin: 0.25rem;
    /* width: 335px; */
    height: 400px;
  }

  .highlight-card .state-name {
    /* padding: 0.5rem 0; */
  }

  .highlight-card h3 {
    font-size: 28px;
    width: 75%;
    margin: auto;
    flex: 0 1 75px;
  }
  .highlight-card .highlight-learn-more ul{ display: block;}
  .highlight-card .highlight-rank > span:first-of-type {
    width: 100px;
    height: 100px;
    font-size: 40px;
    line-height: 100px;
  }

  .highlight-card .highlight-rank > span:last-of-type {
    margin-top: 10px;
  }

  .highlight-card .highlight-rank > span:last-of-type,
  .highlight-card .state-name {
    font-size: 18px;
  }

  .highlight-card .state-name::before {
    font-size: 24px;
  }

  .highlight-card .highlight-learn-more {
    margin-top: 16px;
  }

  .highlight-card .highlight-learn-more li {
    margin: 0.5rem 0;
    height: 40px;
    padding-left: 8px;
  }

  .highlight-card .highlight-learn-more li:first-of-type {
    margin-top: 0;
  }

  .highlight-card .highlight-learn-more li a {
    font-size: 12px;
    line-height: 40px;
  }

  .highlight-card .highlight-learn-more svg {
    margin-right: 12px;
    width: 18px;
  }
}

@media only screen and (max-width: 1050px) {
  .highlight-card {
    margin: 0.25rem;
  }
}

@media only screen and (min-width: 951px) {
  .highlight-card {
    max-width: 437px;
  }
}

@media only screen and (max-width: 950px) {
  /* hero */

  #hero {
    min-height: calc(100vh - 200px);
    padding-bottom: 4rem;
    padding-top: 7rem;
  }

  #hero .subtitle {
    line-height: 1.25;
    font-size: 16px;
    max-width: 100%;
    font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
    font-weight: 300;
  }

  #hero .gif-landing-hero__headline {
    align-items: center;
    text-align: center;
  }

  #hero .gif-landing-hero__container,
  .gif-landing-hero__container {
    align-self: flex-end;
  }

  .gif-landing-hero__headline--title,
  h1.gif-landing-hero__headline--title {
    text-align: center;
    font-size: 34px;
    line-height: 40px;
    margin-bottom: 2rem;
  }

  #hero .gif-landing-hero__content {
    margin-top: 0;
  }

  main h2 {
    font-size: 32px;
    line-height: 38.4px;
  }

  section .container > main {
    flex-direction: column;
    gap: 1.25rem;
  }

  .gif-landing-hero__headline--description .copy {
    text-align: center;
  }

  #hero .copy {
    max-width: 100%;
  }

  #hero .copy p {
    font-size: 16px;
    line-height: 1.5;
    font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
    font-weight: 300;
  }

  section header {
    margin-bottom: 2rem;
    width: 100%;
  }

  .gif-landing-text__description {
    font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B" !important;
  }
  section header .header-copy, .data-viz .gif-landing-text__description {
    text-align: left;
  }

  .copy p {
    font-size: 16px;
    line-height: 1.5;
  }

  /* map and table */

  .switches {
    display: none;
  }

  .switches {
    display: none;
  }

  #us-map {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 0;
  }

  #us-map svg {
    width: 100%;
  }

  #us-map .map-legend {
    margin-top: 2rem;
    width: 80%;
    height: initial;
  }

  #us-map .map-legend.stepped {
    flex-direction: row;
    justify-content: space-around;
  }

  #us-map .map-legend.stepped div {
    flex-direction: column;
    align-items: center;
  }

  #us-map .map-legend.stepped div > * {
    margin: 0;
  }

  #us-map .map-legend.stepped .metric {
    margin-top: 1.2rem;
  }

  #us-map .map-legend.stepped div > span:last-of-type {
    display: none;
  }

  #us-map .number-of-states {
    display: none;
  }

  :root #every-state-ranked #us-map {
    font-display: block;
  }

  .map-legend {
    margin-right: 0;
  }

  .mobile-us-table table tbody tr,
  .mobile-us-table table tfoot {
    display: none;
  }

  .mobile-us-table table tbody tr.display {
    display: table-row;
  }
  .mobile-filter {
    display: block;
  }

  .state-rankings {
    padding-bottom: 70px;
  }

  /* get involved */

  #get-involved {
    height: initial;
  }



  #get-involved .container {
    flex-direction: column;
  }

  #get-involved .container header {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }


  #get-involved .container header .section-copy {
    line-height: 1.2;
    font-size: 16px;
  }

  #get-involved .container main {
    align-items: center;
    gap: 2rem;
    margin: 2.5rem 0 0;
  }
  #get-involved .container main a {
    width: 250px;
  }

  #get-involved .container main img{
    opacity: 0.7;
  }

  #get-involved .gif-button.gif-button--gif-button.gif-button--primary {
    transform: translateY(0);
  }

  /* gun laws save lives */
  .gun-laws-save main {
    flex-direction: column-reverse;
  }

  .graph-container .title {
    font-size: 1.25rem;
    line-height: 140%;
    margin: 0 0 2.9375rem;
    padding-bottom: 0.25rem;
  }

  .graph-container .column-labels {
    margin: 2.5rem 0 0;
    width: 100%;
    font-size: 18px;
  }
  .graph-container .column-labels.x-legend {
    margin-top: 1rem;
  }

  .graph-container .column-labels span {
    font-size: 14px;
    line-height: 140%;
  }

  .graph-container .column-labels.y-legend {
    bottom: 35%;
  }

  .gif-button {
    font-size: 16px !important;
    line-height: 20px !important;
    /* height: 40px !important; */
  }

  #get-involved .gif-button {
    font-size: 18px !important;
    line-height: 20px !important;
    height: 50px !important;
  }

  .button {
    font-size: 18px;
    line-height: 20px;
  }

  /* HIGHLIGHTS */
  .state-highlights {
    padding-left: 10px;
    padding-right: 10px;
  }
  .highlight-card{ height: auto;}
  .highlights-positive,
  .highlights-negative {
    flex-direction: column;
    align-items: center;
    /* padding: 0 10px; */
  }

  .highlight-card {
    margin-bottom: 1rem;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .highlight-card .highlight-rank {
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .highlight-card .highlight-rank > span:last-of-type {
    margin: 0;
  }

  .highlight-card .highlight-learn-more li a {
    font-size: 12px;
  }

  .highlight-card h3 {
    font-size: 24px;
    width: 100%;
    margin: 0;
    flex: 1;
    text-align: center;
  }
  .highlight-card .highlight-learn-more ul{
    display: flex;
  }

  .highlight-card .highlight-learn-more li {
    /* padding-left: 0; */
    margin: 0;
  }

  /* TABLE */

  .state-comparison .comparison-table {
    padding: 1.15rem;
    padding-bottom: 0;
    margin: 0 15vw;
  }

  .state-comparison .table-heading {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
  }
  .state-comparison .table-heading .dropdown {
    width: 100%;
  }

  .state-comparison .table-heading .dropdown:last-of-type {
    margin: 1rem 0 1.5rem 0;
  }

  .state-comparison .table-content > * {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .state-comparison .table-content > div > span {
    position: initial;
    flex-shrink: 0;
    width: initial;
  }

  .state-comparison .selected-comps {
    display: flex;
    justify-content: space-between;
  }

  .state-comparison .table-content > div:not(:first-of-type) {
    height: initial;
    justify-content: space-between;
  }

  .state-comparison .table-content > div:not(:last-child)::after {
    width: 100%;
  }

  .state-comparison .table-content > div.selected-comps::after {
    height: 0;
  }

  .state-comparison .table-content > .selected-comps span {
    font-family: "Knockout 71 A", "Knockout 71 B";
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .state-comparison .table-content > .selected-comps span:first-of-type {
    text-align: left;
  }

  .state-comparison .table-content > .selected-comps span:last-of-type {
    text-align: right;
  }

  .state-comparison .table-heading > * {
    flex: unset;
  }

  .state-comparison .table-heading button {
    font-size: 18px;
    height: unset;
  }

  .table-heading button {
    border: 2px solid #171c4b;
    text-align: left;
    border-radius: 4px;
    font-size: 40px;
    line-height: 40px;
    padding: 0.25rem 23px;
  }

  .state-comparison .dropdown:first-of-type button {
    border: 2px solid #171c4b;
  }

  .state-comparison .dropdown .dropdown-content {
    border-radius: 4px;
  }

  .state-comparison .dropdown:first-of-type .dropdown-content {
    border-radius: 4px;
  }

  .state-comparison .table-heading .dropdown svg {
    right: 20px;
    top: 40%;
    width: 20px;
    height: 15px;
  }

  .state-comparison .table-content > div {
    height: unset;
  }

  .state-comparison .table-content > div span {
    line-height: 50px;
    flex: 1 1 auto;
  }

  .state-comparison
    .table-content
    > div:not(.selected-comps)
    span:nth-of-type(2) {
    font-size: 12px;
    flex: 0 0 175px;
  }

  .state-comparison .table-content span.comp-data {
    font-size: 1rem;
  }

  .state-comparison .table-content span.comp-data:first-of-type {
    text-align: left;
    margin-left: 4px;
  }

  .state-comparison .table-content span.comp-data:last-of-type {
    text-align: right;
    margin-right: 4px;
  }

  .state-comparison .table-content > div.deathYear > span:nth-of-type(2) {
    flex: 0 0 190px;
    font-size: 10px;
  }

  .state-comparison .table-footer {
    height: 60px;
    font-family: "Helvetica Neue", Helvetica, Arial, serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    margin: 0 -1.15rem;
    padding: 0 1.15rem;
  }

  .state-comparison .table-footer a {
    margin-right: 10px;
  }

  .state-comparison .table-footer span {
    margin-left: 0;
    margin-right: 10px;
  }

  .state-comparison .table-footer svg {
    width: 20px;
  }

  /* YOU CAN HELP */

  .you-can-help main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .you-can-help main ul {
    flex-direction: column;
    align-items: center;
    row-gap: 0;
  }

  .you-can-help ul li {
    min-width: 100%;
    text-align: left;
  }
  .you-can-help ul li:last-child {
    margin-bottom: 0;
  }

  /* PREVIOUS SCORECARDS */
  #prev-scorecards {
    padding-bottom: 3rem;
  }
  #prev-scorecards ul {
    gap: 8%;
    grid-template-columns: repeat(4, 1fr);
  }

  /* Modal */

  #scorecard-modal .container {
    width: 100%;
    padding: 1rem 1rem 3rem;
  }

  #scorecard-modal .container .state-stats div {
    width: initial;
  }

  #scorecard-modal .container .state-stats {
    font-size: 14px;
  }

  .what-changed li {
    font-size: 14px;
  }

  .get-involved-list li {
    font-size: 14px;
  }

  .get-involved-list li a {
    line-break: strict;
  }

  .get-involved-list li a.learn-more {
    font-size: 14px;
  }

  .close-modal {
    right: 20px;
  }

  /* STICKY NAV */

  #sticky-nav a {
    font-size: 24px;
  }

  #sticky-nav .current-section-title {
    font-size: 24px;
  }

  #sticky-nav .current-section {
    height: 50px;
    padding: 0;
  }

  /* Data viz */

  .data-viz.viz1 main, .data-viz.viz5 main {
    flex-direction: column;
    gap: 1.25rem;
  }
  .data-viz.viz1 header, .data-viz.viz5 header {
    margin-bottom: 1rem;
  }

  #get-involved .container header .section-copy {
    line-height: 1.5;
  }
}

@media only screen and (max-width: 750px) {
  .state-comparison .comparison-table {
    margin: 0 12vw;
  }

  .data-viz .gif-container{
    width: 100% !important;
  }



}

@media only screen and (max-width: 550px) {
  .state-comparison .comparison-table {
    margin: 9vw;
  }

  .highcharts_treemap_chart .highcharts-label span{
    font-size: 10px !important;
  }
}

@media only screen and (max-width: 450px) {
  section header .header-copy {
    max-width: initial;
  }

  .highlight-card .highlight-rank > span:last-of-type {
    font-size: 18px;
  }

  .highlight-card .highlight-rank > span:last-of-type {
    margin-bottom: 20px;
  }

  .highlight-card .state-name {
    font-size: 18px;
  }

  .state-comparison .comparison-table {
    margin: 0;
  }

  .highlights-positive,
  .highlights-negative {
    padding: 0 5px;
  }

  you-can-help ul li {
    padding: 20px;
    gap: 20px;
  }

  .you-can-help ul li img {
    width: 45px;
  }

  .you-can-help ul li h3 {
    font-size: 22px;
  }

  .you-can-help ul li p {
    font-size: 16px;
  }
}

.highcharts-background {
  display: none;
}

.page-template-page-scorecard-base .gif-landing-text__divider {
  width: 4rem;
}

section.gif-chart {
  padding: 4.5rem 0;
}
.gif-chart__contain .gif-fullwidth .gif-chart__chart {
  min-height: 10rem !important;
}

.viz-container .gif-chart__chart {
  padding: 0;
}

.highcharts-label.highcharts-tooltip text > tspan:first-child {
  font-size: 14px !important;
  font-weight: bold;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
  text-transform: uppercase;
}

/* additional styles */
/* sticky head table */
thead.sticky {
  position: fixed;
  top:0;
  /* background-color: #e1e3f6; */
}
thead.sticky.hidden {
  opacity: 0;
}

/* Get involved adjustments */
#get-involved-buttons{
  display: flex;
  width: 100%;
  gap: 2rem;
  justify-content: flex-start;
  margin-bottom: 0;
}
#get-involved main img{
  opacity: 0.25;
  /* margin-top: 75%; */
}
.get-involved-img{
    max-width: 120px;
    opacity: 0.5;
}
.mobile-only{
  display: none;
}
@media only screen and (max-width: 950px) {
  #get-involved-buttons{
    display: block;
    max-width: 320px;
  }

  #get-involved-buttons a{
    margin-bottom: 2rem;
  }
  #get-involved-buttons > a:last-child {
    margin-bottom: 0;
  }
  #get-involved main{
    display: none;
  }
  .mobile-only{ display: block;}
}

/* animation frames for year in review */
.hidden-animate {
  opacity: 0;
}

.fade-in {
  animation: fade-in 1.4s;
  z-index: 9;
}

.fade-in.d1{
  animation: fade-in 1.4s;
}

.fade-in.d2{
  animation: fade-ina 1.4s;
}

.fade-in.d3{
  animation: fade-inb 1.4s;
}

.fade-in.d4{
  animation: fade-inc 1.4s;
}

.fade-in.d5{
  animation: fade-ind 1.4s;
}
.fade-in.d6{
  animation: fade-ine 1.4s;
}




@keyframes fade-in {
    from {opacity: 0; transform: translate(0, 20px)}
    to {opacity: 1;}
}
@keyframes fade-ina {
  0% {opacity: 0; transform: translate(0, 20px)}
  15% {opacity: 0; transform: translate(0, 17px)}
  100% {opacity: 1;}
}
@keyframes fade-inb {
  0% {opacity: 0; transform: translate(0, 20px)}
  30% {opacity: 0; transform: translate(0, 14px)}
  100% {opacity: 1;}
}
@keyframes fade-inc {
  0% {opacity: 0; transform: translate(0, 20px)}
  45% {opacity: 0; transform: translate(0, 11px)}
  100% {opacity: 1;}
}
@keyframes fade-ind {
  0% {opacity: 0; transform: translate(0, 20px)}
  60% {opacity: 0; transform: translate(0, 8px)}
  100% {opacity: 1;}
}
@keyframes fade-ine {
  0% {opacity: 0; transform: translate(0, 20px)}
  75% {opacity: 0; transform: translate(0, 5px)}
  100% {opacity: 1;}
}

.svg-loader{
  position: absolute;
  height: 50px; width: 50px; display: none;
}


/*/ timeline */
.timeline-copy-content{ width: 43% !important; }
.timeline-graph{ width: 50% !important;}
@media only screen and (max-width: 950px) {
  .timeline-copy-content{ width: 100% !important; }
  .timeline-graph{ width: 100% !important;}
}
.container-timeline {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.timeline-graph {
  position: relative;
}
.timeline-graph:after {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  margin-left: -1px;
  width: 10px;
  height: 100%;

  background-image: linear-gradient(
    to bottom,
    rgba(23, 28, 75, 0) 0%,
    rgba(23, 28, 75, 1) 10%,
    rgba(23, 28, 75, 1) 90%,
    rgba(23, 28, 75, 0) 100%
  );
  z-index: 1
}

.timeline-no-bar.timeline-graph::after {
  display: none;
}

.timeline-block {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  justify-content: space-between;
  clear: both;
  margin-bottom: 75px;
  cursor: pointer;
  position: relative;
}

.timeline-no-bar .timeline-block {
  margin-bottom: 60px;
}

.timeline-block-right {
  float: right;
}

.timeline-block-left {
  float: left;
  direction: rtl
}

.marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #171C4B;
  background: #e3e8f2;
  margin-top: 10px;
  z-index: 9999;
}

.isOpen .marker{
  background: #171C4B;
}

.timeline-block-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.timeline-content {
  width: 95%;
  padding: 0 15px 0 0;
  color: #666
}

.timeline-content h3 {
  margin-top: -48px;
  margin-bottom: 10px;
  font-size: 40px;

  color:  var(--pale-red) ;
  text-align: center;
  font-family: "Knockout 68 A", "Knockout 68 B"; font-style: normal; font-weight: 400;
}

.timeline-content span {

  color: #fff;
  text-transform: uppercase;
  background-color: var(--dusk-blue);
  text-align: center;
  display: block;
  width: 100%;
  padding: 10px;
  margin: 0 auto;
  font-size: 22px;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B";
font-style: normal; font-weight: 800;
}
.timeline-content .panel {
  background-color: rgba(40,80,156, 0.9);
  padding: 1.5rem;
}
.timeline-content .panel p {
  color: white;
  line-height: 1.5em;
  word-spacing: 1px;
}
.timeline-content .panel a {
  color: var(--pale-red);
  text-decoration: none;
}
.timeline-content .panel a:hover {
  text-decoration: none;
  color: white;
}
.triangle-left {
  position: relative;
  float: left;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent #28509C transparent transparent;
  margin-top: 12px;
  padding-left: 15px;
}

/* @media screen and (max-width: 768px) {
  .container:before {
     left: 8px;
     width: 2px;
  }
  .timeline-block {
     width: 100%;
     margin-bottom: 30px;
  }
  .timeline-block-right {
     float: none;
  }

  .timeline-block-left {
     float: none;
     direction: ltr;
  }
} */

/* labels graph */
.gif-chart .highcharts-axis-labels text{
  font-size: 1rem !important;
}

.highcharts_treemap_chart .highcharts-label.highcharts-tooltip{
  background-color: var(--bunting) !important;
}

.highcharts_treemap_chart .highcharts-label.highcharts-tooltip span{
  position: relative !important;
}

#grading-the-states {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 950px) {
  /* #grading-the-states .container > main {
    gap: 0;
  } */

  .container-timeline {
    margin: 0 auto;
    padding-top: 0;
  }

  .timeline-content {
    padding-right: 0;
    width: 100%;
  }

  .timeline-no-bar .timeline-block:last-child {
    margin-bottom: 0;
  }
}

#get-in-touch {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 4.5rem 1rem;
}

#get-in-touch .gif-get-in-touch__image img {
  box-shadow: none;
  aspect-ratio: auto;
}

.dropdown-content.show {
  max-height: 360px;
  overflow: auto;
}

.dropdown-content.show + svg {
  color: #fff;
  transform: rotate(180deg);
}

.gif-chart .highcharts-axis-title {
  font-size: 15px !important;
  text-transform: uppercase;
}

.data-viz.viz5 .gif-chart__header {
  margin-bottom: 1rem !important;
}

.data-viz.viz5 .gif-chart__title {
  padding: 0 1rem 1rem 0;
  /* margin-left: -10px; */
  color: var(--dark-blue-grey);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 2.125rem;
  /* margin-bottom: 3.125rem; */
  /* margin-bottom: 1.5rem; */
  text-align: center;
}

.data-viz.viz5 section.gif-chart {
  padding-top: 0;
  padding-bottom: 2.5rem;
}
.data-viz.viz5 .gif-chart__contain {
  min-width: auto;
  display: block;
  width: 100%;
}
.data-viz.viz5 .gif-fullwidth {
  width: 95%;
}

.data-viz.viz5 .gif-chart__title,
.data-viz.viz5 .chart-legend {
  padding: 0 5% 0 145px;
}

.data-viz.viz5 .chart-legend {
  color: var(--cello);
  display: flex;
  gap: 35px;
  margin: 0 auto;
  justify-content: center;
}

.data-viz.viz5 .chart-legend li {
  display: flex;
  gap: 0.75rem;
}

.data-viz.viz5 .chart-legend__color {
  background-color: currentColor;
  border-radius: 100%;
  height: 20px;
  width: 20px;
}

.data-viz.viz5 .chart-legend__label {
  font-weight: 700;
  font-size: 22px;
}

.data-viz.viz3,
.data-viz.viz4,
.data-viz.viz5,
main #take-action,
main #prev-scorecards,
.state-rankings,
.state-highlights,
.litigation-section,
.state-comparison {
  padding-left: 1rem;
  padding-right: 1rem;
}

.litigation-cards {
  display: flex;
  flex-direction: column;
}

.litigation-card {
  background-color: var(--dusk-blue);
  border-radius: 20px;
  box-shadow: rgba(40, 81, 156, 0.4) 0px 4px 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  /* margin: 0.75rem; */
  padding: 42px 32px;
}

.litigation-card.is-pale-red {
  background-color: var(--pale-red);
}

.litigation-card-copy {
  line-height: 1.5;
}

.litigation-card-copy p,
.litigation-card-copy a {
  color: inherit;
}

.litigation-card-header {
  align-items: flex-start;
  display: flex;
}

.litigation-card-title {
  font-family: "Knockout 71 A", "Knockout 71 B";
  font-size: 40px;
  line-height: 90%;
  /* width: 100%; */
  margin: 0;
}

.litigation-card-label-icon {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.litigation-card-icon {
  height: 46px;
  width: 46px;
}

.litigation-card-label {
  text-transform: uppercase;
  border: 1px solid #fff;
  border-radius: 2px;
  padding: 5px;
}

.litigation-card-buttons {
  display: flex;
  margin-top: 1rem;
  gap: 1rem;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B", sans-serif;
  font-weight: 300;
}

.litigation-card-button {
  align-items: center;
  border-radius: 4px;
  background: #fff;
  color: var(--dusk-blue);
  display: inline-flex;
  text-decoration: none;
  padding: 0 16px;
  line-height: 46px;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  transition-property: border, box-shadow, color;
  transition-duration: 500ms;
  transition-timing-function: ease-in-out;
}

.litigation-card-button:hover {
  box-shadow: inset 0 3.125rem var(--pale-red);
  color: #fff !important;
}

.litigation-card.is-pale-red .litigation-card-button {
  color: var(--pale-red);
}

.litigation-card.is-pale-red .litigation-card-button:hover {
  box-shadow: inset 0 3.125rem var(--dusk-blue);
}

.litigation-card-button-icon {
  width: 21px;
}

.litigation-card-button-icon svg {
  aspect-ratio: 1/1;
  width: 100%;
}

.litigation-card-button-icon svg,
.litigation-card-button-icon path {
  fill: currentColor;
}

@media screen and (max-width: 1023px) {
  #get-in-touch .container {
    max-width: none;
  }
}

@media screen and (max-width: 767px) {
  #us-table {
    margin-top: 0;
    padding-top: 0;
  }

  .highlight-card {
    width: 100%;
  }

  .state-comparison,
  .litigation-cards,
  .datawrapper-embed-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .litigation-cards {
    gap: 20px;
  }

  .litigation-card {
    padding: 1rem;
  }

  .litigation-card-header {
    gap: 1rem;
  }

  .litigation-card-label-icon {
    flex-direction: row-reverse;
    margin-bottom: 1rem;
  }

  .litigation-card-header {
    border-bottom: 1px solid #fff;
    flex-direction: column-reverse;
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .gif-get-in-touch .wp-block-media-text__content {
    gap: 16px !important;
  }

  #get-in-touch .gif-get-in-touch__media {
    display: none !important;
  }

  #get-in-touch .gif-heading {
    margin-bottom: 0;
  }

  .state-highlights header {
    width: 100%;
  }

  .state-highlights .header-copy {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  section.data-viz.viz4 header {
    margin-bottom: 1rem;
  }

  #get-in-touch,
  section.gif-chart,
  main > section {
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
  }

  main > section.viz5 {
    display: block;
    /* padding-top: 0; */
  }

  section.viz5 .section-title {
    margin-top: 0;
  }
}

@media screen and (min-width: 768px) {
  section.data-viz.viz5 .container > main {
    flex-direction: row-reverse;
  }

  .litigation-cards {
    margin: 0 auto;
    max-width: 1024px;
    gap: 50px;
  }

  .litigation-card-copy-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .litigation-card {
    flex-direction: row;
    min-height: 386px;
  }

  .litigation-card-header {
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    width: 40%;
    flex: none;
  }

  .litigation-card-label-icon {
    order: 1;
    position: relative;
    top: -8px;
  }

  .litigation-card-title {
    order: 2;
  }

  .litigation-card-copy {
    font-size: 20px;
  }

  .litigation-card.is-title_left .litigation-card-icon {
    order: 1;
  }

  .litigation-card.is-title_left .litigation-card-label {
    order: 2;
  }

  .litigation-card.is-title_left .litigation-card-header {
    border-right: 1px solid #fff;
    padding-right: 30px;
    margin-right: 30px;
  }

  .litigation-card.is-title_right .litigation-card-header {
    align-items: flex-end;
    border-left: 1px solid #fff;
    padding-left: 30px;
    margin-left: 30px;
    order: 2;
  }
}

@media screen and (max-width: 950px) {
  .data-viz.viz5 .graph-container {
    padding-left: 0;
    padding-right: 0;
  }
  .data-viz.viz5 main {
    gap: 2rem;
  }
  .data-viz.viz5 .gif-card__cta-box {
    margin-bottom: 1rem;
  }
  .data-viz.viz5 .gif-chart__title,
  .data-viz.viz5 .chart-legend {
    padding-right: 0;
    padding-left: 0;
  }
  .data-viz.viz5 .gif-fullwidth {
    width: 100%;
  }

  .litigation-card-button {
    font-size: 12px;
    line-height: 40px;
    flex: 1;
    /* gap: 12px; */
    justify-content: center;
  }
  .litigation-card-button-icon {
    width: 18px;
  }
}

@media screen and (max-width: 590px) {
  .data-viz.viz5 .chart-legend li {
    flex-direction: column;
    align-items: center;
  }

  .you-can-help ul li {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
  }

  .you-can-help ul li .help-item-img {
    width: 70px;
    padding-left: 0;
  }

  .you-can-help ul li a {
    padding-right: 0;
  }

  .you-can-help p:empty {
    display: none;
  }

  .gif-get-in-touch__buttons {
    flex-direction: column;
  }

  .gif-get-in-touch .wp-block-media-text__content {
    font-size: 1rem !important;
  }
}


.gif-get-in-touch .wp-block-media-text__content {
  line-height: 1.25 !important;
  font-family: "Ringside Condensed SSm A", "Ringside Condensed SSm B" !important;
}
@media screen and (max-width: 950px) {
  .gif-get-in-touch .wp-block-media-text__content {
    line-height: 1.5 !important;
  }
  .gif-get-in-touch .gif-title {
    font-size: 2rem;
  }
}

@media screen and (min-width: 591px) {
  .gif-get-in-touch .gif-get-in-touch__row {
    gap: 60px;
  }

  .data-viz.viz3 .timeline-copy-content {
    order: 2;
  }

  .data-viz.viz3 .timeline-graph {
    order: 1;
  }
}