/* GENERAL TYPOGRAPHY */
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: 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%;
  margin-top: 34px;
  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;
}

#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-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 A", "Ringside Condensed B";
  font-size: 1.65rem;
  line-height: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

#hero .subtitle p {
  margin: 0;
}

#hero .copy {
  font-family: "Ringside Condensed A", "Ringside Condensed B";
  font-weight: 400;
  font-size: 1.275rem;
  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(--cello);
  font-weight: bold;
  cursor: pointer;
}

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

.toggle-container input:checked ~ .map-label {
  color: var(--cello);
  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 A", "Ringside Condensed B";
  font-weight: bold;
  font-size: 20px;
  line-height: 130%;
  text-align: center;
  background-color: #e1e3f6;
  color: var(--bunting);
  padding: 2rem 3rem 2rem 1rem;
  border-right: 1px solid var(--bunting);
  border-bottom: 2px solid var(--bunting);
  position: relative;
  vertical-align: middle;
  cursor: pointer;
}

.state-rankings table th > span {
  display: block;
  font-weight: 400;
  font-size: 16px;
}

.state-rankings table th button:first-of-type {
  position: absolute;
  top: 30%;
  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;
}

.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;
  color: var(--bunting);
  vertical-align: middle;
}

.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(--bunting);
}

.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 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;
}

.state-rankings table tr:hover {
  background-color: var(--dusk-blue);
}

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

.state-rankings table tr:hover a {
  color: white;
  border-bottom-color: var(--bunting);
}

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

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

.state-rankings table tr:not(:last-of-type)::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: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: "Ringside Condensed A", "Ringside Condensed B";
  font-weight: 600;
  font-size: 18px;
  color: var(--bunting);
  position: relative;
}

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

.dropdown svg {
  position: absolute;
  right: 20px;
  top: 40%;
  width: 20px;
  height: 15px;
  pointer-events: none;
}

.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(--bunting);
  border-color: var(--bunting);
  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(--bunting);
  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 A", "Ringside Condensed B";
  font-weight: 600;
  font-size: 18px;
  color: var(--bunting);
  line-height: 133.5%;
}

.dropdown-content label:hover {
  background-color: var(--bunting);
  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 {
  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: var(--bunting);
}

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

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

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

.map-legend > div:nth-of-type(5) .color-key {
  background-color: var(--pale-red);
}

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

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

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

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

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

.map-legend.per100k > div:nth-of-type(6) .color-key {
  background-color: #171c4b;
}

.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(#d5442f, #172c4b);
}

.map-legend.gradient.goodTop div {
  width: 48px;
  height: 100%;
  background: linear-gradient(#172c4b, #d5442f);
}

.map-legend.gradient.per100k div {
  width: 48px;
  height: 100%;
  background: linear-gradient(#172c4b, #d5442f);
}

.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);
  transition: all 0.25s;
  stroke-miterlimit: 10;
  stroke-width: 0.5px;
}

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

.state:hover .us-map-cls-3 {
  fill: var(--iron) !important;
  fill-opacity: 1;
  transition: all 0.1s;
}

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

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

.tippy-box[data-theme~="mapTip"] > .tippy-arrow {
  color: white;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content a {
  color: var(--cello);
  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;
  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:last-of-type {
  align-items: center;
  justify-content: space-between;
}

.tippy-box[data-theme~="mapTip"] > .tippy-content .tooltip-data {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: #bdc2d8;
  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 A", "Ringside Condensed B";
  color: var(--bunting);
  text-decoration: underline;
  text-decoration-color: var(--dusk-blue);
  text-underline-offset: 1px;
}

.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;
  padding: 90px 10px;
  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;
}

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

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

#get-involved header .section-copy p {
  margin: 0;
}

#get-involved main {
  flex-direction: column;
  justify-content: center;
  height: auto;
  gap: 2.5rem;
  margin-right: 3rem;
}

