#map_outer {
  pointer-events: none;
  max-width: 100%;
}

#map_outer a[href*="simplemaps"] {
  display: none !important;
}

/* Hide simplemaps built-in navigation dropdowns */
.us-map-2 #map_zoom,
.us-map-2 #map_access {
  display: none !important;
}

.us-map-2__wrapper {
  position: relative;
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
}

.us-map-2__header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.us-map-2__header .page-header__title {
  margin-bottom: 0;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 2.625rem;
  font-weight: 700;
}

.us-map-2__combobox {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.25rem 0;
  border: none;
  border-left: 5px solid #0B272D;
  border-bottom: 2px solid #0B272D;
  background: transparent;
}

/* !important needed to override global theme input border/background styles */
.us-map-2__search,
.us-map-2 .us-map-2__search,
.us-map-2__info-panel .us-map-2__search {
  flex: 1;
  padding: 0.25rem 0.5rem 0.5rem 1rem;
  border: none !important;
  background: transparent !important;
  font-size: 1.75rem;
  font-weight: 400;
  font-family: "DM Serif Display", serif;
  color: #0B272D;
  outline: none !important;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.us-map-2__search::placeholder {
  color: #0B272D;
  font-family: "DM Serif Display", serif;
  opacity: 0.45;
}

.us-map-2__toggle {
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem 0 0;
  flex-shrink: 0;
}

.us-map-2__toggle:hover svg path {
  fill: #0075f2;
}

.us-map-2__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 20;
}

.us-map-2__dropdown li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  color: #333;
}

.us-map-2__dropdown li:hover,
.us-map-2__dropdown li.is-active {
  background: #f7eee7;
  color: #0B272D;
}

.us-map-2__dropdown li.is-selected {
  font-weight: 700;
  color: #0B272D;
  background: #f7eee7;
}

.us-map-2 #us_state_2__selector {
  padding: 0.25rem 2rem 0.5rem 1rem;
  width: auto;
  max-width: 100%;
  border: none;
  border-left: 5px solid #0B272D;
  border-bottom: 2px solid #0B272D;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='%230B272D' d='M0 0l7 8 7-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 0.25rem);
  background-position-y: 55%;
  font-size: 1rem;
  font-weight: 400;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  color: #0B272D;
  cursor: pointer;
  margin: 0 0 1.25rem 0;
  line-height: 1.2;
  border-radius: 0;
}

.us-map-2__legend {
  max-width: 12rem;
  margin-bottom: 0.5rem;
}

.us-map-2__legend-bar {
  height: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(to right, #0F4059, #095CA4, #0075F2, #108ADE, #3DA79B, #58B57D, #9DD3AF, #D8F0E0);
}

.us-map-2__legend-labels {
  display: flex;
  justify-content: space-between;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.2rem;
}

.us-map-2__legend-labels--top {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: #0B272D;
  letter-spacing: 0.02em;
}

.us-map-2__layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.us-map-2__map-col {
  flex: 0 0 63%;
  max-width: 63%;
}

.us-map-2__info-panel {
  flex: 1 1 auto;
  position: sticky;
  top: 2rem;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
}

.us-map-2__info-panel.is-updated .us-map-2__state-body {
  animation: us-map-2-panel-flash 0.4s ease-out;
}

@keyframes us-map-2-panel-flash {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .us-map-2__info-panel.is-updated .us-map-2__state-body {
    animation: none;
  }
}

.us-map-2__selector-label {
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 0.25rem;
}

.us-map-2__info-content {
  padding: 0;
}

.us-map-2__state-body {
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 1rem;
  color: #0B272D;
  line-height: 1.6;
}

.us-map-2__state-body p {
  margin: 0 0 0.75rem 0;
}

.us-map-2__state-body ul {
  margin: 0 0 0.75rem 0;
  padding-left: 1.25rem;
  font-size: 1rem;
}

.us-map-2__state-body li {
  margin-bottom: 0.25rem;
}

.us-map-2__state-body p:last-child,
.us-map-2__state-body ul:last-child {
  margin-bottom: 0;
}

.us-map-2__profile-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0B272D;
  font-weight: 700;
  text-decoration: underline;
  font-size: 1rem;
}

.us-map-2__profile-link:hover {
  text-decoration: none;
}

.us-map-2__score-row {
  display: flex;
  align-items: baseline;
  padding: 0.625rem 0;
  border-bottom: 1px solid #e8e8e8;
  gap: 0.75rem;
}

.us-map-2__score-row:last-of-type {
  border-bottom: none;
}

.us-map-2__score-row--primary {
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid #0B272D;
}

.us-map-2__score-row--primary .us-map-2__score-label {
  font-weight: 700;
}

.us-map-2__score-row--primary .us-map-2__score-rank {
  font-weight: 700;
  font-size: 1.25rem;
}

.us-map-2__score-row--primary .us-map-2__score-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.us-map-2__score-label {
  flex: 1 1 auto;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 1rem;
  color: #0B272D;
}

.us-map-2__score-rank {
  flex: 0 0 auto;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0B272D;
  font-variant-numeric: tabular-nums;
}

.us-map-2__score-value {
  flex: 0 0 auto;
  font-family: "proxima-nova", "Open Sans", sans-serif;
  font-size: 1rem;
  color: #555;
  min-width: 2.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media screen and (min-width: 768px) {
  .us-map-2__wrapper {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .us-map-2__header .page-header__title {
    font-size: 3.25rem;
  }
}

@media screen and (max-width: 767px) {
  .us-map-2__layout {
    flex-direction: column;
  }
  .us-map-2__map-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .us-map-2__info-panel {
    position: static;
    min-height: auto;
  }
  .us-map-2__header .page-header__title br {
    display: none;
  }
  .us-map-2 #us_state_2__selector {
    max-width: 100%;
  }
}
