#ny-hub-photo-top {
  background-size: cover;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

#ny-hub-photo-top h1 {
  position: absolute;
  text-align: center;
  width: 100%;
  font-size: 55px;
  padding: 130px 0;
  color: #fff;
  filter: drop-shadow(4px 5px 8px #111);
  top: 50px;
}

#topic-page-intro {
  margin: 30px 0;
  font-size: 16px;
}

#dh-menu-links {
  position: sticky;
  position: -webkit-sticky;
  top: 100px;
}

#dh-menu {
  border: 1px solid #111;
  border-radius: 3px;
  padding: 20px;
  /* required */
}

.data-hub__header {
  padding: 30px 0 40px;
}

.data-hub__header .container p {
  margin-bottom: 20px;
  font-size: 18px;
}

.data-hub-wrap {
  display: flex;
  width: 100%;
  overflow-x: visible;
}

.data-hub-left-column {
  display: relative;
  min-width: 300px;
  padding-right: 50px;
  overflow-x: visible;
}

.data-hub-right-column {
  max-width: 900px;
}

.data-hub-chart {
  margin: 35px 0 50px;
}

.container p {
  text-align: left;
}

hr {
  margin: 20px 0;
}

.dh-wrap-row-outer {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.dh-wrap-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 90%;
}

.dh-wrap-row h3 {
  flex-shrink: 0;
}

.dh-chart-text {
  font-size: 17px;
}

h3.dh-title {
  font-family: ABC Whyte;
}

.data-hub-footer {
  display: flex;
  flex-wrap: wrap;
  row-gap: 40px;
  column-gap: 40px;
  margin: 100px 0 15px;
}

h3.dh-h3 {
  font-family: "GT Sectra" !important;
  font-size: 24px;
}

.outro {
  margin-bottom: 100px;
}

.dh-related-resources {
  flex-basis: 50% - 20px;
  flex-grow: 1;
  font-size: 16px;
}

.dh-additional-data {
  flex-basis: 50% - 20px;
  flex-grow: 1;
  font-size: 16px;
}

.dh-about-data {
  flex-basis: 50% - 20px;
  flex-grow: 1;
  font-size: 16px;
}

.data-hub-right-column ul li {
  margin-left: 20px;
}

.data-hub-right-column ul li.share-item {
  margin-left: 0 !important;
}

select {
  background-color: #fff;
  background-image: url(/dist/icons/select-down.svg);
  color: #231f20;
  background-repeat: no-repeat;
  background-position: right 5px bottom 10px;
  font-family: ABC Whyte;
  font-size: 16px;
  border: 1.5px solid #bbb;
  border-radius: 3px;
  padding: 7px 25px 7px 7px;
  margin-top: -2px;
  margin-left: 3px;
  text-transform: none;
}

select#datavar1,
select#datavar2 {
  height: 32px;
}

.nonselect {
  font-family: ABC Whyte;
  font-size: 16px;
  margin-top: 2px;
  margin-left: 6px;
  margin-right: 10px;
}

.hide {
  display: none;
}

.data-type {
  padding: 5px 10px;
  background-color: #ddd;
  margin-top: -2px;
  cursor: pointer;
  height: 30px;
}

button.count {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

button.percent {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

button.count,
button.percent {
  border: 0;
  height: 32px;
}

button.count.selected,
button.percent.selected {
  background-color: #2E1D97;
  color: #fff;
}

.data-types {
  display: flex !important;
}

.selecteddatatype {
  background-color: #2E1D97;
  color: #fff;
}

.data-type:first-of-type {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  border-left: 0px !important;
}

.data-type:last-of-type {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-left: 1px solid #999;
}

.data-type:nth-of-type(2) {
  border-left: 1px solid #999;
}

.data-type:nth-of-type(3) {
  border-left: 1px solid #999;
}

.data-type.selected {
  background-color: #2E1D97;
  color: #fff;
}

#dh-menu li {
  list-style-image: none;
  font-size: 20px;
}

#dh-menu li a {
  color: #231f20;
}

#dh-menu li a:hover {
  color: #3e2bb1;
  text-decoration: underline;
}

.download {
  color: #ef4136;
  text-decoration: underline;
  cursor: pointer;
}

/* jail page */
#data-hub-city-state-toggle {
  display: flex;
  flex-direction: row;
  width: 100%;
  position: sticky;
  top: 100px;
  background: #fff7f0;
  z-index: 1;
}

