.brand-logo {
  max-height: 100px;
  margin-right: 1rem;
  max-width: 200px;
  width: auto;
  border-radius: 10px;
  padding: 10px;
  background-color: white;
}

.header-content.header-content--brand {
  flex-direction: row;
  align-items: center;
}.bubble-map-container {
  position: relative;
  overflow: hidden;
  cursor: grab;
  width: 100%;
  height: 100%;
}

.bubble-map-container > figure,
.bubble-map-container > svg {
  display: block;
  margin: 0;
  max-width: 100%;
}

.bubble-map-plot {
  display: block;
  max-width: 100%;
}

.bubble-map-plot--figure {
  margin: 0;
}

.bubble-map-container.grabbing {
  cursor: grabbing;
}

.bubble-map-tooltip {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #111;
  pointer-events: none;
  display: none;
  white-space: pre-wrap;
  max-width: 280px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.callout {
  background-color: #fee2e2;
  border: 2px solid #dc2626;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 2rem auto;
  text-align: center;
  max-width: 600px;
  font-size: 16px;
  font-weight: bold;
  color: #dc2626;
  font-family: sans-serif;
}
/* matching cell paddings in DataTable.css */

.cell-bg {
  margin: -0.4rem -0.3rem;
  padding: 0.4rem 0.5rem;
}
.chart-container {
  position: relative;
  height: 100%;
  flex-direction: column;

  /* Use inline-flex so page-break-inside works in Chrome */
  display: inline-flex;
  align-items: stretch;
  width: 100%;
}

.chart-container > *:not(:first-child) {
  margin-top: 1rem;
}

/* Side-by-side layout: the legend gets its own column beside the chart. Only
   DonutChart opts into this, and only it emits the grid-area wrappers below. */
.chart-container--legend-right {
  display: inline-grid;
  grid-template-areas:
    'header header'
    'chart  legend';
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.chart-container--legend-right > * {
  margin-top: 0;
}

.chart-container--legend-right .chart-container__header {
  grid-area: header;
}

/* No min-height reset here: .chart-content's 300px is what gives this row — and
   so the legend beside it — a height in the first place. */
.chart-container--legend-right .chart-container__chart {
  grid-area: chart;
}

/* Positioned, because the legend inside is rendered with ChartLegend's `fill`
   option: it takes itself out of flow so it can never grow the card, and sizes
   to this cell instead. That makes this cell's height the chart column's. */
.chart-container--legend-right .chart-container__legend {
  grid-area: legend;
  position: relative;
  min-height: 0;
}

/* Page too narrow to spare a side column: fall back to stacking. ChartLegend.css
   drops out of `fill` at the same width. */
@container (max-width: 640px) {
  .chart-container--legend-right {
    grid-template-areas:
      'header'
      'legend'
      'chart';
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
}

.chart-container--scorecard {
  min-height: 6rem;
}

.chart-container:hover .chart-button {
  opacity: 1;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.chart-header__title {
  flex-grow: 1;
  line-height: 1.3;
  margin: 0;
  display: block;

  /* override any title element styles set in top-level */
  page-break-before: auto;
  page-break-after: auto;
  break-before: auto;
  break-after: auto;
}

.chart-header--scorecard .chart-header__title {
  text-align: center;
}

.chart-header__buttons {
  display: flex;
  align-items: center;
  flex-grow: 0;
  margin: 0 -0.2rem;
}

.chart-content {
  flex-grow: 1;
  min-height: 300px;
}

.chart-content--scorecard {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  min-height: initial;
}

.chart-button {
  margin: 0 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  color: #999;
  margin: 0 0.2rem;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0.5;
}

.chart-button:hover,
.chart-button:focus {
  color: #666;
}

.chart-tooltip__icon {
  cursor: help;
}

@media print {
  .chart-button {
    display: none;
  }
}

.chart-tooltip__content {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 6px;
  background: white;
  margin-top: 1.5rem;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
  min-width: 30ch;
  max-width: calc(max(60ch, 100%));
  z-index: 1;
  font-size: 0.8rem;
}

.chart-tooltip__icon:hover + .chart-tooltip__content,
.chart-tooltip__icon:focus + .chart-tooltip__content {
  display: block;
}

.export-csv-btn {
  cursor: pointer;
}
.rr-legend {
  font-size: 0.6rem;
  display: grid;
  gap: 0.5em;
  grid-template-columns: 1fr;
  max-height: 8rem;
  overflow: auto;
}

.rr-legend:not(:has(*)) {
  display: none;
}

/* Sizes to its parent rather than to its own content, so however many entries
   there are it scrolls instead of making that parent taller. Out of flow, so it
   contributes no height at all — a grid or flex parent is then free to take its
   height from a sibling. Requires a positioned parent. */
.rr-legend--fill {
  position: absolute;
  inset: 0;
  max-height: initial;
}

/* Too narrow for a parent to spare the side space this mode is for; callers
   stack their layout at the same width. Keep in step with ChartHeader.css. */
@container (max-width: 640px) {
  .rr-legend--fill {
    position: static;
    max-height: 8rem;
  }
}

/* Paper has no scrollbar, so run the full length rather than print whichever
   slice happened to be scrolled into view. */
@media print {
  .rr-legend--fill {
    position: static;
    max-height: initial;
    overflow: visible;
  }
}

.rr-legend:has(:nth-child(5)),
.rr-legend--horizontal {
  grid-template-columns: repeat(auto-fit, minmax(20ch, 1fr));
}

.rr-legend__item {
  display: flex;
}

.rr-legend__swatch {
  flex-shrink: 0;
  width: 1.5em;
  height: 0;
  margin-right: 0.3em;

  /* using borders (border color is set inline) so it shows up during print even when backgrounds are ignored */
  border-radius: 2px;
  border-top: 0.75em solid transparent;
  border-bottom: 0.75em solid transparent;
}

.rr-legend__label {
  display: inline-block;
  padding-top: 0.2em;
}
/* Small print qualifying the figures above it. Deliberately not a .callout: that is a
   red bordered alarm box, and a correction is routine bookkeeping, not a warning. */
.data-note {
  font-family: sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
  margin: 0.5rem 0 0;
}
.data-table.data-table.data-table {
  border-radius: 4px;
  overflow: hidden;

  form {
    margin: 0;
  }

  table {
    min-width: min-content;
  }

  th,
  td {
    padding: 0.4rem;
  }

  th:empty,
  td:empty {
    margin: 0;
    padding: 0;
    width: 0;
  }

  th:first-of-type,
  td:first-of-type {
    padding-left: 0.6rem;
  }
  th:first-of-type:empty,
  td:first-of-type:empty {
    padding-left: 0.2rem;
  }

  th:last-of-type,
  td:last-of-type {
    padding-right: 0.6rem;
  }

  thead {
    background-color: var(--theme-background-b);
    th {
      color: var(--theme-foreground-faint);
      border-bottom: solid 1px var(--theme-foreground-faintest);
      font-weight: initial;
      overflow: visible;

      span:not(:empty) {
        width: 0.6rem;
        margin-left: -0.6rem;
        text-align: center;
      }
    }
  }

  tfoot {
    position: sticky;
    bottom: 0;
    background-color: var(--theme-background-alt);

    tr td {
      border-top: solid 1px var(--theme-foreground-faintest);
      font-weight: bold;
    }
  }
}
.chart-tooltip-2-container {
  position: relative;
}

.chart-tooltip-2 {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  border: 1px solid #ccc;
  padding-inline: 0.5rem;
  border-radius: 6px;
  background: white;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
  min-width: 10ch;
  max-width: 30ch;
  z-index: 1;
  font-size: 0.8rem;

  transition:
    left 0.2s ease-out,
    right 0.2s ease-out,
    top 0.2s ease-out,
    bottom 0.2s ease-out;
  margin-inline: 0.5rem;
}

.chart-tooltip-2__title {
  font-weight: bold;
}

.chart-tooltip-2__title,
.chart-tooltip-2__body {
  margin-block: 0.5rem;
}

.svg-plot {
  /* sizing works better in print view */
  display: block;
  height: auto;
  height: intrinsic;
  max-width: 100%;
}
/* Covers both forms of footnote reference: this component's own output and the
   <a href="#fn3">3</a> that markdown emits for a `[3]` reference link. Brackets
   live here rather than in either producer. */
a[href^='#fn'] {
  font-size: 0.75em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  white-space: nowrap;
  text-decoration: none;
}

a[href^='#fn']::before {
  content: '[';
}

a[href^='#fn']::after {
  content: ']';
}

a[href^='#fn']:hover {
  text-decoration: underline;
}
.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 0;
  margin: 0;
  font-family: sans-serif;
}

.header-content {
  display: none;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.header-subtitle {
  margin: 0;
  line-height: 1.5;
  color: #666;
  font-weight: normal;
}

.organization-name {
  font-size: 1rem;
  font-weight: bold;
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 5 / 5;
  justify-self: end;
  gap: 1rem;
}

@media print {
  .header-container {
    justify-content: flex-start;
    page-break-after: avoid;
    break-after: avoid;
  }

  .button-container {
    display: none !important;
  }
  .header-content {
    display: flex !important;
  }
}

.button-gray {
  background-color: #0d9488;
  color: white;
  padding: 0.2rem 1rem;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  max-width: 250px;
  display: flex;
  line-height: 1.5rem;
  align-items: center; /* Safari compat */
}

.button-gray svg {
  width: 1.2rem;
  margin-right: 0.5rem;
  margin-left: -0.5rem;
}

.button-gray:hover {
  background-color: #086159;
}

.button-gray:active {
  background-color: #032d2a;
}

.button-gray:disabled {
  background-color: #08615990;
  cursor: not-allowed;
}
@media print {
  @page {
    margin: 1rem;
  }

  ::-webkit-scrollbar {
    display: none;
  }

  * {
    scrollbar-width: none;
  }
}

@media print {
  .grid-print-row {
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    width: 100%;
    grid-template-columns: auto; /* Overrides theme columns */
  }

  /* Keep grouped elements together on the same page during print */
  .grid-print-group {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .grid-print-column {
    grid-template-columns: 1fr;
  }

  /* card styles */

  .card {
    max-width: 100%;
    overflow: visible;
    height: auto;
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-after: avoid;
    break-after: avoid;
    page-break-before: avoid;
    break-before: avoid;
  }
}

/* Extra layout utilities, to be used by report authors alongside normal grid classes */

.grid-cols-5 {
  @container (min-width: 640px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @container (min-width: 1024px) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Framework ships .grid-colspan-* for its own .grid-cols-2/3/4; these complete
   the set for the .grid-cols-5 defined above. Breakpoints match it, so a span
   never exceeds the column count the grid actually has at that width. */
@container (min-width: 640px) {
  .grid-cols-5 .grid-colspan-2,
  .grid-cols-5 .grid-colspan-3,
  .grid-cols-5 .grid-colspan-4,
  .grid-cols-5 .grid-colspan-5 {
    grid-column: span 2;
  }
}

@container (min-width: 1024px) {
  .grid-cols-5 .grid-colspan-3 {
    grid-column: span 3;
  }

  .grid-cols-5 .grid-colspan-4 {
    grid-column: span 4;
  }

  .grid-cols-5 .grid-colspan-5 {
    grid-column: span 5;
  }
}

/* Pins an item to the last of the five columns, so a control can sit at the
   right edge of a full-width filter row. Deliberately only at this width:
   below it the grid is two columns or one, which the date filter's own pair
   of inputs already fills, so a later control wraps to the next row. */
@container (min-width: 1024px) {
  .grid-cols-5 > .grid-col-last {
    grid-column: 5;
  }
}

/* Card utility styles, to be used by report authors */

.card--tall {
  min-height: 600px;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-full {
  grid-column: 1 / -1;
}

.card--blue {
  box-shadow: 0 0 0 0.5rem rgb(219, 234, 254) inset;
  border-color: rgb(147, 197, 253);
}

.card--violet {
  box-shadow: 0 0 0 0.5rem rgb(250, 245, 255) inset;
  border-color: rgb(216, 180, 254);
}

.card--green {
  box-shadow: 0 0 0 0.5rem rgb(220, 252, 231) inset;
  border-color: rgb(187, 247, 208);
}

.card--red {
  box-shadow: 0 0 0 0.5rem rgb(252, 222, 220) inset;
  border-color: rgb(247, 187, 187);
}
.leaderboard {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.leaderboard:not(:first-child) {
  margin-top: 0.5rem;
}

.leaderboard__row {
  display: flex;
  width: 100%;
  padding: 0.5rem;
  background: #f6f6f6;
  box-sizing: border-box;
  border-radius: 0.25rem;
  text-align: inherit;
  gap: 0.5rem;
}

.leaderboard__index,
.leaderboard__dimension,
.leaderboard__metric {
  display: inline-block;
}

.leaderboard__index {
  color: #666;
}
.leaderboard__metric {
  font-weight: bold;
}

.leaderboard__index::after {
  content: '.';
}

.leaderboard__metric {
  margin-left: auto;
}
.mask-toggle {
  border: 1px solid #ccc;
  display: inline-block;
  border-radius: 8px;
  padding: 0.1rem 0.1rem 0.1rem 0.5rem;

  form {
    width: 100%;
  }
}
.no-data-placeholder {
  font-family: sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #999;
  display: flex;
  height: 100%;
  align-items: center;
}

.no-data-placeholder--center {
  justify-content: center;
}
.page-header {
  width: 100%;
}

.site-heading {
  display: flex;
  flex-direction: column;
}

.site-title {
  display: block;
  max-width: 100%;
}

.page-title {
  display: none;
}

.site-logo {
  height: 100%;
  width: auto;
  display: none;
  padding-block: 0.5rem;
  box-sizing: border-box;
}

@media print {
   .page-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .site-logo {
    display: block;
    height: 80px;
    width: auto;
    flex-shrink: 0;
  }

  .site-title {
    margin-bottom: 0;
    font-size: 20px;
  }

  .page-title {
    display: block;
    text-align: left;
    font-size: 16px;
    font-weight: semibold;
    color: #000;
    font-family: inherit;
    font-family: sans-serif;
    font-style: normal;
    margin-bottom: 0;
    max-width: 100%;
  }
}
.select-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;

  form {
    max-width: 100%;
    width: 100%;

    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease;
    box-sizing: border-box;
  }

  select {
    font-size: 14px;
    appearance: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    max-height: 6rem;
  }

  label {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    display: block;
    color: #6b7280;
  }

  select:hover,
  select:focus {
    border-color: rgba(12, 74, 110, 0.6);
    outline: none;
  }

  .select-header {
    padding-block: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .select-content {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 0.5rem;
    overflow: hidden;
  }

  .select-content.no-padding {
    padding: 0;
  }

  .reset-btn {
    flex-grow: 0;
    flex-shrink: 0;
    all: unset;
    color: #0d9488;
    width: 1.3rem;

    svg {
      display: block;
      width: 100%;
      /* Safari compatibility */
    }
  }

  .reset-btn:hover {
    color: #086159;
  }
}

.select-container.select-container.select-container {
  /* table overrides */

  tr > :first-of-type input {
    padding: 0 6px 4px 7px;
    width: 1rem;
    height: 1rem;
  }

  td,
  th {
    padding: 6px 9.5px 6px 0;
  }

  :is(td, th):first-child {
    padding-left: 4px;
  }

  thead {
    background-color: var(--theme-background-b);
    th {
      color: var(--theme-foreground-faint);
      border-bottom: solid 1px var(--theme-foreground-faintest);
      font-weight: initial;
      overflow: visible;

      span:not(:empty) {
        width: 0.6rem;
        margin-left: -0.6rem;
        text-align: center;
      }
    }
  }
}

.hidden {
  display: none;
}

.observablehq--block:has(.hidden) {
  display: none;
}

@media print {
  .select-container {
    display: inline-block;
    width: auto;

    form {
      height: auto;
      min-height: unset;
      padding: 0;
      border: none;
      background: transparent;
    }

    select {
      font-size: 14px;
    }

    select option:not(:checked) {
      display: none;
    }

    select option:checked {
      white-space: normal;
      background: transparent;
    }
  }

  .reset-btn {
    display: none;
  }
}
/* Styles to change default header and sidebar
styling to our horizontal navigation, and to
remove any default spacing we don't need */

body {
  --observablehq-sidebar-height: 3rem;
  --observablehq-header-height: 5rem;
}

@media print {
  body {
    --observablehq-header-height: 6rem;
  }
}

body:not(:has(#observablehq-header)) {
  --observablehq-header-height: 0;
}

#observablehq-sidebar-backdrop,
#observablehq-sidebar-close,
#observablehq-sidebar-toggle {
  display: none;
}

#observablehq-sidebar {
  visibility: initial;
  display: block;
  position: initial;
  width: auto;
  position: sticky;
  padding: 0 2rem;
  height: var(--observablehq-sidebar-height);
  top: var(--observablehq-header-height);
  border-bottom: 1px solid #ccc;
  overflow: visible;
  box-sizing: content-box;
}

#observablehq-sidebar > ol {
  max-width: initial;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
}

#observablehq-sidebar > ol:first-child {
  display: none;
}

.observablehq-link {
  position: relative;
}

.observablehq-link a {
  background: transparent;
  padding: 1rem 1rem;
  margin: 0;
  text-decoration: none !important;
  color: #000 !important;
  border-left: none !important;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.observablehq-link-active a {
  font-weight: bold;
}

.observablehq-link-active::before {
  width: 100%;
  content: '';
  display: block;
  background: #000;
  height: 2px;
  position: absolute;
  top: auto !important;
  bottom: -1px !important;
  left: 0;
}

#observablehq-center {
  margin: 2rem;
  --observablehq-inset-left: 0rem !important;
  padding: 0 !important;
}

@media print {
  #observablehq-center {
    margin-inline: 1rem;
  }
}

#observablehq-header {
  margin: 0;
  box-sizing: border-box;
  background-color: var(--theme-background-alt);
  height: var(--observablehq-header-height);
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 1rem 2rem 0;
  border: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
}

@media print {
  #observablehq-header {
    position: static;
    border-bottom: 1px solid #ccc;
    padding-inline: 0;
  }
}

#observablehq-main {
  margin-top: var(--observablehq-header-height) !important;
}

@media print {
  #observablehq-main {
    margin-top: 0 !important;
    width: 100%;
    page-break-before: avoid;
    break-before: avoid;
  }
}

h2 {
  max-width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
  scroll-margin-top: calc(var(--observablehq-sidebar-height) + 1rem);
  page-break-after: avoid;
  break-after: avoid;
}

.observablehq--block {
  display: contents;
}

@media print {
  .observablehq--block:empty {
    display: none;
  }
}

p,
table,
figure,
figcaption,
h1,
h2,
h3,
h4,
h5,
h6 {
  max-width: 100%;
}

/* Supporting Materials */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.card-with-media {
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  padding: 0.75rem;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
}

.card-media img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.card-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(13, 148, 136, 0.9);
  color: white;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.card-body p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: #6b7280;
  flex: 1;
}

a.button-gray {
  color: white !important;
  text-decoration: none !important;
}

a.button-gray:visited {
  color: white !important;
}