@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Nunito+Sans:wght@400;600;700&display=swap");

html {
  --pst-font-family-base: "Nunito Sans", sans-serif;
  --pst-font-family-heading: "Nunito", sans-serif;
}

.bd-content div.highlight,
.bd-content pre {
  max-width: 100%;
}

.sd-card {
  border-radius: 8px;
}

/* A file dropdown is already a container, so do not nest another card around
   its only code block. The pre element keeps its own padding and copy button. */
.bd-content details.sd-dropdown:has(
    > .sd-summary-content > div[class^="highlight-"]:only-child
  ),
.bd-content details.sd-dropdown:has(
    > .sd-summary-content > div[class^="highlight-"]:only-child
  )
  > .sd-summary-title,
.bd-content details.sd-dropdown
  > .sd-summary-content:has(> div[class^="highlight-"]:only-child) {
  border-radius: 0;
}

.bd-content details.sd-dropdown
  > .sd-summary-content:has(> div[class^="highlight-"]:only-child) {
  padding: 0;
  overflow: hidden;
}

.bd-content details.sd-dropdown
  > .sd-summary-content
  > div[class^="highlight-"]:only-child {
  margin: 0;
}

.bd-content details.sd-dropdown
  > .sd-summary-content
  > div[class^="highlight-"]:only-child
  > div.highlight,
.bd-content details.sd-dropdown
  > .sd-summary-content
  > div[class^="highlight-"]:only-child
  pre {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.conversion-example {
  position: relative;
  margin-bottom: 1rem;
}

.conversion-example__format {
  display: none;
  position: absolute;
  z-index: 2;
  top: -0.2rem;
  right: 0;
  min-height: 2.35rem;
  align-items: center;
}

.conversion-example--enhanced .conversion-example__format {
  display: flex;
}

.conversion-example__format label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--pst-color-text-base);
  font-size: 0.875rem;
  font-weight: 600;
}

.conversion-example__format-select {
  min-height: 2rem;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  border: 1px solid var(--pst-color-border);
  border-radius: 4px;
  background-color: var(--pst-color-surface);
  color: var(--pst-color-text-base);
}

.conversion-example__format-select:focus-visible {
  outline: 0.1875rem solid var(--pst-color-accent);
  outline-offset: 0.125rem;
}

.highlight-console .terminal-prompt--continuation {
  color: var(--pst-color-text-muted);
  font-weight: 400;
  opacity: 0.45;
}

.conversion-example-panel {
  display: none;
}

.conversion-example-panel.is-active {
  display: block;
}

@media (max-width: 47.99rem) {
  .conversion-example__format {
    position: static;
    top: auto;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
  }
}

.navbar-brand.logo img.logo__image {
  height: 2rem;
}

.navbar-brand.logo .logo__title {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
}

.rendered-chart {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  padding: 0.75rem;
  border: 1px solid var(--pst-color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}

.conversion-example__image {
  width: min(100%, 32.1875rem);
}

.conversion-example-output {
  display: none;
}

.conversion-example-output.is-active {
  display: block;
}

.conversion-example__html-frame {
  display: block;
  width: min(100%, 36rem);
  height: 17rem;
  margin: 1rem auto;
  border: 1px solid var(--pst-color-border);
  border-radius: 8px;
  background: #fff;
}

.conversion-example-output-vega > div[class^="highlight-"] {
  max-height: 24rem;
  margin: 1rem 0;
  overflow: auto;
}

.conversion-example-output-url,
.url-output {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--pst-color-border);
  border-radius: 4px;
  background: var(--pst-color-surface);
}

.conversion-example__url-link,
.url-output a {
  overflow-wrap: anywhere;
  font-family: var(--pst-font-family-monospace);
  font-size: 0.875rem;
}

.conversion-example__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0.75rem 0 1rem;
}

.conversion-example__actions[hidden] {
  display: none;
}

.conversion-example__download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
}