.statesnapshot {
  padding-top: 20px;
}

#data-hub-above-toggle {
  width: 100%;
  position: sticky;
  top: 0px;
  background: #fff7f0;
  z-index: 1;
}

#ny-hub-city,
#ny-hub-state {
  width: 50%;
  text-align: center;
  font-size: 22px;
  padding: 5px 0;
  border: 1px solid #2E1D97;
  cursor: pointer;
}

#ny-hub-city {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

#ny-hub-state {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

#data-hub-city-state-toggle .active {
  font-weight: bold;
  background-color: #2E1D97;
  color: #fff;
}

#wrap,
#wrap1,
#wrap2 {
  margin-bottom: 40px;
}

.tooltip {
  font-family: "GT Walsheim Regular", sans-serif;
  position: absolute;
  padding: 8px 10px;
  background: #fff;
  color: #000;
  border: 0px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.8;
  visibility: hidden;
  -moz-box-shadow: 0 0 15px #aaa;
  -webkit-box-shadow: 0 0 15px #aaa;
  box-shadow: 0 0 15px #aaa;
  z-index: 1;
}

.axis text {
  font-size: 14px;
}

/* snapshot */

#snapshot {
  margin: 40px 0;
}

.tile-title {
  font-weight: bold;
}

.wrap-snapshot,
.wrap-snapshot-4 {
  display: flex;
  font-size: 18px;
}

.wrap-snapshot>div,
.wrap-snapshot-4>div {
  padding: 20px;
  margin-top: 10px;
  background-color: #fff;
  margin-right: 10px;
  border-radius: 3px;
  width: calc(100%/5);
}

.wrap-snapshot-4>div {
  width: calc(100%/4) !important;
}

.wrap-snapshot>div:last-of-type,
.wrap-snapshot-4>div:last-of-type {
  margin-right: 0;
}

.check {
  width: 10px;
  height: 11px;
  /* filter: hue-rotate(240deg); */
  filter: grayscale(1);
}

/* factsheet */

#factsheet {
  font-size: 18px;
  margin-top: 40px;
}

/* trends */

#trends {
  margin-top: 50px;
}

#tableWrap {
  margin-left: 30px;
  margin-top: 30px;
}

#chart0,
#chart1 {
  height: 450px;
  width: 760px;
}

.area {
  fill: steelblue;
  clip-path: url(#clip);
}

.line {
  stroke: #333;
  fill: none;
  clip-path: url(#clip);
}

.zoom {
  cursor: move;
  fill: none;
  pointer-events: all;
}

.handle {
  fill: #4D4E56;
  stroke: #fff;
  stroke-opacity: 0.5;
  stroke-width: 1.25px;
}

select {
  font-size: 16px;
  font-weight: normal;
}

input {
  line-height: normal;
  font-size: 16px;
  font-family: ABC Whyte;
  border-radius: 3px;
  border: 1.5px solid #bbb;
  padding: 4px;
  height: 32px;
  font-weight: normal;
}

rect.selection {
  fill-opacity: 1;
  fill: #ccc;
  stroke-width: 0;
}

rect.handle {
  stroke-width: 0;
}

text.legend-text {
  font-size: 16px;
  display: inline-block;
}

.axis line,
.axis path {
  stroke: #aaa;
}

.y.axis .tick text,
.axis--y .tick text {
  text-anchor: end;
}

/* table */

#table0,
#table1 {
  padding-left: 30px;
  margin-top: 20px;
  margin-bottom: 10px;
}

#currVar {
  padding: 10px;
}

#dates {
  display: flex;
  font-weight: bold;
  border: 1px solid #ccc;
  /* width: 97.5%; */
}

#daterange {
  display: flex;
  margin-left: auto;
  width: 200px;
}

.context .axis .tick {
  display: none;
}

.handle-right-text,
.handle-right-text1 {
  text-anchor: start;
}

.handle-left-text,
.handle-left-text1 {
  text-anchor: end;
}

.stdate,
.stdate1,
.stdate2 {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  padding: 10px 6px;
}

.eddate,
.eddate1,
.eddate2 {
  border-right: 1px solid #ccc;
  padding: 10px 6px;
}

.end {
  display: flex;
  margin-right: 5px;
}

.chnumber {
  padding: 10px 6px;
  border-right: 1px solid #ccc;
}

.chpercent {
  margin-left: 10px;
  padding: 10px 6px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.grid>div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
}

