@define-mixin docs-spacing-ui-light {
  .docs-spacing {
    border-color: var(--ld-col-neutral-100);
  }
}
@define-mixin docs-spacing-ui-dark {
  .docs-spacing {
    border-color: var(--ld-col-neutral-600);
  }
}

@mixin docs-spacing-ui-light;

@media (prefers-color-scheme: dark) {
  @mixin docs-spacing-ui-dark;
}
.docs-ui-dark {
  @mixin docs-spacing-ui-dark;
}
.docs-ui-light {
  @mixin docs-spacing-ui-light;
}

.docs-spacing {
  display: flex;
  width: 100%;
  align-items: center;
  overflow: hidden;
  border-style: solid;
  border-width: var(--ld-sp-1);
  color: var(--ld-col-neutral-900);
  background-color: var(--ld-col-wht);
  padding: var(--ld-sp-16) var(--ld-sp-16) var(--ld-sp-16) var(--ld-sp-8);
  min-height: 6rem;

  &:first-of-type {
    border-top-left-radius: var(--ld-br-l);
    border-top-right-radius: var(--ld-br-l);
  }
  &:last-of-type {
    border-bottom-left-radius: var(--ld-br-l);
    border-bottom-right-radius: var(--ld-br-l);
  }
  &:not(:first-of-type) {
    border-top-width: 0;
  }
  &:not(:last-of-type) {
    border-bottom-width: 0;
  }
}

.docs-spacing__var,
.docs-spacing__val {
  display: flex;
  border-radius: var(--ld-br-l);
  align-items: center;
  font: var(--ld-typo-body-s);
  font-family: 'Source Code Pro', Consolas, Monaco, 'Ubuntu Mono', monospace;
  flex-shrink: 0;
  white-space: nowrap;

  .docs-copy-to-cb {
    margin-right: var(--ld-sp-8);
  }
}

.docs-spacing__var {
  width: 9rem;
}

.docs-spacing__val {
  color: var(--ld-col-neutral-400);
  width: 6.5rem;
}

.docs-spacing__vis {
  display: inline-flex;
  background-color: var(--ld-col-vm);
}
