.auto-grid {
  --auto-grid-min-size: 16rem;
  --auto-grid-gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--auto-grid-min-size)), 1fr));
  grid-gap: var(--auto-grid-gap);
  margin-top: .5em;
  display: grid;

  & > * {
    margin: 0;
  }
}

.oi-dashboard .oi-dashboard-inner {
  --auto-dashboard-min-size: 200px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--auto-dashboard-min-size)), 1fr));
  grid-gap: 1em;
  width: 100%;
  display: grid;
}

.oi-dashboard .panel h3 {
  font-size: 1em;
  font-weight: normal;
  color: inherit !important;
}

.oi-dashboard .panel {
  color: #000;
  background: #dfdfdf;
  padding: 1em;
}

.oi-dashboard .bignum {
  text-align: center;
  margin-top: 0;
  font-size: 4em;
  font-weight: bold;
  line-height: 1.25em;
  display: block;
}

.oi-dashboard .footnote {
  text-align: center;
  font-size: .7em;
  display: block;
}

@media screen and (width <= 1200px) {
  .oi-dashboard {
    grid-gap: 1.5vw;
  }

  .oi-dashboard .panel {
    font-size: max(10px, 1.5vw);
  }

  .oi-dashboard .footnote {
    font-size: max(10px, .7em);
  }
}

.oi-map-hex .hex:focus, .oi-map-hex .hex path:focus {
  outline: none;
}

.oi-map-hex .hex.outline path {
  stroke: #000;
  stroke-width: 4px;
}

.dashboard .pane {
  --background: "white";
  --foreground: black;
  color: var(--foreground);
  background: var(--background);
  border-style: var(--border);
  border-width: thin;
  border-color: #bbb;
  padding: 3em;
}

.impact-block {
  --background: white;
  --foreground: black;
  --min-height: unset;
  color: var(--foreground);
  background: var(--background);
  min-height: var(--min-height);
  max-width: 100%;
  height: 100%;
  text-align: var(--align);
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: color .3s linear, background-color .3s linear;
  display: flex;
  position: relative;
  overflow: hidden;

  & * {
    margin-top: 0;
  }
}

.table-of-contents {
  padding: 2em;
}

.table-of-contents ul {
  padding-top: 1em;
}

.table-of-contents {
  border: 1px solid #bbb;
}

.frontmatter {
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;

  & > * {
    flex: 0 20em;

    &:first-child {
      flex-grow: 2;
    }
  }
}

.panel-quote {
  border: thin solid #bbb;
  padding: 2em;
  list-style: none;
}

.panel-quote blockquote:before, .panel-quote blockquote:after {
  content: "“";
  font-size: 1.5rem;
  font-weight: 700;
}

.panel-quote blockquote:after {
  content: "”";
}

.panel-quote blockquote {
  font-weight: 400;
}

.panel-quote figcaption:before {
  content: "— ";
}

.panel-quote figcaption {
  font-style: italic;
  font-weight: 700;
}

.dash-quote li {
  flex-basis: 100%;
}

.impact-link {
  text-decoration: none;
}

.impact-block {
  --background: lightgrey;
  --foreground: black;
  --min-height: unset;
  color: var(--foreground);
  background: var(--background);
  min-height: var(--min-height);
  max-width: 100%;
  height: 100%;
  text-align: var(--align);
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: color .3s linear, background-color .3s linear;
  display: flex;
  position: relative;
  overflow: hidden;

  & * {
    margin-top: 0;
  }
}

.dash-quote {
  grid-gap: 1em;
  margin: 0;
  padding-bottom: 1em;
  display: flex;
}

.dash-quote figure {
  flex-basis: 100%;
}

.data-banner {
  text-align: center;
  color: #fff;
  background: #125164;
  padding: 1rem;
  font-weight: bold;

  & a {
    color: #b2c929;
    text-decoration: underline;
  }
}
