.marked-github-alert {
  margin: 0 0 16px;
  padding: 8px 16px;
  border-left: 0.25em solid var(--marked-github-alert-border-color, var(--borderColor-default, #d0d7de));
  color: var(--marked-github-alert-text-color, var(--fgColor-default, #1f2328));
}

.marked-github-alert > :last-child {
  margin-bottom: 0;
}

.marked-github-alert-title {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  line-height: 1;
  color: var(--marked-github-alert-title-color, var(--fgColor-default, #1f2328));
}

.marked-github-alert-title .marked-github-alert-icon {
  flex: none;
  fill: currentcolor;
}

.marked-github-alert-note {
  --marked-github-alert-border-color: var(--fgColor-accent, #0969da);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-tip {
  --marked-github-alert-border-color: var(--fgColor-success, #1a7f37);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-important {
  --marked-github-alert-border-color: var(--fgColor-done, #8250df);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-warning {
  --marked-github-alert-border-color: var(--fgColor-attention, #9a6700);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-caution {
  --marked-github-alert-border-color: var(--fgColor-danger, #cf222e);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

@media (prefers-color-scheme: dark) {
  .marked-github-alert-note {
    --marked-github-alert-border-color: var(--fgColor-accent, #4493f8);
    --marked-github-alert-title-color: var(--marked-github-alert-border-color);
  }

  .marked-github-alert-tip {
    --marked-github-alert-border-color: var(--fgColor-success, #3fb950);
    --marked-github-alert-title-color: var(--marked-github-alert-border-color);
  }

  .marked-github-alert-important {
    --marked-github-alert-border-color: var(--fgColor-done, #ab7df8);
    --marked-github-alert-title-color: var(--marked-github-alert-border-color);
  }

  .marked-github-alert-warning {
    --marked-github-alert-border-color: var(--fgColor-attention, #d29922);
    --marked-github-alert-title-color: var(--marked-github-alert-border-color);
  }

  .marked-github-alert-caution {
    --marked-github-alert-border-color: var(--fgColor-danger, #f85149);
    --marked-github-alert-title-color: var(--marked-github-alert-border-color);
  }
}

.marked-github-alert-theme-light .marked-github-alert-note {
  --marked-github-alert-border-color: var(--fgColor-accent, #0969da);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-light .marked-github-alert-tip {
  --marked-github-alert-border-color: var(--fgColor-success, #1a7f37);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-light .marked-github-alert-important {
  --marked-github-alert-border-color: var(--fgColor-done, #8250df);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-light .marked-github-alert-warning {
  --marked-github-alert-border-color: var(--fgColor-attention, #9a6700);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-light .marked-github-alert-caution {
  --marked-github-alert-border-color: var(--fgColor-danger, #cf222e);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-dark .marked-github-alert-note {
  --marked-github-alert-border-color: var(--fgColor-accent, #4493f8);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-dark .marked-github-alert-tip {
  --marked-github-alert-border-color: var(--fgColor-success, #3fb950);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-dark .marked-github-alert-important {
  --marked-github-alert-border-color: var(--fgColor-done, #ab7df8);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-dark .marked-github-alert-warning {
  --marked-github-alert-border-color: var(--fgColor-attention, #d29922);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}

.marked-github-alert-theme-dark .marked-github-alert-caution {
  --marked-github-alert-border-color: var(--fgColor-danger, #f85149);
  --marked-github-alert-title-color: var(--marked-github-alert-border-color);
}
