.mobile-root {
  flex: 1 1 0;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #232735;
  position: relative;
}

.mobile-root > .uk-container {
  margin-top: 5px;
}

.mobile-root > .content-grid {
  row-gap: 1rem;
}

.mobile-root p {
  font-size: 0.875rem;
  margin: 0.875em 0;
}

@media only screen and (min-width: 750px) {
  .mobile-root p {
    font-size: 1rem;
  }
}

.mobile-h2 {
  margin-top: 4px;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-h3 {
  text-align: left;
  margin-top: 4px;
  font-weight: normal;
  font-size: 1rem;
  line-height: 2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.mobile-header-line {
  text-align: center;
  position: relative;
  margin: 1rem 0.5em;
}

.mobile-header-line-bg {
  background: #fafafc;
  border-top: 1px solid #d3d4d8;
  border-bottom: 1px solid #d3d4d8;
}

.mobile-header-line h2 {
  line-height: 1;
  margin: 0;
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.mobile-header-line h2 span {
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-header-line a.uk-link-muted,
.mobile-header-line a.uk-link-muted:visited {
  color: inherit !important;
}

@media only screen and (min-width: 750px) {
  .mobile-header-line h2 {
    font-size: 1.125rem;
  }
}

.mobile-back-line {
  display: flex;
  justify-content: center;
}

.mobile-back-line h2 {
  position: relative;
}

.mobile-back {
  position: absolute;
  left: -1.5em;
  top: 0;
  height: 100%;
  width: 0.7em;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-back:hover {
  opacity: 0.5;
}

.mobile-th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  vertical-align: top;
}

.mobile-th-range {
  color: initial;
  position: relative;
  margin: 5px 4px 0 4px;
  padding: 2px 2px 0 2px;
  display: flex;
  justify-content: space-between;
}

.mobile-th-range::before {
  content: '';
  border: 1px solid currentColor;
  border-bottom-width: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
}

.mobile-table {
  border-collapse: collapse;
  width: 100%;
}
.mobile-table > thead > tr {
  border-bottom: 1px solid #f0f1f3;
}
.mobile-table > thead > tr > th {
  padding: 0.75rem 4px;
}
.mobile-table > tbody {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.mobile-table .addon {
  font-size: 0.75rem;
}

@media only screen and (min-width: 750px) {
  .mobile-row-annotation {
    margin-left: -21px !important;
  }

  .mobile-table > tbody {
    font-size: 1rem;
  }
  .mobile-table .addon {
    font-size: 0.875rem;
  }
}

.mobile-table > tbody > tr:not(.addon) > td {
  padding: 0.75rem 4px;
  vertical-align: middle;
}

.mobile-table > tbody > tr.mobile-table-first > td {
  padding-bottom: 0.25rem;
}
.mobile-table > tbody > tr.mobile-table-other > td {
  padding-top: 0.25rem;
}

.mobile-table > tbody > tr:not(:nth-last-child(2)) td[rowspan] {
  border-bottom: 1px solid #f0f1f3;
}

.mobile-table > tbody > tr.mobile-table-fist,
.mobile-table > tbody > tr:last-of-type {
  border-bottom: none;
}

.mobile-table .important {
  font-weight: 600;
}
.mobile-table > tbody > tr.important {
  border-bottom: 2px solid #d3d4d8;
}

.mobile-table > .sort-indicator {
  text-align: right;
  background: #fafafc;
}

.mobile-table-chart {
  position: relative;
  height: 45px;
  min-width: 6em;
}

.mobile-table-chart-small {
  margin: 0.75rem 4px 1px 4px !important;
  height: 3em;
}

.mobile-table-chart > .vega-embed {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.mobile-table-chart .message-overlay::after {
  padding: 0;
  height: 75%;
}

.chart-300,
.chart-150,
.chart-50 {
  position: relative;
}

.chart-300 > .vega-embed {
  width: 100%;
  height: 300px;
}
.chart-150 > .vega-embed {
  width: 100%;
  height: 150px;
}
.chart-50 > .vega-embed {
  width: 100%;
  height: 50px;
}

.chart-aspect-4-3 {
  position: relative;
  /** padding for legend **/
  padding-top: calc(60% + 50px);
}

.chart-aspect-4-3 > .vega-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.chart-breakout-wrapper {
  position: relative;
}
.chart-breakout-container {
  position: relative;
}

.chart-breakout.vega-embed,
.chart-breakout.chart-breakout-container,
.chart-breakout > .vega-embed {
  --max-width: 95vw;
  /* breakout the chart up to 80vw */
  width: max(100%, var(--max-width));
  margin-left: calc(-0.5 * var(--max-width) + 50%);
}

@media only screen and (min-width: 1600px) {
  .chart-breakout.vega-embed,
  .chart-breakout.chart-breakout-container,
  .chart-breakout > .vega-embed {
    --max-width: 80vw;
  }
}

.mobile-map > canvas {
  border: 1px solid #f0f1f3;
  border-radius: 3px;
}

.mobile-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
  column-gap: 1em;
  row-gap: 0.5em;
  font-size: 0.75rem;
}

.mobile-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: row;
  column-gap: 1em;
  row-gap: 0.5em;
  font-size: 0.75rem;
}

.mobile-two-col__highlight {
  padding: 2rem;
  column-gap: 3em;
  row-gap: 2rem;
}

.mobile-kpi {
  display: flex;
  flex-direction: column;
}

.mobile-kpi h3 {
  font-size: 1.125rem;
  margin: 0.6em 0;
  font-weight: 600;
  flex-grow: 1;
  line-height: 1.5rem;
}

.mobile-kpi .sub {
  font-size: 0.75rem;
}

.mobile-kpi .subheader {
  font-size: 0.875rem;
  margin: 0 0.6em;
  flex-grow: 1;
  line-height: 1.5rem;
}

@media only screen and (min-width: 750px) {
  .mobile-kpi .subheader {
    font-weight: 600;
  }
}

/* have it here such that it can be used outside of svelte */
.per100k {
  display: inline-block;
  font-size: 50%;
  text-align: center;
  line-height: 1;
}
.per100k > span {
  display: block;
}
.per100 {
  display: inline-block;
  font-size: 50%;
  line-height: 1;
}
