.gist-simple .gist-simple-wrap {
  font-size: 16px;
  margin: 0;
  margin-bottom: 1em;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333;
  text-align: left;
  background: #fff;
}

/* Highlight lines */
.gist-simple .gist-simple-highlighted-line {
  background-color: rgb(255, 255, 204);
}

/* Collapsed lines */
.gist-simple .js-line-number.collapsed,
.gist-simple .js-file-line.collapsed {
  background-color: #f9f9f9;
  color: #999;
  font-size: 12px;
  font-style: italic;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
.gist-simple .js-line-number.collapsed {
  text-align: center;
}

/* Caption */
.gist-simple-caption > td {
  background-color: #f9f9f9;
  border-bottom: 10px solid white;
}
.gist-simple-caption > td:last-child {
  padding: 10px !important;
  font-weight: bold;
}

/* Loading icon */
.gist-simple-loading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin: 0 auto;
  padding: 1.2em;
}
.gist-simple-loading-icon > i {
  display: inline-block;
  width: 0.25em;
  height: 0.25em;
  margin: 0 calc(0.25em / 2 * 1);
  border-radius: 50%;
  opacity: 0.2;
  background-color: currentColor;
  animation: gist-simple-loading-blink 1.4s infinite both;
}
.gist-simple-loading-icon > i:nth-child(2) {
  animation-delay: 0.2s;
}
.gist-simple-loading-icon > i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes gist-simple-loading-blink {
  0%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}

/* Dark mode */
.gist-simple-dark,
[data-theme="dark"] .gist-simple-system {
  filter: invert(.8) contrast(1.6) hue-rotate(180deg);
}
.gist-simple-dark .gist-simple-highlighted-line,
[data-theme="dark"] .gist-simple-system .gist-simple-highlighted-line {
  background-color: rgb(235, 233, 204);
}
.gist-simple-dark .js-line-number.collapsed,
.gist-simple-dark .gist-simple-system .js-file-line.collapsed,
[data-theme="dark"] .js-line-number.collapsed,
[data-theme="dark"] .gist-simple-system .js-file-line.collapsed {
  background-color: #f1f1f1;
}
.gist-simple-dark .gist-simple-caption > td,
[data-theme="dark"] .gist-simple-system .gist-simple-caption > td {
  background-color: #f1f1f1;
}

@media (prefers-color-scheme: dark) {
  .gist-simple-system {
    filter: invert(.8) contrast(1.6) hue-rotate(180deg);
  }
  .gist-simple .gist-simple-highlighted-line {
    background-color: rgb(235, 233, 204);
  }
  .gist-simple .js-line-number.collapsed,
  .gist-simple .js-file-line.collapsed {
    background-color: #f1f1f1;
  }
  .gist-simple-caption > td {
    background-color: #f1f1f1;
  }
}
