/* ombelle Code Block */
[data-preview-family="ombelle"] [data-slot='pv-code-block'] {
  --code-block-background: oklch(0.2 0.012 275);
  --code-block-foreground: oklch(0.93 0.005 275);
  --code-block-comment: oklch(0.631 0.007 275);
  --code-block-string: oklch(0.82 0.11 150);
  --code-block-keyword: oklch(0.78 0.12 6);
  --code-block-attr: oklch(0.82 0.1 70);
  --code-block-property: oklch(0.82 0.08 210);
  --code-block-punct: oklch(0.734 0.006 275);
  --code-block-line-number: oklch(0.524 0.008 275);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: calc(var(--shadow-x) * 4 / 3) calc(var(--shadow-y) * 4 / 3) 0
    var(--shadow-color, var(--border));
  background: var(--code-block-background);
  color: var(--code-block-foreground);
  font-family: var(--font-family);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-header'] {
  display: flex;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  padding-block: 6px;
  padding-inline: 10px 6px;
  border-block-end: 1px solid
    color-mix(in oklab, var(--code-block-foreground) 18%, transparent);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-tabs'] {
  display: flex;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-title'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-tab'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-copy'] {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  block-size: 28px;
  min-inline-size: 28px;
  margin: 0;
  padding-block: 0;
  padding-inline: 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in oklab, var(--code-block-foreground) 70%, transparent);
  font: 600 12px / 1 var(--font-mono, ui-monospace, monospace);
  white-space: nowrap;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-title'] {
  display: block;
  flex: 0 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  background: color-mix(
    in oklab,
    var(--code-block-foreground) 16%,
    transparent
  );
  color: var(--code-block-foreground);
  line-height: 28px;
  text-overflow: ellipsis;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-tab'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-copy'] {
  cursor: pointer;
  transition:
    background-color var(--motion-duration),
    color var(--motion-duration);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-tab']:hover,[data-preview-family="ombelle"] 
[data-slot='pv-code-block-tab'][data-state='active'] {
  color: var(--code-block-foreground);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-tab'][data-state='active'] {
  background: color-mix(
    in oklab,
    var(--code-block-foreground) 16%,
    transparent
  );
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-copy'] {
  margin-inline-start: auto;
  border: 1.5px solid
    color-mix(in oklab, var(--code-block-foreground) 35%, transparent);
  color: var(--code-block-foreground);
  font-family: var(--font-family);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-copy']:hover {
  background: color-mix(
    in oklab,
    var(--code-block-foreground) 10%,
    transparent
  );
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-tab']:focus-visible,[data-preview-family="ombelle"] 
[data-slot='pv-code-block-copy']:focus-visible {
  outline: 2.5px solid var(--code-block-foreground);
  outline-offset: 3px;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-command'] {
  box-sizing: border-box;
  margin: 0;
  padding-block: 14px;
  padding-inline: 16px;
  background: transparent;
  color: inherit;
  font: 400 13px / 1.6 var(--font-mono, ui-monospace, monospace);
  white-space: pre;
  tab-size: 2;
}
/* A bare monospace family would shrink the inner code element. */
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] code,[data-preview-family="ombelle"] 
[data-slot='pv-code-block-command'] code {
  font: inherit;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] {
  overflow: auto;
  counter-reset: code-block-line;
}
/* The focusable tab panel is the command's scroller, so the keyboard scrolls a long command. */
[data-preview-family="ombelle"] [data-code-block-mode='command'] > [role='tabpanel'] {
  min-inline-size: 0;
  overflow-x: auto;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code']:focus-visible,[data-preview-family="ombelle"] 
[data-code-block-mode='command'] > [role='tabpanel']:focus-visible {
  outline: 2.5px solid var(--code-block-foreground);
  outline-offset: -2.5px;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-line'] {
  counter-increment: code-block-line;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-line']::before {
  content: counter(code-block-line);
  content: counter(code-block-line) / '';
  display: inline-block;
  min-inline-size: max(2ch, var(--code-block-gutter, 2ch));
  margin-inline-end: 1ch;
  color: var(--code-block-line-number);
  text-align: end;
  -webkit-user-select: none;
  user-select: none;
}
[data-preview-family="ombelle"] [data-line-numbers='false'] [data-slot='pv-code-block-line']::before {
  content: none;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token='comment'] {
  color: var(--code-block-comment);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token='string'] {
  color: var(--code-block-string);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token='keyword'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-command'] [data-token='keyword'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-code'] [data-token='tag'] {
  color: var(--code-block-keyword);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token='attr'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-code'] [data-token='number'] {
  color: var(--code-block-attr);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token='property'],[data-preview-family="ombelle"] 
[data-slot='pv-code-block-code'] [data-token='flag'] {
  color: var(--code-block-property);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token='punct'] {
  color: var(--code-block-punct);
}
@media (forced-colors: active) {
  [data-preview-family="ombelle"] [data-slot='pv-code-block'] {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-header'] {
    border-color: CanvasText;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-title'] {
    background: Canvas;
    color: CanvasText;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-tab'] {
    background: ButtonFace;
    color: ButtonText;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-tab'][data-state='active'] {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-copy'] {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-code'] [data-token],[data-preview-family="ombelle"] 
  [data-slot='pv-code-block-command'] [data-token] {
    color: CanvasText;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-line']::before {
    color: GrayText;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-tab']:focus-visible,[data-preview-family="ombelle"] 
  [data-slot='pv-code-block-copy']:focus-visible,[data-preview-family="ombelle"] 
  [data-slot='pv-code-block-code']:focus-visible,[data-preview-family="ombelle"] 
  [data-code-block-mode='command'] > [role='tabpanel']:focus-visible {
    outline-color: Highlight;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-preview-family="ombelle"] [data-slot='pv-code-block-tab'],[data-preview-family="ombelle"] 
  [data-slot='pv-code-block-copy'] {
    transition: none;
  }
}
/* 0.7.6 variants */
[data-preview-family="ombelle"] [data-slot='pv-code-block-diff-count'] {
  flex: none;
  margin-inline-start: 6px;
  color: color-mix(in oklab, var(--code-block-foreground) 75%, transparent);
  font: 500 12px / 1 var(--font-mono, ui-monospace, monospace);
  white-space: nowrap;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-code'][data-diff] {
  padding-inline: 0;
}
[data-preview-family="ombelle"] [data-diff] [data-slot='pv-code-block-line'] {
  position: relative;
  display: block;
  inline-size: max-content;
  min-inline-size: 100%;
  box-sizing: border-box;
  padding-inline-start: calc(28px + 1ch);
  padding-inline-end: 16px;
}
[data-preview-family="ombelle"] [data-diff]:not([data-line-numbers='false']) [data-slot='pv-code-block-line'] {
  padding-inline-start: calc(
    28px + max(2ch, var(--code-block-gutter, 2ch)) + 1ch
  );
}
[data-preview-family="ombelle"] [data-diff] [data-slot='pv-code-block-line']::before {
  position: absolute;
  inset-inline-start: 28px;
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-line'][data-diff='added'] {
  background: color-mix(in oklab, oklch(0.72 0.17 150) 24%, transparent);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-line'][data-diff='removed'] {
  background: color-mix(in oklab, oklch(0.66 0.2 25) 26%, transparent);
}
/* A comment on a tinted band would fall below 4.5:1, so it takes the punctuation colour there. */
[data-preview-family="ombelle"] [data-slot='pv-code-block-line'][data-diff] [data-token='comment'] {
  color: var(--code-block-punct);
}
[data-preview-family="ombelle"] [data-slot='pv-code-block-diff-marker'] {
  position: absolute;
  inset-inline-start: 0;
  display: inline-block;
  inline-size: 28px;
  text-align: center;
  color: color-mix(in oklab, var(--code-block-foreground) 80%, transparent);
  -webkit-user-select: none;
  user-select: none;
}
@media (forced-colors: active) {
  [data-preview-family="ombelle"] [data-slot='pv-code-block-line'][data-diff] {
    background: transparent;
  }
  [data-preview-family="ombelle"] [data-slot='pv-code-block-diff-marker'],[data-preview-family="ombelle"] 
  [data-slot='pv-code-block-diff-count'] {
    color: CanvasText;
  }
}
/* end 0.7.6 variants */