#get-involved .gif-button.gif-button--gif-button.gif-button--primary {
  background-color: var(--bunting);
  transform: translateY(20px);
}

/*  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;
  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: 50%;
  margin: 0 auto;
}

.highlight-card .highlight-rank > span:first-of-type {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: white;
  color: var(--bunting);
  margin: auto;
  line-height: 160px;
  font-size: 60px;
  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 A", "Ringside Condensed B";
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.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;
}

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

.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 li {
  background-color: white;
  border-radius: 4px;
  margin: 1rem 0;
  padding-left: 12px;
  height: 46px;
}

.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:hover {
  background-color: #e1e3f7;
}

.highlight-card .highlight-learn-more li a {
  display: flex;
  align-items: center;
  line-height: 46px;
  font-size: 16px;
  text-decoration: none;
  color: var(--cello);
}

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

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

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

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

.highlights-positive .highlight-learn-more li a div > span {
  color: var(--dusk-blue);
  font-weight: 500;
}

.highlights-positive .highlight-learn-more svg.circle-arrow-right path {
  fill: var(--dusk-blue);
}

.highlights-positive .highlight-learn-more svg.compare-arrow path {
  fill: var(--dusk-blue);
  stroke: var(--dusk-blue);
}

.highlights-negative .highlight-learn-more li a div > span {
  color: var(--pale-red);
  pointer-events: none;
  font-weight: 500;
}

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

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

.highlights-negative
  .highlight-learn-more
  svg.scorecard-icon
  path:not(.scorecard-check),
.highlights-negative .highlight-learn-more svg.scorecard-icon circle {
  fill: var(--pale-red);
  stroke: var(--pale-red);
}

.highlights-negative .highlight-learn-more svg.scorecard-icon rect {
  stroke: 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;
}

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

.data-viz .gif-chart__title {
  text-transform: capitalize;
}

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

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

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

.data-viz.viz2 .copy {
  margin: auto;
}
.viz2 .gif-container {
  display: flex;
}

.viz2 .gif-fullwidth {
  width: 45%;
}

.viz2 .gif-chart__legend {
  display: none !important;
}

.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 .copy {
  flex: 1 1 30%;
}

.data-viz.viz3 main .viz-container {
  flex: 1 1 60%;
}

.data-viz.viz4 .copy {
  margin: auto;
}

/* COMPARISON */

.state-comparison {
  height: auto;
}

.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: #e1e3f6;
  color: var(--bunting);
  padding: 2rem 3rem;
  text-transform: uppercase;
  cursor: pointer;
}

.state-comparison .dropdown svg {
  position: absolute;
  right: 50px;
  width: 30px;
  height: 25px;
  color: #28509c;
}

.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(--bunting);
  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 A", "Ringside Condensed B";
  font-weight: 600;
  font-size: 18px;
  color: var(--bunting);
  line-height: 0.5;
}

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

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

.state-comparison .table-footer {
  display: flex;
  align-items: center;
}

/* GUN LAWS SAVE LIVES */

.gun-laws-save {
  height: initial;
}

.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 */

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

.tannish-bg {
  background-color: #f2efee;
}
.copy {
  line-height: 180%;
}

.copy p {
  font-size: 20px;
}

.copy a {
  margin-top: 3rem;
}

/* 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 main .copy {
  flex: 1;
  max-width: 908px;
  margin: 0 auto;
  text-align: center;
}

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

.you-can-help ul {
  flex: 2.5;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.8rem;
}

.you-can-help ul li {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0px 5px 18px rgba(0, 18, 53, 0.5);
  width: 30%;
  min-width: 360px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.you-can-help ul li:hover {
  background-color: #e1e3f7;
}

.you-can-help ul li h3 {
  color: var(--bunting);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 1.5rem;
  display: flex;
}

.you-can-help ul li p {
  color: var(--bunting);
  line-height: 22px;
}

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

.you-can-help .gif-divider-2 {
  background-image: linear-gradient(
    to right,
    var(--cello),
    rgba(40, 81, 156, 0)
  );
}

/* PREVIOUS SCORECARD SECTION */

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

