dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(
    .simple
  )
  .field-list
  > dt {
  font-size: var(--font-size--small);
  text-transform: uppercase;
  background-color: var(--color-background-secondary);
}

span.default_value {
  font-weight: normal;
}

/* Fix for xarray dark mode */
/* https://github.com/pradyunsg/furo/discussions/790#discussioncomment-9298183 */
html,
body {
  --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));
  --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));
  --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));
  --xr-border-color: var(--jp-border-color2, #e0e0e0);
  --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);
  --xr-background-color: var(--jp-layout-color0, white);
  --xr-background-color-row-even: var(--jp-layout-color1, white);
  --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);
}

/* Table cell colors in notebooks */
.output_area tr {
  background-color: var(--xr-background-color-row-even) !important;
  color: var(--xr-font-color0) !important;
}

.output_area tr:nth-child(odd) {
  background-color: var(--xr-background-color-row-odd) !important;
}

.output_area thead {
  border-bottom: 1px solid var(--xr-font-color0) !important;
}

/* Mermaid diagrams use the Furo palette in light and dark themes. */
pre.mermaid {
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow-x: auto;
}

pre.mermaid > svg {
  display: block;
  width: min(100%, 42rem) !important;
  min-width: 34rem;
  height: auto !important;
  margin-inline: auto;
}

pre.mermaid .node rect {
  fill: var(--color-background-secondary) !important;
  stroke: var(--color-foreground-border) !important;
  stroke-width: 1.25px !important;
  rx: 8px;
  ry: 8px;
}

pre.mermaid .node.input rect {
  fill: var(--color-background-primary) !important;
  stroke-dasharray: 4 3;
}

pre.mermaid .node.focus rect {
  stroke: var(--color-brand-primary) !important;
  stroke-width: 2px !important;
}

pre.mermaid .node.output rect {
  fill: var(--color-background-hover) !important;
}

pre.mermaid .nodeLabel,
pre.mermaid .edgeLabel,
pre.mermaid text {
  color: var(--color-foreground-primary) !important;
  fill: var(--color-foreground-primary) !important;
}

pre.mermaid .nodeLabel {
  font-size: 14px;
  line-height: 1.3;
}

pre.mermaid .nodeLabel small {
  color: var(--color-foreground-muted);
  font-size: 0.82em;
  /* WebKit bug 23113: opacity misplaces HTML inside transformed foreignObject. */
  opacity: 1;
}

pre.mermaid .flowchart-link {
  stroke: var(--color-foreground-muted) !important;
  stroke-width: 1.4px !important;
}

pre.mermaid marker path {
  fill: var(--color-foreground-muted) !important;
  stroke: var(--color-foreground-muted) !important;
}

#analysis-workflows pre.mermaid .cluster rect {
  fill: transparent !important;
  stroke: var(--color-foreground-border) !important;
  stroke-width: 1px !important;
  rx: 10px;
  ry: 10px;
}

#analysis-workflows pre.mermaid .cluster-label {
  color: var(--color-foreground-primary) !important;
  font-size: 15px;
  font-weight: 600;
}

/* Keep generated plotting previews aligned in the How-to gallery. */
.plotting-gallery-card .sd-card-body {
  display: flex;
  flex-direction: column;
}

.plotting-gallery-card figure {
  display: flex;
  min-height: 12rem;
  margin: 0.75rem 0 0;
  align-items: center;
  justify-content: center;
}

.plotting-gallery-card img.plotting-gallery-preview {
  width: 100%;
  height: 12rem;
  object-fit: contain;
}

.plotting-gallery-symbol {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
}
