/* DaisyUI docs-style copyable HTML snippet */
.code-wrapper {
  background-color: var(--syntax-bg);
  border: var(--border) solid var(--syntax-border);
  border-radius: var(--radius-box);
}

.code-wrapper pre.syntax {
  border-radius: var(--radius-box);
  direction: ltr;
  min-height: 7.5rem;
  max-height: 24rem;
  overflow-x: auto;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.8125rem;
}

/*
  GitHub-style roles on the theme's own grays, with hues from its Tailwind
  palette: success green, secondary indigo, info sky. light-dark() follows the
  color-scheme each daisyUI theme sets, so the snippet switches with the theme.
*/
.code-wrapper,
.syntax {
  --syntax-bg: var(--color-base-200);
  --syntax-border: var(--color-base-300);
  --syntax-punctuation: var(--color-base-content);
  --syntax-comment: light-dark(var(--color-neutral-500), var(--color-neutral-400));
  --syntax-equals: var(--syntax-comment);
  --syntax-bracket: var(--syntax-comment);
  --syntax-tag-name: light-dark(var(--color-green-700), var(--color-green-400));
  --syntax-attr-name: light-dark(var(--color-indigo-600), var(--color-indigo-300));
  --syntax-attr-value: light-dark(var(--color-sky-700), var(--color-sky-300));
  --syntax-token: var(--syntax-punctuation);
}

.syntax {
  line-height: 1.5em;
  text-align: left;
}

.syntax .line {
  border-radius: 2px;
  padding-block: 0.3em;
}

pre.syntax[tabindex="0"]:focus-visible {
  outline: 2px solid var(--syntax-border);
  outline-offset: -4px;
}