#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 A", "Ringside Condensed B";
  font-weight: 700;
  margin: 0;
  color: white;
}

#prev-scorecards ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  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;
}

.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: 13px;
  padding: 0 5px;
  color: var(--cello);
  font-weight: 400;
  letter-spacing: 0.25px;
  font-family: "Ringside Condensed A", "Ringside Condensed 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;
}

#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: var(--cello);
  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: 10px;
}

#line-graph .row-numbers .row,
#scatterplot-graph .row-numbers .row {
  font-size: 0.5em;
  width: 99%;
  text-align: left;
  padding-left: 1%;
  line-height: 1.5em;
  border-top: 1px solid var(--cello);
  opacity: 0.1;
}

#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: 101%;
  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: 96%;
  margin: -4px auto 0;
  position: absolute;
}

#scatterplot-graph .column-numbers .row {
  border-right: 1px solid var(--cello);
  opacity: 0.3;
  height: 8px;
  margin-top: 3px;
}

#scatterplot-graph .column-numbers .row.bright {
  font-size: 0.7em;
  text-align: left;
  border-right: 1px solid var(--cello);
  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: 0;
  right: 0;
}

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

#scatterplot-graph .points .point-column .point {
  position: absolute;
  bottom: 0;
  opacity: 1;
  background: var(--dusk-blue);
  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%, -30%);
  transition: width 1s, height 1s, color 1s, background 0.25s, opacity 0.5s;
  z-index: 1;
  opacity: 0.5;
}

#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: var(--cello);
  color: var(--cello);
}

#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: var(--dusk-blue);
  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: 100;
  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;
  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;
}

#scorecard-modal h3 {
  font-family: "Ringside Condensed A", "Ringside Condensed 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 .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";
}

#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
  .gif-button.gif-button--gif-button.gif-button--primary {
  background-color: transparent;
  border: 2px solid var(--pale-red);
}

#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;
  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 svg {
  margin-right: 0.5rem;
}

.how-to-improve li span a {
  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;
  margin-top: 1.5rem;
}

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

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

.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: 10;
  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: left;
}

.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 (max-width: 1350px) {
  .highlight-card {
    padding: 15px;
    margin: 0.25rem;
    width: 335px;
    height: 480px;
  }

  .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-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: 0.5rem;
  }

  .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 (max-width: 950px) {
  /* hero */

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

  #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;
  }

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

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

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

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

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

  .copy p {
    font-size: 14px;
    line-height: 1.4;
  }

  .copy a {
    margin: none;
  }

  /* 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;
    padding: 90px 10px;
  }

  #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;
    margin: 0;
  }

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

  #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: 1.25rem 0 0;
    width: 100%;
    font-size: 18px;
  }

  .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;
  }

  .highlights-positive,
  .highlights-negative {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .highlight-card {
    margin-bottom: 1rem;
  }

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

  /* 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;
  }

  .you-can-help ul li {
    min-width: 100%;
    text-align: left;
  }

  /* PREVIOUS SCORECARDS */

  #prev-scorecards ul {
    gap: 8%;
  }

  /* 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 */

  .viz2 .gif-container {
    display: block;
  }

  .viz2 .gif-fullwidth {
    width: 100%;
    max-width: 100%;
  }
  .data-viz.viz1 main {
    flex-direction: column-reverse;
    gap: 1.25rem;
  }
}

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

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

@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;
  }
}

.highcharts-background {
  display: none;
}

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

.gif-chart {
  padding-top: 4.5rem !important;
}
.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;
}

.viz2 .gif-chart__chart[type="highcharts_pie_chart"] .highcharts_pie_chart {
  width: 100% !important;
}
