/* Plot's legend adds a figure wrapper, so Quarto's direct-SVG theme
   adjustments do not reach those charts. Theme both forms explicitly. */
.observablehq figure[class^="plot-"],
.observablehq svg[class^="plot-"] {
  background: transparent !important;
  color: var(--bs-body-color);
}

/* Plot's default tip has a white fill. Use live theme variables so existing
   tips and newly rendered charts both follow Quarto's theme switch. */
.observablehq g[aria-label="tip"] path {
  fill: var(--bs-body-bg);
  stroke: var(--bs-border-color, var(--bs-body-color));
}

.observablehq g[aria-label="tip"] text {
  fill: var(--bs-body-color);
  stroke: none;
}

body.quarto-dark .observablehq {
  color-scheme: dark;
}

.splash {
  margin: 1.5rem 1rem;
  padding: 0.75rem;
  border: 1px solid var(--bs-secondary-color);
  border-radius: 0.5rem;
  background-color: #fafbfc;
}

body.quarto-dark .splash {
  background-color: #292d32;
  border-color: #555b62;
}

.splash .cell,
.splash .cell-output-display,
.splash .observablehq figure {
  margin-bottom: 0;
}

/* Keep the splash plot title understated. */
.splash .observablehq figure[class^="plot-"] > h2,
.splash-plot-title {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: normal;
}

/* Long bibliography URLs must not widen the article or its responsive plots. */
#refs a {
  overflow-wrap: anywhere;
}