.grid>div.first,
#currVar {
  flex-basis: calc(34%) !important;
}

.grid>div.second,
.grid>div.third,
.stdate,
.stdate1,
.stdate2,
.eddate,
.eddate1,
.eddate2 {
  flex-basis: calc(16%) !important;
}

input.picker[type="date"] {
  position: relative;
}

input.picker[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  color: transparent;
  background: transparent;
}

input#datepicker,
input#datepickerstatestart,
input#datepickerstateend {
  width: 120px;
  cursor: pointer;
}

.grid>div.fourth,
.grid>div.fifth,
.chnumber,
.chpercent {
  flex-basis: calc(15%) !important;
}

.box {
  margin: 0;
}

.box {
  color: #000;
  border-right: .5px solid #ccc;
  border-bottom: .5px solid #ccc;
}

.box.first,
#currVar {
  border-left: .5px solid #ccc;
}

#currVar {
  border-right: 0px;
}

.box.hrbox {
  border-top: .5px solid #ccc;
  border-bottom: 2px solid #ccc;
  padding: 6px !important;
  font-weight: bold;
}

.box.second,
.box.third,
.box.fourth,
.box.fifth {
  text-align: right;
}

.overlay,
.overlay1 {
  fill: none;
  pointer-events: all;
}


.charttooltip {
  font-family: "ABC Whyte";
  position: absolute;
  pointer-events: none;
  padding: 8px 10px;
  background: #fff;
  visibility: hidden;
  opacity: .9;
  border-radius: 3px;
  -moz-box-shadow: 0 0 15px #aaa;
  -webkit-box-shadow: 0 0 15px #aaa;
  box-shadow: 0 0 15px #aaa;
  margin-left: 10px;
  z-index: 1;
}

/* cross tabs */

.flexboth {
  display: flex;
  flex-direction: row;
  font-family: "ABC Whyte";
  font-size: 16px;
  line-height: 195%;
}

.flexboth>div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flexhorz {
  display: flex;
  flex-direction: row;
  font-family: "GT Sectra";
  font-size: 24px;
  line-height: 195%;
  align-items: center;
}

.flexhorz>div,
.dh-title-3 {
  flex-shrink: 0;
}

.flexvert {
  display: flex;
  flex-direction: column;
  font-family: "ABC Whyte";
  font-size: 16px;
}

.flexend {
  margin-left: auto;
  font-family: "ABC Whyte";
  font-size: 16px;
  padding: 0px 10px;
  height: 32px;
}

/* neo blocks */

#neo {
  padding-left: 0;
}

#pageintro {
  font-size: 16px;
  margin: 40px 0;
}

@media only screen and (max-width: 1260px) {
  .data-hub-right-column {
    max-width: 750px;
  }
}

@media only screen and (max-width: 1050px) {
  .data-hub-right-column {
    max-width: 600px;
  }
}

@media only screen and (max-width: 940px) {
  .data-hub-right-column {
    max-width: 900px;
  }

  #ny-hub-photo-top {
    height: 200px;
  }

  #ny-hub-photo-top h1 {
    padding: 30px 20px;
    font-size: 32px;
    top: 0px;
  }

  .data-hub__header {
    padding: 15px 0 0px;
  }

  .data-hub-wrap {
    flex-direction: column;
  }

  #dh-menu {
    padding: 10px 20px;
  }

  .data-hub-left-column {
    min-width: 100%;
    padding-right: 0px;
  }

  .data-hub-right-column h1 {
    padding: 40px 0 10px;
  }

  .dh-wrap-row {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .dh-wrap-row select {
    margin-left: 0;
    max-width: 100%;
    margin-top: 3px;
  }

  h3.dh-title {
    margin-bottom: 3px;
  }

  .data-types {
    margin-top: 3px;
  }

  .datawrapper-chart {
    width: 350px;
  }

  .data-hub-chart {
    margin: 15px 0 35px;
  }
}

@media only screen and (max-width: 400px) {

  #ny-hub-photo-top {
    height: 145px;
  }

  .wrap-snapshot,
  .wrap-snapshot-4 {
    flex-wrap: wrap;
  }

  .wrap-snapshot>div,
  .wrap-snapshot-4>div {
    min-width: 115px;
    padding: 15px;
    margin-right: 6px;
    margin-top: 7px;
    width: calc(100%/2 - 10px) !important;
  }

  #table0 {
    padding-left: 0px;
    font-size: 12px;
  }
}