/* -------------------------------- 

File#: _2_copy-to-clipboard
Title: Copy To Clipboard
Descr: A Vanilla JavaScript plugin to copy content to the clipboard
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}



table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --cx0-color-primary-hsl: 250, 84%, 54%;
  --cx0-color-bg-hsl: 0, 0%, 100%;
  --cx0-color-contrast-high-hsl: 230, 7%, 23%;
  --cx0-color-contrast-higher-hsl: 230, 13%, 9%;
  --cx0-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --cx0-space-2xs: 0.375rem;
  --cx0-space-sm: 0.75rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --cx0-space-2xs: 0.5625rem;
    --cx0-space-sm: 1.125rem;
  }
}

/* icons */
.cx0-icon {
  height: var(--cx0-size, 1em);
  width: var(--cx0-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.cx0-icon--xs {
  --cx0-size: 16px;
}

/* component */
.copy-to-clip {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 0.25em;
  background-color: hsla(var(--cx0-color-contrast-higher-hsl), 0.1);
  cursor: pointer;
  transition: 0.2s;
}
.copy-to-clip:hover {
  background-color: hsla(var(--cx0-color-contrast-higher-hsl), 0.15);
}
.copy-to-clip:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsla(var(--cx0-color-contrast-higher-hsl), 0.35);
}

.copy-to-clip__icon-check {
  stroke-dashoffset: 8.49;
  stroke-dasharray: 8.49 8.49;
  transition: stroke-dashoffset 0.3s;
}

.copy-to-clip--copied {
  /* added in JS when content has been copied */
}
.copy-to-clip--copied .copy-to-clip__icon-check {
  stroke-dashoffset: 0;
}

/* utility classes */
.cx0-margin-left-sm {
  margin-left: var(--cx0-space-sm);
}

.cx0-items-center {
  align-items: center;
}

.cx0-inline-flex {
  display: inline-flex;
}

.cx0-padding-2xs {
  padding: var(--cx0-space-2xs);
}

.cx0-radius-lg {
  border-radius: 0.5em;
}

.cx0-border {
  --cx0-border-o: 1;
  border: var(--cx0-border-width, 1px) var(--cx0-border-style, solid) hsla(var(--cx0-color-contrast-lower-hsl), var(--cx0-border-o, 1));
}

.toc_outer_abs{
  position: absolute;
  top: 10px;
  right: 10px;
}